function ghe(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const a in n)if(a!=="default"&&!(a in e)){const i=Object.getOwnPropertyDescriptor(n,a);i&&Object.defineProperty(e,a,i.get?i:{enumerable:!0,get:()=>n[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const dQ=Object.freeze(Object.defineProperty({__proto__:null,get Base(){return Iu},get Circle(){return eQt},get Ellipse(){return tQt},get Image(){return rQt},get Line(){return nQt},get Marker(){return iQt},get Path(){return cG},get Polygon(){return dQt},get Polyline(){return fQt},get Rect(){return pQt},get Text(){return vQt}},Symbol.toStringTag,{value:"Module"}));(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(a){if(a.ep)return;a.ep=!0;const i=r(a);fetch(a.href,i)}})();var Ho=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ya(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var a=!1;try{a=this instanceof n}catch{}return a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var A5={exports:{}},qm={};/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var u5,dK;function fQ(){if(dK)return u5;dK=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function a(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var o={},s=0;s<10;s++)o["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(o).map(function(A){return o[A]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(A){c[A]=A}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return u5=a()?Object.assign:function(i,o){for(var s,l=n(i),c,A=1;A<arguments.length;A++){s=Object(arguments[A]);for(var u in s)t.call(s,u)&&(l[u]=s[u]);if(e){c=e(s);for(var d=0;d<c.length;d++)r.call(s,c[d])&&(l[c[d]]=s[c[d]])}}return l},u5}var d5={exports:{}},ma={};/** @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 fK;function WQe(){if(fK)return ma;fK=1;var e=fQ(),t=60103,r=60106;ma.Fragment=60107,ma.StrictMode=60108,ma.Profiler=60114;var n=60109,a=60110,i=60112;ma.Suspense=60113;var o=60115,s=60116;if(typeof Symbol=="function"&&Symbol.for){var l=Symbol.for;t=l("react.element"),r=l("react.portal"),ma.Fragment=l("react.fragment"),ma.StrictMode=l("react.strict_mode"),ma.Profiler=l("react.profiler"),n=l("react.provider"),a=l("react.context"),i=l("react.forward_ref"),ma.Suspense=l("react.suspense"),o=l("react.memo"),s=l("react.lazy")}var c=typeof Symbol=="function"&&Symbol.iterator;function A(k){return k===null||typeof k!="object"?null:(k=c&&k[c]||k["@@iterator"],typeof k=="function"?k:null)}function u(k){for(var j="https://reactjs.org/docs/error-decoder.html?invariant="+k,Y=1;Y<arguments.length;Y++)j+="&args[]="+encodeURIComponent(arguments[Y]);return"Minified React error #"+k+"; visit "+j+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var d={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f={};function h(k,j,Y){this.props=k,this.context=j,this.refs=f,this.updater=Y||d}h.prototype.isReactComponent={},h.prototype.setState=function(k,j){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error(u(85));this.updater.enqueueSetState(this,k,j,"setState")},h.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function g(){}g.prototype=h.prototype;function p(k,j,Y){this.props=k,this.context=j,this.refs=f,this.updater=Y||d}var m=p.prototype=new g;m.constructor=p,e(m,h.prototype),m.isPureReactComponent=!0;var y={current:null},C=Object.prototype.hasOwnProperty,w={key:!0,ref:!0,__self:!0,__source:!0};function B(k,j,Y){var X,K={},U=null,H=null;if(j!=null)for(X in j.ref!==void 0&&(H=j.ref),j.key!==void 0&&(U=""+j.key),j)C.call(j,X)&&!w.hasOwnProperty(X)&&(K[X]=j[X]);var L=arguments.length-2;if(L===1)K.children=Y;else if(1<L){for(var V=Array(L),J=0;J<L;J++)V[J]=arguments[J+2];K.children=V}if(k&&k.defaultProps)for(X in L=k.defaultProps,L)K[X]===void 0&&(K[X]=L[X]);return{$$typeof:t,type:k,key:U,ref:H,props:K,_owner:y.current}}function x(k,j){return{$$typeof:t,type:k.type,key:j,ref:k.ref,props:k.props,_owner:k._owner}}function M(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function S(k){var j={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(Y){return j[Y]})}var R=/\/+/g;function b(k,j){return typeof k=="object"&&k!==null&&k.key!=null?S(""+k.key):j.toString(36)}function T(k,j,Y,X,K){var U=typeof k;(U==="undefined"||U==="boolean")&&(k=null);var H=!1;if(k===null)H=!0;else switch(U){case"string":case"number":H=!0;break;case"object":switch(k.$$typeof){case t:case r:H=!0}}if(H)return H=k,K=K(H),k=X===""?"."+b(H,0):X,Array.isArray(K)?(Y="",k!=null&&(Y=k.replace(R,"$&/")+"/"),T(K,j,Y,"",function(J){return J})):K!=null&&(M(K)&&(K=x(K,Y+(!K.key||H&&H.key===K.key?"":(""+K.key).replace(R,"$&/")+"/")+k)),j.push(K)),1;if(H=0,X=X===""?".":X+":",Array.isArray(k))for(var L=0;L<k.length;L++){U=k[L];var V=X+b(U,L);H+=T(U,j,Y,V,K)}else if(V=A(k),typeof V=="function")for(k=V.call(k),L=0;!(U=k.next()).done;)U=U.value,V=X+b(U,L++),H+=T(U,j,Y,V,K);else if(U==="object")throw j=""+k,Error(u(31,j==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":j));return H}function D(k,j,Y){if(k==null)return k;var X=[],K=0;return T(k,X,"","",function(U){return j.call(Y,U,K++)}),X}function F(k){if(k._status===-1){var j=k._result;j=j(),k._status=0,k._result=j,j.then(function(Y){k._status===0&&(Y=Y.default,k._status=1,k._result=Y)},function(Y){k._status===0&&(k._status=2,k._result=Y)})}if(k._status===1)return k._result;throw k._result}var N={current:null};function _(){var k=N.current;if(k===null)throw Error(u(321));return k}var P={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:y,IsSomeRendererActing:{current:!1},assign:e};return ma.Children={map:D,forEach:function(k,j,Y){D(k,function(){j.apply(this,arguments)},Y)},count:function(k){var j=0;return D(k,function(){j++}),j},toArray:function(k){return D(k,function(j){return j})||[]},only:function(k){if(!M(k))throw Error(u(143));return k}},ma.Component=h,ma.PureComponent=p,ma.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,ma.cloneElement=function(k,j,Y){if(k==null)throw Error(u(267,k));var X=e({},k.props),K=k.key,U=k.ref,H=k._owner;if(j!=null){if(j.ref!==void 0&&(U=j.ref,H=y.current),j.key!==void 0&&(K=""+j.key),k.type&&k.type.defaultProps)var L=k.type.defaultProps;for(V in j)C.call(j,V)&&!w.hasOwnProperty(V)&&(X[V]=j[V]===void 0&&L!==void 0?L[V]:j[V])}var V=arguments.length-2;if(V===1)X.children=Y;else if(1<V){L=Array(V);for(var J=0;J<V;J++)L[J]=arguments[J+2];X.children=L}return{$$typeof:t,type:k.type,key:K,ref:U,props:X,_owner:H}},ma.createContext=function(k,j){return j===void 0&&(j=null),k={$$typeof:a,_calculateChangedBits:j,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider={$$typeof:n,_context:k},k.Consumer=k},ma.createElement=B,ma.createFactory=function(k){var j=B.bind(null,k);return j.type=k,j},ma.createRef=function(){return{current:null}},ma.forwardRef=function(k){return{$$typeof:i,render:k}},ma.isValidElement=M,ma.lazy=function(k){return{$$typeof:s,_payload:{_status:-1,_result:k},_init:F}},ma.memo=function(k,j){return{$$typeof:o,type:k,compare:j===void 0?null:j}},ma.useCallback=function(k,j){return _().useCallback(k,j)},ma.useContext=function(k,j){return _().useContext(k,j)},ma.useDebugValue=function(){},ma.useEffect=function(k,j){return _().useEffect(k,j)},ma.useImperativeHandle=function(k,j,Y){return _().useImperativeHandle(k,j,Y)},ma.useLayoutEffect=function(k,j){return _().useLayoutEffect(k,j)},ma.useMemo=function(k,j){return _().useMemo(k,j)},ma.useReducer=function(k,j,Y){return _().useReducer(k,j,Y)},ma.useRef=function(k){return _().useRef(k)},ma.useState=function(k){return _().useState(k)},ma.version="17.0.2",ma}var hK;function Ur(){return hK||(hK=1,d5.exports=WQe()),d5.exports}/** @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 gK;function XQe(){if(gK)return qm;gK=1,fQ();var e=Ur(),t=60103;if(qm.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),qm.Fragment=r("react.fragment")}var n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,c){var A,u={},d=null,f=null;c!==void 0&&(d=""+c),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(f=l.ref);for(A in l)a.call(l,A)&&!i.hasOwnProperty(A)&&(u[A]=l[A]);if(s&&s.defaultProps)for(A in l=s.defaultProps,l)u[A]===void 0&&(u[A]=l[A]);return{$$typeof:t,type:s,key:d,ref:f,props:u,_owner:n.current}}return qm.jsx=o,qm.jsxs=o,qm}var pK;function qQe(){return pK||(pK=1,A5.exports=XQe()),A5.exports}var v=qQe(),f5={exports:{}},$l={},h5={exports:{}},g5={};/** @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.
 */var vK;function ZQe(){return vK||(vK=1,(function(e){var t,r,n,a;if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}if(typeof window>"u"||typeof MessageChannel!="function"){var l=null,c=null,A=function(){if(l!==null)try{var K=e.unstable_now();l(!0,K),l=null}catch(U){throw setTimeout(A,0),U}};t=function(K){l!==null?setTimeout(t,0,K):(l=K,setTimeout(A,0))},r=function(K,U){c=setTimeout(K,U)},n=function(){clearTimeout(c)},e.unstable_shouldYield=function(){return!1},a=e.unstable_forceFrameRate=function(){}}else{var u=window.setTimeout,d=window.clearTimeout;if(typeof console<"u"){var f=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 f!="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 h=!1,g=null,p=-1,m=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},a=function(){},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):m=0<K?Math.floor(1e3/K):5};var C=new MessageChannel,w=C.port2;C.port1.onmessage=function(){if(g!==null){var K=e.unstable_now();y=K+m;try{g(!0,K)?w.postMessage(null):(h=!1,g=null)}catch(U){throw w.postMessage(null),U}}else h=!1},t=function(K){g=K,h||(h=!0,w.postMessage(null))},r=function(K,U){p=u(function(){K(e.unstable_now())},U)},n=function(){d(p),p=-1}}function B(K,U){var H=K.length;K.push(U);e:for(;;){var L=H-1>>>1,V=K[L];if(V!==void 0&&0<S(V,U))K[L]=U,K[H]=V,H=L;else break e}}function x(K){return K=K[0],K===void 0?null:K}function M(K){var U=K[0];if(U!==void 0){var H=K.pop();if(H!==U){K[0]=H;e:for(var L=0,V=K.length;L<V;){var J=2*(L+1)-1,ee=K[J],ae=J+1,ne=K[ae];if(ee!==void 0&&0>S(ee,H))ne!==void 0&&0>S(ne,ee)?(K[L]=ne,K[ae]=H,L=ae):(K[L]=ee,K[J]=H,L=J);else if(ne!==void 0&&0>S(ne,H))K[L]=ne,K[ae]=H,L=ae;else break e}}return U}return null}function S(K,U){var H=K.sortIndex-U.sortIndex;return H!==0?H:K.id-U.id}var R=[],b=[],T=1,D=null,F=3,N=!1,_=!1,P=!1;function k(K){for(var U=x(b);U!==null;){if(U.callback===null)M(b);else if(U.startTime<=K)M(b),U.sortIndex=U.expirationTime,B(R,U);else break;U=x(b)}}function j(K){if(P=!1,k(K),!_)if(x(R)!==null)_=!0,t(Y);else{var U=x(b);U!==null&&r(j,U.startTime-K)}}function Y(K,U){_=!1,P&&(P=!1,n()),N=!0;var H=F;try{for(k(U),D=x(R);D!==null&&(!(D.expirationTime>U)||K&&!e.unstable_shouldYield());){var L=D.callback;if(typeof L=="function"){D.callback=null,F=D.priorityLevel;var V=L(D.expirationTime<=U);U=e.unstable_now(),typeof V=="function"?D.callback=V:D===x(R)&&M(R),k(U)}else M(R);D=x(R)}if(D!==null)var J=!0;else{var ee=x(b);ee!==null&&r(j,ee.startTime-U),J=!1}return J}finally{D=null,F=H,N=!1}}var X=a;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){_||N||(_=!0,t(Y))},e.unstable_getCurrentPriorityLevel=function(){return F},e.unstable_getFirstCallbackNode=function(){return x(R)},e.unstable_next=function(K){switch(F){case 1:case 2:case 3:var U=3;break;default:U=F}var H=F;F=U;try{return K()}finally{F=H}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=X,e.unstable_runWithPriority=function(K,U){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var H=F;F=K;try{return U()}finally{F=H}},e.unstable_scheduleCallback=function(K,U,H){var L=e.unstable_now();switch(typeof H=="object"&&H!==null?(H=H.delay,H=typeof H=="number"&&0<H?L+H:L):H=L,K){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=H+V,K={id:T++,callback:U,priorityLevel:K,startTime:H,expirationTime:V,sortIndex:-1},H>L?(K.sortIndex=H,B(b,K),x(R)===null&&K===x(b)&&(P?n():P=!0,r(j,H-L))):(K.sortIndex=V,B(R,K),_||N||(_=!0,t(Y))),K},e.unstable_wrapCallback=function(K){var U=F;return function(){var H=F;F=U;try{return K.apply(this,arguments)}finally{F=H}}}})(g5)),g5}var mK;function $Qe(){return mK||(mK=1,h5.exports=ZQe()),h5.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 EK;function e4e(){if(EK)return $l;EK=1;var e=Ur(),t=fQ(),r=$Qe();function n(I){for(var Q="https://reactjs.org/docs/error-decoder.html?invariant="+I,O=1;O<arguments.length;O++)Q+="&args[]="+encodeURIComponent(arguments[O]);return"Minified React error #"+I+"; visit "+Q+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!e)throw Error(n(227));var a=new Set,i={};function o(I,Q){s(I,Q),s(I+"Capture",Q)}function s(I,Q){for(i[I]=Q,I=0;I<Q.length;I++)a.add(Q[I])}var l=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),c=/^[: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]*$/,A=Object.prototype.hasOwnProperty,u={},d={};function f(I){return A.call(d,I)?!0:A.call(u,I)?!1:c.test(I)?d[I]=!0:(u[I]=!0,!1)}function h(I,Q,O,Z){if(O!==null&&O.type===0)return!1;switch(typeof Q){case"function":case"symbol":return!0;case"boolean":return Z?!1:O!==null?!O.acceptsBooleans:(I=I.toLowerCase().slice(0,5),I!=="data-"&&I!=="aria-");default:return!1}}function g(I,Q,O,Z){if(Q===null||typeof Q>"u"||h(I,Q,O,Z))return!0;if(Z)return!1;if(O!==null)switch(O.type){case 3:return!Q;case 4:return Q===!1;case 5:return isNaN(Q);case 6:return isNaN(Q)||1>Q}return!1}function p(I,Q,O,Z,oe,Ce,_e){this.acceptsBooleans=Q===2||Q===3||Q===4,this.attributeName=Z,this.attributeNamespace=oe,this.mustUseProperty=O,this.propertyName=I,this.type=Q,this.sanitizeURL=Ce,this.removeEmptyString=_e}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(I){m[I]=new p(I,0,!1,I,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(I){var Q=I[0];m[Q]=new p(Q,1,!1,I[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(I){m[I]=new p(I,2,!1,I.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(I){m[I]=new p(I,2,!1,I,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(I){m[I]=new p(I,3,!1,I.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(I){m[I]=new p(I,3,!0,I,null,!1,!1)}),["capture","download"].forEach(function(I){m[I]=new p(I,4,!1,I,null,!1,!1)}),["cols","rows","size","span"].forEach(function(I){m[I]=new p(I,6,!1,I,null,!1,!1)}),["rowSpan","start"].forEach(function(I){m[I]=new p(I,5,!1,I.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function C(I){return I[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(I){var Q=I.replace(y,C);m[Q]=new p(Q,1,!1,I,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(I){var Q=I.replace(y,C);m[Q]=new p(Q,1,!1,I,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(I){var Q=I.replace(y,C);m[Q]=new p(Q,1,!1,I,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(I){m[I]=new p(I,1,!1,I.toLowerCase(),null,!1,!1)}),m.xlinkHref=new p("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(I){m[I]=new p(I,1,!1,I.toLowerCase(),null,!0,!0)});function w(I,Q,O,Z){var oe=m.hasOwnProperty(Q)?m[Q]:null,Ce=oe!==null?oe.type===0:Z?!1:!(!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N");Ce||(g(Q,O,oe,Z)&&(O=null),Z||oe===null?f(Q)&&(O===null?I.removeAttribute(Q):I.setAttribute(Q,""+O)):oe.mustUseProperty?I[oe.propertyName]=O===null?oe.type===3?!1:"":O:(Q=oe.attributeName,Z=oe.attributeNamespace,O===null?I.removeAttribute(Q):(oe=oe.type,O=oe===3||oe===4&&O===!0?"":""+O,Z?I.setAttributeNS(Z,Q,O):I.setAttribute(Q,O))))}var B=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=60103,M=60106,S=60107,R=60108,b=60114,T=60109,D=60110,F=60112,N=60113,_=60120,P=60115,k=60116,j=60121,Y=60128,X=60129,K=60130,U=60131;if(typeof Symbol=="function"&&Symbol.for){var H=Symbol.for;x=H("react.element"),M=H("react.portal"),S=H("react.fragment"),R=H("react.strict_mode"),b=H("react.profiler"),T=H("react.provider"),D=H("react.context"),F=H("react.forward_ref"),N=H("react.suspense"),_=H("react.suspense_list"),P=H("react.memo"),k=H("react.lazy"),j=H("react.block"),H("react.scope"),Y=H("react.opaque.id"),X=H("react.debug_trace_mode"),K=H("react.offscreen"),U=H("react.legacy_hidden")}var L=typeof Symbol=="function"&&Symbol.iterator;function V(I){return I===null||typeof I!="object"?null:(I=L&&I[L]||I["@@iterator"],typeof I=="function"?I:null)}var J;function ee(I){if(J===void 0)try{throw Error()}catch(O){var Q=O.stack.trim().match(/\n( *(at )?)/);J=Q&&Q[1]||""}return`
`+J+I}var ae=!1;function ne(I,Q){if(!I||ae)return"";ae=!0;var O=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(Q)if(Q=function(){throw Error()},Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Mt){var Z=Mt}Reflect.construct(I,[],Q)}else{try{Q.call()}catch(Mt){Z=Mt}I.call(Q.prototype)}else{try{throw Error()}catch(Mt){Z=Mt}I()}}catch(Mt){if(Mt&&Z&&typeof Mt.stack=="string"){for(var oe=Mt.stack.split(`
`),Ce=Z.stack.split(`
`),_e=oe.length-1,st=Ce.length-1;1<=_e&&0<=st&&oe[_e]!==Ce[st];)st--;for(;1<=_e&&0<=st;_e--,st--)if(oe[_e]!==Ce[st]){if(_e!==1||st!==1)do if(_e--,st--,0>st||oe[_e]!==Ce[st])return`
`+oe[_e].replace(" at new "," at ");while(1<=_e&&0<=st);break}}}finally{ae=!1,Error.prepareStackTrace=O}return(I=I?I.displayName||I.name:"")?ee(I):""}function fe(I){switch(I.tag){case 5:return ee(I.type);case 16:return ee("Lazy");case 13:return ee("Suspense");case 19:return ee("SuspenseList");case 0:case 2:case 15:return I=ne(I.type,!1),I;case 11:return I=ne(I.type.render,!1),I;case 22:return I=ne(I.type._render,!1),I;case 1:return I=ne(I.type,!0),I;default:return""}}function he(I){if(I==null)return null;if(typeof I=="function")return I.displayName||I.name||null;if(typeof I=="string")return I;switch(I){case S:return"Fragment";case M:return"Portal";case b:return"Profiler";case R:return"StrictMode";case N:return"Suspense";case _:return"SuspenseList"}if(typeof I=="object")switch(I.$$typeof){case D:return(I.displayName||"Context")+".Consumer";case T:return(I._context.displayName||"Context")+".Provider";case F:var Q=I.render;return Q=Q.displayName||Q.name||"",I.displayName||(Q!==""?"ForwardRef("+Q+")":"ForwardRef");case P:return he(I.type);case j:return he(I._render);case k:Q=I._payload,I=I._init;try{return he(I(Q))}catch{}}return null}function ye(I){switch(typeof I){case"boolean":case"number":case"object":case"string":case"undefined":return I;default:return""}}function be(I){var Q=I.type;return(I=I.nodeName)&&I.toLowerCase()==="input"&&(Q==="checkbox"||Q==="radio")}function Se(I){var Q=be(I)?"checked":"value",O=Object.getOwnPropertyDescriptor(I.constructor.prototype,Q),Z=""+I[Q];if(!I.hasOwnProperty(Q)&&typeof O<"u"&&typeof O.get=="function"&&typeof O.set=="function"){var oe=O.get,Ce=O.set;return Object.defineProperty(I,Q,{configurable:!0,get:function(){return oe.call(this)},set:function(_e){Z=""+_e,Ce.call(this,_e)}}),Object.defineProperty(I,Q,{enumerable:O.enumerable}),{getValue:function(){return Z},setValue:function(_e){Z=""+_e},stopTracking:function(){I._valueTracker=null,delete I[Q]}}}}function ve(I){I._valueTracker||(I._valueTracker=Se(I))}function de(I){if(!I)return!1;var Q=I._valueTracker;if(!Q)return!0;var O=Q.getValue(),Z="";return I&&(Z=be(I)?I.checked?"true":"false":I.value),I=Z,I!==O?(Q.setValue(I),!0):!1}function Ue(I){if(I=I||(typeof document<"u"?document:void 0),typeof I>"u")return null;try{return I.activeElement||I.body}catch{return I.body}}function at(I,Q){var O=Q.checked;return t({},Q,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:O??I._wrapperState.initialChecked})}function Ve(I,Q){var O=Q.defaultValue==null?"":Q.defaultValue,Z=Q.checked!=null?Q.checked:Q.defaultChecked;O=ye(Q.value!=null?Q.value:O),I._wrapperState={initialChecked:Z,initialValue:O,controlled:Q.type==="checkbox"||Q.type==="radio"?Q.checked!=null:Q.value!=null}}function Ie(I,Q){Q=Q.checked,Q!=null&&w(I,"checked",Q,!1)}function we(I,Q){Ie(I,Q);var O=ye(Q.value),Z=Q.type;if(O!=null)Z==="number"?(O===0&&I.value===""||I.value!=O)&&(I.value=""+O):I.value!==""+O&&(I.value=""+O);else if(Z==="submit"||Z==="reset"){I.removeAttribute("value");return}Q.hasOwnProperty("value")?Te(I,Q.type,O):Q.hasOwnProperty("defaultValue")&&Te(I,Q.type,ye(Q.defaultValue)),Q.checked==null&&Q.defaultChecked!=null&&(I.defaultChecked=!!Q.defaultChecked)}function Re(I,Q,O){if(Q.hasOwnProperty("value")||Q.hasOwnProperty("defaultValue")){var Z=Q.type;if(!(Z!=="submit"&&Z!=="reset"||Q.value!==void 0&&Q.value!==null))return;Q=""+I._wrapperState.initialValue,O||Q===I.value||(I.value=Q),I.defaultValue=Q}O=I.name,O!==""&&(I.name=""),I.defaultChecked=!!I._wrapperState.initialChecked,O!==""&&(I.name=O)}function Te(I,Q,O){(Q!=="number"||Ue(I.ownerDocument)!==I)&&(O==null?I.defaultValue=""+I._wrapperState.initialValue:I.defaultValue!==""+O&&(I.defaultValue=""+O))}function Ke(I){var Q="";return e.Children.forEach(I,function(O){O!=null&&(Q+=O)}),Q}function mt(I,Q){return I=t({children:void 0},Q),(Q=Ke(Q.children))&&(I.children=Q),I}function tt(I,Q,O,Z){if(I=I.options,Q){Q={};for(var oe=0;oe<O.length;oe++)Q["$"+O[oe]]=!0;for(O=0;O<I.length;O++)oe=Q.hasOwnProperty("$"+I[O].value),I[O].selected!==oe&&(I[O].selected=oe),oe&&Z&&(I[O].defaultSelected=!0)}else{for(O=""+ye(O),Q=null,oe=0;oe<I.length;oe++){if(I[oe].value===O){I[oe].selected=!0,Z&&(I[oe].defaultSelected=!0);return}Q!==null||I[oe].disabled||(Q=I[oe])}Q!==null&&(Q.selected=!0)}}function rt(I,Q){if(Q.dangerouslySetInnerHTML!=null)throw Error(n(91));return t({},Q,{value:void 0,defaultValue:void 0,children:""+I._wrapperState.initialValue})}function lt(I,Q){var O=Q.value;if(O==null){if(O=Q.children,Q=Q.defaultValue,O!=null){if(Q!=null)throw Error(n(92));if(Array.isArray(O)){if(!(1>=O.length))throw Error(n(93));O=O[0]}Q=O}Q==null&&(Q=""),O=Q}I._wrapperState={initialValue:ye(O)}}function At(I,Q){var O=ye(Q.value),Z=ye(Q.defaultValue);O!=null&&(O=""+O,O!==I.value&&(I.value=O),Q.defaultValue==null&&I.defaultValue!==O&&(I.defaultValue=O)),Z!=null&&(I.defaultValue=""+Z)}function $e(I){var Q=I.textContent;Q===I._wrapperState.initialValue&&Q!==""&&Q!==null&&(I.value=Q)}var ce={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function qe(I){switch(I){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 ct(I,Q){return I==null||I==="http://www.w3.org/1999/xhtml"?qe(Q):I==="http://www.w3.org/2000/svg"&&Q==="foreignObject"?"http://www.w3.org/1999/xhtml":I}var Tt,He=(function(I){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(Q,O,Z,oe){MSApp.execUnsafeLocalFunction(function(){return I(Q,O,Z,oe)})}:I})(function(I,Q){if(I.namespaceURI!==ce.svg||"innerHTML"in I)I.innerHTML=Q;else{for(Tt=Tt||document.createElement("div"),Tt.innerHTML="<svg>"+Q.valueOf().toString()+"</svg>",Q=Tt.firstChild;I.firstChild;)I.removeChild(I.firstChild);for(;Q.firstChild;)I.appendChild(Q.firstChild)}});function Ge(I,Q){if(Q){var O=I.firstChild;if(O&&O===I.lastChild&&O.nodeType===3){O.nodeValue=Q;return}}I.textContent=Q}var Ee={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},Et=["Webkit","ms","Moz","O"];Object.keys(Ee).forEach(function(I){Et.forEach(function(Q){Q=Q+I.charAt(0).toUpperCase()+I.substring(1),Ee[Q]=Ee[I]})});function Yt(I,Q,O){return Q==null||typeof Q=="boolean"||Q===""?"":O||typeof Q!="number"||Q===0||Ee.hasOwnProperty(I)&&Ee[I]?(""+Q).trim():Q+"px"}function $(I,Q){I=I.style;for(var O in Q)if(Q.hasOwnProperty(O)){var Z=O.indexOf("--")===0,oe=Yt(O,Q[O],Z);O==="float"&&(O="cssFloat"),Z?I.setProperty(O,oe):I[O]=oe}}var Fe=t({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 je(I,Q){if(Q){if(Fe[I]&&(Q.children!=null||Q.dangerouslySetInnerHTML!=null))throw Error(n(137,I));if(Q.dangerouslySetInnerHTML!=null){if(Q.children!=null)throw Error(n(60));if(!(typeof Q.dangerouslySetInnerHTML=="object"&&"__html"in Q.dangerouslySetInnerHTML))throw Error(n(61))}if(Q.style!=null&&typeof Q.style!="object")throw Error(n(62))}}function ue(I,Q){if(I.indexOf("-")===-1)return typeof Q.is=="string";switch(I){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 ie(I){return I=I.target||I.srcElement||window,I.correspondingUseElement&&(I=I.correspondingUseElement),I.nodeType===3?I.parentNode:I}var Be=null,Xe=null,Oe=null;function ft(I){if(I=lp(I)){if(typeof Be!="function")throw Error(n(280));var Q=I.stateNode;Q&&(Q=_m(Q),Be(I.stateNode,I.type,Q))}}function wt(I){Xe?Oe?Oe.push(I):Oe=[I]:Xe=I}function ot(){if(Xe){var I=Xe,Q=Oe;if(Oe=Xe=null,ft(I),Q)for(I=0;I<Q.length;I++)ft(Q[I])}}function it(I,Q){return I(Q)}function vt(I,Q,O,Z,oe){return I(Q,O,Z,oe)}function qt(){}var Xt=it,Tr=!1,Kr=!1;function Vr(){(Xe!==null||Oe!==null)&&(qt(),ot())}function Pr(I,Q,O){if(Kr)return I(Q,O);Kr=!0;try{return Xt(I,Q,O)}finally{Kr=!1,Vr()}}function mr(I,Q){var O=I.stateNode;if(O===null)return null;var Z=_m(O);if(Z===null)return null;O=Z[Q];e:switch(Q){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(Z=!Z.disabled)||(I=I.type,Z=!(I==="button"||I==="input"||I==="select"||I==="textarea")),I=!Z;break e;default:I=!1}if(I)return null;if(O&&typeof O!="function")throw Error(n(231,Q,typeof O));return O}var xr=!1;if(l)try{var Ir={};Object.defineProperty(Ir,"passive",{get:function(){xr=!0}}),window.addEventListener("test",Ir,Ir),window.removeEventListener("test",Ir,Ir)}catch{xr=!1}function Fr(I,Q,O,Z,oe,Ce,_e,st,Mt){var tr=Array.prototype.slice.call(arguments,3);try{Q.apply(O,tr)}catch($r){this.onError($r)}}var br=!1,Sr=null,fr=!1,Cr=null,hr={onError:function(I){br=!0,Sr=I}};function Ht(I,Q,O,Z,oe,Ce,_e,st,Mt){br=!1,Sr=null,Fr.apply(hr,arguments)}function Gt(I,Q,O,Z,oe,Ce,_e,st,Mt){if(Ht.apply(this,arguments),br){if(br){var tr=Sr;br=!1,Sr=null}else throw Error(n(198));fr||(fr=!0,Cr=tr)}}function er(I){var Q=I,O=I;if(I.alternate)for(;Q.return;)Q=Q.return;else{I=Q;do Q=I,(Q.flags&1026)!==0&&(O=Q.return),I=Q.return;while(I)}return Q.tag===3?O:null}function Qr(I){if(I.tag===13){var Q=I.memoizedState;if(Q===null&&(I=I.alternate,I!==null&&(Q=I.memoizedState)),Q!==null)return Q.dehydrated}return null}function Hr(I){if(er(I)!==I)throw Error(n(188))}function vn(I){var Q=I.alternate;if(!Q){if(Q=er(I),Q===null)throw Error(n(188));return Q!==I?null:I}for(var O=I,Z=Q;;){var oe=O.return;if(oe===null)break;var Ce=oe.alternate;if(Ce===null){if(Z=oe.return,Z!==null){O=Z;continue}break}if(oe.child===Ce.child){for(Ce=oe.child;Ce;){if(Ce===O)return Hr(oe),I;if(Ce===Z)return Hr(oe),Q;Ce=Ce.sibling}throw Error(n(188))}if(O.return!==Z.return)O=oe,Z=Ce;else{for(var _e=!1,st=oe.child;st;){if(st===O){_e=!0,O=oe,Z=Ce;break}if(st===Z){_e=!0,Z=oe,O=Ce;break}st=st.sibling}if(!_e){for(st=Ce.child;st;){if(st===O){_e=!0,O=Ce,Z=oe;break}if(st===Z){_e=!0,Z=Ce,O=oe;break}st=st.sibling}if(!_e)throw Error(n(189))}}if(O.alternate!==Z)throw Error(n(190))}if(O.tag!==3)throw Error(n(188));return O.stateNode.current===O?I:Q}function pn(I){if(I=vn(I),!I)return null;for(var Q=I;;){if(Q.tag===5||Q.tag===6)return Q;if(Q.child)Q.child.return=Q,Q=Q.child;else{if(Q===I)break;for(;!Q.sibling;){if(!Q.return||Q.return===I)return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}}return null}function Qn(I,Q){for(var O=I.alternate;Q!==null;){if(Q===I||Q===O)return!0;Q=Q.return}return!1}var pt,Ze,bt,kt,Wt=!1,St=[],pe=null,ke=null,Me=null,ze=new Map,Ye=new Map,et=[],Ct="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 Ot(I,Q,O,Z,oe){return{blockedOn:I,domEventName:Q,eventSystemFlags:O|16,nativeEvent:oe,targetContainers:[Z]}}function Ut(I,Q){switch(I){case"focusin":case"focusout":pe=null;break;case"dragenter":case"dragleave":ke=null;break;case"mouseover":case"mouseout":Me=null;break;case"pointerover":case"pointerout":ze.delete(Q.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ye.delete(Q.pointerId)}}function Jt(I,Q,O,Z,oe,Ce){return I===null||I.nativeEvent!==Ce?(I=Ot(Q,O,Z,oe,Ce),Q!==null&&(Q=lp(Q),Q!==null&&Ze(Q)),I):(I.eventSystemFlags|=Z,Q=I.targetContainers,oe!==null&&Q.indexOf(oe)===-1&&Q.push(oe),I)}function ar(I,Q,O,Z,oe){switch(Q){case"focusin":return pe=Jt(pe,I,Q,O,Z,oe),!0;case"dragenter":return ke=Jt(ke,I,Q,O,Z,oe),!0;case"mouseover":return Me=Jt(Me,I,Q,O,Z,oe),!0;case"pointerover":var Ce=oe.pointerId;return ze.set(Ce,Jt(ze.get(Ce)||null,I,Q,O,Z,oe)),!0;case"gotpointercapture":return Ce=oe.pointerId,Ye.set(Ce,Jt(Ye.get(Ce)||null,I,Q,O,Z,oe)),!0}return!1}function Nr(I){var Q=rf(I.target);if(Q!==null){var O=er(Q);if(O!==null){if(Q=O.tag,Q===13){if(Q=Qr(O),Q!==null){I.blockedOn=Q,kt(I.lanePriority,function(){r.unstable_runWithPriority(I.priority,function(){bt(O)})});return}}else if(Q===3&&O.stateNode.hydrate){I.blockedOn=O.tag===3?O.stateNode.containerInfo:null;return}}}I.blockedOn=null}function rn(I){if(I.blockedOn!==null)return!1;for(var Q=I.targetContainers;0<Q.length;){var O=Su(I.domEventName,I.eventSystemFlags,Q[0],I.nativeEvent);if(O!==null)return Q=lp(O),Q!==null&&Ze(Q),I.blockedOn=O,!1;Q.shift()}return!0}function dn(I,Q,O){rn(I)&&O.delete(Q)}function kr(){for(Wt=!1;0<St.length;){var I=St[0];if(I.blockedOn!==null){I=lp(I.blockedOn),I!==null&&pt(I);break}for(var Q=I.targetContainers;0<Q.length;){var O=Su(I.domEventName,I.eventSystemFlags,Q[0],I.nativeEvent);if(O!==null){I.blockedOn=O;break}Q.shift()}I.blockedOn===null&&St.shift()}pe!==null&&rn(pe)&&(pe=null),ke!==null&&rn(ke)&&(ke=null),Me!==null&&rn(Me)&&(Me=null),ze.forEach(dn),Ye.forEach(dn)}function Wr(I,Q){I.blockedOn===Q&&(I.blockedOn=null,Wt||(Wt=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,kr)))}function Rr(I){function Q(oe){return Wr(oe,I)}if(0<St.length){Wr(St[0],I);for(var O=1;O<St.length;O++){var Z=St[O];Z.blockedOn===I&&(Z.blockedOn=null)}}for(pe!==null&&Wr(pe,I),ke!==null&&Wr(ke,I),Me!==null&&Wr(Me,I),ze.forEach(Q),Ye.forEach(Q),O=0;O<et.length;O++)Z=et[O],Z.blockedOn===I&&(Z.blockedOn=null);for(;0<et.length&&(O=et[0],O.blockedOn===null);)Nr(O),O.blockedOn===null&&et.shift()}function Gn(I,Q){var O={};return O[I.toLowerCase()]=Q.toLowerCase(),O["Webkit"+I]="webkit"+Q,O["Moz"+I]="moz"+Q,O}var Wn={animationend:Gn("Animation","AnimationEnd"),animationiteration:Gn("Animation","AnimationIteration"),animationstart:Gn("Animation","AnimationStart"),transitionend:Gn("Transition","TransitionEnd")},Cn={},qa={};l&&(qa=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function wa(I){if(Cn[I])return Cn[I];if(!Wn[I])return I;var Q=Wn[I],O;for(O in Q)if(Q.hasOwnProperty(O)&&O in qa)return Cn[I]=Q[O];return I}var ht=wa("animationend"),Pt=wa("animationiteration"),Ft=wa("animationstart"),or=wa("transitionend"),Zr=new Map,lr=new Map,$n=["abort","abort",ht,"animationEnd",Pt,"animationIteration",Ft,"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",or,"transitionEnd","waiting","waiting"];function pa(I,Q){for(var O=0;O<I.length;O+=2){var Z=I[O],oe=I[O+1];oe="on"+(oe[0].toUpperCase()+oe.slice(1)),lr.set(Z,Q),Zr.set(Z,oe),o(oe,[Z])}}var ha=r.unstable_now;ha();var In=8;function Oa(I){if((1&I)!==0)return In=15,1;if((2&I)!==0)return In=14,2;if((4&I)!==0)return In=13,4;var Q=24&I;return Q!==0?(In=12,Q):(I&32)!==0?(In=11,32):(Q=192&I,Q!==0?(In=10,Q):(I&256)!==0?(In=9,256):(Q=3584&I,Q!==0?(In=8,Q):(I&4096)!==0?(In=7,4096):(Q=4186112&I,Q!==0?(In=6,Q):(Q=62914560&I,Q!==0?(In=5,Q):I&67108864?(In=4,67108864):(I&134217728)!==0?(In=3,134217728):(Q=805306368&I,Q!==0?(In=2,Q):(1073741824&I)!==0?(In=1,1073741824):(In=8,I))))))}function bi(I){switch(I){case 99:return 15;case 98:return 10;case 97:case 96:return 8;case 95:return 2;default:return 0}}function ri(I){switch(I){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(n(358,I))}}function Za(I,Q){var O=I.pendingLanes;if(O===0)return In=0;var Z=0,oe=0,Ce=I.expiredLanes,_e=I.suspendedLanes,st=I.pingedLanes;if(Ce!==0)Z=Ce,oe=In=15;else if(Ce=O&134217727,Ce!==0){var Mt=Ce&~_e;Mt!==0?(Z=Oa(Mt),oe=In):(st&=Ce,st!==0&&(Z=Oa(st),oe=In))}else Ce=O&~_e,Ce!==0?(Z=Oa(Ce),oe=In):st!==0&&(Z=Oa(st),oe=In);if(Z===0)return 0;if(Z=31-so(Z),Z=O&((0>Z?0:1<<Z)<<1)-1,Q!==0&&Q!==Z&&(Q&_e)===0){if(Oa(Q),oe<=In)return Q;In=oe}if(Q=I.entangledLanes,Q!==0)for(I=I.entanglements,Q&=Z;0<Q;)O=31-so(Q),oe=1<<O,Z|=I[O],Q&=~oe;return Z}function Xi(I){return I=I.pendingLanes&-1073741825,I!==0?I:I&1073741824?1073741824:0}function po(I,Q){switch(I){case 15:return 1;case 14:return 2;case 12:return I=ni(24&~Q),I===0?po(10,Q):I;case 10:return I=ni(192&~Q),I===0?po(8,Q):I;case 8:return I=ni(3584&~Q),I===0&&(I=ni(4186112&~Q),I===0&&(I=512)),I;case 2:return Q=ni(805306368&~Q),Q===0&&(Q=268435456),Q}throw Error(n(358,I))}function ni(I){return I&-I}function zi(I){for(var Q=[],O=0;31>O;O++)Q.push(I);return Q}function Qo(I,Q,O){I.pendingLanes|=Q;var Z=Q-1;I.suspendedLanes&=Z,I.pingedLanes&=Z,I=I.eventTimes,Q=31-so(Q),I[Q]=O}var so=Math.clz32?Math.clz32:gA,gs=Math.log,bu=Math.LN2;function gA(I){return I===0?32:31-(gs(I)/bu|0)|0}var Ud=r.unstable_UserBlockingPriority,sh=r.unstable_runWithPriority,xc=!0;function lh(I,Q,O,Z){Tr||qt();var oe=ps,Ce=Tr;Tr=!0;try{vt(oe,I,Q,O,Z)}finally{(Tr=Ce)||Vr()}}function Os(I,Q,O,Z){sh(Ud,ps.bind(null,I,Q,O,Z))}function ps(I,Q,O,Z){if(xc){var oe;if((oe=(Q&4)===0)&&0<St.length&&-1<Ct.indexOf(I))I=Ot(null,I,Q,O,Z),St.push(I);else{var Ce=Su(I,Q,O,Z);if(Ce===null)oe&&Ut(I,Z);else{if(oe){if(-1<Ct.indexOf(I)){I=Ot(Ce,I,Q,O,Z),St.push(I);return}if(ar(Ce,I,Q,O,Z))return;Ut(I,Z)}ap(I,Q,Z,null,O)}}}}function Su(I,Q,O,Z){var oe=ie(Z);if(oe=rf(oe),oe!==null){var Ce=er(oe);if(Ce===null)oe=null;else{var _e=Ce.tag;if(_e===13){if(oe=Qr(Ce),oe!==null)return oe;oe=null}else if(_e===3){if(Ce.stateNode.hydrate)return Ce.tag===3?Ce.stateNode.containerInfo:null;oe=null}else Ce!==oe&&(oe=null)}}return ap(I,Q,Z,oe,O),null}var vo=null,qo=null,Mc=null;function Ic(){if(Mc)return Mc;var I,Q=qo,O=Q.length,Z,oe="value"in vo?vo.value:vo.textContent,Ce=oe.length;for(I=0;I<O&&Q[I]===oe[I];I++);var _e=O-I;for(Z=1;Z<=_e&&Q[O-Z]===oe[Ce-Z];Z++);return Mc=oe.slice(I,1<Z?1-Z:void 0)}function Ru(I){var Q=I.keyCode;return"charCode"in I?(I=I.charCode,I===0&&Q===13&&(I=13)):I=Q,I===10&&(I=13),32<=I||I===13?I:0}function Wl(){return!0}function Tu(){return!1}function ja(I){function Q(O,Z,oe,Ce,_e){this._reactName=O,this._targetInst=oe,this.type=Z,this.nativeEvent=Ce,this.target=_e,this.currentTarget=null;for(var st in I)I.hasOwnProperty(st)&&(O=I[st],this[st]=O?O(Ce):Ce[st]);return this.isDefaultPrevented=(Ce.defaultPrevented!=null?Ce.defaultPrevented:Ce.returnValue===!1)?Wl:Tu,this.isPropagationStopped=Tu,this}return t(Q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var O=this.nativeEvent;O&&(O.preventDefault?O.preventDefault():typeof O.returnValue!="unknown"&&(O.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var O=this.nativeEvent;O&&(O.stopPropagation?O.stopPropagation():typeof O.cancelBubble!="unknown"&&(O.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),Q}var js={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(I){return I.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qu=ja(js),dl=t({},js,{view:0,detail:0}),Hd=ja(dl),pA,vA,bc,fl=t({},dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xn,button:0,buttons:0,relatedTarget:function(I){return I.relatedTarget===void 0?I.fromElement===I.srcElement?I.toElement:I.fromElement:I.relatedTarget},movementX:function(I){return"movementX"in I?I.movementX:(I!==bc&&(bc&&I.type==="mousemove"?(pA=I.screenX-bc.screenX,vA=I.screenY-bc.screenY):vA=pA=0,bc=I),pA)},movementY:function(I){return"movementY"in I?I.movementY:vA}}),hl=ja(fl),mA=t({},fl,{dataTransfer:0}),Sc=ja(mA),Gd=t({},dl,{relatedTarget:0}),q=ja(Gd),me=t({},js,{animationName:0,elapsedTime:0,pseudoElement:0}),Le=ja(me),gt=t({},js,{clipboardData:function(I){return"clipboardData"in I?I.clipboardData:window.clipboardData}}),Qt=ja(gt),$t=t({},js,{data:0}),gr=ja($t),Or={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tn={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"},mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Bn(I){var Q=this.nativeEvent;return Q.getModifierState?Q.getModifierState(I):(I=mn[I])?!!Q[I]:!1}function xn(){return Bn}var ai=t({},dl,{key:function(I){if(I.key){var Q=Or[I.key]||I.key;if(Q!=="Unidentified")return Q}return I.type==="keypress"?(I=Ru(I),I===13?"Enter":String.fromCharCode(I)):I.type==="keydown"||I.type==="keyup"?tn[I.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xn,charCode:function(I){return I.type==="keypress"?Ru(I):0},keyCode:function(I){return I.type==="keydown"||I.type==="keyup"?I.keyCode:0},which:function(I){return I.type==="keypress"?Ru(I):I.type==="keydown"||I.type==="keyup"?I.keyCode:0}}),mi=ja(ai),Li=t({},fl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mo=ja(Li),lo=t({},dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xn}),Xl=ja(lo),zs=t({},js,{propertyName:0,elapsedTime:0,pseudoElement:0}),Rc=ja(zs),bm=t({},fl,{deltaX:function(I){return"deltaX"in I?I.deltaX:"wheelDeltaX"in I?-I.wheelDeltaX:0},deltaY:function(I){return"deltaY"in I?I.deltaY:"wheelDeltaY"in I?-I.wheelDeltaY:"wheelDelta"in I?-I.wheelDelta:0},deltaZ:0,deltaMode:0}),qg=ja(bm),Zg=[9,13,27,32],Du=l&&"CompositionEvent"in window,EA=null;l&&"documentMode"in document&&(EA=document.documentMode);var $g=l&&"TextEvent"in window&&!EA,Kd=l&&(!Du||EA&&8<EA&&11>=EA),co=" ",Vd=!1;function Jd(I,Q){switch(I){case"keyup":return Zg.indexOf(Q.keyCode)!==-1;case"keydown":return Q.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(I){return I=I.detail,typeof I=="object"&&"data"in I?I.data:null}var Tc=!1;function vs(I,Q){switch(I){case"compositionend":return Wd(Q);case"keypress":return Q.which!==32?null:(Vd=!0,co);case"textInput":return I=Q.data,I===co&&Vd?null:I;default:return null}}function e1(I,Q){if(Tc)return I==="compositionend"||!Du&&Jd(I,Q)?(I=Ic(),Mc=qo=vo=null,Tc=!1,I):null;switch(I){case"paste":return null;case"keypress":if(!(Q.ctrlKey||Q.altKey||Q.metaKey)||Q.ctrlKey&&Q.altKey){if(Q.char&&1<Q.char.length)return Q.char;if(Q.which)return String.fromCharCode(Q.which)}return null;case"compositionend":return Kd&&Q.locale!=="ko"?null:Q.data;default:return null}}var ep={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 tp(I){var Q=I&&I.nodeName&&I.nodeName.toLowerCase();return Q==="input"?!!ep[I.type]:Q==="textarea"}function Ls(I,Q,O,Z){wt(Z),Q=ip(Q,"onChange"),0<Q.length&&(O=new Qu("onChange","change",null,O,Z),I.push({event:O,listeners:Q}))}var Qc=null,Fu=null;function Sm(I){ef(I,0)}function ql(I){var Q=nf(I);if(de(Q))return I}function Xd(I,Q){if(I==="change")return Q}var Zo=!1;if(l){var Eo;if(l){var Dc="oninput"in document;if(!Dc){var Fc=document.createElement("div");Fc.setAttribute("oninput","return;"),Dc=typeof Fc.oninput=="function"}Eo=Dc}else Eo=!1;Zo=Eo&&(!document.documentMode||9<document.documentMode)}function Nc(){Qc&&(Qc.detachEvent("onpropertychange",qd),Fu=Qc=null)}function qd(I){if(I.propertyName==="value"&&ql(Fu)){var Q=[];if(Ls(Q,Fu,I,ie(I)),I=Sm,Tr)I(Q);else{Tr=!0;try{it(I,Q)}finally{Tr=!1,Vr()}}}}function yA(I,Q,O){I==="focusin"?(Nc(),Qc=Q,Fu=O,Qc.attachEvent("onpropertychange",qd)):I==="focusout"&&Nc()}function Si(I){if(I==="selectionchange"||I==="keyup"||I==="keydown")return ql(Fu)}function rp(I,Q){if(I==="click")return ql(Q)}function $o(I,Q){if(I==="input"||I==="change")return ql(Q)}function gl(I,Q){return I===Q&&(I!==0||1/I===1/Q)||I!==I&&Q!==Q}var yo=typeof Object.is=="function"?Object.is:gl,Rm=Object.prototype.hasOwnProperty;function CA(I,Q){if(yo(I,Q))return!0;if(typeof I!="object"||I===null||typeof Q!="object"||Q===null)return!1;var O=Object.keys(I),Z=Object.keys(Q);if(O.length!==Z.length)return!1;for(Z=0;Z<O.length;Z++)if(!Rm.call(Q,O[Z])||!yo(I[O[Z]],Q[O[Z]]))return!1;return!0}function Nu(I){for(;I&&I.firstChild;)I=I.firstChild;return I}function _u(I,Q){var O=Nu(I);I=0;for(var Z;O;){if(O.nodeType===3){if(Z=I+O.textContent.length,I<=Q&&Z>=Q)return{node:O,offset:Q-I};I=Z}e:{for(;O;){if(O.nextSibling){O=O.nextSibling;break e}O=O.parentNode}O=void 0}O=Nu(O)}}function wA(I,Q){return I&&Q?I===Q?!0:I&&I.nodeType===3?!1:Q&&Q.nodeType===3?wA(I,Q.parentNode):"contains"in I?I.contains(Q):I.compareDocumentPosition?!!(I.compareDocumentPosition(Q)&16):!1:!1}function ku(){for(var I=window,Q=Ue();Q instanceof I.HTMLIFrameElement;){try{var O=typeof Q.contentWindow.location.href=="string"}catch{O=!1}if(O)I=Q.contentWindow;else break;Q=Ue(I.document)}return Q}function Pu(I){var Q=I&&I.nodeName&&I.nodeName.toLowerCase();return Q&&(Q==="input"&&(I.type==="text"||I.type==="search"||I.type==="tel"||I.type==="url"||I.type==="password")||Q==="textarea"||I.contentEditable==="true")}var Zd=l&&"documentMode"in document&&11>=document.documentMode,Ys=null,$d=null,Do=null,ms=!1;function _a(I,Q,O){var Z=O.window===O?O.document:O.nodeType===9?O:O.ownerDocument;ms||Ys==null||Ys!==Ue(Z)||(Z=Ys,"selectionStart"in Z&&Pu(Z)?Z={start:Z.selectionStart,end:Z.selectionEnd}:(Z=(Z.ownerDocument&&Z.ownerDocument.defaultView||window).getSelection(),Z={anchorNode:Z.anchorNode,anchorOffset:Z.anchorOffset,focusNode:Z.focusNode,focusOffset:Z.focusOffset}),Do&&CA(Do,Z)||(Do=Z,Z=ip($d,"onSelect"),0<Z.length&&(Q=new Qu("onSelect","select",null,Q,O),I.push({event:Q,listeners:Z}),Q.target=Ys)))}pa("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),pa("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),pa($n,2);for(var ka="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),ii=0;ii<ka.length;ii++)lr.set(ka[ii],0);s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),BA=new Set("cancel close invalid load scroll toggle".split(" ").concat(oi));function ch(I,Q,O){var Z=I.type||"unknown-event";I.currentTarget=O,Gt(Z,Q,void 0,I),I.currentTarget=null}function ef(I,Q){Q=(Q&4)!==0;for(var O=0;O<I.length;O++){var Z=I[O],oe=Z.event;Z=Z.listeners;e:{var Ce=void 0;if(Q)for(var _e=Z.length-1;0<=_e;_e--){var st=Z[_e],Mt=st.instance,tr=st.currentTarget;if(st=st.listener,Mt!==Ce&&oe.isPropagationStopped())break e;ch(oe,st,tr),Ce=Mt}else for(_e=0;_e<Z.length;_e++){if(st=Z[_e],Mt=st.instance,tr=st.currentTarget,st=st.listener,Mt!==Ce&&oe.isPropagationStopped())break e;ch(oe,st,tr),Ce=Mt}}}if(fr)throw I=Cr,fr=!1,Cr=null,I}function Qa(I,Q){var O=cM(Q),Z=I+"__bubble";O.has(Z)||(Us(Q,I,2,!1),O.add(Z))}var Tm="_reactListening"+Math.random().toString(36).slice(2);function np(I){I[Tm]||(I[Tm]=!0,a.forEach(function(Q){BA.has(Q)||Es(Q,!1,I,null),Es(Q,!0,I,null)}))}function Es(I,Q,O,Z){var oe=4<arguments.length&&arguments[4]!==void 0?arguments[4]:0,Ce=O;I==="selectionchange"&&O.nodeType!==9&&(Ce=O.ownerDocument);var _e=cM(Ce),st=I+"__"+(Q?"capture":"bubble");_e.has(st)||(Q&&(oe|=4),Us(Ce,I,oe,Q),_e.add(st))}function Us(I,Q,O,Z){var oe=lr.get(Q);switch(oe===void 0?2:oe){case 0:oe=lh;break;case 1:oe=Os;break;default:oe=ps}O=oe.bind(null,Q,O,I),oe=void 0,!xr||Q!=="touchstart"&&Q!=="touchmove"&&Q!=="wheel"||(oe=!0),Z?oe!==void 0?I.addEventListener(Q,O,{capture:!0,passive:oe}):I.addEventListener(Q,O,!0):oe!==void 0?I.addEventListener(Q,O,{passive:oe}):I.addEventListener(Q,O,!1)}function ap(I,Q,O,Z,oe){var Ce=Z;if((Q&1)===0&&(Q&2)===0&&Z!==null)e:for(;;){if(Z===null)return;var _e=Z.tag;if(_e===3||_e===4){var st=Z.stateNode.containerInfo;if(st===oe||st.nodeType===8&&st.parentNode===oe)break;if(_e===4)for(_e=Z.return;_e!==null;){var Mt=_e.tag;if((Mt===3||Mt===4)&&(Mt=_e.stateNode.containerInfo,Mt===oe||Mt.nodeType===8&&Mt.parentNode===oe))return;_e=_e.return}for(;st!==null;){if(_e=rf(st),_e===null)return;if(Mt=_e.tag,Mt===5||Mt===6){Z=Ce=_e;continue e}st=st.parentNode}}Z=Z.return}Pr(function(){var tr=Ce,$r=ie(O),kn=[];e:{var Dr=Zr.get(I);if(Dr!==void 0){var hn=Qu,Nn=I;switch(I){case"keypress":if(Ru(O)===0)break e;case"keydown":case"keyup":hn=mi;break;case"focusin":Nn="focus",hn=q;break;case"focusout":Nn="blur",hn=q;break;case"beforeblur":case"afterblur":hn=q;break;case"click":if(O.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":hn=hl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":hn=Sc;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":hn=Xl;break;case ht:case Pt:case Ft:hn=Le;break;case or:hn=Rc;break;case"scroll":hn=Hd;break;case"wheel":hn=qg;break;case"copy":case"cut":case"paste":hn=Qt;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":hn=mo}var Sn=(Q&4)!==0,Vt=!Sn&&I==="scroll",Dt=Sn?Dr!==null?Dr+"Capture":null:Dr;Sn=[];for(var Lt=tr,pr;Lt!==null;){pr=Lt;var yr=pr.stateNode;if(pr.tag===5&&yr!==null&&(pr=yr,Dt!==null&&(yr=mr(Lt,Dt),yr!=null&&Sn.push(Ou(Lt,yr,pr)))),Vt)break;Lt=Lt.return}0<Sn.length&&(Dr=new hn(Dr,Nn,null,O,$r),kn.push({event:Dr,listeners:Sn}))}}if((Q&7)===0){e:{if(Dr=I==="mouseover"||I==="pointerover",hn=I==="mouseout"||I==="pointerout",Dr&&(Q&16)===0&&(Nn=O.relatedTarget||O.fromElement)&&(rf(Nn)||Nn[zu]))break e;if((hn||Dr)&&(Dr=$r.window===$r?$r:(Dr=$r.ownerDocument)?Dr.defaultView||Dr.parentWindow:window,hn?(Nn=O.relatedTarget||O.toElement,hn=tr,Nn=Nn?rf(Nn):null,Nn!==null&&(Vt=er(Nn),Nn!==Vt||Nn.tag!==5&&Nn.tag!==6)&&(Nn=null)):(hn=null,Nn=tr),hn!==Nn)){if(Sn=hl,yr="onMouseLeave",Dt="onMouseEnter",Lt="mouse",(I==="pointerout"||I==="pointerover")&&(Sn=mo,yr="onPointerLeave",Dt="onPointerEnter",Lt="pointer"),Vt=hn==null?Dr:nf(hn),pr=Nn==null?Dr:nf(Nn),Dr=new Sn(yr,Lt+"leave",hn,O,$r),Dr.target=Vt,Dr.relatedTarget=pr,yr=null,rf($r)===tr&&(Sn=new Sn(Dt,Lt+"enter",Nn,O,$r),Sn.target=pr,Sn.relatedTarget=Vt,yr=Sn),Vt=yr,hn&&Nn)t:{for(Sn=hn,Dt=Nn,Lt=0,pr=Sn;pr;pr=xA(pr))Lt++;for(pr=0,yr=Dt;yr;yr=xA(yr))pr++;for(;0<Lt-pr;)Sn=xA(Sn),Lt--;for(;0<pr-Lt;)Dt=xA(Dt),pr--;for(;Lt--;){if(Sn===Dt||Dt!==null&&Sn===Dt.alternate)break t;Sn=xA(Sn),Dt=xA(Dt)}Sn=null}else Sn=null;hn!==null&&op(kn,Dr,hn,Sn,!1),Nn!==null&&Vt!==null&&op(kn,Vt,Nn,Sn,!0)}}e:{if(Dr=tr?nf(tr):window,hn=Dr.nodeName&&Dr.nodeName.toLowerCase(),hn==="select"||hn==="input"&&Dr.type==="file")var zn=Xd;else if(tp(Dr))if(Zo)zn=$o;else{zn=Si;var cn=yA}else(hn=Dr.nodeName)&&hn.toLowerCase()==="input"&&(Dr.type==="checkbox"||Dr.type==="radio")&&(zn=rp);if(zn&&(zn=zn(I,tr))){Ls(kn,zn,O,$r);break e}cn&&cn(I,Dr,tr),I==="focusout"&&(cn=Dr._wrapperState)&&cn.controlled&&Dr.type==="number"&&Te(Dr,"number",Dr.value)}switch(cn=tr?nf(tr):window,I){case"focusin":(tp(cn)||cn.contentEditable==="true")&&(Ys=cn,$d=tr,Do=null);break;case"focusout":Do=$d=Ys=null;break;case"mousedown":ms=!0;break;case"contextmenu":case"mouseup":case"dragend":ms=!1,_a(kn,O,$r);break;case"selectionchange":if(Zd)break;case"keydown":case"keyup":_a(kn,O,$r)}var Ln;if(Du)e:{switch(I){case"compositionstart":var ia="onCompositionStart";break e;case"compositionend":ia="onCompositionEnd";break e;case"compositionupdate":ia="onCompositionUpdate";break e}ia=void 0}else Tc?Jd(I,O)&&(ia="onCompositionEnd"):I==="keydown"&&O.keyCode===229&&(ia="onCompositionStart");ia&&(Kd&&O.locale!=="ko"&&(Tc||ia!=="onCompositionStart"?ia==="onCompositionEnd"&&Tc&&(Ln=Ic()):(vo=$r,qo="value"in vo?vo.value:vo.textContent,Tc=!0)),cn=ip(tr,ia),0<cn.length&&(ia=new gr(ia,I,null,O,$r),kn.push({event:ia,listeners:cn}),Ln?ia.data=Ln:(Ln=Wd(O),Ln!==null&&(ia.data=Ln)))),(Ln=$g?vs(I,O):e1(I,O))&&(tr=ip(tr,"onBeforeInput"),0<tr.length&&($r=new gr("onBeforeInput","beforeinput",null,O,$r),kn.push({event:$r,listeners:tr}),$r.data=Ln))}ef(kn,Q)})}function Ou(I,Q,O){return{instance:I,listener:Q,currentTarget:O}}function ip(I,Q){for(var O=Q+"Capture",Z=[];I!==null;){var oe=I,Ce=oe.stateNode;oe.tag===5&&Ce!==null&&(oe=Ce,Ce=mr(I,O),Ce!=null&&Z.unshift(Ou(I,Ce,oe)),Ce=mr(I,Q),Ce!=null&&Z.push(Ou(I,Ce,oe))),I=I.return}return Z}function xA(I){if(I===null)return null;do I=I.return;while(I&&I.tag!==5);return I||null}function op(I,Q,O,Z,oe){for(var Ce=Q._reactName,_e=[];O!==null&&O!==Z;){var st=O,Mt=st.alternate,tr=st.stateNode;if(Mt!==null&&Mt===Z)break;st.tag===5&&tr!==null&&(st=tr,oe?(Mt=mr(O,Ce),Mt!=null&&_e.unshift(Ou(O,Mt,st))):oe||(Mt=mr(O,Ce),Mt!=null&&_e.push(Ou(O,Mt,st)))),O=O.return}_e.length!==0&&I.push({event:Q,listeners:_e})}function Ah(){}var Qm=null,sp=null;function Dm(I,Q){switch(I){case"button":case"input":case"select":case"textarea":return!!Q.autoFocus}return!1}function uh(I,Q){return I==="textarea"||I==="option"||I==="noscript"||typeof Q.children=="string"||typeof Q.children=="number"||typeof Q.dangerouslySetInnerHTML=="object"&&Q.dangerouslySetInnerHTML!==null&&Q.dangerouslySetInnerHTML.__html!=null}var Fm=typeof setTimeout=="function"?setTimeout:void 0,QD=typeof clearTimeout=="function"?clearTimeout:void 0;function t1(I){I.nodeType===1?I.textContent="":I.nodeType===9&&(I=I.body,I!=null&&(I.textContent=""))}function tf(I){for(;I!=null;I=I.nextSibling){var Q=I.nodeType;if(Q===1||Q===3)break}return I}function lM(I){I=I.previousSibling;for(var Q=0;I;){if(I.nodeType===8){var O=I.data;if(O==="$"||O==="$!"||O==="$?"){if(Q===0)return I;Q--}else O==="/$"&&Q++}I=I.previousSibling}return null}var r1=0;function DD(I){return{$$typeof:Y,toString:I,valueOf:I}}var Nm=Math.random().toString(36).slice(2),ju="__reactFiber$"+Nm,dh="__reactProps$"+Nm,zu="__reactContainer$"+Nm,fh="__reactEvents$"+Nm;function rf(I){var Q=I[ju];if(Q)return Q;for(var O=I.parentNode;O;){if(Q=O[zu]||O[ju]){if(O=Q.alternate,Q.child!==null||O!==null&&O.child!==null)for(I=lM(I);I!==null;){if(O=I[ju])return O;I=lM(I)}return Q}I=O,O=I.parentNode}return null}function lp(I){return I=I[ju]||I[zu],!I||I.tag!==5&&I.tag!==6&&I.tag!==13&&I.tag!==3?null:I}function nf(I){if(I.tag===5||I.tag===6)return I.stateNode;throw Error(n(33))}function _m(I){return I[dh]||null}function cM(I){var Q=I[fh];return Q===void 0&&(Q=I[fh]=new Set),Q}var n1=[],hh=-1;function es(I){return{current:I}}function la(I){0>hh||(I.current=n1[hh],n1[hh]=null,hh--)}function xa(I,Q){hh++,n1[hh]=I.current,I.current=Q}var Lu={},Co=es(Lu),Ri=es(!1),Ao=Lu;function gh(I,Q){var O=I.type.contextTypes;if(!O)return Lu;var Z=I.stateNode;if(Z&&Z.__reactInternalMemoizedUnmaskedChildContext===Q)return Z.__reactInternalMemoizedMaskedChildContext;var oe={},Ce;for(Ce in O)oe[Ce]=Q[Ce];return Z&&(I=I.stateNode,I.__reactInternalMemoizedUnmaskedChildContext=Q,I.__reactInternalMemoizedMaskedChildContext=oe),oe}function ys(I){return I=I.childContextTypes,I!=null}function cp(){la(Ri),la(Co)}function a1(I,Q,O){if(Co.current!==Lu)throw Error(n(168));xa(Co,Q),xa(Ri,O)}function i1(I,Q,O){var Z=I.stateNode;if(I=Q.childContextTypes,typeof Z.getChildContext!="function")return O;Z=Z.getChildContext();for(var oe in Z)if(!(oe in I))throw Error(n(108,he(Q)||"Unknown",oe));return t({},O,Z)}function Ap(I){return I=(I=I.stateNode)&&I.__reactInternalMemoizedMergedChildContext||Lu,Ao=Co.current,xa(Co,I),xa(Ri,Ri.current),!0}function AM(I,Q,O){var Z=I.stateNode;if(!Z)throw Error(n(169));O?(I=i1(I,Q,Ao),Z.__reactInternalMemoizedMergedChildContext=I,la(Ri),la(Co),xa(Co,I)):la(Ri),xa(Ri,O)}var ph=null,_c=null,up=r.unstable_runWithPriority,dp=r.unstable_scheduleCallback,o1=r.unstable_cancelCallback,uM=r.unstable_shouldYield,dM=r.unstable_requestPaint,s1=r.unstable_now,FD=r.unstable_getCurrentPriorityLevel,km=r.unstable_ImmediatePriority,fM=r.unstable_UserBlockingPriority,hM=r.unstable_NormalPriority,l1=r.unstable_LowPriority,fp=r.unstable_IdlePriority,c1={},ND=dM!==void 0?dM:function(){},kc=null,z=null,G=!1,re=s1(),Ae=1e4>re?s1:function(){return s1()-re};function xe(){switch(FD()){case km:return 99;case fM:return 98;case hM:return 97;case l1:return 96;case fp:return 95;default:throw Error(n(332))}}function Qe(I){switch(I){case 99:return km;case 98:return fM;case 97:return hM;case 96:return l1;case 95:return fp;default:throw Error(n(332))}}function De(I,Q){return I=Qe(I),up(I,Q)}function Ne(I,Q,O){return I=Qe(I),dp(I,Q,O)}function Pe(){if(z!==null){var I=z;z=null,o1(I)}nt()}function nt(){if(!G&&kc!==null){G=!0;var I=0;try{var Q=kc;De(99,function(){for(;I<Q.length;I++){var O=Q[I];do O=O(!0);while(O!==null)}}),kc=null}catch(O){throw kc!==null&&(kc=kc.slice(I+1)),dp(km,Pe),O}finally{G=!1}}}var It=B.ReactCurrentBatchConfig;function zt(I,Q){if(I&&I.defaultProps){Q=t({},Q),I=I.defaultProps;for(var O in I)Q[O]===void 0&&(Q[O]=I[O]);return Q}return Q}var Kt=es(null),_t=null,ur=null,Zt=null;function xt(){Zt=ur=_t=null}function Rt(I){var Q=Kt.current;la(Kt),I.type._context._currentValue=Q}function dr(I,Q){for(;I!==null;){var O=I.alternate;if((I.childLanes&Q)===Q){if(O===null||(O.childLanes&Q)===Q)break;O.childLanes|=Q}else I.childLanes|=Q,O!==null&&(O.childLanes|=Q);I=I.return}}function vr(I,Q){_t=I,Zt=ur=null,I=I.dependencies,I!==null&&I.firstContext!==null&&((I.lanes&Q)!==0&&(yl=!0),I.firstContext=null)}function sr(I,Q){if(Zt!==I&&Q!==!1&&Q!==0)if((typeof Q!="number"||Q===1073741823)&&(Zt=I,Q=1073741823),Q={context:I,observedBits:Q,next:null},ur===null){if(_t===null)throw Error(n(308));ur=Q,_t.dependencies={lanes:0,firstContext:Q,responders:null}}else ur=ur.next=Q;return I._currentValue}var Gr=!1;function Lr(I){I.updateQueue={baseState:I.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null},effects:null}}function En(I,Q){I=I.updateQueue,Q.updateQueue===I&&(Q.updateQueue={baseState:I.baseState,firstBaseUpdate:I.firstBaseUpdate,lastBaseUpdate:I.lastBaseUpdate,shared:I.shared,effects:I.effects})}function jr(I,Q){return{eventTime:I,lane:Q,tag:0,payload:null,callback:null,next:null}}function ra(I,Q){if(I=I.updateQueue,I!==null){I=I.shared;var O=I.pending;O===null?Q.next=Q:(Q.next=O.next,O.next=Q),I.pending=Q}}function Ma(I,Q){var O=I.updateQueue,Z=I.alternate;if(Z!==null&&(Z=Z.updateQueue,O===Z)){var oe=null,Ce=null;if(O=O.firstBaseUpdate,O!==null){do{var _e={eventTime:O.eventTime,lane:O.lane,tag:O.tag,payload:O.payload,callback:O.callback,next:null};Ce===null?oe=Ce=_e:Ce=Ce.next=_e,O=O.next}while(O!==null);Ce===null?oe=Ce=Q:Ce=Ce.next=Q}else oe=Ce=Q;O={baseState:Z.baseState,firstBaseUpdate:oe,lastBaseUpdate:Ce,shared:Z.shared,effects:Z.effects},I.updateQueue=O;return}I=O.lastBaseUpdate,I===null?O.firstBaseUpdate=Q:I.next=Q,O.lastBaseUpdate=Q}function na(I,Q,O,Z){var oe=I.updateQueue;Gr=!1;var Ce=oe.firstBaseUpdate,_e=oe.lastBaseUpdate,st=oe.shared.pending;if(st!==null){oe.shared.pending=null;var Mt=st,tr=Mt.next;Mt.next=null,_e===null?Ce=tr:_e.next=tr,_e=Mt;var $r=I.alternate;if($r!==null){$r=$r.updateQueue;var kn=$r.lastBaseUpdate;kn!==_e&&(kn===null?$r.firstBaseUpdate=tr:kn.next=tr,$r.lastBaseUpdate=Mt)}}if(Ce!==null){kn=oe.baseState,_e=0,$r=tr=Mt=null;do{st=Ce.lane;var Dr=Ce.eventTime;if((Z&st)===st){$r!==null&&($r=$r.next={eventTime:Dr,lane:0,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null});e:{var hn=I,Nn=Ce;switch(st=Q,Dr=O,Nn.tag){case 1:if(hn=Nn.payload,typeof hn=="function"){kn=hn.call(Dr,kn,st);break e}kn=hn;break e;case 3:hn.flags=hn.flags&-4097|64;case 0:if(hn=Nn.payload,st=typeof hn=="function"?hn.call(Dr,kn,st):hn,st==null)break e;kn=t({},kn,st);break e;case 2:Gr=!0}}Ce.callback!==null&&(I.flags|=32,st=oe.effects,st===null?oe.effects=[Ce]:st.push(Ce))}else Dr={eventTime:Dr,lane:st,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null},$r===null?(tr=$r=Dr,Mt=kn):$r=$r.next=Dr,_e|=st;if(Ce=Ce.next,Ce===null){if(st=oe.shared.pending,st===null)break;Ce=st.next,st.next=null,oe.lastBaseUpdate=st,oe.shared.pending=null}}while(!0);$r===null&&(Mt=kn),oe.baseState=Mt,oe.firstBaseUpdate=tr,oe.lastBaseUpdate=$r,m1|=_e,I.lanes=_e,I.memoizedState=kn}}function aa(I,Q,O){if(I=Q.effects,Q.effects=null,I!==null)for(Q=0;Q<I.length;Q++){var Z=I[Q],oe=Z.callback;if(oe!==null){if(Z.callback=null,Z=O,typeof oe!="function")throw Error(n(191,oe));oe.call(Z)}}}var Da=new e.Component().refs;function Ba(I,Q,O,Z){Q=I.memoizedState,O=O(Z,Q),O=O==null?Q:t({},Q,O),I.memoizedState=O,I.lanes===0&&(I.updateQueue.baseState=O)}var Dn={isMounted:function(I){return(I=I._reactInternals)?er(I)===I:!1},enqueueSetState:function(I,Q,O){I=I._reactInternals;var Z=Zl(),oe=Bh(I),Ce=jr(Z,oe);Ce.payload=Q,O!=null&&(Ce.callback=O),ra(I,Ce),xh(I,oe,Z)},enqueueReplaceState:function(I,Q,O){I=I._reactInternals;var Z=Zl(),oe=Bh(I),Ce=jr(Z,oe);Ce.tag=1,Ce.payload=Q,O!=null&&(Ce.callback=O),ra(I,Ce),xh(I,oe,Z)},enqueueForceUpdate:function(I,Q){I=I._reactInternals;var O=Zl(),Z=Bh(I),oe=jr(O,Z);oe.tag=2,Q!=null&&(oe.callback=Q),ra(I,oe),xh(I,Z,O)}};function Ti(I,Q,O,Z,oe,Ce,_e){return I=I.stateNode,typeof I.shouldComponentUpdate=="function"?I.shouldComponentUpdate(Z,Ce,_e):Q.prototype&&Q.prototype.isPureReactComponent?!CA(O,Z)||!CA(oe,Ce):!0}function ts(I,Q,O){var Z=!1,oe=Lu,Ce=Q.contextType;return typeof Ce=="object"&&Ce!==null?Ce=sr(Ce):(oe=ys(Q)?Ao:Co.current,Z=Q.contextTypes,Ce=(Z=Z!=null)?gh(I,oe):Lu),Q=new Q(O,Ce),I.memoizedState=Q.state!==null&&Q.state!==void 0?Q.state:null,Q.updater=Dn,I.stateNode=Q,Q._reactInternals=I,Z&&(I=I.stateNode,I.__reactInternalMemoizedUnmaskedChildContext=oe,I.__reactInternalMemoizedMaskedChildContext=Ce),Q}function Qi(I,Q,O,Z){I=Q.state,typeof Q.componentWillReceiveProps=="function"&&Q.componentWillReceiveProps(O,Z),typeof Q.UNSAFE_componentWillReceiveProps=="function"&&Q.UNSAFE_componentWillReceiveProps(O,Z),Q.state!==I&&Dn.enqueueReplaceState(Q,Q.state,null)}function Fo(I,Q,O,Z){var oe=I.stateNode;oe.props=O,oe.state=I.memoizedState,oe.refs=Da,Lr(I);var Ce=Q.contextType;typeof Ce=="object"&&Ce!==null?oe.context=sr(Ce):(Ce=ys(Q)?Ao:Co.current,oe.context=gh(I,Ce)),na(I,O,oe,Z),oe.state=I.memoizedState,Ce=Q.getDerivedStateFromProps,typeof Ce=="function"&&(Ba(I,Q,Ce,O),oe.state=I.memoizedState),typeof Q.getDerivedStateFromProps=="function"||typeof oe.getSnapshotBeforeUpdate=="function"||typeof oe.UNSAFE_componentWillMount!="function"&&typeof oe.componentWillMount!="function"||(Q=oe.state,typeof oe.componentWillMount=="function"&&oe.componentWillMount(),typeof oe.UNSAFE_componentWillMount=="function"&&oe.UNSAFE_componentWillMount(),Q!==oe.state&&Dn.enqueueReplaceState(oe,oe.state,null),na(I,O,oe,Z),oe.state=I.memoizedState),typeof oe.componentDidMount=="function"&&(I.flags|=4)}var va=Array.isArray;function wo(I,Q,O){if(I=O.ref,I!==null&&typeof I!="function"&&typeof I!="object"){if(O._owner){if(O=O._owner,O){if(O.tag!==1)throw Error(n(309));var Z=O.stateNode}if(!Z)throw Error(n(147,I));var oe=""+I;return Q!==null&&Q.ref!==null&&typeof Q.ref=="function"&&Q.ref._stringRef===oe?Q.ref:(Q=function(Ce){var _e=Z.refs;_e===Da&&(_e=Z.refs={}),Ce===null?delete _e[oe]:_e[oe]=Ce},Q._stringRef=oe,Q)}if(typeof I!="string")throw Error(n(284));if(!O._owner)throw Error(n(290,I))}return I}function No(I,Q){if(I.type!=="textarea")throw Error(n(31,Object.prototype.toString.call(Q)==="[object Object]"?"object with keys {"+Object.keys(Q).join(", ")+"}":Q))}function qi(I){function Q(Vt,Dt){if(I){var Lt=Vt.lastEffect;Lt!==null?(Lt.nextEffect=Dt,Vt.lastEffect=Dt):Vt.firstEffect=Vt.lastEffect=Dt,Dt.nextEffect=null,Dt.flags=8}}function O(Vt,Dt){if(!I)return null;for(;Dt!==null;)Q(Vt,Dt),Dt=Dt.sibling;return null}function Z(Vt,Dt){for(Vt=new Map;Dt!==null;)Dt.key!==null?Vt.set(Dt.key,Dt):Vt.set(Dt.index,Dt),Dt=Dt.sibling;return Vt}function oe(Vt,Dt){return Vt=bh(Vt,Dt),Vt.index=0,Vt.sibling=null,Vt}function Ce(Vt,Dt,Lt){return Vt.index=Lt,I?(Lt=Vt.alternate,Lt!==null?(Lt=Lt.index,Lt<Dt?(Vt.flags=2,Dt):Lt):(Vt.flags=2,Dt)):Dt}function _e(Vt){return I&&Vt.alternate===null&&(Vt.flags=2),Vt}function st(Vt,Dt,Lt,pr){return Dt===null||Dt.tag!==6?(Dt=i5(Lt,Vt.mode,pr),Dt.return=Vt,Dt):(Dt=oe(Dt,Lt),Dt.return=Vt,Dt)}function Mt(Vt,Dt,Lt,pr){return Dt!==null&&Dt.elementType===Lt.type?(pr=oe(Dt,Lt.props),pr.ref=wo(Vt,Dt,Lt),pr.return=Vt,pr):(pr=SM(Lt.type,Lt.key,Lt.props,null,Vt.mode,pr),pr.ref=wo(Vt,Dt,Lt),pr.return=Vt,pr)}function tr(Vt,Dt,Lt,pr){return Dt===null||Dt.tag!==4||Dt.stateNode.containerInfo!==Lt.containerInfo||Dt.stateNode.implementation!==Lt.implementation?(Dt=o5(Lt,Vt.mode,pr),Dt.return=Vt,Dt):(Dt=oe(Dt,Lt.children||[]),Dt.return=Vt,Dt)}function $r(Vt,Dt,Lt,pr,yr){return Dt===null||Dt.tag!==7?(Dt=Xm(Lt,Vt.mode,pr,yr),Dt.return=Vt,Dt):(Dt=oe(Dt,Lt),Dt.return=Vt,Dt)}function kn(Vt,Dt,Lt){if(typeof Dt=="string"||typeof Dt=="number")return Dt=i5(""+Dt,Vt.mode,Lt),Dt.return=Vt,Dt;if(typeof Dt=="object"&&Dt!==null){switch(Dt.$$typeof){case x:return Lt=SM(Dt.type,Dt.key,Dt.props,null,Vt.mode,Lt),Lt.ref=wo(Vt,null,Dt),Lt.return=Vt,Lt;case M:return Dt=o5(Dt,Vt.mode,Lt),Dt.return=Vt,Dt}if(va(Dt)||V(Dt))return Dt=Xm(Dt,Vt.mode,Lt,null),Dt.return=Vt,Dt;No(Vt,Dt)}return null}function Dr(Vt,Dt,Lt,pr){var yr=Dt!==null?Dt.key:null;if(typeof Lt=="string"||typeof Lt=="number")return yr!==null?null:st(Vt,Dt,""+Lt,pr);if(typeof Lt=="object"&&Lt!==null){switch(Lt.$$typeof){case x:return Lt.key===yr?Lt.type===S?$r(Vt,Dt,Lt.props.children,pr,yr):Mt(Vt,Dt,Lt,pr):null;case M:return Lt.key===yr?tr(Vt,Dt,Lt,pr):null}if(va(Lt)||V(Lt))return yr!==null?null:$r(Vt,Dt,Lt,pr,null);No(Vt,Lt)}return null}function hn(Vt,Dt,Lt,pr,yr){if(typeof pr=="string"||typeof pr=="number")return Vt=Vt.get(Lt)||null,st(Dt,Vt,""+pr,yr);if(typeof pr=="object"&&pr!==null){switch(pr.$$typeof){case x:return Vt=Vt.get(pr.key===null?Lt:pr.key)||null,pr.type===S?$r(Dt,Vt,pr.props.children,yr,pr.key):Mt(Dt,Vt,pr,yr);case M:return Vt=Vt.get(pr.key===null?Lt:pr.key)||null,tr(Dt,Vt,pr,yr)}if(va(pr)||V(pr))return Vt=Vt.get(Lt)||null,$r(Dt,Vt,pr,yr,null);No(Dt,pr)}return null}function Nn(Vt,Dt,Lt,pr){for(var yr=null,zn=null,cn=Dt,Ln=Dt=0,ia=null;cn!==null&&Ln<Lt.length;Ln++){cn.index>Ln?(ia=cn,cn=null):ia=cn.sibling;var Xn=Dr(Vt,cn,Lt[Ln],pr);if(Xn===null){cn===null&&(cn=ia);break}I&&cn&&Xn.alternate===null&&Q(Vt,cn),Dt=Ce(Xn,Dt,Ln),zn===null?yr=Xn:zn.sibling=Xn,zn=Xn,cn=ia}if(Ln===Lt.length)return O(Vt,cn),yr;if(cn===null){for(;Ln<Lt.length;Ln++)cn=kn(Vt,Lt[Ln],pr),cn!==null&&(Dt=Ce(cn,Dt,Ln),zn===null?yr=cn:zn.sibling=cn,zn=cn);return yr}for(cn=Z(Vt,cn);Ln<Lt.length;Ln++)ia=hn(cn,Vt,Ln,Lt[Ln],pr),ia!==null&&(I&&ia.alternate!==null&&cn.delete(ia.key===null?Ln:ia.key),Dt=Ce(ia,Dt,Ln),zn===null?yr=ia:zn.sibling=ia,zn=ia);return I&&cn.forEach(function(Sh){return Q(Vt,Sh)}),yr}function Sn(Vt,Dt,Lt,pr){var yr=V(Lt);if(typeof yr!="function")throw Error(n(150));if(Lt=yr.call(Lt),Lt==null)throw Error(n(151));for(var zn=yr=null,cn=Dt,Ln=Dt=0,ia=null,Xn=Lt.next();cn!==null&&!Xn.done;Ln++,Xn=Lt.next()){cn.index>Ln?(ia=cn,cn=null):ia=cn.sibling;var Sh=Dr(Vt,cn,Xn.value,pr);if(Sh===null){cn===null&&(cn=ia);break}I&&cn&&Sh.alternate===null&&Q(Vt,cn),Dt=Ce(Sh,Dt,Ln),zn===null?yr=Sh:zn.sibling=Sh,zn=Sh,cn=ia}if(Xn.done)return O(Vt,cn),yr;if(cn===null){for(;!Xn.done;Ln++,Xn=Lt.next())Xn=kn(Vt,Xn.value,pr),Xn!==null&&(Dt=Ce(Xn,Dt,Ln),zn===null?yr=Xn:zn.sibling=Xn,zn=Xn);return yr}for(cn=Z(Vt,cn);!Xn.done;Ln++,Xn=Lt.next())Xn=hn(cn,Vt,Ln,Xn.value,pr),Xn!==null&&(I&&Xn.alternate!==null&&cn.delete(Xn.key===null?Ln:Xn.key),Dt=Ce(Xn,Dt,Ln),zn===null?yr=Xn:zn.sibling=Xn,zn=Xn);return I&&cn.forEach(function(JQe){return Q(Vt,JQe)}),yr}return function(Vt,Dt,Lt,pr){var yr=typeof Lt=="object"&&Lt!==null&&Lt.type===S&&Lt.key===null;yr&&(Lt=Lt.props.children);var zn=typeof Lt=="object"&&Lt!==null;if(zn)switch(Lt.$$typeof){case x:e:{for(zn=Lt.key,yr=Dt;yr!==null;){if(yr.key===zn){switch(yr.tag){case 7:if(Lt.type===S){O(Vt,yr.sibling),Dt=oe(yr,Lt.props.children),Dt.return=Vt,Vt=Dt;break e}break;default:if(yr.elementType===Lt.type){O(Vt,yr.sibling),Dt=oe(yr,Lt.props),Dt.ref=wo(Vt,yr,Lt),Dt.return=Vt,Vt=Dt;break e}}O(Vt,yr);break}else Q(Vt,yr);yr=yr.sibling}Lt.type===S?(Dt=Xm(Lt.props.children,Vt.mode,pr,Lt.key),Dt.return=Vt,Vt=Dt):(pr=SM(Lt.type,Lt.key,Lt.props,null,Vt.mode,pr),pr.ref=wo(Vt,Dt,Lt),pr.return=Vt,Vt=pr)}return _e(Vt);case M:e:{for(yr=Lt.key;Dt!==null;){if(Dt.key===yr)if(Dt.tag===4&&Dt.stateNode.containerInfo===Lt.containerInfo&&Dt.stateNode.implementation===Lt.implementation){O(Vt,Dt.sibling),Dt=oe(Dt,Lt.children||[]),Dt.return=Vt,Vt=Dt;break e}else{O(Vt,Dt);break}else Q(Vt,Dt);Dt=Dt.sibling}Dt=o5(Lt,Vt.mode,pr),Dt.return=Vt,Vt=Dt}return _e(Vt)}if(typeof Lt=="string"||typeof Lt=="number")return Lt=""+Lt,Dt!==null&&Dt.tag===6?(O(Vt,Dt.sibling),Dt=oe(Dt,Lt),Dt.return=Vt,Vt=Dt):(O(Vt,Dt),Dt=i5(Lt,Vt.mode,pr),Dt.return=Vt,Vt=Dt),_e(Vt);if(va(Lt))return Nn(Vt,Dt,Lt,pr);if(V(Lt))return Sn(Vt,Dt,Lt,pr);if(zn&&No(Vt,Lt),typeof Lt>"u"&&!yr)switch(Vt.tag){case 1:case 22:case 0:case 11:case 15:throw Error(n(152,he(Vt.type)||"Component"))}return O(Vt,Dt)}}var Yi=qi(!0),_o=qi(!1),ko={},Zi=es(ko),Ei=es(ko),Hs=es(ko);function Gs(I){if(I===ko)throw Error(n(174));return I}function Yu(I,Q){switch(xa(Hs,Q),xa(Ei,I),xa(Zi,ko),I=Q.nodeType,I){case 9:case 11:Q=(Q=Q.documentElement)?Q.namespaceURI:ct(null,"");break;default:I=I===8?Q.parentNode:Q,Q=I.namespaceURI||null,I=I.tagName,Q=ct(Q,I)}la(Zi),xa(Zi,Q)}function Ks(){la(Zi),la(Ei),la(Hs)}function si(I){Gs(Hs.current);var Q=Gs(Zi.current),O=ct(Q,I.type);Q!==O&&(xa(Ei,I),xa(Zi,O))}function hp(I){Ei.current===I&&(la(Zi),la(Ei))}var li=es(0);function gp(I){for(var Q=I;Q!==null;){if(Q.tag===13){var O=Q.memoizedState;if(O!==null&&(O=O.dehydrated,O===null||O.data==="$?"||O.data==="$!"))return Q}else if(Q.tag===19&&Q.memoizedProps.revealOrder!==void 0){if((Q.flags&64)!==0)return Q}else if(Q.child!==null){Q.child.return=Q,Q=Q.child;continue}if(Q===I)break;for(;Q.sibling===null;){if(Q.return===null||Q.return===I)return null;Q=Q.return}Q.sibling.return=Q.return,Q=Q.sibling}return null}var pl=null,vl=null,Vs=!1;function ml(I,Q){var O=Oc(5,null,null,0);O.elementType="DELETED",O.type="DELETED",O.stateNode=Q,O.return=I,O.flags=8,I.lastEffect!==null?(I.lastEffect.nextEffect=O,I.lastEffect=O):I.firstEffect=I.lastEffect=O}function af(I,Q){switch(I.tag){case 5:var O=I.type;return Q=Q.nodeType!==1||O.toLowerCase()!==Q.nodeName.toLowerCase()?null:Q,Q!==null?(I.stateNode=Q,!0):!1;case 6:return Q=I.pendingProps===""||Q.nodeType!==3?null:Q,Q!==null?(I.stateNode=Q,!0):!1;case 13:return!1;default:return!1}}function Uu(I){if(Vs){var Q=vl;if(Q){var O=Q;if(!af(I,Q)){if(Q=tf(O.nextSibling),!Q||!af(I,Q)){I.flags=I.flags&-1025|2,Vs=!1,pl=I;return}ml(pl,O)}pl=I,vl=tf(Q.firstChild)}else I.flags=I.flags&-1025|2,Vs=!1,pl=I}}function A1(I){for(I=I.return;I!==null&&I.tag!==5&&I.tag!==3&&I.tag!==13;)I=I.return;pl=I}function of(I){if(I!==pl)return!1;if(!Vs)return A1(I),Vs=!0,!1;var Q=I.type;if(I.tag!==5||Q!=="head"&&Q!=="body"&&!uh(Q,I.memoizedProps))for(Q=vl;Q;)ml(I,Q),Q=tf(Q.nextSibling);if(A1(I),I.tag===13){if(I=I.memoizedState,I=I!==null?I.dehydrated:null,!I)throw Error(n(317));e:{for(I=I.nextSibling,Q=0;I;){if(I.nodeType===8){var O=I.data;if(O==="/$"){if(Q===0){vl=tf(I.nextSibling);break e}Q--}else O!=="$"&&O!=="$!"&&O!=="$?"||Q++}I=I.nextSibling}vl=null}}else vl=pl?tf(I.stateNode.nextSibling):null;return!0}function Pm(){vl=pl=null,Vs=!1}var MA=[];function pp(){for(var I=0;I<MA.length;I++)MA[I]._workInProgressVersionPrimary=null;MA.length=0}var Hu=B.ReactCurrentDispatcher,Po=B.ReactCurrentBatchConfig,vp=0,Di=null,uo=null,$a=null,Om=!1,mp=!1;function Cs(){throw Error(n(321))}function jm(I,Q){if(Q===null)return!1;for(var O=0;O<Q.length&&O<I.length;O++)if(!yo(I[O],Q[O]))return!1;return!0}function vh(I,Q,O,Z,oe,Ce){if(vp=Ce,Di=Q,Q.memoizedState=null,Q.updateQueue=null,Q.lanes=0,Hu.current=I===null||I.memoizedState===null?Vu:Ju,I=O(Z,oe),mp){Ce=0;do{if(mp=!1,!(25>Ce))throw Error(n(301));Ce+=1,$a=uo=null,Q.updateQueue=null,Hu.current=Ym,I=O(Z,oe)}while(mp)}if(Hu.current=El,Q=uo!==null&&uo.next!==null,vp=0,$a=uo=Di=null,Om=!1,Q)throw Error(n(300));return I}function Gu(){var I={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $a===null?Di.memoizedState=$a=I:$a=$a.next=I,$a}function Ku(){if(uo===null){var I=Di.alternate;I=I!==null?I.memoizedState:null}else I=uo.next;var Q=$a===null?Di.memoizedState:$a.next;if(Q!==null)$a=Q,uo=I;else{if(I===null)throw Error(n(310));uo=I,I={memoizedState:uo.memoizedState,baseState:uo.baseState,baseQueue:uo.baseQueue,queue:uo.queue,next:null},$a===null?Di.memoizedState=$a=I:$a=$a.next=I}return $a}function Js(I,Q){return typeof Q=="function"?Q(I):Q}function sf(I){var Q=Ku(),O=Q.queue;if(O===null)throw Error(n(311));O.lastRenderedReducer=I;var Z=uo,oe=Z.baseQueue,Ce=O.pending;if(Ce!==null){if(oe!==null){var _e=oe.next;oe.next=Ce.next,Ce.next=_e}Z.baseQueue=oe=Ce,O.pending=null}if(oe!==null){oe=oe.next,Z=Z.baseState;var st=_e=Ce=null,Mt=oe;do{var tr=Mt.lane;if((vp&tr)===tr)st!==null&&(st=st.next={lane:0,action:Mt.action,eagerReducer:Mt.eagerReducer,eagerState:Mt.eagerState,next:null}),Z=Mt.eagerReducer===I?Mt.eagerState:I(Z,Mt.action);else{var $r={lane:tr,action:Mt.action,eagerReducer:Mt.eagerReducer,eagerState:Mt.eagerState,next:null};st===null?(_e=st=$r,Ce=Z):st=st.next=$r,Di.lanes|=tr,m1|=tr}Mt=Mt.next}while(Mt!==null&&Mt!==oe);st===null?Ce=Z:st.next=_e,yo(Z,Q.memoizedState)||(yl=!0),Q.memoizedState=Z,Q.baseState=Ce,Q.baseQueue=st,O.lastRenderedState=Z}return[Q.memoizedState,O.dispatch]}function IA(I){var Q=Ku(),O=Q.queue;if(O===null)throw Error(n(311));O.lastRenderedReducer=I;var Z=O.dispatch,oe=O.pending,Ce=Q.memoizedState;if(oe!==null){O.pending=null;var _e=oe=oe.next;do Ce=I(Ce,_e.action),_e=_e.next;while(_e!==oe);yo(Ce,Q.memoizedState)||(yl=!0),Q.memoizedState=Ce,Q.baseQueue===null&&(Q.baseState=Ce),O.lastRenderedState=Ce}return[Ce,Z]}function u1(I,Q,O){var Z=Q._getVersion;Z=Z(Q._source);var oe=Q._workInProgressVersionPrimary;if(oe!==null?I=oe===Z:(I=I.mutableReadLanes,(I=(vp&I)===I)&&(Q._workInProgressVersionPrimary=Z,MA.push(Q))),I)return O(Q._source);throw MA.push(Q),Error(n(350))}function gM(I,Q,O,Z){var oe=Ws;if(oe===null)throw Error(n(349));var Ce=Q._getVersion,_e=Ce(Q._source),st=Hu.current,Mt=st.useState(function(){return u1(oe,Q,O)}),tr=Mt[1],$r=Mt[0];Mt=$a;var kn=I.memoizedState,Dr=kn.refs,hn=Dr.getSnapshot,Nn=kn.source;kn=kn.subscribe;var Sn=Di;return I.memoizedState={refs:Dr,source:Q,subscribe:Z},st.useEffect(function(){Dr.getSnapshot=O,Dr.setSnapshot=tr;var Vt=Ce(Q._source);if(!yo(_e,Vt)){Vt=O(Q._source),yo($r,Vt)||(tr(Vt),Vt=Bh(Sn),oe.mutableReadLanes|=Vt&oe.pendingLanes),Vt=oe.mutableReadLanes,oe.entangledLanes|=Vt;for(var Dt=oe.entanglements,Lt=Vt;0<Lt;){var pr=31-so(Lt),yr=1<<pr;Dt[pr]|=Vt,Lt&=~yr}}},[O,Q,Z]),st.useEffect(function(){return Z(Q._source,function(){var Vt=Dr.getSnapshot,Dt=Dr.setSnapshot;try{Dt(Vt(Q._source));var Lt=Bh(Sn);oe.mutableReadLanes|=Lt&oe.pendingLanes}catch(pr){Dt(function(){throw pr})}})},[Q,Z]),yo(hn,O)&&yo(Nn,Q)&&yo(kn,Z)||(I={pending:null,dispatch:null,lastRenderedReducer:Js,lastRenderedState:$r},I.dispatch=tr=Ch.bind(null,Di,I),Mt.queue=I,Mt.baseQueue=null,$r=u1(oe,Q,O),Mt.memoizedState=Mt.baseState=$r),$r}function Ep(I,Q,O){var Z=Ku();return gM(Z,I,Q,O)}function mh(I){var Q=Gu();return typeof I=="function"&&(I=I()),Q.memoizedState=Q.baseState=I,I=Q.queue={pending:null,dispatch:null,lastRenderedReducer:Js,lastRenderedState:I},I=I.dispatch=Ch.bind(null,Di,I),[Q.memoizedState,I]}function Eh(I,Q,O,Z){return I={tag:I,create:Q,destroy:O,deps:Z,next:null},Q=Di.updateQueue,Q===null?(Q={lastEffect:null},Di.updateQueue=Q,Q.lastEffect=I.next=I):(O=Q.lastEffect,O===null?Q.lastEffect=I.next=I:(Z=O.next,O.next=I,I.next=Z,Q.lastEffect=I)),I}function bA(I){var Q=Gu();return I={current:I},Q.memoizedState=I}function yp(){return Ku().memoizedState}function zm(I,Q,O,Z){var oe=Gu();Di.flags|=I,oe.memoizedState=Eh(1|Q,O,void 0,Z===void 0?null:Z)}function d1(I,Q,O,Z){var oe=Ku();Z=Z===void 0?null:Z;var Ce=void 0;if(uo!==null){var _e=uo.memoizedState;if(Ce=_e.destroy,Z!==null&&jm(Z,_e.deps)){Eh(Q,O,Ce,Z);return}}Di.flags|=I,oe.memoizedState=Eh(1|Q,O,Ce,Z)}function f1(I,Q){return zm(516,4,I,Q)}function SA(I,Q){return d1(516,4,I,Q)}function pM(I,Q){return d1(4,2,I,Q)}function h1(I,Q){if(typeof Q=="function")return I=I(),Q(I),function(){Q(null)};if(Q!=null)return I=I(),Q.current=I,function(){Q.current=null}}function vM(I,Q,O){return O=O!=null?O.concat([I]):null,d1(4,2,h1.bind(null,Q,I),O)}function Lm(){}function mM(I,Q){var O=Ku();Q=Q===void 0?null:Q;var Z=O.memoizedState;return Z!==null&&Q!==null&&jm(Q,Z[1])?Z[0]:(O.memoizedState=[I,Q],I)}function yh(I,Q){var O=Ku();Q=Q===void 0?null:Q;var Z=O.memoizedState;return Z!==null&&Q!==null&&jm(Q,Z[1])?Z[0]:(I=I(),O.memoizedState=[I,Q],I)}function g1(I,Q){var O=xe();De(98>O?98:O,function(){I(!0)}),De(97<O?97:O,function(){var Z=Po.transition;Po.transition=1;try{I(!1),Q()}finally{Po.transition=Z}})}function Ch(I,Q,O){var Z=Zl(),oe=Bh(I),Ce={lane:oe,action:O,eagerReducer:null,eagerState:null,next:null},_e=Q.pending;if(_e===null?Ce.next=Ce:(Ce.next=_e.next,_e.next=Ce),Q.pending=Ce,_e=I.alternate,I===Di||_e!==null&&_e===Di)mp=Om=!0;else{if(I.lanes===0&&(_e===null||_e.lanes===0)&&(_e=Q.lastRenderedReducer,_e!==null))try{var st=Q.lastRenderedState,Mt=_e(st,O);if(Ce.eagerReducer=_e,Ce.eagerState=Mt,yo(Mt,st))return}catch{}finally{}xh(I,oe,Z)}}var El={readContext:sr,useCallback:Cs,useContext:Cs,useEffect:Cs,useImperativeHandle:Cs,useLayoutEffect:Cs,useMemo:Cs,useReducer:Cs,useRef:Cs,useState:Cs,useDebugValue:Cs,useDeferredValue:Cs,useTransition:Cs,useMutableSource:Cs,useOpaqueIdentifier:Cs,unstable_isNewReconciler:!1},Vu={readContext:sr,useCallback:function(I,Q){return Gu().memoizedState=[I,Q===void 0?null:Q],I},useContext:sr,useEffect:f1,useImperativeHandle:function(I,Q,O){return O=O!=null?O.concat([I]):null,zm(4,2,h1.bind(null,Q,I),O)},useLayoutEffect:function(I,Q){return zm(4,2,I,Q)},useMemo:function(I,Q){var O=Gu();return Q=Q===void 0?null:Q,I=I(),O.memoizedState=[I,Q],I},useReducer:function(I,Q,O){var Z=Gu();return Q=O!==void 0?O(Q):Q,Z.memoizedState=Z.baseState=Q,I=Z.queue={pending:null,dispatch:null,lastRenderedReducer:I,lastRenderedState:Q},I=I.dispatch=Ch.bind(null,Di,I),[Z.memoizedState,I]},useRef:bA,useState:mh,useDebugValue:Lm,useDeferredValue:function(I){var Q=mh(I),O=Q[0],Z=Q[1];return f1(function(){var oe=Po.transition;Po.transition=1;try{Z(I)}finally{Po.transition=oe}},[I]),O},useTransition:function(){var I=mh(!1),Q=I[0];return I=g1.bind(null,I[1]),bA(I),[I,Q]},useMutableSource:function(I,Q,O){var Z=Gu();return Z.memoizedState={refs:{getSnapshot:Q,setSnapshot:null},source:I,subscribe:O},gM(Z,I,Q,O)},useOpaqueIdentifier:function(){if(Vs){var I=!1,Q=DD(function(){throw I||(I=!0,O("r:"+(r1++).toString(36))),Error(n(355))}),O=mh(Q)[1];return(Di.mode&2)===0&&(Di.flags|=516,Eh(5,function(){O("r:"+(r1++).toString(36))},void 0,null)),Q}return Q="r:"+(r1++).toString(36),mh(Q),Q},unstable_isNewReconciler:!1},Ju={readContext:sr,useCallback:mM,useContext:sr,useEffect:SA,useImperativeHandle:vM,useLayoutEffect:pM,useMemo:yh,useReducer:sf,useRef:yp,useState:function(){return sf(Js)},useDebugValue:Lm,useDeferredValue:function(I){var Q=sf(Js),O=Q[0],Z=Q[1];return SA(function(){var oe=Po.transition;Po.transition=1;try{Z(I)}finally{Po.transition=oe}},[I]),O},useTransition:function(){var I=sf(Js)[0];return[yp().current,I]},useMutableSource:Ep,useOpaqueIdentifier:function(){return sf(Js)[0]},unstable_isNewReconciler:!1},Ym={readContext:sr,useCallback:mM,useContext:sr,useEffect:SA,useImperativeHandle:vM,useLayoutEffect:pM,useMemo:yh,useReducer:IA,useRef:yp,useState:function(){return IA(Js)},useDebugValue:Lm,useDeferredValue:function(I){var Q=IA(Js),O=Q[0],Z=Q[1];return SA(function(){var oe=Po.transition;Po.transition=1;try{Z(I)}finally{Po.transition=oe}},[I]),O},useTransition:function(){var I=IA(Js)[0];return[yp().current,I]},useMutableSource:Ep,useOpaqueIdentifier:function(){return IA(Js)[0]},unstable_isNewReconciler:!1},p1=B.ReactCurrentOwner,yl=!1;function ws(I,Q,O,Z){Q.child=I===null?_o(Q,null,O,Z):Yi(Q,I.child,O,Z)}function Um(I,Q,O,Z,oe){O=O.render;var Ce=Q.ref;return vr(Q,oe),Z=vh(I,Q,O,Z,Ce,oe),I!==null&&!yl?(Q.updateQueue=I.updateQueue,Q.flags&=-517,I.lanes&=~oe,lf(I,Q,oe)):(Q.flags|=1,ws(I,Q,Z,oe),Q.child)}function Hm(I,Q,O,Z,oe,Ce){if(I===null){var _e=O.type;return typeof _e=="function"&&!n5(_e)&&_e.defaultProps===void 0&&O.compare===null&&O.defaultProps===void 0?(Q.tag=15,Q.type=_e,QG(I,Q,_e,Z,oe,Ce)):(I=SM(O.type,null,Z,Q,Q.mode,Ce),I.ref=Q.ref,I.return=Q,Q.child=I)}return _e=I.child,(oe&Ce)===0&&(oe=_e.memoizedProps,O=O.compare,O=O!==null?O:CA,O(oe,Z)&&I.ref===Q.ref)?lf(I,Q,Ce):(Q.flags|=1,I=bh(_e,Z),I.ref=Q.ref,I.return=Q,Q.child=I)}function QG(I,Q,O,Z,oe,Ce){if(I!==null&&CA(I.memoizedProps,Z)&&I.ref===Q.ref)if(yl=!1,(Ce&oe)!==0)(I.flags&16384)!==0&&(yl=!0);else return Q.lanes=I.lanes,lf(I,Q,Ce);return kD(I,Q,O,Z,Ce)}function _D(I,Q,O){var Z=Q.pendingProps,oe=Z.children,Ce=I!==null?I.memoizedState:null;if(Z.mode==="hidden"||Z.mode==="unstable-defer-without-hiding")if((Q.mode&4)===0)Q.memoizedState={baseLanes:0},bM(Q,O);else if((O&1073741824)!==0)Q.memoizedState={baseLanes:0},bM(Q,Ce!==null?Ce.baseLanes:O);else return I=Ce!==null?Ce.baseLanes|O:O,Q.lanes=Q.childLanes=1073741824,Q.memoizedState={baseLanes:I},bM(Q,I),null;else Ce!==null?(Z=Ce.baseLanes|O,Q.memoizedState=null):Z=O,bM(Q,Z);return ws(I,Q,oe,O),Q.child}function DG(I,Q){var O=Q.ref;(I===null&&O!==null||I!==null&&I.ref!==O)&&(Q.flags|=128)}function kD(I,Q,O,Z,oe){var Ce=ys(O)?Ao:Co.current;return Ce=gh(Q,Ce),vr(Q,oe),O=vh(I,Q,O,Z,Ce,oe),I!==null&&!yl?(Q.updateQueue=I.updateQueue,Q.flags&=-517,I.lanes&=~oe,lf(I,Q,oe)):(Q.flags|=1,ws(I,Q,O,oe),Q.child)}function FG(I,Q,O,Z,oe){if(ys(O)){var Ce=!0;Ap(Q)}else Ce=!1;if(vr(Q,oe),Q.stateNode===null)I!==null&&(I.alternate=null,Q.alternate=null,Q.flags|=2),ts(Q,O,Z),Fo(Q,O,Z,oe),Z=!0;else if(I===null){var _e=Q.stateNode,st=Q.memoizedProps;_e.props=st;var Mt=_e.context,tr=O.contextType;typeof tr=="object"&&tr!==null?tr=sr(tr):(tr=ys(O)?Ao:Co.current,tr=gh(Q,tr));var $r=O.getDerivedStateFromProps,kn=typeof $r=="function"||typeof _e.getSnapshotBeforeUpdate=="function";kn||typeof _e.UNSAFE_componentWillReceiveProps!="function"&&typeof _e.componentWillReceiveProps!="function"||(st!==Z||Mt!==tr)&&Qi(Q,_e,Z,tr),Gr=!1;var Dr=Q.memoizedState;_e.state=Dr,na(Q,Z,_e,oe),Mt=Q.memoizedState,st!==Z||Dr!==Mt||Ri.current||Gr?(typeof $r=="function"&&(Ba(Q,O,$r,Z),Mt=Q.memoizedState),(st=Gr||Ti(Q,O,st,Z,Dr,Mt,tr))?(kn||typeof _e.UNSAFE_componentWillMount!="function"&&typeof _e.componentWillMount!="function"||(typeof _e.componentWillMount=="function"&&_e.componentWillMount(),typeof _e.UNSAFE_componentWillMount=="function"&&_e.UNSAFE_componentWillMount()),typeof _e.componentDidMount=="function"&&(Q.flags|=4)):(typeof _e.componentDidMount=="function"&&(Q.flags|=4),Q.memoizedProps=Z,Q.memoizedState=Mt),_e.props=Z,_e.state=Mt,_e.context=tr,Z=st):(typeof _e.componentDidMount=="function"&&(Q.flags|=4),Z=!1)}else{_e=Q.stateNode,En(I,Q),st=Q.memoizedProps,tr=Q.type===Q.elementType?st:zt(Q.type,st),_e.props=tr,kn=Q.pendingProps,Dr=_e.context,Mt=O.contextType,typeof Mt=="object"&&Mt!==null?Mt=sr(Mt):(Mt=ys(O)?Ao:Co.current,Mt=gh(Q,Mt));var hn=O.getDerivedStateFromProps;($r=typeof hn=="function"||typeof _e.getSnapshotBeforeUpdate=="function")||typeof _e.UNSAFE_componentWillReceiveProps!="function"&&typeof _e.componentWillReceiveProps!="function"||(st!==kn||Dr!==Mt)&&Qi(Q,_e,Z,Mt),Gr=!1,Dr=Q.memoizedState,_e.state=Dr,na(Q,Z,_e,oe);var Nn=Q.memoizedState;st!==kn||Dr!==Nn||Ri.current||Gr?(typeof hn=="function"&&(Ba(Q,O,hn,Z),Nn=Q.memoizedState),(tr=Gr||Ti(Q,O,tr,Z,Dr,Nn,Mt))?($r||typeof _e.UNSAFE_componentWillUpdate!="function"&&typeof _e.componentWillUpdate!="function"||(typeof _e.componentWillUpdate=="function"&&_e.componentWillUpdate(Z,Nn,Mt),typeof _e.UNSAFE_componentWillUpdate=="function"&&_e.UNSAFE_componentWillUpdate(Z,Nn,Mt)),typeof _e.componentDidUpdate=="function"&&(Q.flags|=4),typeof _e.getSnapshotBeforeUpdate=="function"&&(Q.flags|=256)):(typeof _e.componentDidUpdate!="function"||st===I.memoizedProps&&Dr===I.memoizedState||(Q.flags|=4),typeof _e.getSnapshotBeforeUpdate!="function"||st===I.memoizedProps&&Dr===I.memoizedState||(Q.flags|=256),Q.memoizedProps=Z,Q.memoizedState=Nn),_e.props=Z,_e.state=Nn,_e.context=Mt,Z=tr):(typeof _e.componentDidUpdate!="function"||st===I.memoizedProps&&Dr===I.memoizedState||(Q.flags|=4),typeof _e.getSnapshotBeforeUpdate!="function"||st===I.memoizedProps&&Dr===I.memoizedState||(Q.flags|=256),Z=!1)}return PD(I,Q,O,Z,Ce,oe)}function PD(I,Q,O,Z,oe,Ce){DG(I,Q);var _e=(Q.flags&64)!==0;if(!Z&&!_e)return oe&&AM(Q,O,!1),lf(I,Q,Ce);Z=Q.stateNode,p1.current=Q;var st=_e&&typeof O.getDerivedStateFromError!="function"?null:Z.render();return Q.flags|=1,I!==null&&_e?(Q.child=Yi(Q,I.child,null,Ce),Q.child=Yi(Q,null,st,Ce)):ws(I,Q,st,Ce),Q.memoizedState=Z.state,oe&&AM(Q,O,!0),Q.child}function NG(I){var Q=I.stateNode;Q.pendingContext?a1(I,Q.pendingContext,Q.pendingContext!==Q.context):Q.context&&a1(I,Q.context,!1),Yu(I,Q.containerInfo)}var EM={dehydrated:null,retryLane:0};function _G(I,Q,O){var Z=Q.pendingProps,oe=li.current,Ce=!1,_e;return(_e=(Q.flags&64)!==0)||(_e=I!==null&&I.memoizedState===null?!1:(oe&2)!==0),_e?(Ce=!0,Q.flags&=-65):I!==null&&I.memoizedState===null||Z.fallback===void 0||Z.unstable_avoidThisFallback===!0||(oe|=1),xa(li,oe&1),I===null?(Z.fallback!==void 0&&Uu(Q),I=Z.children,oe=Z.fallback,Ce?(I=kG(Q,I,oe,O),Q.child.memoizedState={baseLanes:O},Q.memoizedState=EM,I):typeof Z.unstable_expectedLoadTime=="number"?(I=kG(Q,I,oe,O),Q.child.memoizedState={baseLanes:O},Q.memoizedState=EM,Q.lanes=33554432,I):(O=a5({mode:"visible",children:I},Q.mode,O,null),O.return=Q,Q.child=O)):I.memoizedState!==null?Ce?(Z=OG(I,Q,Z.children,Z.fallback,O),Ce=Q.child,oe=I.child.memoizedState,Ce.memoizedState=oe===null?{baseLanes:O}:{baseLanes:oe.baseLanes|O},Ce.childLanes=I.childLanes&~O,Q.memoizedState=EM,Z):(O=PG(I,Q,Z.children,O),Q.memoizedState=null,O):Ce?(Z=OG(I,Q,Z.children,Z.fallback,O),Ce=Q.child,oe=I.child.memoizedState,Ce.memoizedState=oe===null?{baseLanes:O}:{baseLanes:oe.baseLanes|O},Ce.childLanes=I.childLanes&~O,Q.memoizedState=EM,Z):(O=PG(I,Q,Z.children,O),Q.memoizedState=null,O)}function kG(I,Q,O,Z){var oe=I.mode,Ce=I.child;return Q={mode:"hidden",children:Q},(oe&2)===0&&Ce!==null?(Ce.childLanes=0,Ce.pendingProps=Q):Ce=a5(Q,oe,0,null),O=Xm(O,oe,Z,null),Ce.return=I,O.return=I,Ce.sibling=O,I.child=Ce,O}function PG(I,Q,O,Z){var oe=I.child;return I=oe.sibling,O=bh(oe,{mode:"visible",children:O}),(Q.mode&2)===0&&(O.lanes=Z),O.return=Q,O.sibling=null,I!==null&&(I.nextEffect=null,I.flags=8,Q.firstEffect=Q.lastEffect=I),Q.child=O}function OG(I,Q,O,Z,oe){var Ce=Q.mode,_e=I.child;I=_e.sibling;var st={mode:"hidden",children:O};return(Ce&2)===0&&Q.child!==_e?(O=Q.child,O.childLanes=0,O.pendingProps=st,_e=O.lastEffect,_e!==null?(Q.firstEffect=O.firstEffect,Q.lastEffect=_e,_e.nextEffect=null):Q.firstEffect=Q.lastEffect=null):O=bh(_e,st),I!==null?Z=bh(I,Z):(Z=Xm(Z,Ce,oe,null),Z.flags|=2),Z.return=Q,O.return=Q,O.sibling=Z,Q.child=O,Z}function jG(I,Q){I.lanes|=Q;var O=I.alternate;O!==null&&(O.lanes|=Q),dr(I.return,Q)}function OD(I,Q,O,Z,oe,Ce){var _e=I.memoizedState;_e===null?I.memoizedState={isBackwards:Q,rendering:null,renderingStartTime:0,last:Z,tail:O,tailMode:oe,lastEffect:Ce}:(_e.isBackwards=Q,_e.rendering=null,_e.renderingStartTime=0,_e.last=Z,_e.tail=O,_e.tailMode=oe,_e.lastEffect=Ce)}function zG(I,Q,O){var Z=Q.pendingProps,oe=Z.revealOrder,Ce=Z.tail;if(ws(I,Q,Z.children,O),Z=li.current,(Z&2)!==0)Z=Z&1|2,Q.flags|=64;else{if(I!==null&&(I.flags&64)!==0)e:for(I=Q.child;I!==null;){if(I.tag===13)I.memoizedState!==null&&jG(I,O);else if(I.tag===19)jG(I,O);else if(I.child!==null){I.child.return=I,I=I.child;continue}if(I===Q)break e;for(;I.sibling===null;){if(I.return===null||I.return===Q)break e;I=I.return}I.sibling.return=I.return,I=I.sibling}Z&=1}if(xa(li,Z),(Q.mode&2)===0)Q.memoizedState=null;else switch(oe){case"forwards":for(O=Q.child,oe=null;O!==null;)I=O.alternate,I!==null&&gp(I)===null&&(oe=O),O=O.sibling;O=oe,O===null?(oe=Q.child,Q.child=null):(oe=O.sibling,O.sibling=null),OD(Q,!1,oe,O,Ce,Q.lastEffect);break;case"backwards":for(O=null,oe=Q.child,Q.child=null;oe!==null;){if(I=oe.alternate,I!==null&&gp(I)===null){Q.child=oe;break}I=oe.sibling,oe.sibling=O,O=oe,oe=I}OD(Q,!0,O,null,Ce,Q.lastEffect);break;case"together":OD(Q,!1,null,null,void 0,Q.lastEffect);break;default:Q.memoizedState=null}return Q.child}function lf(I,Q,O){if(I!==null&&(Q.dependencies=I.dependencies),m1|=Q.lanes,(O&Q.childLanes)!==0){if(I!==null&&Q.child!==I.child)throw Error(n(153));if(Q.child!==null){for(I=Q.child,O=bh(I,I.pendingProps),Q.child=O,O.return=Q;I.sibling!==null;)I=I.sibling,O=O.sibling=bh(I,I.pendingProps),O.return=Q;O.sibling=null}return Q.child}return null}var LG,jD,YG,UG;LG=function(I,Q){for(var O=Q.child;O!==null;){if(O.tag===5||O.tag===6)I.appendChild(O.stateNode);else if(O.tag!==4&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===Q)break;for(;O.sibling===null;){if(O.return===null||O.return===Q)return;O=O.return}O.sibling.return=O.return,O=O.sibling}},jD=function(){},YG=function(I,Q,O,Z){var oe=I.memoizedProps;if(oe!==Z){I=Q.stateNode,Gs(Zi.current);var Ce=null;switch(O){case"input":oe=at(I,oe),Z=at(I,Z),Ce=[];break;case"option":oe=mt(I,oe),Z=mt(I,Z),Ce=[];break;case"select":oe=t({},oe,{value:void 0}),Z=t({},Z,{value:void 0}),Ce=[];break;case"textarea":oe=rt(I,oe),Z=rt(I,Z),Ce=[];break;default:typeof oe.onClick!="function"&&typeof Z.onClick=="function"&&(I.onclick=Ah)}je(O,Z);var _e;O=null;for(tr in oe)if(!Z.hasOwnProperty(tr)&&oe.hasOwnProperty(tr)&&oe[tr]!=null)if(tr==="style"){var st=oe[tr];for(_e in st)st.hasOwnProperty(_e)&&(O||(O={}),O[_e]="")}else tr!=="dangerouslySetInnerHTML"&&tr!=="children"&&tr!=="suppressContentEditableWarning"&&tr!=="suppressHydrationWarning"&&tr!=="autoFocus"&&(i.hasOwnProperty(tr)?Ce||(Ce=[]):(Ce=Ce||[]).push(tr,null));for(tr in Z){var Mt=Z[tr];if(st=oe?.[tr],Z.hasOwnProperty(tr)&&Mt!==st&&(Mt!=null||st!=null))if(tr==="style")if(st){for(_e in st)!st.hasOwnProperty(_e)||Mt&&Mt.hasOwnProperty(_e)||(O||(O={}),O[_e]="");for(_e in Mt)Mt.hasOwnProperty(_e)&&st[_e]!==Mt[_e]&&(O||(O={}),O[_e]=Mt[_e])}else O||(Ce||(Ce=[]),Ce.push(tr,O)),O=Mt;else tr==="dangerouslySetInnerHTML"?(Mt=Mt?Mt.__html:void 0,st=st?st.__html:void 0,Mt!=null&&st!==Mt&&(Ce=Ce||[]).push(tr,Mt)):tr==="children"?typeof Mt!="string"&&typeof Mt!="number"||(Ce=Ce||[]).push(tr,""+Mt):tr!=="suppressContentEditableWarning"&&tr!=="suppressHydrationWarning"&&(i.hasOwnProperty(tr)?(Mt!=null&&tr==="onScroll"&&Qa("scroll",I),Ce||st===Mt||(Ce=[])):typeof Mt=="object"&&Mt!==null&&Mt.$$typeof===Y?Mt.toString():(Ce=Ce||[]).push(tr,Mt))}O&&(Ce=Ce||[]).push("style",O);var tr=Ce;(Q.updateQueue=tr)&&(Q.flags|=4)}},UG=function(I,Q,O,Z){O!==Z&&(Q.flags|=4)};function v1(I,Q){if(!Vs)switch(I.tailMode){case"hidden":Q=I.tail;for(var O=null;Q!==null;)Q.alternate!==null&&(O=Q),Q=Q.sibling;O===null?I.tail=null:O.sibling=null;break;case"collapsed":O=I.tail;for(var Z=null;O!==null;)O.alternate!==null&&(Z=O),O=O.sibling;Z===null?Q||I.tail===null?I.tail=null:I.tail.sibling=null:Z.sibling=null}}function BQe(I,Q,O){var Z=Q.pendingProps;switch(Q.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 ys(Q.type)&&cp(),null;case 3:return Ks(),la(Ri),la(Co),pp(),Z=Q.stateNode,Z.pendingContext&&(Z.context=Z.pendingContext,Z.pendingContext=null),(I===null||I.child===null)&&(of(Q)?Q.flags|=4:Z.hydrate||(Q.flags|=256)),jD(Q),null;case 5:hp(Q);var oe=Gs(Hs.current);if(O=Q.type,I!==null&&Q.stateNode!=null)YG(I,Q,O,Z,oe),I.ref!==Q.ref&&(Q.flags|=128);else{if(!Z){if(Q.stateNode===null)throw Error(n(166));return null}if(I=Gs(Zi.current),of(Q)){Z=Q.stateNode,O=Q.type;var Ce=Q.memoizedProps;switch(Z[ju]=Q,Z[dh]=Ce,O){case"dialog":Qa("cancel",Z),Qa("close",Z);break;case"iframe":case"object":case"embed":Qa("load",Z);break;case"video":case"audio":for(I=0;I<oi.length;I++)Qa(oi[I],Z);break;case"source":Qa("error",Z);break;case"img":case"image":case"link":Qa("error",Z),Qa("load",Z);break;case"details":Qa("toggle",Z);break;case"input":Ve(Z,Ce),Qa("invalid",Z);break;case"select":Z._wrapperState={wasMultiple:!!Ce.multiple},Qa("invalid",Z);break;case"textarea":lt(Z,Ce),Qa("invalid",Z)}je(O,Ce),I=null;for(var _e in Ce)Ce.hasOwnProperty(_e)&&(oe=Ce[_e],_e==="children"?typeof oe=="string"?Z.textContent!==oe&&(I=["children",oe]):typeof oe=="number"&&Z.textContent!==""+oe&&(I=["children",""+oe]):i.hasOwnProperty(_e)&&oe!=null&&_e==="onScroll"&&Qa("scroll",Z));switch(O){case"input":ve(Z),Re(Z,Ce,!0);break;case"textarea":ve(Z),$e(Z);break;case"select":case"option":break;default:typeof Ce.onClick=="function"&&(Z.onclick=Ah)}Z=I,Q.updateQueue=Z,Z!==null&&(Q.flags|=4)}else{switch(_e=oe.nodeType===9?oe:oe.ownerDocument,I===ce.html&&(I=qe(O)),I===ce.html?O==="script"?(I=_e.createElement("div"),I.innerHTML="<script><\/script>",I=I.removeChild(I.firstChild)):typeof Z.is=="string"?I=_e.createElement(O,{is:Z.is}):(I=_e.createElement(O),O==="select"&&(_e=I,Z.multiple?_e.multiple=!0:Z.size&&(_e.size=Z.size))):I=_e.createElementNS(I,O),I[ju]=Q,I[dh]=Z,LG(I,Q,!1,!1),Q.stateNode=I,_e=ue(O,Z),O){case"dialog":Qa("cancel",I),Qa("close",I),oe=Z;break;case"iframe":case"object":case"embed":Qa("load",I),oe=Z;break;case"video":case"audio":for(oe=0;oe<oi.length;oe++)Qa(oi[oe],I);oe=Z;break;case"source":Qa("error",I),oe=Z;break;case"img":case"image":case"link":Qa("error",I),Qa("load",I),oe=Z;break;case"details":Qa("toggle",I),oe=Z;break;case"input":Ve(I,Z),oe=at(I,Z),Qa("invalid",I);break;case"option":oe=mt(I,Z);break;case"select":I._wrapperState={wasMultiple:!!Z.multiple},oe=t({},Z,{value:void 0}),Qa("invalid",I);break;case"textarea":lt(I,Z),oe=rt(I,Z),Qa("invalid",I);break;default:oe=Z}je(O,oe);var st=oe;for(Ce in st)if(st.hasOwnProperty(Ce)){var Mt=st[Ce];Ce==="style"?$(I,Mt):Ce==="dangerouslySetInnerHTML"?(Mt=Mt?Mt.__html:void 0,Mt!=null&&He(I,Mt)):Ce==="children"?typeof Mt=="string"?(O!=="textarea"||Mt!=="")&&Ge(I,Mt):typeof Mt=="number"&&Ge(I,""+Mt):Ce!=="suppressContentEditableWarning"&&Ce!=="suppressHydrationWarning"&&Ce!=="autoFocus"&&(i.hasOwnProperty(Ce)?Mt!=null&&Ce==="onScroll"&&Qa("scroll",I):Mt!=null&&w(I,Ce,Mt,_e))}switch(O){case"input":ve(I),Re(I,Z,!1);break;case"textarea":ve(I),$e(I);break;case"option":Z.value!=null&&I.setAttribute("value",""+ye(Z.value));break;case"select":I.multiple=!!Z.multiple,Ce=Z.value,Ce!=null?tt(I,!!Z.multiple,Ce,!1):Z.defaultValue!=null&&tt(I,!!Z.multiple,Z.defaultValue,!0);break;default:typeof oe.onClick=="function"&&(I.onclick=Ah)}Dm(O,Z)&&(Q.flags|=4)}Q.ref!==null&&(Q.flags|=128)}return null;case 6:if(I&&Q.stateNode!=null)UG(I,Q,I.memoizedProps,Z);else{if(typeof Z!="string"&&Q.stateNode===null)throw Error(n(166));O=Gs(Hs.current),Gs(Zi.current),of(Q)?(Z=Q.stateNode,O=Q.memoizedProps,Z[ju]=Q,Z.nodeValue!==O&&(Q.flags|=4)):(Z=(O.nodeType===9?O:O.ownerDocument).createTextNode(Z),Z[ju]=Q,Q.stateNode=Z)}return null;case 13:return la(li),Z=Q.memoizedState,(Q.flags&64)!==0?(Q.lanes=O,Q):(Z=Z!==null,O=!1,I===null?Q.memoizedProps.fallback!==void 0&&of(Q):O=I.memoizedState!==null,Z&&!O&&(Q.mode&2)!==0&&(I===null&&Q.memoizedProps.unstable_avoidThisFallback!==!0||(li.current&1)!==0?rs===0&&(rs=3):((rs===0||rs===3)&&(rs=4),Ws===null||(m1&134217727)===0&&(Km&134217727)===0||Jm(Ws,Bs))),(Z||O)&&(Q.flags|=4),null);case 4:return Ks(),jD(Q),I===null&&np(Q.stateNode.containerInfo),null;case 10:return Rt(Q),null;case 17:return ys(Q.type)&&cp(),null;case 19:if(la(li),Z=Q.memoizedState,Z===null)return null;if(Ce=(Q.flags&64)!==0,_e=Z.rendering,_e===null)if(Ce)v1(Z,!1);else{if(rs!==0||I!==null&&(I.flags&64)!==0)for(I=Q.child;I!==null;){if(_e=gp(I),_e!==null){for(Q.flags|=64,v1(Z,!1),Ce=_e.updateQueue,Ce!==null&&(Q.updateQueue=Ce,Q.flags|=4),Z.lastEffect===null&&(Q.firstEffect=null),Q.lastEffect=Z.lastEffect,Z=O,O=Q.child;O!==null;)Ce=O,I=Z,Ce.flags&=2,Ce.nextEffect=null,Ce.firstEffect=null,Ce.lastEffect=null,_e=Ce.alternate,_e===null?(Ce.childLanes=0,Ce.lanes=I,Ce.child=null,Ce.memoizedProps=null,Ce.memoizedState=null,Ce.updateQueue=null,Ce.dependencies=null,Ce.stateNode=null):(Ce.childLanes=_e.childLanes,Ce.lanes=_e.lanes,Ce.child=_e.child,Ce.memoizedProps=_e.memoizedProps,Ce.memoizedState=_e.memoizedState,Ce.updateQueue=_e.updateQueue,Ce.type=_e.type,I=_e.dependencies,Ce.dependencies=I===null?null:{lanes:I.lanes,firstContext:I.firstContext}),O=O.sibling;return xa(li,li.current&1|2),Q.child}I=I.sibling}Z.tail!==null&&Ae()>XD&&(Q.flags|=64,Ce=!0,v1(Z,!1),Q.lanes=33554432)}else{if(!Ce)if(I=gp(_e),I!==null){if(Q.flags|=64,Ce=!0,O=I.updateQueue,O!==null&&(Q.updateQueue=O,Q.flags|=4),v1(Z,!0),Z.tail===null&&Z.tailMode==="hidden"&&!_e.alternate&&!Vs)return Q=Q.lastEffect=Z.lastEffect,Q!==null&&(Q.nextEffect=null),null}else 2*Ae()-Z.renderingStartTime>XD&&O!==1073741824&&(Q.flags|=64,Ce=!0,v1(Z,!1),Q.lanes=33554432);Z.isBackwards?(_e.sibling=Q.child,Q.child=_e):(O=Z.last,O!==null?O.sibling=_e:Q.child=_e,Z.last=_e)}return Z.tail!==null?(O=Z.tail,Z.rendering=O,Z.tail=O.sibling,Z.lastEffect=Q.lastEffect,Z.renderingStartTime=Ae(),O.sibling=null,Q=li.current,xa(li,Ce?Q&1|2:Q&1),O):null;case 23:case 24:return r5(),I!==null&&I.memoizedState!==null!=(Q.memoizedState!==null)&&Z.mode!=="unstable-defer-without-hiding"&&(Q.flags|=4),null}throw Error(n(156,Q.tag))}function xQe(I){switch(I.tag){case 1:ys(I.type)&&cp();var Q=I.flags;return Q&4096?(I.flags=Q&-4097|64,I):null;case 3:if(Ks(),la(Ri),la(Co),pp(),Q=I.flags,(Q&64)!==0)throw Error(n(285));return I.flags=Q&-4097|64,I;case 5:return hp(I),null;case 13:return la(li),Q=I.flags,Q&4096?(I.flags=Q&-4097|64,I):null;case 19:return la(li),null;case 4:return Ks(),null;case 10:return Rt(I),null;case 23:case 24:return r5(),null;default:return null}}function zD(I,Q){try{var O="",Z=Q;do O+=fe(Z),Z=Z.return;while(Z);var oe=O}catch(Ce){oe=`
Error generating stack: `+Ce.message+`
`+Ce.stack}return{value:I,source:Q,stack:oe}}function LD(I,Q){try{console.error(Q.value)}catch(O){setTimeout(function(){throw O})}}var MQe=typeof WeakMap=="function"?WeakMap:Map;function HG(I,Q,O){O=jr(-1,O),O.tag=3,O.payload={element:null};var Z=Q.value;return O.callback=function(){wM||(wM=!0,qD=Z),LD(I,Q)},O}function GG(I,Q,O){O=jr(-1,O),O.tag=3;var Z=I.type.getDerivedStateFromError;if(typeof Z=="function"){var oe=Q.value;O.payload=function(){return LD(I,Q),Z(oe)}}var Ce=I.stateNode;return Ce!==null&&typeof Ce.componentDidCatch=="function"&&(O.callback=function(){typeof Z!="function"&&(Wu===null?Wu=new Set([this]):Wu.add(this),LD(I,Q));var _e=Q.stack;this.componentDidCatch(Q.value,{componentStack:_e!==null?_e:""})}),O}var IQe=typeof WeakSet=="function"?WeakSet:Set;function KG(I){var Q=I.ref;if(Q!==null)if(typeof Q=="function")try{Q(null)}catch(O){Ih(I,O)}else Q.current=null}function bQe(I,Q){switch(Q.tag){case 0:case 11:case 15:case 22:return;case 1:if(Q.flags&256&&I!==null){var O=I.memoizedProps,Z=I.memoizedState;I=Q.stateNode,Q=I.getSnapshotBeforeUpdate(Q.elementType===Q.type?O:zt(Q.type,O),Z),I.__reactInternalSnapshotBeforeUpdate=Q}return;case 3:Q.flags&256&&t1(Q.stateNode.containerInfo);return;case 5:case 6:case 4:case 17:return}throw Error(n(163))}function SQe(I,Q,O){switch(O.tag){case 0:case 11:case 15:case 22:if(Q=O.updateQueue,Q=Q!==null?Q.lastEffect:null,Q!==null){I=Q=Q.next;do{if((I.tag&3)===3){var Z=I.create;I.destroy=Z()}I=I.next}while(I!==Q)}if(Q=O.updateQueue,Q=Q!==null?Q.lastEffect:null,Q!==null){I=Q=Q.next;do{var oe=I;Z=oe.next,oe=oe.tag,(oe&4)!==0&&(oe&1)!==0&&(sK(O,I),kQe(O,I)),I=Z}while(I!==Q)}return;case 1:I=O.stateNode,O.flags&4&&(Q===null?I.componentDidMount():(Z=O.elementType===O.type?Q.memoizedProps:zt(O.type,Q.memoizedProps),I.componentDidUpdate(Z,Q.memoizedState,I.__reactInternalSnapshotBeforeUpdate))),Q=O.updateQueue,Q!==null&&aa(O,Q,I);return;case 3:if(Q=O.updateQueue,Q!==null){if(I=null,O.child!==null)switch(O.child.tag){case 5:I=O.child.stateNode;break;case 1:I=O.child.stateNode}aa(O,Q,I)}return;case 5:I=O.stateNode,Q===null&&O.flags&4&&Dm(O.type,O.memoizedProps)&&I.focus();return;case 6:return;case 4:return;case 12:return;case 13:O.memoizedState===null&&(O=O.alternate,O!==null&&(O=O.memoizedState,O!==null&&(O=O.dehydrated,O!==null&&Rr(O))));return;case 19:case 17:case 20:case 21:case 23:case 24:return}throw Error(n(163))}function VG(I,Q){for(var O=I;;){if(O.tag===5){var Z=O.stateNode;if(Q)Z=Z.style,typeof Z.setProperty=="function"?Z.setProperty("display","none","important"):Z.display="none";else{Z=O.stateNode;var oe=O.memoizedProps.style;oe=oe!=null&&oe.hasOwnProperty("display")?oe.display:null,Z.style.display=Yt("display",oe)}}else if(O.tag===6)O.stateNode.nodeValue=Q?"":O.memoizedProps;else if((O.tag!==23&&O.tag!==24||O.memoizedState===null||O===I)&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===I)break;for(;O.sibling===null;){if(O.return===null||O.return===I)return;O=O.return}O.sibling.return=O.return,O=O.sibling}}function JG(I,Q){if(_c&&typeof _c.onCommitFiberUnmount=="function")try{_c.onCommitFiberUnmount(ph,Q)}catch{}switch(Q.tag){case 0:case 11:case 14:case 15:case 22:if(I=Q.updateQueue,I!==null&&(I=I.lastEffect,I!==null)){var O=I=I.next;do{var Z=O,oe=Z.destroy;if(Z=Z.tag,oe!==void 0)if((Z&4)!==0)sK(Q,O);else{Z=Q;try{oe()}catch(Ce){Ih(Z,Ce)}}O=O.next}while(O!==I)}break;case 1:if(KG(Q),I=Q.stateNode,typeof I.componentWillUnmount=="function")try{I.props=Q.memoizedProps,I.state=Q.memoizedState,I.componentWillUnmount()}catch(Ce){Ih(Q,Ce)}break;case 5:KG(Q);break;case 4:ZG(I,Q)}}function WG(I){I.alternate=null,I.child=null,I.dependencies=null,I.firstEffect=null,I.lastEffect=null,I.memoizedProps=null,I.memoizedState=null,I.pendingProps=null,I.return=null,I.updateQueue=null}function XG(I){return I.tag===5||I.tag===3||I.tag===4}function qG(I){e:{for(var Q=I.return;Q!==null;){if(XG(Q))break e;Q=Q.return}throw Error(n(160))}var O=Q;switch(Q=O.stateNode,O.tag){case 5:var Z=!1;break;case 3:Q=Q.containerInfo,Z=!0;break;case 4:Q=Q.containerInfo,Z=!0;break;default:throw Error(n(161))}O.flags&16&&(Ge(Q,""),O.flags&=-17);e:t:for(O=I;;){for(;O.sibling===null;){if(O.return===null||XG(O.return)){O=null;break e}O=O.return}for(O.sibling.return=O.return,O=O.sibling;O.tag!==5&&O.tag!==6&&O.tag!==18;){if(O.flags&2||O.child===null||O.tag===4)continue t;O.child.return=O,O=O.child}if(!(O.flags&2)){O=O.stateNode;break e}}Z?YD(I,O,Q):UD(I,O,Q)}function YD(I,Q,O){var Z=I.tag,oe=Z===5||Z===6;if(oe)I=oe?I.stateNode:I.stateNode.instance,Q?O.nodeType===8?O.parentNode.insertBefore(I,Q):O.insertBefore(I,Q):(O.nodeType===8?(Q=O.parentNode,Q.insertBefore(I,O)):(Q=O,Q.appendChild(I)),O=O._reactRootContainer,O!=null||Q.onclick!==null||(Q.onclick=Ah));else if(Z!==4&&(I=I.child,I!==null))for(YD(I,Q,O),I=I.sibling;I!==null;)YD(I,Q,O),I=I.sibling}function UD(I,Q,O){var Z=I.tag,oe=Z===5||Z===6;if(oe)I=oe?I.stateNode:I.stateNode.instance,Q?O.insertBefore(I,Q):O.appendChild(I);else if(Z!==4&&(I=I.child,I!==null))for(UD(I,Q,O),I=I.sibling;I!==null;)UD(I,Q,O),I=I.sibling}function ZG(I,Q){for(var O=Q,Z=!1,oe,Ce;;){if(!Z){Z=O.return;e:for(;;){if(Z===null)throw Error(n(160));switch(oe=Z.stateNode,Z.tag){case 5:Ce=!1;break e;case 3:oe=oe.containerInfo,Ce=!0;break e;case 4:oe=oe.containerInfo,Ce=!0;break e}Z=Z.return}Z=!0}if(O.tag===5||O.tag===6){e:for(var _e=I,st=O,Mt=st;;)if(JG(_e,Mt),Mt.child!==null&&Mt.tag!==4)Mt.child.return=Mt,Mt=Mt.child;else{if(Mt===st)break e;for(;Mt.sibling===null;){if(Mt.return===null||Mt.return===st)break e;Mt=Mt.return}Mt.sibling.return=Mt.return,Mt=Mt.sibling}Ce?(_e=oe,st=O.stateNode,_e.nodeType===8?_e.parentNode.removeChild(st):_e.removeChild(st)):oe.removeChild(O.stateNode)}else if(O.tag===4){if(O.child!==null){oe=O.stateNode.containerInfo,Ce=!0,O.child.return=O,O=O.child;continue}}else if(JG(I,O),O.child!==null){O.child.return=O,O=O.child;continue}if(O===Q)break;for(;O.sibling===null;){if(O.return===null||O.return===Q)return;O=O.return,O.tag===4&&(Z=!1)}O.sibling.return=O.return,O=O.sibling}}function HD(I,Q){switch(Q.tag){case 0:case 11:case 14:case 15:case 22:var O=Q.updateQueue;if(O=O!==null?O.lastEffect:null,O!==null){var Z=O=O.next;do(Z.tag&3)===3&&(I=Z.destroy,Z.destroy=void 0,I!==void 0&&I()),Z=Z.next;while(Z!==O)}return;case 1:return;case 5:if(O=Q.stateNode,O!=null){Z=Q.memoizedProps;var oe=I!==null?I.memoizedProps:Z;I=Q.type;var Ce=Q.updateQueue;if(Q.updateQueue=null,Ce!==null){for(O[dh]=Z,I==="input"&&Z.type==="radio"&&Z.name!=null&&Ie(O,Z),ue(I,oe),Q=ue(I,Z),oe=0;oe<Ce.length;oe+=2){var _e=Ce[oe],st=Ce[oe+1];_e==="style"?$(O,st):_e==="dangerouslySetInnerHTML"?He(O,st):_e==="children"?Ge(O,st):w(O,_e,st,Q)}switch(I){case"input":we(O,Z);break;case"textarea":At(O,Z);break;case"select":I=O._wrapperState.wasMultiple,O._wrapperState.wasMultiple=!!Z.multiple,Ce=Z.value,Ce!=null?tt(O,!!Z.multiple,Ce,!1):I!==!!Z.multiple&&(Z.defaultValue!=null?tt(O,!!Z.multiple,Z.defaultValue,!0):tt(O,!!Z.multiple,Z.multiple?[]:"",!1))}}}return;case 6:if(Q.stateNode===null)throw Error(n(162));Q.stateNode.nodeValue=Q.memoizedProps;return;case 3:O=Q.stateNode,O.hydrate&&(O.hydrate=!1,Rr(O.containerInfo));return;case 12:return;case 13:Q.memoizedState!==null&&(WD=Ae(),VG(Q.child,!0)),$G(Q);return;case 19:$G(Q);return;case 17:return;case 23:case 24:VG(Q,Q.memoizedState!==null);return}throw Error(n(163))}function $G(I){var Q=I.updateQueue;if(Q!==null){I.updateQueue=null;var O=I.stateNode;O===null&&(O=I.stateNode=new IQe),Q.forEach(function(Z){var oe=jQe.bind(null,I,Z);O.has(Z)||(O.add(Z),Z.then(oe,oe))})}}function RQe(I,Q){return I!==null&&(I=I.memoizedState,I===null||I.dehydrated!==null)?(Q=Q.memoizedState,Q!==null&&Q.dehydrated===null):!1}var TQe=Math.ceil,yM=B.ReactCurrentDispatcher,GD=B.ReactCurrentOwner,Fn=0,Ws=null,Bo=null,Bs=0,Cp=0,KD=es(0),rs=0,CM=null,Gm=0,m1=0,Km=0,VD=0,JD=null,WD=0,XD=1/0;function Vm(){XD=Ae()+500}var on=null,wM=!1,qD=null,Wu=null,wh=!1,E1=null,y1=90,ZD=[],$D=[],cf=null,C1=0,e5=null,BM=-1,Af=0,xM=0,w1=null,MM=!1;function Zl(){return(Fn&48)!==0?Ae():BM!==-1?BM:BM=Ae()}function Bh(I){if(I=I.mode,(I&2)===0)return 1;if((I&4)===0)return xe()===99?1:2;if(Af===0&&(Af=Gm),It.transition!==0){xM!==0&&(xM=JD!==null?JD.pendingLanes:0),I=Af;var Q=4186112&~xM;return Q&=-Q,Q===0&&(I=4186112&~I,Q=I&-I,Q===0&&(Q=8192)),Q}return I=xe(),(Fn&4)!==0&&I===98?I=po(12,Af):(I=bi(I),I=po(I,Af)),I}function xh(I,Q,O){if(50<C1)throw C1=0,e5=null,Error(n(185));if(I=IM(I,Q),I===null)return null;Qo(I,Q,O),I===Ws&&(Km|=Q,rs===4&&Jm(I,Bs));var Z=xe();Q===1?(Fn&8)!==0&&(Fn&48)===0?t5(I):(Pc(I,O),Fn===0&&(Vm(),Pe())):((Fn&4)===0||Z!==98&&Z!==99||(cf===null?cf=new Set([I]):cf.add(I)),Pc(I,O)),JD=I}function IM(I,Q){I.lanes|=Q;var O=I.alternate;for(O!==null&&(O.lanes|=Q),O=I,I=I.return;I!==null;)I.childLanes|=Q,O=I.alternate,O!==null&&(O.childLanes|=Q),O=I,I=I.return;return O.tag===3?O.stateNode:null}function Pc(I,Q){for(var O=I.callbackNode,Z=I.suspendedLanes,oe=I.pingedLanes,Ce=I.expirationTimes,_e=I.pendingLanes;0<_e;){var st=31-so(_e),Mt=1<<st,tr=Ce[st];if(tr===-1){if((Mt&Z)===0||(Mt&oe)!==0){tr=Q,Oa(Mt);var $r=In;Ce[st]=10<=$r?tr+250:6<=$r?tr+5e3:-1}}else tr<=Q&&(I.expiredLanes|=Mt);_e&=~Mt}if(Z=Za(I,I===Ws?Bs:0),Q=In,Z===0)O!==null&&(O!==c1&&o1(O),I.callbackNode=null,I.callbackPriority=0);else{if(O!==null){if(I.callbackPriority===Q)return;O!==c1&&o1(O)}Q===15?(O=t5.bind(null,I),kc===null?(kc=[O],z=dp(km,nt)):kc.push(O),O=c1):Q===14?O=Ne(99,t5.bind(null,I)):(O=ri(Q),O=Ne(O,eK.bind(null,I))),I.callbackPriority=Q,I.callbackNode=O}}function eK(I){if(BM=-1,xM=Af=0,(Fn&48)!==0)throw Error(n(327));var Q=I.callbackNode;if(Mh()&&I.callbackNode!==Q)return null;var O=Za(I,I===Ws?Bs:0);if(O===0)return null;var Z=O,oe=Fn;Fn|=16;var Ce=aK();(Ws!==I||Bs!==Z)&&(Vm(),Wm(I,Z));do try{FQe();break}catch(st){nK(I,st)}while(!0);if(xt(),yM.current=Ce,Fn=oe,Bo!==null?Z=0:(Ws=null,Bs=0,Z=rs),(Gm&Km)!==0)Wm(I,0);else if(Z!==0){if(Z===2&&(Fn|=64,I.hydrate&&(I.hydrate=!1,t1(I.containerInfo)),O=Xi(I),O!==0&&(Z=B1(I,O))),Z===1)throw Q=CM,Wm(I,0),Jm(I,O),Pc(I,Ae()),Q;switch(I.finishedWork=I.current.alternate,I.finishedLanes=O,Z){case 0:case 1:throw Error(n(345));case 2:wp(I);break;case 3:if(Jm(I,O),(O&62914560)===O&&(Z=WD+500-Ae(),10<Z)){if(Za(I,0)!==0)break;if(oe=I.suspendedLanes,(oe&O)!==O){Zl(),I.pingedLanes|=I.suspendedLanes&oe;break}I.timeoutHandle=Fm(wp.bind(null,I),Z);break}wp(I);break;case 4:if(Jm(I,O),(O&4186112)===O)break;for(Z=I.eventTimes,oe=-1;0<O;){var _e=31-so(O);Ce=1<<_e,_e=Z[_e],_e>oe&&(oe=_e),O&=~Ce}if(O=oe,O=Ae()-O,O=(120>O?120:480>O?480:1080>O?1080:1920>O?1920:3e3>O?3e3:4320>O?4320:1960*TQe(O/1960))-O,10<O){I.timeoutHandle=Fm(wp.bind(null,I),O);break}wp(I);break;case 5:wp(I);break;default:throw Error(n(329))}}return Pc(I,Ae()),I.callbackNode===Q?eK.bind(null,I):null}function Jm(I,Q){for(Q&=~VD,Q&=~Km,I.suspendedLanes|=Q,I.pingedLanes&=~Q,I=I.expirationTimes;0<Q;){var O=31-so(Q),Z=1<<O;I[O]=-1,Q&=~Z}}function t5(I){if((Fn&48)!==0)throw Error(n(327));if(Mh(),I===Ws&&(I.expiredLanes&Bs)!==0){var Q=Bs,O=B1(I,Q);(Gm&Km)!==0&&(Q=Za(I,Q),O=B1(I,Q))}else Q=Za(I,0),O=B1(I,Q);if(I.tag!==0&&O===2&&(Fn|=64,I.hydrate&&(I.hydrate=!1,t1(I.containerInfo)),Q=Xi(I),Q!==0&&(O=B1(I,Q))),O===1)throw O=CM,Wm(I,0),Jm(I,Q),Pc(I,Ae()),O;return I.finishedWork=I.current.alternate,I.finishedLanes=Q,wp(I),Pc(I,Ae()),null}function QQe(){if(cf!==null){var I=cf;cf=null,I.forEach(function(Q){Q.expiredLanes|=24&Q.pendingLanes,Pc(Q,Ae())})}Pe()}function tK(I,Q){var O=Fn;Fn|=1;try{return I(Q)}finally{Fn=O,Fn===0&&(Vm(),Pe())}}function rK(I,Q){var O=Fn;Fn&=-2,Fn|=8;try{return I(Q)}finally{Fn=O,Fn===0&&(Vm(),Pe())}}function bM(I,Q){xa(KD,Cp),Cp|=Q,Gm|=Q}function r5(){Cp=KD.current,la(KD)}function Wm(I,Q){I.finishedWork=null,I.finishedLanes=0;var O=I.timeoutHandle;if(O!==-1&&(I.timeoutHandle=-1,QD(O)),Bo!==null)for(O=Bo.return;O!==null;){var Z=O;switch(Z.tag){case 1:Z=Z.type.childContextTypes,Z!=null&&cp();break;case 3:Ks(),la(Ri),la(Co),pp();break;case 5:hp(Z);break;case 4:Ks();break;case 13:la(li);break;case 19:la(li);break;case 10:Rt(Z);break;case 23:case 24:r5()}O=O.return}Ws=I,Bo=bh(I.current,null),Bs=Cp=Gm=Q,rs=0,CM=null,VD=Km=m1=0}function nK(I,Q){do{var O=Bo;try{if(xt(),Hu.current=El,Om){for(var Z=Di.memoizedState;Z!==null;){var oe=Z.queue;oe!==null&&(oe.pending=null),Z=Z.next}Om=!1}if(vp=0,$a=uo=Di=null,mp=!1,GD.current=null,O===null||O.return===null){rs=1,CM=Q,Bo=null;break}e:{var Ce=I,_e=O.return,st=O,Mt=Q;if(Q=Bs,st.flags|=2048,st.firstEffect=st.lastEffect=null,Mt!==null&&typeof Mt=="object"&&typeof Mt.then=="function"){var tr=Mt;if((st.mode&2)===0){var $r=st.alternate;$r?(st.updateQueue=$r.updateQueue,st.memoizedState=$r.memoizedState,st.lanes=$r.lanes):(st.updateQueue=null,st.memoizedState=null)}var kn=(li.current&1)!==0,Dr=_e;do{var hn;if(hn=Dr.tag===13){var Nn=Dr.memoizedState;if(Nn!==null)hn=Nn.dehydrated!==null;else{var Sn=Dr.memoizedProps;hn=Sn.fallback===void 0?!1:Sn.unstable_avoidThisFallback!==!0?!0:!kn}}if(hn){var Vt=Dr.updateQueue;if(Vt===null){var Dt=new Set;Dt.add(tr),Dr.updateQueue=Dt}else Vt.add(tr);if((Dr.mode&2)===0){if(Dr.flags|=64,st.flags|=16384,st.flags&=-2981,st.tag===1)if(st.alternate===null)st.tag=17;else{var Lt=jr(-1,1);Lt.tag=2,ra(st,Lt)}st.lanes|=1;break e}Mt=void 0,st=Q;var pr=Ce.pingCache;if(pr===null?(pr=Ce.pingCache=new MQe,Mt=new Set,pr.set(tr,Mt)):(Mt=pr.get(tr),Mt===void 0&&(Mt=new Set,pr.set(tr,Mt))),!Mt.has(st)){Mt.add(st);var yr=OQe.bind(null,Ce,tr,st);tr.then(yr,yr)}Dr.flags|=4096,Dr.lanes=Q;break e}Dr=Dr.return}while(Dr!==null);Mt=Error((he(st.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.`)}rs!==5&&(rs=2),Mt=zD(Mt,st),Dr=_e;do{switch(Dr.tag){case 3:Ce=Mt,Dr.flags|=4096,Q&=-Q,Dr.lanes|=Q;var zn=HG(Dr,Ce,Q);Ma(Dr,zn);break e;case 1:Ce=Mt;var cn=Dr.type,Ln=Dr.stateNode;if((Dr.flags&64)===0&&(typeof cn.getDerivedStateFromError=="function"||Ln!==null&&typeof Ln.componentDidCatch=="function"&&(Wu===null||!Wu.has(Ln)))){Dr.flags|=4096,Q&=-Q,Dr.lanes|=Q;var ia=GG(Dr,Ce,Q);Ma(Dr,ia);break e}}Dr=Dr.return}while(Dr!==null)}oK(O)}catch(Xn){Q=Xn,Bo===O&&O!==null&&(Bo=O=O.return);continue}break}while(!0)}function aK(){var I=yM.current;return yM.current=El,I===null?El:I}function B1(I,Q){var O=Fn;Fn|=16;var Z=aK();Ws===I&&Bs===Q||Wm(I,Q);do try{DQe();break}catch(oe){nK(I,oe)}while(!0);if(xt(),Fn=O,yM.current=Z,Bo!==null)throw Error(n(261));return Ws=null,Bs=0,rs}function DQe(){for(;Bo!==null;)iK(Bo)}function FQe(){for(;Bo!==null&&!uM();)iK(Bo)}function iK(I){var Q=cK(I.alternate,I,Cp);I.memoizedProps=I.pendingProps,Q===null?oK(I):Bo=Q,GD.current=null}function oK(I){var Q=I;do{var O=Q.alternate;if(I=Q.return,(Q.flags&2048)===0){if(O=BQe(O,Q,Cp),O!==null){Bo=O;return}if(O=Q,O.tag!==24&&O.tag!==23||O.memoizedState===null||(Cp&1073741824)!==0||(O.mode&4)===0){for(var Z=0,oe=O.child;oe!==null;)Z|=oe.lanes|oe.childLanes,oe=oe.sibling;O.childLanes=Z}I!==null&&(I.flags&2048)===0&&(I.firstEffect===null&&(I.firstEffect=Q.firstEffect),Q.lastEffect!==null&&(I.lastEffect!==null&&(I.lastEffect.nextEffect=Q.firstEffect),I.lastEffect=Q.lastEffect),1<Q.flags&&(I.lastEffect!==null?I.lastEffect.nextEffect=Q:I.firstEffect=Q,I.lastEffect=Q))}else{if(O=xQe(Q),O!==null){O.flags&=2047,Bo=O;return}I!==null&&(I.firstEffect=I.lastEffect=null,I.flags|=2048)}if(Q=Q.sibling,Q!==null){Bo=Q;return}Bo=Q=I}while(Q!==null);rs===0&&(rs=5)}function wp(I){var Q=xe();return De(99,NQe.bind(null,I,Q)),null}function NQe(I,Q){do Mh();while(E1!==null);if((Fn&48)!==0)throw Error(n(327));var O=I.finishedWork;if(O===null)return null;if(I.finishedWork=null,I.finishedLanes=0,O===I.current)throw Error(n(177));I.callbackNode=null;var Z=O.lanes|O.childLanes,oe=Z,Ce=I.pendingLanes&~oe;I.pendingLanes=oe,I.suspendedLanes=0,I.pingedLanes=0,I.expiredLanes&=oe,I.mutableReadLanes&=oe,I.entangledLanes&=oe,oe=I.entanglements;for(var _e=I.eventTimes,st=I.expirationTimes;0<Ce;){var Mt=31-so(Ce),tr=1<<Mt;oe[Mt]=0,_e[Mt]=-1,st[Mt]=-1,Ce&=~tr}if(cf!==null&&(Z&24)===0&&cf.has(I)&&cf.delete(I),I===Ws&&(Bo=Ws=null,Bs=0),1<O.flags?O.lastEffect!==null?(O.lastEffect.nextEffect=O,Z=O.firstEffect):Z=O:Z=O.firstEffect,Z!==null){if(oe=Fn,Fn|=32,GD.current=null,Qm=xc,_e=ku(),Pu(_e)){if("selectionStart"in _e)st={start:_e.selectionStart,end:_e.selectionEnd};else e:if(st=(st=_e.ownerDocument)&&st.defaultView||window,(tr=st.getSelection&&st.getSelection())&&tr.rangeCount!==0){st=tr.anchorNode,Ce=tr.anchorOffset,Mt=tr.focusNode,tr=tr.focusOffset;try{st.nodeType,Mt.nodeType}catch{st=null;break e}var $r=0,kn=-1,Dr=-1,hn=0,Nn=0,Sn=_e,Vt=null;t:for(;;){for(var Dt;Sn!==st||Ce!==0&&Sn.nodeType!==3||(kn=$r+Ce),Sn!==Mt||tr!==0&&Sn.nodeType!==3||(Dr=$r+tr),Sn.nodeType===3&&($r+=Sn.nodeValue.length),(Dt=Sn.firstChild)!==null;)Vt=Sn,Sn=Dt;for(;;){if(Sn===_e)break t;if(Vt===st&&++hn===Ce&&(kn=$r),Vt===Mt&&++Nn===tr&&(Dr=$r),(Dt=Sn.nextSibling)!==null)break;Sn=Vt,Vt=Sn.parentNode}Sn=Dt}st=kn===-1||Dr===-1?null:{start:kn,end:Dr}}else st=null;st=st||{start:0,end:0}}else st=null;sp={focusedElem:_e,selectionRange:st},xc=!1,w1=null,MM=!1,on=Z;do try{_Qe()}catch(Xn){if(on===null)throw Error(n(330));Ih(on,Xn),on=on.nextEffect}while(on!==null);w1=null,on=Z;do try{for(_e=I;on!==null;){var Lt=on.flags;if(Lt&16&&Ge(on.stateNode,""),Lt&128){var pr=on.alternate;if(pr!==null){var yr=pr.ref;yr!==null&&(typeof yr=="function"?yr(null):yr.current=null)}}switch(Lt&1038){case 2:qG(on),on.flags&=-3;break;case 6:qG(on),on.flags&=-3,HD(on.alternate,on);break;case 1024:on.flags&=-1025;break;case 1028:on.flags&=-1025,HD(on.alternate,on);break;case 4:HD(on.alternate,on);break;case 8:st=on,ZG(_e,st);var zn=st.alternate;WG(st),zn!==null&&WG(zn)}on=on.nextEffect}}catch(Xn){if(on===null)throw Error(n(330));Ih(on,Xn),on=on.nextEffect}while(on!==null);if(yr=sp,pr=ku(),Lt=yr.focusedElem,_e=yr.selectionRange,pr!==Lt&&Lt&&Lt.ownerDocument&&wA(Lt.ownerDocument.documentElement,Lt)){for(_e!==null&&Pu(Lt)&&(pr=_e.start,yr=_e.end,yr===void 0&&(yr=pr),"selectionStart"in Lt?(Lt.selectionStart=pr,Lt.selectionEnd=Math.min(yr,Lt.value.length)):(yr=(pr=Lt.ownerDocument||document)&&pr.defaultView||window,yr.getSelection&&(yr=yr.getSelection(),st=Lt.textContent.length,zn=Math.min(_e.start,st),_e=_e.end===void 0?zn:Math.min(_e.end,st),!yr.extend&&zn>_e&&(st=_e,_e=zn,zn=st),st=_u(Lt,zn),Ce=_u(Lt,_e),st&&Ce&&(yr.rangeCount!==1||yr.anchorNode!==st.node||yr.anchorOffset!==st.offset||yr.focusNode!==Ce.node||yr.focusOffset!==Ce.offset)&&(pr=pr.createRange(),pr.setStart(st.node,st.offset),yr.removeAllRanges(),zn>_e?(yr.addRange(pr),yr.extend(Ce.node,Ce.offset)):(pr.setEnd(Ce.node,Ce.offset),yr.addRange(pr)))))),pr=[],yr=Lt;yr=yr.parentNode;)yr.nodeType===1&&pr.push({element:yr,left:yr.scrollLeft,top:yr.scrollTop});for(typeof Lt.focus=="function"&&Lt.focus(),Lt=0;Lt<pr.length;Lt++)yr=pr[Lt],yr.element.scrollLeft=yr.left,yr.element.scrollTop=yr.top}xc=!!Qm,sp=Qm=null,I.current=O,on=Z;do try{for(Lt=I;on!==null;){var cn=on.flags;if(cn&36&&SQe(Lt,on.alternate,on),cn&128){pr=void 0;var Ln=on.ref;if(Ln!==null){var ia=on.stateNode;switch(on.tag){case 5:pr=ia;break;default:pr=ia}typeof Ln=="function"?Ln(pr):Ln.current=pr}}on=on.nextEffect}}catch(Xn){if(on===null)throw Error(n(330));Ih(on,Xn),on=on.nextEffect}while(on!==null);on=null,ND(),Fn=oe}else I.current=O;if(wh)wh=!1,E1=I,y1=Q;else for(on=Z;on!==null;)Q=on.nextEffect,on.nextEffect=null,on.flags&8&&(cn=on,cn.sibling=null,cn.stateNode=null),on=Q;if(Z=I.pendingLanes,Z===0&&(Wu=null),Z===1?I===e5?C1++:(C1=0,e5=I):C1=0,O=O.stateNode,_c&&typeof _c.onCommitFiberRoot=="function")try{_c.onCommitFiberRoot(ph,O,void 0,(O.current.flags&64)===64)}catch{}if(Pc(I,Ae()),wM)throw wM=!1,I=qD,qD=null,I;return(Fn&8)!==0||Pe(),null}function _Qe(){for(;on!==null;){var I=on.alternate;MM||w1===null||((on.flags&8)!==0?Qn(on,w1)&&(MM=!0):on.tag===13&&RQe(I,on)&&Qn(on,w1)&&(MM=!0));var Q=on.flags;(Q&256)!==0&&bQe(I,on),(Q&512)===0||wh||(wh=!0,Ne(97,function(){return Mh(),null})),on=on.nextEffect}}function Mh(){if(y1!==90){var I=97<y1?97:y1;return y1=90,De(I,PQe)}return!1}function kQe(I,Q){ZD.push(Q,I),wh||(wh=!0,Ne(97,function(){return Mh(),null}))}function sK(I,Q){$D.push(Q,I),wh||(wh=!0,Ne(97,function(){return Mh(),null}))}function PQe(){if(E1===null)return!1;var I=E1;if(E1=null,(Fn&48)!==0)throw Error(n(331));var Q=Fn;Fn|=32;var O=$D;$D=[];for(var Z=0;Z<O.length;Z+=2){var oe=O[Z],Ce=O[Z+1],_e=oe.destroy;if(oe.destroy=void 0,typeof _e=="function")try{_e()}catch(Mt){if(Ce===null)throw Error(n(330));Ih(Ce,Mt)}}for(O=ZD,ZD=[],Z=0;Z<O.length;Z+=2){oe=O[Z],Ce=O[Z+1];try{var st=oe.create;oe.destroy=st()}catch(Mt){if(Ce===null)throw Error(n(330));Ih(Ce,Mt)}}for(st=I.current.firstEffect;st!==null;)I=st.nextEffect,st.nextEffect=null,st.flags&8&&(st.sibling=null,st.stateNode=null),st=I;return Fn=Q,Pe(),!0}function lK(I,Q,O){Q=zD(O,Q),Q=HG(I,Q,1),ra(I,Q),Q=Zl(),I=IM(I,1),I!==null&&(Qo(I,1,Q),Pc(I,Q))}function Ih(I,Q){if(I.tag===3)lK(I,I,Q);else for(var O=I.return;O!==null;){if(O.tag===3){lK(O,I,Q);break}else if(O.tag===1){var Z=O.stateNode;if(typeof O.type.getDerivedStateFromError=="function"||typeof Z.componentDidCatch=="function"&&(Wu===null||!Wu.has(Z))){I=zD(Q,I);var oe=GG(O,I,1);if(ra(O,oe),oe=Zl(),O=IM(O,1),O!==null)Qo(O,1,oe),Pc(O,oe);else if(typeof Z.componentDidCatch=="function"&&(Wu===null||!Wu.has(Z)))try{Z.componentDidCatch(Q,I)}catch{}break}}O=O.return}}function OQe(I,Q,O){var Z=I.pingCache;Z!==null&&Z.delete(Q),Q=Zl(),I.pingedLanes|=I.suspendedLanes&O,Ws===I&&(Bs&O)===O&&(rs===4||rs===3&&(Bs&62914560)===Bs&&500>Ae()-WD?Wm(I,0):VD|=O),Pc(I,Q)}function jQe(I,Q){var O=I.stateNode;O!==null&&O.delete(Q),Q=0,Q===0&&(Q=I.mode,(Q&2)===0?Q=1:(Q&4)===0?Q=xe()===99?1:2:(Af===0&&(Af=Gm),Q=ni(62914560&~Af),Q===0&&(Q=4194304))),O=Zl(),I=IM(I,Q),I!==null&&(Qo(I,Q,O),Pc(I,O))}var cK;cK=function(I,Q,O){var Z=Q.lanes;if(I!==null)if(I.memoizedProps!==Q.pendingProps||Ri.current)yl=!0;else if((O&Z)!==0)yl=(I.flags&16384)!==0;else{switch(yl=!1,Q.tag){case 3:NG(Q),Pm();break;case 5:si(Q);break;case 1:ys(Q.type)&&Ap(Q);break;case 4:Yu(Q,Q.stateNode.containerInfo);break;case 10:Z=Q.memoizedProps.value;var oe=Q.type._context;xa(Kt,oe._currentValue),oe._currentValue=Z;break;case 13:if(Q.memoizedState!==null)return(O&Q.child.childLanes)!==0?_G(I,Q,O):(xa(li,li.current&1),Q=lf(I,Q,O),Q!==null?Q.sibling:null);xa(li,li.current&1);break;case 19:if(Z=(O&Q.childLanes)!==0,(I.flags&64)!==0){if(Z)return zG(I,Q,O);Q.flags|=64}if(oe=Q.memoizedState,oe!==null&&(oe.rendering=null,oe.tail=null,oe.lastEffect=null),xa(li,li.current),Z)break;return null;case 23:case 24:return Q.lanes=0,_D(I,Q,O)}return lf(I,Q,O)}else yl=!1;switch(Q.lanes=0,Q.tag){case 2:if(Z=Q.type,I!==null&&(I.alternate=null,Q.alternate=null,Q.flags|=2),I=Q.pendingProps,oe=gh(Q,Co.current),vr(Q,O),oe=vh(null,Q,Z,I,oe,O),Q.flags|=1,typeof oe=="object"&&oe!==null&&typeof oe.render=="function"&&oe.$$typeof===void 0){if(Q.tag=1,Q.memoizedState=null,Q.updateQueue=null,ys(Z)){var Ce=!0;Ap(Q)}else Ce=!1;Q.memoizedState=oe.state!==null&&oe.state!==void 0?oe.state:null,Lr(Q);var _e=Z.getDerivedStateFromProps;typeof _e=="function"&&Ba(Q,Z,_e,I),oe.updater=Dn,Q.stateNode=oe,oe._reactInternals=Q,Fo(Q,Z,I,O),Q=PD(null,Q,Z,!0,Ce,O)}else Q.tag=0,ws(null,Q,oe,O),Q=Q.child;return Q;case 16:oe=Q.elementType;e:{switch(I!==null&&(I.alternate=null,Q.alternate=null,Q.flags|=2),I=Q.pendingProps,Ce=oe._init,oe=Ce(oe._payload),Q.type=oe,Ce=Q.tag=LQe(oe),I=zt(oe,I),Ce){case 0:Q=kD(null,Q,oe,I,O);break e;case 1:Q=FG(null,Q,oe,I,O);break e;case 11:Q=Um(null,Q,oe,I,O);break e;case 14:Q=Hm(null,Q,oe,zt(oe.type,I),Z,O);break e}throw Error(n(306,oe,""))}return Q;case 0:return Z=Q.type,oe=Q.pendingProps,oe=Q.elementType===Z?oe:zt(Z,oe),kD(I,Q,Z,oe,O);case 1:return Z=Q.type,oe=Q.pendingProps,oe=Q.elementType===Z?oe:zt(Z,oe),FG(I,Q,Z,oe,O);case 3:if(NG(Q),Z=Q.updateQueue,I===null||Z===null)throw Error(n(282));if(Z=Q.pendingProps,oe=Q.memoizedState,oe=oe!==null?oe.element:null,En(I,Q),na(Q,Z,null,O),Z=Q.memoizedState.element,Z===oe)Pm(),Q=lf(I,Q,O);else{if(oe=Q.stateNode,(Ce=oe.hydrate)&&(vl=tf(Q.stateNode.containerInfo.firstChild),pl=Q,Ce=Vs=!0),Ce){if(I=oe.mutableSourceEagerHydrationData,I!=null)for(oe=0;oe<I.length;oe+=2)Ce=I[oe],Ce._workInProgressVersionPrimary=I[oe+1],MA.push(Ce);for(O=_o(Q,null,Z,O),Q.child=O;O;)O.flags=O.flags&-3|1024,O=O.sibling}else ws(I,Q,Z,O),Pm();Q=Q.child}return Q;case 5:return si(Q),I===null&&Uu(Q),Z=Q.type,oe=Q.pendingProps,Ce=I!==null?I.memoizedProps:null,_e=oe.children,uh(Z,oe)?_e=null:Ce!==null&&uh(Z,Ce)&&(Q.flags|=16),DG(I,Q),ws(I,Q,_e,O),Q.child;case 6:return I===null&&Uu(Q),null;case 13:return _G(I,Q,O);case 4:return Yu(Q,Q.stateNode.containerInfo),Z=Q.pendingProps,I===null?Q.child=Yi(Q,null,Z,O):ws(I,Q,Z,O),Q.child;case 11:return Z=Q.type,oe=Q.pendingProps,oe=Q.elementType===Z?oe:zt(Z,oe),Um(I,Q,Z,oe,O);case 7:return ws(I,Q,Q.pendingProps,O),Q.child;case 8:return ws(I,Q,Q.pendingProps.children,O),Q.child;case 12:return ws(I,Q,Q.pendingProps.children,O),Q.child;case 10:e:{Z=Q.type._context,oe=Q.pendingProps,_e=Q.memoizedProps,Ce=oe.value;var st=Q.type._context;if(xa(Kt,st._currentValue),st._currentValue=Ce,_e!==null)if(st=_e.value,Ce=yo(st,Ce)?0:(typeof Z._calculateChangedBits=="function"?Z._calculateChangedBits(st,Ce):1073741823)|0,Ce===0){if(_e.children===oe.children&&!Ri.current){Q=lf(I,Q,O);break e}}else for(st=Q.child,st!==null&&(st.return=Q);st!==null;){var Mt=st.dependencies;if(Mt!==null){_e=st.child;for(var tr=Mt.firstContext;tr!==null;){if(tr.context===Z&&(tr.observedBits&Ce)!==0){st.tag===1&&(tr=jr(-1,O&-O),tr.tag=2,ra(st,tr)),st.lanes|=O,tr=st.alternate,tr!==null&&(tr.lanes|=O),dr(st.return,O),Mt.lanes|=O;break}tr=tr.next}}else _e=st.tag===10&&st.type===Q.type?null:st.child;if(_e!==null)_e.return=st;else for(_e=st;_e!==null;){if(_e===Q){_e=null;break}if(st=_e.sibling,st!==null){st.return=_e.return,_e=st;break}_e=_e.return}st=_e}ws(I,Q,oe.children,O),Q=Q.child}return Q;case 9:return oe=Q.type,Ce=Q.pendingProps,Z=Ce.children,vr(Q,O),oe=sr(oe,Ce.unstable_observedBits),Z=Z(oe),Q.flags|=1,ws(I,Q,Z,O),Q.child;case 14:return oe=Q.type,Ce=zt(oe,Q.pendingProps),Ce=zt(oe.type,Ce),Hm(I,Q,oe,Ce,Z,O);case 15:return QG(I,Q,Q.type,Q.pendingProps,Z,O);case 17:return Z=Q.type,oe=Q.pendingProps,oe=Q.elementType===Z?oe:zt(Z,oe),I!==null&&(I.alternate=null,Q.alternate=null,Q.flags|=2),Q.tag=1,ys(Z)?(I=!0,Ap(Q)):I=!1,vr(Q,O),ts(Q,Z,oe),Fo(Q,Z,oe,O),PD(null,Q,Z,!0,I,O);case 19:return zG(I,Q,O);case 23:return _D(I,Q,O);case 24:return _D(I,Q,O)}throw Error(n(156,Q.tag))};function zQe(I,Q,O,Z){this.tag=I,this.key=O,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=Q,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=Z,this.flags=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(I,Q,O,Z){return new zQe(I,Q,O,Z)}function n5(I){return I=I.prototype,!(!I||!I.isReactComponent)}function LQe(I){if(typeof I=="function")return n5(I)?1:0;if(I!=null){if(I=I.$$typeof,I===F)return 11;if(I===P)return 14}return 2}function bh(I,Q){var O=I.alternate;return O===null?(O=Oc(I.tag,Q,I.key,I.mode),O.elementType=I.elementType,O.type=I.type,O.stateNode=I.stateNode,O.alternate=I,I.alternate=O):(O.pendingProps=Q,O.type=I.type,O.flags=0,O.nextEffect=null,O.firstEffect=null,O.lastEffect=null),O.childLanes=I.childLanes,O.lanes=I.lanes,O.child=I.child,O.memoizedProps=I.memoizedProps,O.memoizedState=I.memoizedState,O.updateQueue=I.updateQueue,Q=I.dependencies,O.dependencies=Q===null?null:{lanes:Q.lanes,firstContext:Q.firstContext},O.sibling=I.sibling,O.index=I.index,O.ref=I.ref,O}function SM(I,Q,O,Z,oe,Ce){var _e=2;if(Z=I,typeof I=="function")n5(I)&&(_e=1);else if(typeof I=="string")_e=5;else e:switch(I){case S:return Xm(O.children,oe,Ce,Q);case X:_e=8,oe|=16;break;case R:_e=8,oe|=1;break;case b:return I=Oc(12,O,Q,oe|8),I.elementType=b,I.type=b,I.lanes=Ce,I;case N:return I=Oc(13,O,Q,oe),I.type=N,I.elementType=N,I.lanes=Ce,I;case _:return I=Oc(19,O,Q,oe),I.elementType=_,I.lanes=Ce,I;case K:return a5(O,oe,Ce,Q);case U:return I=Oc(24,O,Q,oe),I.elementType=U,I.lanes=Ce,I;default:if(typeof I=="object"&&I!==null)switch(I.$$typeof){case T:_e=10;break e;case D:_e=9;break e;case F:_e=11;break e;case P:_e=14;break e;case k:_e=16,Z=null;break e;case j:_e=22;break e}throw Error(n(130,I==null?I:typeof I,""))}return Q=Oc(_e,O,Q,oe),Q.elementType=I,Q.type=Z,Q.lanes=Ce,Q}function Xm(I,Q,O,Z){return I=Oc(7,I,Z,Q),I.lanes=O,I}function a5(I,Q,O,Z){return I=Oc(23,I,Z,Q),I.elementType=K,I.lanes=O,I}function i5(I,Q,O){return I=Oc(6,I,null,Q),I.lanes=O,I}function o5(I,Q,O){return Q=Oc(4,I.children!==null?I.children:[],I.key,Q),Q.lanes=O,Q.stateNode={containerInfo:I.containerInfo,pendingChildren:null,implementation:I.implementation},Q}function YQe(I,Q,O){this.tag=Q,this.containerInfo=I,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=O,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=zi(0),this.expirationTimes=zi(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zi(0),this.mutableSourceEagerHydrationData=null}function UQe(I,Q,O){var Z=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:M,key:Z==null?null:""+Z,children:I,containerInfo:Q,implementation:O}}function RM(I,Q,O,Z){var oe=Q.current,Ce=Zl(),_e=Bh(oe);e:if(O){O=O._reactInternals;t:{if(er(O)!==O||O.tag!==1)throw Error(n(170));var st=O;do{switch(st.tag){case 3:st=st.stateNode.context;break t;case 1:if(ys(st.type)){st=st.stateNode.__reactInternalMemoizedMergedChildContext;break t}}st=st.return}while(st!==null);throw Error(n(171))}if(O.tag===1){var Mt=O.type;if(ys(Mt)){O=i1(O,Mt,st);break e}}O=st}else O=Lu;return Q.context===null?Q.context=O:Q.pendingContext=O,Q=jr(Ce,_e),Q.payload={element:I},Z=Z===void 0?null:Z,Z!==null&&(Q.callback=Z),ra(oe,Q),xh(oe,_e,Ce),_e}function s5(I){if(I=I.current,!I.child)return null;switch(I.child.tag){case 5:return I.child.stateNode;default:return I.child.stateNode}}function AK(I,Q){if(I=I.memoizedState,I!==null&&I.dehydrated!==null){var O=I.retryLane;I.retryLane=O!==0&&O<Q?O:Q}}function l5(I,Q){AK(I,Q),(I=I.alternate)&&AK(I,Q)}function HQe(){return null}function c5(I,Q,O){var Z=O!=null&&O.hydrationOptions!=null&&O.hydrationOptions.mutableSources||null;if(O=new YQe(I,Q,O!=null&&O.hydrate===!0),Q=Oc(3,null,null,Q===2?7:Q===1?3:0),O.current=Q,Q.stateNode=O,Lr(Q),I[zu]=O.current,np(I.nodeType===8?I.parentNode:I),Z)for(I=0;I<Z.length;I++){Q=Z[I];var oe=Q._getVersion;oe=oe(Q._source),O.mutableSourceEagerHydrationData==null?O.mutableSourceEagerHydrationData=[Q,oe]:O.mutableSourceEagerHydrationData.push(Q,oe)}this._internalRoot=O}c5.prototype.render=function(I){RM(I,this._internalRoot,null,null)},c5.prototype.unmount=function(){var I=this._internalRoot,Q=I.containerInfo;RM(null,I,null,function(){Q[zu]=null})};function x1(I){return!(!I||I.nodeType!==1&&I.nodeType!==9&&I.nodeType!==11&&(I.nodeType!==8||I.nodeValue!==" react-mount-point-unstable "))}function GQe(I,Q){if(Q||(Q=I?I.nodeType===9?I.documentElement:I.firstChild:null,Q=!(!Q||Q.nodeType!==1||!Q.hasAttribute("data-reactroot"))),!Q)for(var O;O=I.lastChild;)I.removeChild(O);return new c5(I,0,Q?{hydrate:!0}:void 0)}function TM(I,Q,O,Z,oe){var Ce=O._reactRootContainer;if(Ce){var _e=Ce._internalRoot;if(typeof oe=="function"){var st=oe;oe=function(){var tr=s5(_e);st.call(tr)}}RM(Q,_e,I,oe)}else{if(Ce=O._reactRootContainer=GQe(O,Z),_e=Ce._internalRoot,typeof oe=="function"){var Mt=oe;oe=function(){var tr=s5(_e);Mt.call(tr)}}rK(function(){RM(Q,_e,I,oe)})}return s5(_e)}pt=function(I){if(I.tag===13){var Q=Zl();xh(I,4,Q),l5(I,4)}},Ze=function(I){if(I.tag===13){var Q=Zl();xh(I,67108864,Q),l5(I,67108864)}},bt=function(I){if(I.tag===13){var Q=Zl(),O=Bh(I);xh(I,O,Q),l5(I,O)}},kt=function(I,Q){return Q()},Be=function(I,Q,O){switch(Q){case"input":if(we(I,O),Q=O.name,O.type==="radio"&&Q!=null){for(O=I;O.parentNode;)O=O.parentNode;for(O=O.querySelectorAll("input[name="+JSON.stringify(""+Q)+'][type="radio"]'),Q=0;Q<O.length;Q++){var Z=O[Q];if(Z!==I&&Z.form===I.form){var oe=_m(Z);if(!oe)throw Error(n(90));de(Z),we(Z,oe)}}}break;case"textarea":At(I,O);break;case"select":Q=O.value,Q!=null&&tt(I,!!O.multiple,Q,!1)}},it=tK,vt=function(I,Q,O,Z,oe){var Ce=Fn;Fn|=4;try{return De(98,I.bind(null,Q,O,Z,oe))}finally{Fn=Ce,Fn===0&&(Vm(),Pe())}},qt=function(){(Fn&49)===0&&(QQe(),Mh())},Xt=function(I,Q){var O=Fn;Fn|=2;try{return I(Q)}finally{Fn=O,Fn===0&&(Vm(),Pe())}};function uK(I,Q){var O=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x1(Q))throw Error(n(200));return UQe(I,Q,null,O)}var KQe={Events:[lp,nf,_m,wt,ot,Mh,{current:!1}]},M1={findFiberByHostInstance:rf,bundleType:0,version:"17.0.2",rendererPackageName:"react-dom"},VQe={bundleType:M1.bundleType,version:M1.version,rendererPackageName:M1.rendererPackageName,rendererConfig:M1.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:B.ReactCurrentDispatcher,findHostInstanceByFiber:function(I){return I=pn(I),I===null?null:I.stateNode},findFiberByHostInstance:M1.findFiberByHostInstance||HQe,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var QM=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!QM.isDisabled&&QM.supportsFiber)try{ph=QM.inject(VQe),_c=QM}catch{}}return $l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=KQe,$l.createPortal=uK,$l.findDOMNode=function(I){if(I==null)return null;if(I.nodeType===1)return I;var Q=I._reactInternals;if(Q===void 0)throw typeof I.render=="function"?Error(n(188)):Error(n(268,Object.keys(I)));return I=pn(Q),I=I===null?null:I.stateNode,I},$l.flushSync=function(I,Q){var O=Fn;if((O&48)!==0)return I(Q);Fn|=1;try{if(I)return De(99,I.bind(null,Q))}finally{Fn=O,Pe()}},$l.hydrate=function(I,Q,O){if(!x1(Q))throw Error(n(200));return TM(null,I,Q,!0,O)},$l.render=function(I,Q,O){if(!x1(Q))throw Error(n(200));return TM(null,I,Q,!1,O)},$l.unmountComponentAtNode=function(I){if(!x1(I))throw Error(n(40));return I._reactRootContainer?(rK(function(){TM(null,null,I,!1,function(){I._reactRootContainer=null,I[zu]=null})}),!0):!1},$l.unstable_batchedUpdates=tK,$l.unstable_createPortal=function(I,Q){return uK(I,Q,2<arguments.length&&arguments[2]!==void 0?arguments[2]:null)},$l.unstable_renderSubtreeIntoContainer=function(I,Q,O,Z){if(!x1(O))throw Error(n(200));if(I==null||I._reactInternals===void 0)throw Error(n(38));return TM(I,Q,O,!1,Z)},$l.version="17.0.2",$l}var yK;function mY(){if(yK)return f5.exports;yK=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),f5.exports=e4e(),f5.exports}var Ko=mY();const Ql=gn(Ko),t4e=ghe({__proto__:null,default:Ql},[Ko]);var E=Ur();const le=gn(E),r4e=ghe({__proto__:null,default:le},[E]),phe="CONTENT_SET_VIEW",vhe="CONTENT_SET_COMPONENT",mhe="CONTENT_SET_PAGE",Ehe=(e,t=!1,r)=>({type:phe,viewName:e,viewlink:t,pathname:r}),n4e=(e,t)=>({type:vhe,name:e,moduleId:t}),eB=e=>({type:mhe,name:e});var EY=E.createContext({});function Ar(e){"@babel/helpers - typeof";return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ar(e)}function a4e(e,t){if(Ar(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ar(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yhe(e){var t=a4e(e,"string");return Ar(t)=="symbol"?t:t+""}function te(e,t,r){return(t=yhe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CK(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function se(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?CK(Object(r),!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):CK(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Che(e){if(Array.isArray(e))return e}function i4e(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,a,i,o,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(A){c=!0,a=A}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw a}}return s}}function Lj(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function yY(e,t){if(e){if(typeof e=="string")return Lj(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lj(e,t):void 0}}function whe(){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 Je(e,t){return Che(e)||i4e(e,t)||yY(e,t)||whe()}function Ai(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function An(e,t){if(e==null)return{};var r,n,a=Ai(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var p5={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var wK;function Ro(){return wK||(wK=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var s=arguments[o];s&&(i=a(i,n(s)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var s in i)t.call(i,s)&&i[s]&&(o=a(o,s));return o}function a(i,o){return o?i?i+" "+o:i+o:i}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(p5)),p5.exports}var o4e=Ro();const dt=gn(o4e);function ls(e,t){s4e(e)&&(e="100%");var r=l4e(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function DM(e){return Math.min(1,Math.max(0,e))}function s4e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function l4e(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Bhe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function cv(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ZA(e){return e.length===1?"0"+e:String(e)}function xhe(e,t,r){return{r:ls(e,255)*255,g:ls(t,255)*255,b:ls(r,255)*255}}function Yj(e,t,r){e=ls(e,255),t=ls(t,255),r=ls(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=0,s=(n+a)/2;if(n===a)o=0,i=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function v5(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Mhe(e,t,r){var n,a,i;if(e=ls(e,360),t=ls(t,100),r=ls(r,100),t===0)a=r,i=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=v5(s,o,e+1/3),a=v5(s,o,e),i=v5(s,o,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function CR(e,t,r){e=ls(e,255),t=ls(t,255),r=ls(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i=0,o=n,s=n-a,l=n===0?0:s/n;if(n===a)i=0;else{switch(n){case e:i=(t-r)/s+(t<r?6:0);break;case t:i=(r-e)/s+2;break;case r:i=(e-t)/s+4;break}i/=6}return{h:i,s:l,v:o}}function Ihe(e,t,r){e=ls(e,360)*6,t=ls(t,100),r=ls(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,c=[r,o,i,i,s,r][l],A=[s,r,r,o,i,i][l],u=[i,i,s,r,r,o][l];return{r:c*255,g:A*255,b:u*255}}function wR(e,t,r,n){var a=[ZA(Math.round(e).toString(16)),ZA(Math.round(t).toString(16)),ZA(Math.round(r).toString(16))];return n&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function bhe(e,t,r,n,a){var i=[ZA(Math.round(e).toString(16)),ZA(Math.round(t).toString(16)),ZA(Math.round(r).toString(16)),ZA(CY(n))];return a&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Uj(e,t,r,n){var a=[ZA(CY(n)),ZA(Math.round(e).toString(16)),ZA(Math.round(t).toString(16)),ZA(Math.round(r).toString(16))];return a.join("")}function CY(e){return Math.round(parseFloat(e)*255).toString(16)}function Hj(e){return Il(e)/255}function Il(e){return parseInt(e,16)}function She(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var BR={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 nv(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=Rhe(e)),typeof e=="object"&&(sd(e.r)&&sd(e.g)&&sd(e.b)?(t=xhe(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):sd(e.h)&&sd(e.s)&&sd(e.v)?(n=cv(e.s),a=cv(e.v),t=Ihe(e.h,n,a),o=!0,s="hsv"):sd(e.h)&&sd(e.s)&&sd(e.l)&&(n=cv(e.s),i=cv(e.l),t=Mhe(e.h,n,i),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Bhe(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var c4e="[-\\+]?\\d+%?",A4e="[-\\+]?\\d*\\.\\d+%?",og="(?:".concat(A4e,")|(?:").concat(c4e,")"),m5="[\\s|\\(]+(".concat(og,")[,|\\s]+(").concat(og,")[,|\\s]+(").concat(og,")\\s*\\)?"),E5="[\\s|\\(]+(".concat(og,")[,|\\s]+(").concat(og,")[,|\\s]+(").concat(og,")[,|\\s]+(").concat(og,")\\s*\\)?"),LA={CSS_UNIT:new RegExp(og),rgb:new RegExp("rgb"+m5),rgba:new RegExp("rgba"+E5),hsl:new RegExp("hsl"+m5),hsla:new RegExp("hsla"+E5),hsv:new RegExp("hsv"+m5),hsva:new RegExp("hsva"+E5),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 Rhe(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(BR[e])e=BR[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=LA.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=LA.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=LA.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=LA.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=LA.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=LA.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=LA.hex8.exec(e),r?{r:Il(r[1]),g:Il(r[2]),b:Il(r[3]),a:Hj(r[4]),format:t?"name":"hex8"}:(r=LA.hex6.exec(e),r?{r:Il(r[1]),g:Il(r[2]),b:Il(r[3]),format:t?"name":"hex"}:(r=LA.hex4.exec(e),r?{r:Il(r[1]+r[1]),g:Il(r[2]+r[2]),b:Il(r[3]+r[3]),a:Hj(r[4]+r[4]),format:t?"name":"hex8"}:(r=LA.hex3.exec(e),r?{r:Il(r[1]+r[1]),g:Il(r[2]+r[2]),b:Il(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function sd(e){return!!LA.CSS_UNIT.exec(String(e))}var Fl=(function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=She(t)),this.originalInput=t;var a=nv(t);this.originalInput=t,this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,this.roundA=Math.round(100*this.a)/100,this.format=(n=r.format)!==null&&n!==void 0?n:a.format,this.gradientType=r.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=a.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,a,i=t.r/255,o=t.g/255,s=t.b/255;return i<=.03928?r=i/12.92:r=Math.pow((i+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?a=s/12.92:a=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*a},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Bhe(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=CR(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=CR(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=Yj(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=Yj(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(a,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(a,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),wR(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),bhe(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(ls(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(ls(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+wR(this.r,this.g,this.b,!1),r=0,n=Object.entries(BR);r<n.length;r++){var a=n[r],i=a[0],o=a[1];if(t===o)return i}return!1},e.prototype.toString=function(t){var r=!!t;t=t??this.format;var n=!1,a=this.a<1&&this.a>=0,i=!r&&a&&(t.startsWith("hex")||t==="name");return i?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=DM(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=DM(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=DM(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=DM(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),a=new e(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),a=360/r,i=[this];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(new e(n));return i},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:a,v:i})),i=(i+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),a=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/a,g:(r.g*r.a+n.g*n.a*(1-r.a))/a,b:(r.b*r.a+n.b*n.a*(1-r.a))/a,a})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,a=[this],i=360/t,o=1;o<t;o++)a.push(new e({h:(n+o*i)%360,s:r.s,l:r.l}));return a},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e})();function BK(e,t){return e===void 0&&(e=""),t===void 0&&(t={}),new Fl(e,t)}function wY(e,t){var r=new Fl(e),n=new Fl(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)}function The(e,t,r){var n,a;r===void 0&&(r={level:"AA",size:"small"});var i=wY(e,t);switch(((n=r.level)!==null&&n!==void 0?n:"AA")+((a=r.size)!==null&&a!==void 0?a:"small")){case"AAsmall":case"AAAlarge":return i>=4.5;case"AAlarge":return i>=3;case"AAAsmall":return i>=7;default:return!1}}function Qhe(e,t,r){r===void 0&&(r={includeFallbackColors:!1,level:"AA",size:"small"});for(var n=null,a=0,i=r.includeFallbackColors,o=r.level,s=r.size,l=0,c=t;l<c.length;l++){var A=c[l],u=wY(e,A);u>a&&(a=u,n=new Fl(A))}return The(e,n,{level:o,size:s})||!i?n:(r.includeFallbackColors=!1,Qhe(e,["#fff","#000"],r))}function u4e(e,t){var r=new Fl(e),n="#"+Uj(r.r,r.g,r.b,r.a),a=n,i=r.gradientType?"GradientType = 1, ":"";if(t){var o=new Fl(t);a="#"+Uj(o.r,o.g,o.b,o.a)}return"progid:DXImageTransform.Microsoft.gradient(".concat(i,"startColorstr=").concat(n,",endColorstr=").concat(a,")")}function d4e(e,t){var r={r:cv(e.r),g:cv(e.g),b:cv(e.b)};return e.a!==void 0&&(r.a=Number(e.a)),new Fl(r,t)}function f4e(){return new Fl({r:Math.random(),g:Math.random(),b:Math.random()})}function Dhe(e){if(e===void 0&&(e={}),e.count!==void 0&&e.count!==null){var t=e.count,r=[];for(e.count=void 0;t>r.length;)e.count=null,e.seed&&(e.seed+=1),r.push(Dhe(e));return e.count=t,r}var n=h4e(e.hue,e.seed),a=g4e(n,e),i=p4e(n,a,e),o={h:n,s:a,v:i};return e.alpha!==void 0&&(o.a=e.alpha),new Fl(o)}function h4e(e,t){var r=m4e(e),n=xR(r,t);return n<0&&(n=360+n),n}function g4e(e,t){if(t.hue==="monochrome")return 0;if(t.luminosity==="random")return xR([0,100],t.seed);var r=Fhe(e).saturationRange,n=r[0],a=r[1];switch(t.luminosity){case"bright":n=55;break;case"dark":n=a-10;break;case"light":a=55;break}return xR([n,a],t.seed)}function p4e(e,t,r){var n=v4e(e,t),a=100;switch(r.luminosity){case"dark":a=n+20;break;case"light":n=(a+n)/2;break;case"random":n=0,a=100;break}return xR([n,a],r.seed)}function v4e(e,t){for(var r=Fhe(e).lowerBounds,n=0;n<r.length-1;n++){var a=r[n][0],i=r[n][1],o=r[n+1][0],s=r[n+1][1];if(t>=a&&t<=o){var l=(s-i)/(o-a),c=i-l*a;return l*t+c}}return 0}function m4e(e){var t=parseInt(e,10);if(!Number.isNaN(t)&&t<360&&t>0)return[t,t];if(typeof e=="string"){var r=BY.find(function(o){return o.name===e});if(r){var n=Nhe(r);if(n.hueRange)return n.hueRange}var a=new Fl(e);if(a.isValid){var i=a.toHsv().h;return[i,i]}}return[0,360]}function Fhe(e){e>=334&&e<=360&&(e-=360);for(var t=0,r=BY;t<r.length;t++){var n=r[t],a=Nhe(n);if(a.hueRange&&e>=a.hueRange[0]&&e<=a.hueRange[1])return a}throw Error("Color not found")}function xR(e,t){if(t===void 0)return Math.floor(e[0]+Math.random()*(e[1]+1-e[0]));var r=e[1]||1,n=e[0]||0;t=(t*9301+49297)%233280;var a=t/233280;return Math.floor(n+a*(r-n))}function Nhe(e){var t=e.lowerBounds[0][0],r=e.lowerBounds[e.lowerBounds.length-1][0],n=e.lowerBounds[e.lowerBounds.length-1][1],a=e.lowerBounds[0][1];return{name:e.name,hueRange:e.hueRange,lowerBounds:e.lowerBounds,saturationRange:[t,r],brightnessRange:[n,a]}}var BY=[{name:"monochrome",hueRange:null,lowerBounds:[[0,0],[100,0]]},{name:"red",hueRange:[-26,18],lowerBounds:[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]},{name:"orange",hueRange:[19,46],lowerBounds:[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]},{name:"yellow",hueRange:[47,62],lowerBounds:[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]},{name:"green",hueRange:[63,178],lowerBounds:[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]},{name:"blue",hueRange:[179,257],lowerBounds:[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]},{name:"purple",hueRange:[258,282],lowerBounds:[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]},{name:"pink",hueRange:[283,334],lowerBounds:[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]]}];const E4e=Object.freeze(Object.defineProperty({__proto__:null,TinyColor:Fl,bounds:BY,convertDecimalToHex:CY,convertHexToDecimal:Hj,default:BK,fromRatio:d4e,hslToRgb:Mhe,hsvToRgb:Ihe,inputToRGB:nv,isReadable:The,isValidCSSUnit:sd,legacyRandom:f4e,mostReadable:Qhe,names:BR,numberInputToObject:She,parseIntFromHex:Il,random:Dhe,readability:wY,rgbToHex:wR,rgbToHsl:Yj,rgbToHsv:CR,rgbToRgb:xhe,rgbaToArgbHex:Uj,rgbaToHex:bhe,stringInputToObject:Rhe,tinycolor:BK,toMsFilter:u4e},Symbol.toStringTag,{value:"Module"}));var FM=2,xK=.16,y4e=.05,C4e=.05,w4e=.15,_he=5,khe=4,B4e=[{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 MK(e){var t=e.r,r=e.g,n=e.b,a=CR(t,r,n);return{h:a.h*360,s:a.s,v:a.v}}function NM(e){var t=e.r,r=e.g,n=e.b;return"#".concat(wR(t,r,n,!1))}function x4e(e,t,r){var n=r/100,a={r:(t.r-e.r)*n+e.r,g:(t.g-e.g)*n+e.g,b:(t.b-e.b)*n+e.b};return a}function IK(e,t,r){var n;return Math.round(e.h)>=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-FM*t:Math.round(e.h)+FM*t:n=r?Math.round(e.h)+FM*t:Math.round(e.h)-FM*t,n<0?n+=360:n>=360&&(n-=360),n}function bK(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-xK*t:t===khe?n=e.s+xK:n=e.s+y4e*t,n>1&&(n=1),r&&t===_he&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function SK(e,t,r){var n;return r?n=e.v+C4e*t:n=e.v-w4e*t,n>1&&(n=1),Number(n.toFixed(2))}function LE(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=nv(e),a=_he;a>0;a-=1){var i=MK(n),o=NM(nv({h:IK(i,a,!0),s:bK(i,a,!0),v:SK(i,a,!0)}));r.push(o)}r.push(NM(n));for(var s=1;s<=khe;s+=1){var l=MK(n),c=NM(nv({h:IK(l,s),s:bK(l,s),v:SK(l,s)}));r.push(c)}return t.theme==="dark"?B4e.map(function(A){var u=A.index,d=A.opacity,f=NM(x4e(nv(t.backgroundColor||"#141414"),nv(r[u]),d*100));return f}):r}var yv={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},cs={},DS={};Object.keys(yv).forEach(function(e){cs[e]=LE(yv[e]),cs[e].primary=cs[e][5],DS[e]=LE(yv[e],{theme:"dark",backgroundColor:"#141414"}),DS[e].primary=DS[e][5]});var M4e=cs.red,I4e=cs.volcano,b4e=cs.gold,S4e=cs.orange,R4e=cs.yellow,T4e=cs.lime,Q4e=cs.green,D4e=cs.cyan,F4e=cs.blue,N4e=cs.geekblue,_4e=cs.purple,k4e=cs.magenta,P4e=cs.grey;const O4e=Object.freeze(Object.defineProperty({__proto__:null,blue:F4e,cyan:D4e,geekblue:N4e,generate:LE,gold:b4e,green:Q4e,grey:P4e,lime:T4e,magenta:k4e,orange:S4e,presetDarkPalettes:DS,presetPalettes:cs,presetPrimaryColors:yv,purple:_4e,red:M4e,volcano:I4e,yellow:R4e},Symbol.toStringTag,{value:"Module"}));var Gj={},j4e=function(t){};function z4e(e,t){}function L4e(e,t){}function Y4e(){Gj={}}function Phe(e,t,r){!t&&!Gj[r]&&(e(!1,r),Gj[r]=!0)}function Ea(e,t){Phe(z4e,e,t)}function Ohe(e,t){Phe(L4e,e,t)}Ea.preMessage=j4e;Ea.resetWarned=Y4e;Ea.noteOnce=Ohe;function _s(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Cv(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var r=t;r;){if(r===e)return!0;r=r.parentNode}return!1}var RK="data-rc-order",TK="data-rc-priority",U4e="rc-util-key",Kj=new Map;function jhe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):U4e}function hQ(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function H4e(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function xY(e){return Array.from((Kj.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function zhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_s())return null;var r=t.csp,n=t.prepend,a=t.priority,i=a===void 0?0:a,o=H4e(n),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(RK,o),s&&i&&l.setAttribute(TK,"".concat(i)),r!=null&&r.nonce&&(l.nonce=r?.nonce),l.innerHTML=e;var c=hQ(t),A=c.firstChild;if(n){if(s){var u=(t.styles||xY(c)).filter(function(d){if(!["prepend","prependQueue"].includes(d.getAttribute(RK)))return!1;var f=Number(d.getAttribute(TK)||0);return i>=f});if(u.length)return c.insertBefore(l,u[u.length-1].nextSibling),l}c.insertBefore(l,A)}else c.appendChild(l);return l}function Lhe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=hQ(t);return(t.styles||xY(r)).find(function(n){return n.getAttribute(jhe(t))===e})}function Vj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Lhe(e,t);if(r){var n=hQ(t);n.removeChild(r)}}function G4e(e,t){var r=Kj.get(e);if(!r||!Cv(document,r)){var n=zhe("",t),a=n.parentNode;Kj.set(e,a),e.removeChild(n)}}function UB(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=hQ(r),a=xY(n),i=se(se({},r),{},{styles:a});G4e(n,i);var o=Lhe(t,i);if(o){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var c;o.nonce=(c=i.csp)===null||c===void 0?void 0:c.nonce}return o.innerHTML!==e&&(o.innerHTML=e),o}var A=zhe(e,i);return A.setAttribute(jhe(i),t),A}var y5,QK;function Yhe(){if(QK)return y5;QK=1;var e=typeof Ho=="object"&&Ho&&Ho.Object===Object&&Ho;return y5=e,y5}var C5,DK;function du(){if(DK)return C5;DK=1;var e=Yhe(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return C5=r,C5}var w5,FK;function py(){if(FK)return w5;FK=1;var e=du(),t=e.Symbol;return w5=t,w5}var B5,NK;function MY(){if(NK)return B5;NK=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=Array(a);++n<a;)i[n]=r(t[n],n,t);return i}return B5=e,B5}var x5,_K;function Ps(){if(_K)return x5;_K=1;var e=Array.isArray;return x5=e,x5}var M5,kK;function K4e(){if(kK)return M5;kK=1;var e=py(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,a=e?e.toStringTag:void 0;function i(o){var s=r.call(o,a),l=o[a];try{o[a]=void 0;var c=!0}catch{}var A=n.call(o);return c&&(s?o[a]=l:delete o[a]),A}return M5=i,M5}var I5,PK;function V4e(){if(PK)return I5;PK=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return I5=r,I5}var b5,OK;function Zv(){if(OK)return b5;OK=1;var e=py(),t=K4e(),r=V4e(),n="[object Null]",a="[object Undefined]",i=e?e.toStringTag:void 0;function o(s){return s==null?s===void 0?a:n:i&&i in Object(s)?t(s):r(s)}return b5=o,b5}var S5,jK;function Sd(){if(jK)return S5;jK=1;function e(t){return t!=null&&typeof t=="object"}return S5=e,S5}var R5,zK;function HB(){if(zK)return R5;zK=1;var e=Zv(),t=Sd(),r="[object Symbol]";function n(a){return typeof a=="symbol"||t(a)&&e(a)==r}return R5=n,R5}var T5,LK;function J4e(){if(LK)return T5;LK=1;var e=py(),t=MY(),r=Ps(),n=HB(),a=e?e.prototype:void 0,i=a?a.toString:void 0;function o(s){if(typeof s=="string")return s;if(r(s))return t(s,o)+"";if(n(s))return i?i.call(s):"";var l=s+"";return l=="0"&&1/s==-1/0?"-0":l}return T5=o,T5}var Q5,YK;function GB(){if(YK)return Q5;YK=1;var e=J4e();function t(r){return r==null?"":e(r)}return Q5=t,Q5}var D5,UK;function W4e(){if(UK)return D5;UK=1;function e(t,r,n){var a=-1,i=t.length;r<0&&(r=-r>i?0:i+r),n=n>i?i:n,n<0&&(n+=i),i=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(i);++a<i;)o[a]=t[a+r];return o}return D5=e,D5}var F5,HK;function X4e(){if(HK)return F5;HK=1;var e=W4e();function t(r,n,a){var i=r.length;return a=a===void 0?i:a,!n&&a>=i?r:e(r,n,a)}return F5=t,F5}var N5,GK;function Uhe(){if(GK)return N5;GK=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="\\u200d",s=RegExp("["+o+e+a+i+"]");function l(c){return s.test(c)}return N5=l,N5}var _5,KK;function q4e(){if(KK)return _5;KK=1;function e(t){return t.split("")}return _5=e,_5}var k5,VK;function Z4e(){if(VK)return k5;VK=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\ufe0e\\ufe0f",o="["+e+"]",s="["+a+"]",l="\\ud83c[\\udffb-\\udfff]",c="(?:"+s+"|"+l+")",A="[^"+e+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",f="\\u200d",h=c+"?",g="["+i+"]?",p="(?:"+f+"(?:"+[A,u,d].join("|")+")"+g+h+")*",m=g+h+p,y="(?:"+[A+s+"?",s,u,d,o].join("|")+")",C=RegExp(l+"(?="+l+")|"+y+m,"g");function w(B){return B.match(C)||[]}return k5=w,k5}var P5,JK;function $4e(){if(JK)return P5;JK=1;var e=q4e(),t=Uhe(),r=Z4e();function n(a){return t(a)?r(a):e(a)}return P5=n,P5}var O5,WK;function eDe(){if(WK)return O5;WK=1;var e=X4e(),t=Uhe(),r=$4e(),n=GB();function a(i){return function(o){o=n(o);var s=t(o)?r(o):void 0,l=s?s[0]:o.charAt(0),c=s?e(s,1).join(""):o.slice(1);return l[i]()+c}}return O5=a,O5}var j5,XK;function tDe(){if(XK)return j5;XK=1;var e=eDe(),t=e("toUpperCase");return j5=t,j5}var z5,qK;function rDe(){if(qK)return z5;qK=1;var e=GB(),t=tDe();function r(n){return t(e(n).toLowerCase())}return z5=r,z5}var L5,ZK;function nDe(){if(ZK)return L5;ZK=1;function e(t,r,n,a){var i=-1,o=t==null?0:t.length;for(a&&o&&(n=t[++i]);++i<o;)n=r(n,t[i],i,t);return n}return L5=e,L5}var Y5,$K;function aDe(){if($K)return Y5;$K=1;function e(t){return function(r){return t?.[r]}}return Y5=e,Y5}var U5,eV;function iDe(){if(eV)return U5;eV=1;var e=aDe(),t={À:"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"},r=e(t);return U5=r,U5}var H5,tV;function oDe(){if(tV)return H5;tV=1;var e=iDe(),t=GB(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",a="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",o=n+a+i,s="["+o+"]",l=RegExp(s,"g");function c(A){return A=t(A),A&&A.replace(r,e).replace(l,"")}return H5=c,H5}var G5,rV;function sDe(){if(rV)return G5;rV=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return G5=t,G5}var K5,nV;function lDe(){if(nV)return K5;nV=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return K5=t,K5}var V5,aV;function cDe(){if(aV)return V5;aV=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",a=t+r+n,i="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",s="\\xac\\xb1\\xd7\\xf7",l="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",c="\\u2000-\\u206f",A=" \\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",u="A-Z\\xc0-\\xd6\\xd8-\\xde",d="\\ufe0e\\ufe0f",f=s+l+c+A,h="['’]",g="["+f+"]",p="["+a+"]",m="\\d+",y="["+i+"]",C="["+o+"]",w="[^"+e+f+m+i+o+u+"]",B="\\ud83c[\\udffb-\\udfff]",x="(?:"+p+"|"+B+")",M="[^"+e+"]",S="(?:\\ud83c[\\udde6-\\uddff]){2}",R="[\\ud800-\\udbff][\\udc00-\\udfff]",b="["+u+"]",T="\\u200d",D="(?:"+C+"|"+w+")",F="(?:"+b+"|"+w+")",N="(?:"+h+"(?:d|ll|m|re|s|t|ve))?",_="(?:"+h+"(?:D|LL|M|RE|S|T|VE))?",P=x+"?",k="["+d+"]?",j="(?:"+T+"(?:"+[M,S,R].join("|")+")"+k+P+")*",Y="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",X="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",K=k+P+j,U="(?:"+[y,S,R].join("|")+")"+K,H=RegExp([b+"?"+C+"+"+N+"(?="+[g,b,"$"].join("|")+")",F+"+"+_+"(?="+[g,b+D,"$"].join("|")+")",b+"?"+D+"+"+N,b+"+"+_,X,Y,m,U].join("|"),"g");function L(V){return V.match(H)||[]}return V5=L,V5}var J5,iV;function ADe(){if(iV)return J5;iV=1;var e=sDe(),t=lDe(),r=GB(),n=cDe();function a(i,o,s){return i=r(i),o=s?void 0:o,o===void 0?t(i)?n(i):e(i):i.match(o)||[]}return J5=a,J5}var W5,oV;function Hhe(){if(oV)return W5;oV=1;var e=nDe(),t=oDe(),r=ADe(),n="['’]",a=RegExp(n,"g");function i(o){return function(s){return e(r(t(s).replace(a,"")),o,"")}}return W5=i,W5}var X5,sV;function Ghe(){if(sV)return X5;sV=1;var e=rDe(),t=Hhe(),r=t(function(n,a,i){return a=a.toLowerCase(),n+(i?e(a):a)});return X5=r,X5}var uDe=Ghe();const dDe=gn(uDe);function fDe(e,t){Ea(e,"[@ant-design/icons] ".concat(t))}function lV(e){return Ar(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(Ar(e.icon)==="object"||typeof e.icon=="function")}function cV(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];switch(r){case"class":t.className=n,delete t.class;break;default:delete t[r],t[dDe(r)]=n}return t},{})}function Jj(e,t,r){return r?le.createElement(e.tag,se(se({key:t},cV(e.attrs)),r),(e.children||[]).map(function(n,a){return Jj(n,"".concat(t,"-").concat(e.tag,"-").concat(a))})):le.createElement(e.tag,se({key:t},cV(e.attrs)),(e.children||[]).map(function(n,a){return Jj(n,"".concat(t,"-").concat(e.tag,"-").concat(a))}))}function Khe(e){return LE(e)[0]}function Vhe(e){return e?Array.isArray(e)?e:[e]:[]}var hDe=`
.anticon {
  display: inline-flex;
  alignItems: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,gDe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:hDe,r=E.useContext(EY),n=r.csp;E.useEffect(function(){UB(t,"@ant-design-icons",{prepend:!0,csp:n})},[])},pDe=["icon","className","onClick","style","primaryColor","secondaryColor"],Iw={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function vDe(e){var t=e.primaryColor,r=e.secondaryColor;Iw.primaryColor=t,Iw.secondaryColor=r||Khe(t),Iw.calculated=!!r}function mDe(){return se({},Iw)}var vy=function(t){var r=t.icon,n=t.className,a=t.onClick,i=t.style,o=t.primaryColor,s=t.secondaryColor,l=An(t,pDe),c=Iw;if(o&&(c={primaryColor:o,secondaryColor:s||Khe(o)}),gDe(),fDe(lV(r),"icon should be icon definiton, but got ".concat(r)),!lV(r))return null;var A=r;return A&&typeof A.icon=="function"&&(A=se(se({},A),{},{icon:A.icon(c.primaryColor,c.secondaryColor)})),Jj(A.icon,"svg-".concat(A.name),se({className:n,onClick:a,style:i,"data-icon":A.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l))};vy.displayName="IconReact";vy.getTwoToneColors=mDe;vy.setTwoToneColors=vDe;function Jhe(e){var t=Vhe(e),r=Je(t,2),n=r[0],a=r[1];return vy.setTwoToneColors({primaryColor:n,secondaryColor:a})}function EDe(){var e=vy.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var yDe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];Jhe("#1890ff");var Er=E.forwardRef(function(e,t){var r=e.className,n=e.icon,a=e.spin,i=e.rotate,o=e.tabIndex,s=e.onClick,l=e.twoToneColor,c=An(e,yDe),A=E.useContext(EY),u=A.prefixCls,d=u===void 0?"anticon":u,f=A.rootClassName,h=dt(f,d,te(te({},"".concat(d,"-").concat(n.name),!!n.name),"".concat(d,"-spin"),!!a||n.name==="loading"),r),g=o;g===void 0&&s&&(g=-1);var p=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,m=Vhe(l),y=Je(m,2),C=y[0],w=y[1];return E.createElement("span",se(se({role:"img","aria-label":n.name},c),{},{ref:t,tabIndex:g,onClick:s,className:h}),E.createElement(vy,{icon:n,primaryColor:C,secondaryColor:w,style:p}))});Er.displayName="AntdIcon";Er.getTwoToneColor=EDe;Er.setTwoToneColor=Jhe;var CDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908 640H804V488c0-4.4-3.6-8-8-8H548v-96h108c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16H368c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h108v96H228c-4.4 0-8 3.6-8 8v152H116c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16H292v-88h440v88H620c-8.8 0-16 7.2-16 16v288c0 8.8 7.2 16 16 16h288c8.8 0 16-7.2 16-16V656c0-8.8-7.2-16-16-16zm-564 76v168H176V716h168zm84-408V140h168v168H428zm420 576H680V716h168v168z"}}]},name:"apartment",theme:"outlined"},wDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:CDe}))},BDe=E.forwardRef(wDe),xDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M862 465.3h-81c-4.6 0-9 2-12.1 5.5L550 723.1V160c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v563.1L255.1 470.8c-3-3.5-7.4-5.5-12.1-5.5h-81c-6.8 0-10.5 8.1-6 13.2L487.9 861a31.96 31.96 0 0048.3 0L868 478.5c4.5-5.2.8-13.2-6-13.2z"}}]},name:"arrow-down",theme:"outlined"},MDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:xDe}))},IDe=E.forwardRef(MDe),bDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},SDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:bDe}))},MR=E.forwardRef(SDe),RDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"},TDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:RDe}))},Whe=E.forwardRef(TDe),QDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855 160.1l-189.2 23.5c-6.6.8-9.3 8.8-4.7 13.5l54.7 54.7-153.5 153.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l153.6-153.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L863.9 169a7.9 7.9 0 00-8.9-8.9zM416.6 562.3a8.03 8.03 0 00-11.3 0L251.8 715.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L160.1 855c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 153.6-153.6c3.1-3.1 3.1-8.2 0-11.3l-45.2-45z"}}]},name:"arrows-alt",theme:"outlined"},DDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:QDe}))},FDe=E.forwardRef(DDe),NDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"},_De=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:NDe}))},Xhe=E.forwardRef(_De),kDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zM668 345.9L621.5 312 572 347.4V124h96v221.9z"}}]},name:"book",theme:"filled"},PDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:kDe}))},ODe=E.forwardRef(PDe),jDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M304 280h56c4.4 0 8-3.6 8-8 0-28.3 5.9-53.2 17.1-73.5 10.6-19.4 26-34.8 45.4-45.4C450.9 142 475.7 136 504 136h16c28.3 0 53.2 5.9 73.5 17.1 19.4 10.6 34.8 26 45.4 45.4C650 218.9 656 243.7 656 272c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-40-8.8-76.7-25.9-108.1a184.31 184.31 0 00-74-74C596.7 72.8 560 64 520 64h-16c-40 0-76.7 8.8-108.1 25.9a184.31 184.31 0 00-74 74C304.8 195.3 296 232 296 272c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M940 512H792V412c76.8 0 139-62.2 139-139 0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8a63 63 0 01-63 63H232a63 63 0 01-63-63c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8 0 76.8 62.2 139 139 139v100H84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h148v96c0 6.5.2 13 .7 19.3C164.1 728.6 116 796.7 116 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-44.2 23.9-82.9 59.6-103.7a273 273 0 0022.7 49c24.3 41.5 59 76.2 100.5 100.5S460.5 960 512 960s99.8-13.9 141.3-38.2a281.38 281.38 0 00123.2-149.5A120 120 0 01836 876c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8 0-79.3-48.1-147.4-116.7-176.7.4-6.4.7-12.8.7-19.3v-96h148c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM716 680c0 36.8-9.7 72-27.8 102.9-17.7 30.3-43 55.6-73.3 73.3C584 874.3 548.8 884 512 884s-72-9.7-102.9-27.8c-30.3-17.7-55.6-43-73.3-73.3A202.75 202.75 0 01308 680V412h408v268z"}}]},name:"bug",theme:"outlined"},zDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:jDe}))},FS=E.forwardRef(zDe),LDe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},YDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:LDe}))},qhe=E.forwardRef(YDe),UDe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},HDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:UDe}))},GDe=E.forwardRef(HDe),KDe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},VDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:KDe}))},JDe=E.forwardRef(VDe),WDe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M715.8 493.5L335 165.1c-14.2-12.2-35-1.2-35 18.5v656.8c0 19.7 20.8 30.7 35 18.5l380.8-328.4c10.9-9.4 10.9-27.6 0-37z"}}]},name:"caret-right",theme:"outlined"},XDe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:WDe}))},qDe=E.forwardRef(XDe),ZDe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},$De=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:ZDe}))},e5e=E.forwardRef($De),t5e={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"},r5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:t5e}))},KB=E.forwardRef(r5e),n5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"},a5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:n5e}))},gQ=E.forwardRef(a5e),i5e={icon:function(t,r){return{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",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm193.4 225.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.3 0 19.9 5 25.9 13.3l71.2 98.8 157.2-218c6-8.4 15.7-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.4 12.7z",fill:r}},{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z",fill:t}}]}},name:"check-circle",theme:"twotone"},o5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:i5e}))},IR=E.forwardRef(o5e),s5e={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"},l5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:s5e}))},lA=E.forwardRef(l5e),c5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},A5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:c5e}))},IY=E.forwardRef(A5e),u5e={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"},d5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:u5e}))},fu=E.forwardRef(d5e),f5e={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},h5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:f5e}))},pQ=E.forwardRef(h5e),g5e={icon:function(t,r){return{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",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm171.8 527.1c1.2 1.5 1.9 3.3 1.9 5.2 0 4.5-3.6 8-8 8l-66-.3-99.3-118.4-99.3 118.5-66.1.3c-4.4 0-8-3.6-8-8 0-1.9.7-3.7 1.9-5.2L471 512.3l-130.1-155a8.32 8.32 0 01-1.9-5.2c0-4.5 3.6-8 8-8l66.1.3 99.3 118.4 99.4-118.5 66-.3c4.4 0 8 3.6 8 8 0 1.9-.6 3.8-1.8 5.2l-130.1 155 129.9 154.9z",fill:r}},{tag:"path",attrs:{d:"M685.8 352c0-4.4-3.6-8-8-8l-66 .3-99.4 118.5-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155-130.1 154.9a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3 99.3-118.5L611.7 680l66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.9 512.2l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z",fill:t}}]}},name:"close-circle",theme:"twotone"},p5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:g5e}))},bR=E.forwardRef(p5e),v5e={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"},m5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:v5e}))},Go=E.forwardRef(m5e),E5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M516 673c0 4.4 3.4 8 7.5 8h185c4.1 0 7.5-3.6 7.5-8v-48c0-4.4-3.4-8-7.5-8h-185c-4.1 0-7.5 3.6-7.5 8v48zm-194.9 6.1l192-161c3.8-3.2 3.8-9.1 0-12.3l-192-160.9A7.95 7.95 0 00308 351v62.7c0 2.4 1 4.6 2.9 6.1L420.7 512l-109.8 92.2a8.1 8.1 0 00-2.9 6.1V673c0 6.8 7.9 10.5 13.1 6.1zM880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"code",theme:"outlined"},y5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:E5e}))},C5e=E.forwardRef(y5e),w5e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M275 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm613 144H768c0-39.8-32.2-72-72-72H200c-39.8 0-72 32.2-72 72v248c0 3.4.2 6.7.7 9.9-.5 7-.7 14-.7 21.1 0 176.7 143.3 320 320 320 160.1 0 292.7-117.5 316.3-271H888c39.8 0 72-32.2 72-72V497c0-39.8-32.2-72-72-72zM696 681h-1.1c.7 7.6 1.1 15.2 1.1 23 0 137-111 248-248 248S200 841 200 704c0-7.8.4-15.4 1.1-23H200V425h496v256zm192-8H776V497h112v176zM613 281c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36zm-170 0c19.9 0 36-16.1 36-36V36c0-19.9-16.1-36-36-36s-36 16.1-36 36v209c0 19.9 16.1 36 36 36z"}}]},name:"coffee",theme:"outlined"},B5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:w5e}))},x5e=E.forwardRef(B5e),M5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M180 176h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zm724 0h-60c-4.4 0-8 3.6-8 8v656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V184c0-4.4-3.6-8-8-8zM785.3 504.3L657.7 403.6a7.23 7.23 0 00-11.7 5.7V476H378v-62.8c0-6-7-9.4-11.7-5.7L238.7 508.3a7.14 7.14 0 000 11.3l127.5 100.8c4.7 3.7 11.7.4 11.7-5.7V548h268v62.8c0 6 7 9.4 11.7 5.7l127.5-100.8c3.8-2.9 3.8-8.5.2-11.4z"}}]},name:"column-width",theme:"outlined"},I5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:M5e}))},b5e=E.forwardRef(I5e),S5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M301.3 496.7c-23.8 0-40.2-10.5-41.6-26.9H205c.9 43.4 36.9 70.3 93.9 70.3 59.1 0 95-28.4 95-75.5 0-35.8-20-55.9-64.5-64.5l-29.1-5.6c-23.8-4.7-33.8-11.9-33.8-24.2 0-15 13.3-24.5 33.4-24.5 20.1 0 35.3 11.1 36.6 27h53c-.9-41.7-37.5-70.3-90.3-70.3-54.4 0-89.7 28.9-89.7 73 0 35.5 21.2 58 62.5 65.8l29.7 5.9c25.8 5.2 35.6 11.9 35.6 24.4.1 14.7-14.5 25.1-36 25.1z"}},{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}},{tag:"path",attrs:{d:"M828.5 486.7h-95.8V308.5h-57.4V534h153.2zm-298.6 53.4c14.1 0 27.2-2 39.1-5.8l13.3 20.3h53.3L607.9 511c21.1-20 33-51.1 33-89.8 0-73.3-43.3-118.8-110.9-118.8s-111.2 45.3-111.2 118.8c-.1 73.7 43 118.9 111.1 118.9zm0-190c31.6 0 52.7 27.7 52.7 71.1 0 16.7-3.6 30.6-10 40.5l-5.2-6.9h-48.8L542 491c-3.9.9-8 1.4-12.2 1.4-31.7 0-52.8-27.5-52.8-71.2.1-43.6 21.2-71.1 52.9-71.1z"}}]},name:"console-sql",theme:"outlined"},R5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:S5e}))},my=E.forwardRef(R5e),T5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656zM340 683v77c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-77c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198V264c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v221c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8s0 .1.1.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8 0 0 0 .1-.1.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7zM620 539v221c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V539c-10.1 3.3-20.8 5-32 5s-21.9-1.8-32-5zm64-198v-77c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v77c10.1-3.3 20.8-5 32-5s21.9 1.8 32 5zm-64 198c10.1 3.3 20.8 5 32 5s21.9-1.8 32-5c41.8-13.5 72-52.7 72-99s-30.2-85.5-72-99c-10.1-3.3-20.8-5-32-5s-21.9 1.8-32 5c-41.8 13.5-72 52.7-72 99s30.2 85.5 72 99zm.1-115.7c.3-.6.7-1.2 1-1.8v-.1l1.2-1.8c.1-.2.2-.3.3-.5.3-.5.7-.9 1-1.4.1-.1.2-.3.3-.4.5-.6.9-1.1 1.4-1.6l.3-.3 1.2-1.2.4-.4c.5-.5 1-.9 1.6-1.4.6-.5 1.1-.9 1.7-1.3.2-.1.3-.2.5-.3.5-.3.9-.7 1.4-1 .1-.1.3-.2.4-.3.6-.4 1.2-.7 1.9-1.1.1-.1.3-.1.4-.2.5-.3 1-.5 1.6-.8l.6-.3c.7-.3 1.3-.6 2-.8.7-.3 1.4-.5 2.1-.7.2-.1.4-.1.6-.2.6-.2 1.1-.3 1.7-.4.2 0 .3-.1.5-.1.7-.2 1.5-.3 2.2-.4.2 0 .3 0 .5-.1.6-.1 1.2-.1 1.8-.2h.6c.8 0 1.5-.1 2.3-.1s1.5 0 2.3.1h.6c.6 0 1.2.1 1.8.2.2 0 .3 0 .5.1.7.1 1.5.2 2.2.4.2 0 .3.1.5.1.6.1 1.2.3 1.7.4.2.1.4.1.6.2.7.2 1.4.4 2.1.7.7.2 1.3.5 2 .8l.6.3c.5.2 1.1.5 1.6.8.1.1.3.1.4.2.6.3 1.3.7 1.9 1.1.1.1.3.2.4.3.5.3 1 .6 1.4 1 .2.1.3.2.5.3.6.4 1.2.9 1.7 1.3s1.1.9 1.6 1.4l.4.4 1.2 1.2.3.3c.5.5 1 1.1 1.4 1.6.1.1.2.3.3.4.4.4.7.9 1 1.4.1.2.2.3.3.5l1.2 1.8v.1a36.18 36.18 0 015.1 18.5c0 6-1.5 11.7-4.1 16.7-.3.6-.7 1.2-1 1.8v.1l-1.2 1.8c-.1.2-.2.3-.3.5-.3.5-.7.9-1 1.4-.1.1-.2.3-.3.4-.5.6-.9 1.1-1.4 1.6l-.3.3-1.2 1.2-.4.4c-.5.5-1 .9-1.6 1.4-.6.5-1.1.9-1.7 1.3-.2.1-.3.2-.5.3-.5.3-.9.7-1.4 1-.1.1-.3.2-.4.3-.6.4-1.2.7-1.9 1.1-.1.1-.3.1-.4.2-.5.3-1 .5-1.6.8l-.6.3c-.7.3-1.3.6-2 .8-.7.3-1.4.5-2.1.7-.2.1-.4.1-.6.2-.6.2-1.1.3-1.7.4-.2 0-.3.1-.5.1-.7.2-1.5.3-2.2.4-.2 0-.3 0-.5.1-.6.1-1.2.1-1.8.2h-.6c-.8 0-1.5.1-2.3.1s-1.5 0-2.3-.1h-.6c-.6 0-1.2-.1-1.8-.2-.2 0-.3 0-.5-.1-.7-.1-1.5-.2-2.2-.4-.2 0-.3-.1-.5-.1-.6-.1-1.2-.3-1.7-.4-.2-.1-.4-.1-.6-.2-.7-.2-1.4-.4-2.1-.7-.7-.2-1.3-.5-2-.8l-.6-.3c-.5-.2-1.1-.5-1.6-.8-.1-.1-.3-.1-.4-.2-.6-.3-1.3-.7-1.9-1.1-.1-.1-.3-.2-.4-.3-.5-.3-1-.6-1.4-1-.2-.1-.3-.2-.5-.3-.6-.4-1.2-.9-1.7-1.3s-1.1-.9-1.6-1.4l-.4-.4-1.2-1.2-.3-.3c-.5-.5-1-1.1-1.4-1.6-.1-.1-.2-.3-.3-.4-.4-.4-.7-.9-1-1.4-.1-.2-.2-.3-.3-.5l-1.2-1.8v-.1c-.4-.6-.7-1.2-1-1.8-2.6-5-4.1-10.7-4.1-16.7s1.5-11.7 4.1-16.7z"}}]},name:"control",theme:"outlined"},Q5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:T5e}))},AV=E.forwardRef(Q5e),D5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},F5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:D5e}))},$v=E.forwardRef(F5e),N5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},_5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:N5e}))},ki=E.forwardRef(_5e),k5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M632 698.3l141.9-112a8 8 0 000-12.6L632 461.7c-5.3-4.2-13-.4-13 6.3v76H295c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h324v76c0 6.7 7.8 10.4 13 6.3zm261.3-405L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v278c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V422c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-83.5c0-17-6.7-33.2-18.7-45.2zM640 288H384V184h256v104zm264 436h-56c-4.4 0-8 3.6-8 8v108H184V732c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v148c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V732c0-4.4-3.6-8-8-8z"}}]},name:"delivered-procedure",theme:"outlined"},P5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:k5e}))},uV=E.forwardRef(P5e),O5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},j5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:O5e}))},z5e=E.forwardRef(j5e),L5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Y5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:L5e}))},U5e=E.forwardRef(Y5e),H5e={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"},G5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:H5e}))},VB=E.forwardRef(G5e),K5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},V5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:K5e}))},vQ=E.forwardRef(V5e),J5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},W5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:J5e}))},bY=E.forwardRef(W5e),X5e={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"},q5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:X5e}))},SY=E.forwardRef(q5e),Z5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},$5e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:Z5e}))},eFe=E.forwardRef($5e),tFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 289.1a362.49 362.49 0 00-79.9-115.7 370.83 370.83 0 00-118.2-77.8C610.7 76.6 562.1 67 512 67c-50.1 0-98.7 9.6-144.5 28.5-44.3 18.3-84 44.5-118.2 77.8A363.6 363.6 0 00169.4 289c-19.5 45-29.4 92.8-29.4 142 0 70.6 16.9 140.9 50.1 208.7 26.7 54.5 64 107.6 111 158.1 80.3 86.2 164.5 138.9 188.4 153a43.9 43.9 0 0022.4 6.1c7.8 0 15.5-2 22.4-6.1 23.9-14.1 108.1-66.8 188.4-153 47-50.4 84.3-103.6 111-158.1C867.1 572 884 501.8 884 431.1c0-49.2-9.9-97-29.4-142zM512 880.2c-65.9-41.9-300-207.8-300-449.1 0-77.9 31.1-151.1 87.6-206.3C356.3 169.5 431.7 139 512 139s155.7 30.5 212.4 85.9C780.9 280 812 353.2 812 431.1c0 241.3-234.1 407.2-300 449.1zm0-617.2c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 551c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 439c0-29.9 11.7-58 32.8-79.2C454 338.6 482.1 327 512 327c29.9 0 58 11.6 79.2 32.8C612.4 381 624 409.1 624 439c0 29.9-11.6 58-32.8 79.2z"}}]},name:"environment",theme:"outlined"},rFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:tFe}))},nFe=E.forwardRef(rFe),aFe={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"},iFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:aFe}))},JB=E.forwardRef(iFe),oFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},sFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:oFe}))},Ey=E.forwardRef(sFe),lFe={icon:function(t,r){return{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",fill:t}},{tag:"path",attrs:{d:"M512 140c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm-32 156c0-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",fill:r}},{tag:"path",attrs:{d:"M488 576h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8zm-24 112a48 48 0 1096 0 48 48 0 10-96 0z",fill:t}}]}},name:"exclamation-circle",theme:"twotone"},cFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:lFe}))},AFe=E.forwardRef(cFe),uFe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"},dFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:uFe}))},SR=E.forwardRef(dFe),fFe={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"},hFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:fFe}))},RY=E.forwardRef(hFe),gFe={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"},pFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:gFe}))},TY=E.forwardRef(pFe),vFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM575.34 477.84l-61.22 102.3L452.3 477.8a12 12 0 00-10.27-5.79h-38.44a12 12 0 00-6.4 1.85 12 12 0 00-3.75 16.56l82.34 130.42-83.45 132.78a12 12 0 00-1.84 6.39 12 12 0 0012 12h34.46a12 12 0 0010.21-5.7l62.7-101.47 62.3 101.45a12 12 0 0010.23 5.72h37.48a12 12 0 006.48-1.9 12 12 0 003.62-16.58l-83.83-130.55 85.3-132.47a12 12 0 001.9-6.5 12 12 0 00-12-12h-35.7a12 12 0 00-10.29 5.84z"}}]},name:"file-excel",theme:"filled"},mFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:vFe}))},Zhe=E.forwardRef(mFe),EFe={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 42h216v494zM514.1 580.1l-61.8-102.4c-2.2-3.6-6.1-5.8-10.3-5.8h-38.4c-2.3 0-4.5.6-6.4 1.9-5.6 3.5-7.3 10.9-3.7 16.6l82.3 130.4-83.4 132.8a12.04 12.04 0 0010.2 18.4h34.5c4.2 0 8-2.2 10.2-5.7L510 664.8l62.3 101.4c2.2 3.6 6.1 5.7 10.2 5.7H620c2.3 0 4.5-.7 6.5-1.9 5.6-3.6 7.2-11 3.6-16.6l-84-130.4 85.3-132.5a12.04 12.04 0 00-10.1-18.5h-35.7c-4.2 0-8.1 2.2-10.3 5.8l-61.2 102.3z"}}]},name:"file-excel",theme:"outlined"},yFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:EFe}))},$he=E.forwardRef(yFe),CFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},wFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:CFe}))},QY=E.forwardRef(wFe),BFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file-pdf",theme:"outlined"},xFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:BFe}))},dV=E.forwardRef(xFe),MFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},IFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:MFe}))},bFe=E.forwardRef(IFe),SFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M484 443.1V528h-84.5c-4.1 0-7.5 3.1-7.5 7v42c0 3.8 3.4 7 7.5 7H484v84.9c0 3.9 3.2 7.1 7 7.1h42c3.9 0 7-3.2 7-7.1V584h84.5c4.1 0 7.5-3.2 7.5-7v-42c0-3.9-3.4-7-7.5-7H540v-84.9c0-3.9-3.1-7.1-7-7.1h-42c-3.8 0-7 3.2-7 7.1zm396-144.7H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder-add",theme:"outlined"},RFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:SFe}))},TFe=E.forwardRef(RFe),QFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32z"}}]},name:"folder",theme:"filled"},DFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:QFe}))},FFe=E.forwardRef(DFe),NFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},_Fe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:NFe}))},kFe=E.forwardRef(_Fe),PFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},OFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:PFe}))},jFe=E.forwardRef(OFe),zFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"},LFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:zFe}))},YFe=E.forwardRef(LFe),UFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},HFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:UFe}))},GFe=E.forwardRef(HFe),KFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},VFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:KFe}))},JFe=E.forwardRef(VFe),WFe={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM653.3 424.6l52.2 52.2a8.01 8.01 0 01-4.7 13.6l-179.4 21c-5.1.6-9.5-3.7-8.9-8.9l21-179.4c.8-6.6 8.9-9.4 13.6-4.7l52.4 52.4 256.2-256.2c3.1-3.1 8.2-3.1 11.3 0l42.4 42.4c3.1 3.1 3.1 8.2 0 11.3L653.3 424.6z"}}]},name:"import",theme:"outlined"},XFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:WFe}))},yy=E.forwardRef(XFe),qFe={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"},ZFe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:qFe}))},DY=E.forwardRef(ZFe),$Fe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},eNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:$Fe}))},mQ=E.forwardRef(eNe),tNe={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"},rNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:tNe}))},Wj=E.forwardRef(rNe),nNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M365.3 518.5l246 178c5.3 3.8 12.7 0 12.7-6.5v-46.9c0-10.2-4.9-19.9-13.2-25.9L465.4 512l145.4-105.2c8.3-6 13.2-15.6 13.2-25.9V334c0-6.5-7.4-10.3-12.7-6.5l-246 178a8.05 8.05 0 000 13z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"left-square",theme:"outlined"},aNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:nNe}))},EQ=E.forwardRef(aNe),iNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6a8.03 8.03 0 00-11.3 0l-230 229.9L461.4 404a8.03 8.03 0 00-11.3 0L266.3 586.7a8.03 8.03 0 000 11.3l39.5 39.7z"}}]},name:"line-chart",theme:"outlined"},oNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:iNe}))},Xj=E.forwardRef(oNe),sNe={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"},lNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:sNe}))},Cg=E.forwardRef(lNe),cNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},ANe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:cNe}))},FY=E.forwardRef(ANe),uNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"},dNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:uNe}))},fNe=E.forwardRef(dNe),hNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"},gNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:hNe}))},fV=E.forwardRef(gNe),pNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"},vNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:pNe}))},mNe=E.forwardRef(vNe),ENe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482.2 508.4L331.3 389c-3-2.4-7.3-.2-7.3 3.6V478H184V184h204v128c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V144c0-15.5-12.5-28-28-28H144c-15.5 0-28 12.5-28 28v736c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v128H184V546h140v85.4c0 3.8 4.4 6 7.3 3.6l150.9-119.4a4.5 4.5 0 000-7.2zM880 116H596c-15.5 0-28 12.5-28 28v168c0 2.2 1.8 4 4 4h60c2.2 0 4-1.8 4-4V184h204v294H700v-85.4c0-3.8-4.3-6-7.3-3.6l-151 119.4a4.52 4.52 0 000 7.1l151 119.5c2.9 2.3 7.3.2 7.3-3.6V546h140v294H636V712c0-2.2-1.8-4-4-4h-60c-2.2 0-4 1.8-4 4v168c0 15.5 12.5 28 28 28h284c15.5 0 28-12.5 28-28V144c0-15.5-12.5-28-28-28z"}}]},name:"merge-cells",theme:"outlined"},yNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:ENe}))},CNe=E.forwardRef(yNe),wNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},BNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:wNe}))},xNe=E.forwardRef(BNe),MNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},INe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:MNe}))},yQ=E.forwardRef(INe),bNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M456 231a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0zm0 280a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"more",theme:"outlined"},SNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:bNe}))},RNe=E.forwardRef(SNe),TNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M920 760H336c-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-568H336c-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 284H336c-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-8zM216 712H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h72.4v20.5h-35.7c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h35.7V838H100c-2.2 0-4 1.8-4 4v34c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4V716c0-2.2-1.8-4-4-4zM100 188h38v120c0 2.2 1.8 4 4 4h40c2.2 0 4-1.8 4-4V152c0-4.4-3.6-8-8-8h-78c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4zm116 240H100c-2.2 0-4 1.8-4 4v36c0 2.2 1.8 4 4 4h68.4l-70.3 77.7a8.3 8.3 0 00-2.1 5.4V592c0 2.2 1.8 4 4 4h116c2.2 0 4-1.8 4-4v-36c0-2.2-1.8-4-4-4h-68.4l70.3-77.7a8.3 8.3 0 002.1-5.4V432c0-2.2-1.8-4-4-4z"}}]},name:"ordered-list",theme:"outlined"},QNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:TNe}))},DNe=E.forwardRef(QNe),FNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 518H506V160c0-4.4-3.6-8-8-8h-26a398.46 398.46 0 00-282.8 117.1 398.19 398.19 0 00-85.7 127.1A397.61 397.61 0 0072 552a398.46 398.46 0 00117.1 282.8c36.7 36.7 79.5 65.6 127.1 85.7A397.61 397.61 0 00472 952a398.46 398.46 0 00282.8-117.1c36.7-36.7 65.6-79.5 85.7-127.1A397.61 397.61 0 00872 552v-26c0-4.4-3.6-8-8-8zM705.7 787.8A331.59 331.59 0 01470.4 884c-88.1-.4-170.9-34.9-233.2-97.2C174.5 724.1 140 640.7 140 552c0-88.7 34.5-172.1 97.2-234.8 54.6-54.6 124.9-87.9 200.8-95.5V586h364.3c-7.7 76.3-41.3 147-96.6 201.8zM952 462.4l-2.6-28.2c-8.5-92.1-49.4-179-115.2-244.6A399.4 399.4 0 00589 74.6L560.7 72c-4.7-.4-8.7 3.2-8.7 7.9V464c0 4.4 3.6 8 8 8l384-1c4.7 0 8.4-4 8-8.6zm-332.2-58.2V147.6a332.24 332.24 0 01166.4 89.8c45.7 45.6 77 103.6 90 166.1l-256.4.7z"}}]},name:"pie-chart",theme:"outlined"},NNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:FNe}))},ege=E.forwardRef(NNe),_Ne={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:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"},kNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:_Ne}))},PNe=E.forwardRef(kNe),ONe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zM641.7 520.8L442.3 677.6c-7.4 5.8-18.3.6-18.3-8.8V355.3c0-9.4 10.9-14.7 18.3-8.8l199.4 156.7a11.2 11.2 0 010 17.6z"}}]},name:"play-square",theme:"filled"},jNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:ONe}))},zNe=E.forwardRef(jNe),LNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{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"}}]},name:"plus-circle",theme:"outlined"},YNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:LNe}))},WB=E.forwardRef(YNe),UNe={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"},HNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:UNe}))},GNe=E.forwardRef(HNe),KNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},VNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:KNe}))},em=E.forwardRef(VNe),JNe={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"},WNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:JNe}))},XNe=E.forwardRef(WNe),qNe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2-27.2 31.7-65.6 54.4-108.1 64-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 00-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9 58.4-13.2 111.4-44.7 149.3-88.7 19.1-22.3 34-47.1 44.3-74 10.7-27.9 16.1-57.2 16.1-87 0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56 56-25.1 56-56-25.1-56-56-56z"}}]},name:"question",theme:"outlined"},ZNe=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:qNe}))},tge=E.forwardRef(ZNe),$Ne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"},e_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:$Ne}))},gE=E.forwardRef(e_e),t_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M136 552h63.6c4.4 0 8-3.6 8-8V288.7h528.6v72.6c0 1.9.6 3.7 1.8 5.2a8.3 8.3 0 0011.7 1.4L893 255.4c4.3-5 3.6-10.3 0-13.2L749.7 129.8a8.22 8.22 0 00-5.2-1.8c-4.6 0-8.4 3.8-8.4 8.4V209H199.7c-39.5 0-71.7 32.2-71.7 71.8V544c0 4.4 3.6 8 8 8zm752-80h-63.6c-4.4 0-8 3.6-8 8v255.3H287.8v-72.6c0-1.9-.6-3.7-1.8-5.2a8.3 8.3 0 00-11.7-1.4L131 768.6c-4.3 5-3.6 10.3 0 13.2l143.3 112.4c1.5 1.2 3.3 1.8 5.2 1.8 4.6 0 8.4-3.8 8.4-8.4V815h536.6c39.5 0 71.7-32.2 71.7-71.8V480c-.2-4.4-3.8-8-8.2-8z"}}]},name:"retweet",theme:"outlined"},r_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:t_e}))},rge=E.forwardRef(r_e),n_e={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"},a_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:n_e}))},tB=E.forwardRef(a_e),i_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M412.7 696.5l246-178c4.4-3.2 4.4-9.7 0-12.9l-246-178c-5.3-3.8-12.7 0-12.7 6.5V381c0 10.2 4.9 19.9 13.2 25.9L558.6 512 413.2 617.2c-8.3 6-13.2 15.6-13.2 25.9V690c0 6.5 7.4 10.3 12.7 6.5z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"right-square",theme:"outlined"},o_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:i_e}))},NY=E.forwardRef(o_e),s_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917 211.1l-199.2 24c-6.6.8-9.4 8.9-4.7 13.6l59.3 59.3-226 226-101.8-101.7c-6.3-6.3-16.4-6.2-22.6 0L100.3 754.1a8.03 8.03 0 000 11.3l45 45.2c3.1 3.1 8.2 3.1 11.3 0L433.3 534 535 635.7c6.3 6.2 16.4 6.2 22.6 0L829 364.5l59.3 59.3a8.01 8.01 0 0013.6-4.7l24-199.2c.7-5.1-3.7-9.5-8.9-8.8z"}}]},name:"rise",theme:"outlined"},l_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:s_e}))},nge=E.forwardRef(l_e),c_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"},A_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:c_e}))},qj=E.forwardRef(A_e),u_e={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"},d_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:u_e}))},Xf=E.forwardRef(d_e),f_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"},h_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:f_e}))},_Y=E.forwardRef(h_e),g_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M881.7 187.4l-45.1-45.1a8.03 8.03 0 00-11.3 0L667.8 299.9l-54.7-54.7a7.94 7.94 0 00-13.5 4.7L576.1 439c-.6 5.2 3.7 9.5 8.9 8.9l189.2-23.5c6.6-.8 9.3-8.8 4.7-13.5l-54.7-54.7 157.6-157.6c3-3 3-8.1-.1-11.2zM439 576.1l-189.2 23.5c-6.6.8-9.3 8.9-4.7 13.5l54.7 54.7-157.5 157.5a8.03 8.03 0 000 11.3l45.1 45.1c3.1 3.1 8.2 3.1 11.3 0l157.6-157.6 54.7 54.7a7.94 7.94 0 0013.5-4.7L447.9 585a7.9 7.9 0 00-8.9-8.9z"}}]},name:"shrink",theme:"outlined"},p_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:g_e}))},v_e=E.forwardRef(p_e),m_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"},E_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:m_e}))},age=E.forwardRef(E_e),y_e={icon:function(t,r){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512.5 190.4l-94.4 191.3-211.2 30.7 152.8 149-36.1 210.3 188.9-99.3 188.9 99.2-36.1-210.3 152.8-148.9-211.2-30.7z",fill:r}},{tag:"path",attrs:{d:"M908.6 352.8l-253.9-36.9L541.2 85.8c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L370.3 315.9l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1L239 839.4a31.95 31.95 0 0046.4 33.7l227.1-119.4 227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM665.3 561.3l36.1 210.3-188.9-99.2-188.9 99.3 36.1-210.3-152.8-149 211.2-30.7 94.4-191.3 94.4 191.3 211.2 30.7-152.8 148.9z",fill:t}}]}},name:"star",theme:"twotone"},C_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:y_e}))},w_e=E.forwardRef(C_e),B_e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},x_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:B_e}))},M_e=E.forwardRef(x_e),I_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},b_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:I_e}))},tm=E.forwardRef(b_e),S_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z"}}]},name:"table",theme:"outlined"},R_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:S_e}))},T_e=E.forwardRef(R_e),Q_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885 780H165c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM400 325.7h73.9V664c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V325.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 171a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13z"}}]},name:"to-top",theme:"outlined"},D_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:Q_e}))},F_e=E.forwardRef(D_e),N_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"},__e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:N_e}))},k_e=E.forwardRef(__e),P_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M876.6 239.5c-.5-.9-1.2-1.8-2-2.5-5-5-13.1-5-18.1 0L684.2 409.3l-67.9-67.9L788.7 169c.8-.8 1.4-1.6 2-2.5 3.6-6.1 1.6-13.9-4.5-17.5-98.2-58-226.8-44.7-311.3 39.7-67 67-89.2 162-66.5 247.4l-293 293c-3 3-2.8 7.9.3 11l169.7 169.7c3.1 3.1 8.1 3.3 11 .3l292.9-292.9c85.5 22.8 180.5.7 247.6-66.4 84.4-84.5 97.7-213.1 39.7-311.3zM786 499.8c-58.1 58.1-145.3 69.3-214.6 33.6l-8.8 8.8-.1-.1-274 274.1-79.2-79.2 230.1-230.1s0 .1.1.1l52.8-52.8c-35.7-69.3-24.5-156.5 33.6-214.6a184.2 184.2 0 01144-53.5L537 318.9a32.05 32.05 0 000 45.3l124.5 124.5a32.05 32.05 0 0045.3 0l132.8-132.8c3.7 51.8-14.4 104.8-53.6 143.9z"}}]},name:"tool",theme:"outlined"},O_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:P_e}))},Cy=E.forwardRef(O_e),j_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"}}]},name:"undo",theme:"outlined"},z_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:j_e}))},ao=E.forwardRef(z_e),L_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"},Y_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:L_e}))},ige=E.forwardRef(Y_e),U_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",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:"unordered-list",theme:"outlined"},H_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:U_e}))},rB=E.forwardRef(H_e),G_e={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"},K_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:G_e}))},V_e=E.forwardRef(K_e),J_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},W_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:J_e}))},XB=E.forwardRef(W_e),X_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"},q_e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:X_e}))},Z_e=E.forwardRef(q_e),$_e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},e8e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:$_e}))},t8e=E.forwardRef(e8e),r8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M955.7 856l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zM480 416c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v184c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V416zm32 352a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"warning",theme:"filled"},n8e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:r8e}))},oge=E.forwardRef(n8e),a8e={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"},i8e=function(t,r){return E.createElement(Er,se(se({},t),{},{ref:r,icon:a8e}))},Zj=E.forwardRef(i8e);const o8e="SET_MENU",sge="UI_SET_DOWNLOAD",lge="SHOW_FILTERS_DRAWER",cge="SET_SELECTED_TAB",Age="SHOW_SHORTCUTS",uge="SET_GENERATE_PDF",dge="SET_SHOW_OVERLAY",fge="SET_BUG_TRACKER",hge="SET_SHOW_MENUS",gge="SET_MENU_MODE",pge="SET_SIDER_IS_COLLAPSED",vge="SET_DEV_MODE",mge="SET_PRIMARY_COLOR",Ege="SET_GRAPH_DISPLAY_PREFERENCE",yge=(e=null)=>({type:gge,mode:e}),pE=(e=null)=>({type:pge,collapsed:e}),s8e=e=>({type:sge,download:e}),kv=(e,t=!1)=>({type:lge,visible:e,editor:t}),hV=e=>({type:cge,tab:e}),gV=e=>({type:Age,visible:e}),pV=e=>({type:uge,status:e}),CQ=e=>({type:dge,status:e}),l8e=e=>({type:fge,value:e}),c8e=e=>({type:hge,status:e}),A8e=e=>({type:vge,devMode:e}),Cge=e=>({type:mge,primaryColor:e}),u8e=e=>({type:Ege,graphDisplayPreference:e}),wge="SET_SETTINGS",Bge="SET_LOADING",xge="SET_USER_DISPLAY_SETTINGS",d8e=e=>({type:wge,settings:e}),vV=e=>({type:Bge,loading:e}),Mge=e=>({type:xge,userSettings:e});var q5,mV;function f8e(){if(mV)return q5;mV=1;var e=Array.prototype,t=e.reverse;function r(n){return n==null?n:t.call(n)}return q5=r,q5}var h8e=f8e();const g8e=gn(h8e);var Z5={},EV;function kg(){return EV||(EV=1,(function(e){var t=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";function r(i,o){return Object.prototype.hasOwnProperty.call(i,o)}e.assign=function(i){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var s=o.shift();if(s){if(typeof s!="object")throw new TypeError(s+"must be non-object");for(var l in s)r(s,l)&&(i[l]=s[l])}}return i},e.shrinkBuf=function(i,o){return i.length===o?i:i.subarray?i.subarray(0,o):(i.length=o,i)};var n={arraySet:function(i,o,s,l,c){if(o.subarray&&i.subarray){i.set(o.subarray(s,s+l),c);return}for(var A=0;A<l;A++)i[c+A]=o[s+A]},flattenChunks:function(i){var o,s,l,c,A,u;for(l=0,o=0,s=i.length;o<s;o++)l+=i[o].length;for(u=new Uint8Array(l),c=0,o=0,s=i.length;o<s;o++)A=i[o],u.set(A,c),c+=A.length;return u}},a={arraySet:function(i,o,s,l,c){for(var A=0;A<l;A++)i[c+A]=o[s+A]},flattenChunks:function(i){return[].concat.apply([],i)}};e.setTyped=function(i){i?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,n)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,a))},e.setTyped(t)})(Z5)),Z5}var Zm={},RA={},Bp={},yV;function p8e(){if(yV)return Bp;yV=1;var e=kg(),t=4,r=0,n=1,a=2;function i(ce){for(var qe=ce.length;--qe>=0;)ce[qe]=0}var o=0,s=1,l=2,c=3,A=258,u=29,d=256,f=d+1+u,h=30,g=19,p=2*f+1,m=15,y=16,C=7,w=256,B=16,x=17,M=18,S=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],R=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],T=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],D=512,F=new Array((f+2)*2);i(F);var N=new Array(h*2);i(N);var _=new Array(D);i(_);var P=new Array(A-c+1);i(P);var k=new Array(u);i(k);var j=new Array(h);i(j);function Y(ce,qe,ct,Tt,He){this.static_tree=ce,this.extra_bits=qe,this.extra_base=ct,this.elems=Tt,this.max_length=He,this.has_stree=ce&&ce.length}var X,K,U;function H(ce,qe){this.dyn_tree=ce,this.max_code=0,this.stat_desc=qe}function L(ce){return ce<256?_[ce]:_[256+(ce>>>7)]}function V(ce,qe){ce.pending_buf[ce.pending++]=qe&255,ce.pending_buf[ce.pending++]=qe>>>8&255}function J(ce,qe,ct){ce.bi_valid>y-ct?(ce.bi_buf|=qe<<ce.bi_valid&65535,V(ce,ce.bi_buf),ce.bi_buf=qe>>y-ce.bi_valid,ce.bi_valid+=ct-y):(ce.bi_buf|=qe<<ce.bi_valid&65535,ce.bi_valid+=ct)}function ee(ce,qe,ct){J(ce,ct[qe*2],ct[qe*2+1])}function ae(ce,qe){var ct=0;do ct|=ce&1,ce>>>=1,ct<<=1;while(--qe>0);return ct>>>1}function ne(ce){ce.bi_valid===16?(V(ce,ce.bi_buf),ce.bi_buf=0,ce.bi_valid=0):ce.bi_valid>=8&&(ce.pending_buf[ce.pending++]=ce.bi_buf&255,ce.bi_buf>>=8,ce.bi_valid-=8)}function fe(ce,qe){var ct=qe.dyn_tree,Tt=qe.max_code,He=qe.stat_desc.static_tree,Ge=qe.stat_desc.has_stree,Ee=qe.stat_desc.extra_bits,Et=qe.stat_desc.extra_base,Yt=qe.stat_desc.max_length,$,Fe,je,ue,ie,Be,Xe=0;for(ue=0;ue<=m;ue++)ce.bl_count[ue]=0;for(ct[ce.heap[ce.heap_max]*2+1]=0,$=ce.heap_max+1;$<p;$++)Fe=ce.heap[$],ue=ct[ct[Fe*2+1]*2+1]+1,ue>Yt&&(ue=Yt,Xe++),ct[Fe*2+1]=ue,!(Fe>Tt)&&(ce.bl_count[ue]++,ie=0,Fe>=Et&&(ie=Ee[Fe-Et]),Be=ct[Fe*2],ce.opt_len+=Be*(ue+ie),Ge&&(ce.static_len+=Be*(He[Fe*2+1]+ie)));if(Xe!==0){do{for(ue=Yt-1;ce.bl_count[ue]===0;)ue--;ce.bl_count[ue]--,ce.bl_count[ue+1]+=2,ce.bl_count[Yt]--,Xe-=2}while(Xe>0);for(ue=Yt;ue!==0;ue--)for(Fe=ce.bl_count[ue];Fe!==0;)je=ce.heap[--$],!(je>Tt)&&(ct[je*2+1]!==ue&&(ce.opt_len+=(ue-ct[je*2+1])*ct[je*2],ct[je*2+1]=ue),Fe--)}}function he(ce,qe,ct){var Tt=new Array(m+1),He=0,Ge,Ee;for(Ge=1;Ge<=m;Ge++)Tt[Ge]=He=He+ct[Ge-1]<<1;for(Ee=0;Ee<=qe;Ee++){var Et=ce[Ee*2+1];Et!==0&&(ce[Ee*2]=ae(Tt[Et]++,Et))}}function ye(){var ce,qe,ct,Tt,He,Ge=new Array(m+1);for(ct=0,Tt=0;Tt<u-1;Tt++)for(k[Tt]=ct,ce=0;ce<1<<S[Tt];ce++)P[ct++]=Tt;for(P[ct-1]=Tt,He=0,Tt=0;Tt<16;Tt++)for(j[Tt]=He,ce=0;ce<1<<R[Tt];ce++)_[He++]=Tt;for(He>>=7;Tt<h;Tt++)for(j[Tt]=He<<7,ce=0;ce<1<<R[Tt]-7;ce++)_[256+He++]=Tt;for(qe=0;qe<=m;qe++)Ge[qe]=0;for(ce=0;ce<=143;)F[ce*2+1]=8,ce++,Ge[8]++;for(;ce<=255;)F[ce*2+1]=9,ce++,Ge[9]++;for(;ce<=279;)F[ce*2+1]=7,ce++,Ge[7]++;for(;ce<=287;)F[ce*2+1]=8,ce++,Ge[8]++;for(he(F,f+1,Ge),ce=0;ce<h;ce++)N[ce*2+1]=5,N[ce*2]=ae(ce,5);X=new Y(F,S,d+1,f,m),K=new Y(N,R,0,h,m),U=new Y(new Array(0),b,0,g,C)}function be(ce){var qe;for(qe=0;qe<f;qe++)ce.dyn_ltree[qe*2]=0;for(qe=0;qe<h;qe++)ce.dyn_dtree[qe*2]=0;for(qe=0;qe<g;qe++)ce.bl_tree[qe*2]=0;ce.dyn_ltree[w*2]=1,ce.opt_len=ce.static_len=0,ce.last_lit=ce.matches=0}function Se(ce){ce.bi_valid>8?V(ce,ce.bi_buf):ce.bi_valid>0&&(ce.pending_buf[ce.pending++]=ce.bi_buf),ce.bi_buf=0,ce.bi_valid=0}function ve(ce,qe,ct,Tt){Se(ce),V(ce,ct),V(ce,~ct),e.arraySet(ce.pending_buf,ce.window,qe,ct,ce.pending),ce.pending+=ct}function de(ce,qe,ct,Tt){var He=qe*2,Ge=ct*2;return ce[He]<ce[Ge]||ce[He]===ce[Ge]&&Tt[qe]<=Tt[ct]}function Ue(ce,qe,ct){for(var Tt=ce.heap[ct],He=ct<<1;He<=ce.heap_len&&(He<ce.heap_len&&de(qe,ce.heap[He+1],ce.heap[He],ce.depth)&&He++,!de(qe,Tt,ce.heap[He],ce.depth));)ce.heap[ct]=ce.heap[He],ct=He,He<<=1;ce.heap[ct]=Tt}function at(ce,qe,ct){var Tt,He,Ge=0,Ee,Et;if(ce.last_lit!==0)do Tt=ce.pending_buf[ce.d_buf+Ge*2]<<8|ce.pending_buf[ce.d_buf+Ge*2+1],He=ce.pending_buf[ce.l_buf+Ge],Ge++,Tt===0?ee(ce,He,qe):(Ee=P[He],ee(ce,Ee+d+1,qe),Et=S[Ee],Et!==0&&(He-=k[Ee],J(ce,He,Et)),Tt--,Ee=L(Tt),ee(ce,Ee,ct),Et=R[Ee],Et!==0&&(Tt-=j[Ee],J(ce,Tt,Et)));while(Ge<ce.last_lit);ee(ce,w,qe)}function Ve(ce,qe){var ct=qe.dyn_tree,Tt=qe.stat_desc.static_tree,He=qe.stat_desc.has_stree,Ge=qe.stat_desc.elems,Ee,Et,Yt=-1,$;for(ce.heap_len=0,ce.heap_max=p,Ee=0;Ee<Ge;Ee++)ct[Ee*2]!==0?(ce.heap[++ce.heap_len]=Yt=Ee,ce.depth[Ee]=0):ct[Ee*2+1]=0;for(;ce.heap_len<2;)$=ce.heap[++ce.heap_len]=Yt<2?++Yt:0,ct[$*2]=1,ce.depth[$]=0,ce.opt_len--,He&&(ce.static_len-=Tt[$*2+1]);for(qe.max_code=Yt,Ee=ce.heap_len>>1;Ee>=1;Ee--)Ue(ce,ct,Ee);$=Ge;do Ee=ce.heap[1],ce.heap[1]=ce.heap[ce.heap_len--],Ue(ce,ct,1),Et=ce.heap[1],ce.heap[--ce.heap_max]=Ee,ce.heap[--ce.heap_max]=Et,ct[$*2]=ct[Ee*2]+ct[Et*2],ce.depth[$]=(ce.depth[Ee]>=ce.depth[Et]?ce.depth[Ee]:ce.depth[Et])+1,ct[Ee*2+1]=ct[Et*2+1]=$,ce.heap[1]=$++,Ue(ce,ct,1);while(ce.heap_len>=2);ce.heap[--ce.heap_max]=ce.heap[1],fe(ce,qe),he(ct,Yt,ce.bl_count)}function Ie(ce,qe,ct){var Tt,He=-1,Ge,Ee=qe[1],Et=0,Yt=7,$=4;for(Ee===0&&(Yt=138,$=3),qe[(ct+1)*2+1]=65535,Tt=0;Tt<=ct;Tt++)Ge=Ee,Ee=qe[(Tt+1)*2+1],!(++Et<Yt&&Ge===Ee)&&(Et<$?ce.bl_tree[Ge*2]+=Et:Ge!==0?(Ge!==He&&ce.bl_tree[Ge*2]++,ce.bl_tree[B*2]++):Et<=10?ce.bl_tree[x*2]++:ce.bl_tree[M*2]++,Et=0,He=Ge,Ee===0?(Yt=138,$=3):Ge===Ee?(Yt=6,$=3):(Yt=7,$=4))}function we(ce,qe,ct){var Tt,He=-1,Ge,Ee=qe[1],Et=0,Yt=7,$=4;for(Ee===0&&(Yt=138,$=3),Tt=0;Tt<=ct;Tt++)if(Ge=Ee,Ee=qe[(Tt+1)*2+1],!(++Et<Yt&&Ge===Ee)){if(Et<$)do ee(ce,Ge,ce.bl_tree);while(--Et!==0);else Ge!==0?(Ge!==He&&(ee(ce,Ge,ce.bl_tree),Et--),ee(ce,B,ce.bl_tree),J(ce,Et-3,2)):Et<=10?(ee(ce,x,ce.bl_tree),J(ce,Et-3,3)):(ee(ce,M,ce.bl_tree),J(ce,Et-11,7));Et=0,He=Ge,Ee===0?(Yt=138,$=3):Ge===Ee?(Yt=6,$=3):(Yt=7,$=4)}}function Re(ce){var qe;for(Ie(ce,ce.dyn_ltree,ce.l_desc.max_code),Ie(ce,ce.dyn_dtree,ce.d_desc.max_code),Ve(ce,ce.bl_desc),qe=g-1;qe>=3&&ce.bl_tree[T[qe]*2+1]===0;qe--);return ce.opt_len+=3*(qe+1)+5+5+4,qe}function Te(ce,qe,ct,Tt){var He;for(J(ce,qe-257,5),J(ce,ct-1,5),J(ce,Tt-4,4),He=0;He<Tt;He++)J(ce,ce.bl_tree[T[He]*2+1],3);we(ce,ce.dyn_ltree,qe-1),we(ce,ce.dyn_dtree,ct-1)}function Ke(ce){var qe=4093624447,ct;for(ct=0;ct<=31;ct++,qe>>>=1)if(qe&1&&ce.dyn_ltree[ct*2]!==0)return r;if(ce.dyn_ltree[18]!==0||ce.dyn_ltree[20]!==0||ce.dyn_ltree[26]!==0)return n;for(ct=32;ct<d;ct++)if(ce.dyn_ltree[ct*2]!==0)return n;return r}var mt=!1;function tt(ce){mt||(ye(),mt=!0),ce.l_desc=new H(ce.dyn_ltree,X),ce.d_desc=new H(ce.dyn_dtree,K),ce.bl_desc=new H(ce.bl_tree,U),ce.bi_buf=0,ce.bi_valid=0,be(ce)}function rt(ce,qe,ct,Tt){J(ce,(o<<1)+(Tt?1:0),3),ve(ce,qe,ct)}function lt(ce){J(ce,s<<1,3),ee(ce,w,F),ne(ce)}function At(ce,qe,ct,Tt){var He,Ge,Ee=0;ce.level>0?(ce.strm.data_type===a&&(ce.strm.data_type=Ke(ce)),Ve(ce,ce.l_desc),Ve(ce,ce.d_desc),Ee=Re(ce),He=ce.opt_len+3+7>>>3,Ge=ce.static_len+3+7>>>3,Ge<=He&&(He=Ge)):He=Ge=ct+5,ct+4<=He&&qe!==-1?rt(ce,qe,ct,Tt):ce.strategy===t||Ge===He?(J(ce,(s<<1)+(Tt?1:0),3),at(ce,F,N)):(J(ce,(l<<1)+(Tt?1:0),3),Te(ce,ce.l_desc.max_code+1,ce.d_desc.max_code+1,Ee+1),at(ce,ce.dyn_ltree,ce.dyn_dtree)),be(ce),Tt&&Se(ce)}function $e(ce,qe,ct){return ce.pending_buf[ce.d_buf+ce.last_lit*2]=qe>>>8&255,ce.pending_buf[ce.d_buf+ce.last_lit*2+1]=qe&255,ce.pending_buf[ce.l_buf+ce.last_lit]=ct&255,ce.last_lit++,qe===0?ce.dyn_ltree[ct*2]++:(ce.matches++,qe--,ce.dyn_ltree[(P[ct]+d+1)*2]++,ce.dyn_dtree[L(qe)*2]++),ce.last_lit===ce.lit_bufsize-1}return Bp._tr_init=tt,Bp._tr_stored_block=rt,Bp._tr_flush_block=At,Bp._tr_tally=$e,Bp._tr_align=lt,Bp}var $5,CV;function Ige(){if(CV)return $5;CV=1;function e(t,r,n,a){for(var i=t&65535|0,o=t>>>16&65535|0,s=0;n!==0;){s=n>2e3?2e3:n,n-=s;do i=i+r[a++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0}return $5=e,$5}var eF,wV;function bge(){if(wV)return eF;wV=1;function e(){for(var n,a=[],i=0;i<256;i++){n=i;for(var o=0;o<8;o++)n=n&1?3988292384^n>>>1:n>>>1;a[i]=n}return a}var t=e();function r(n,a,i,o){var s=t,l=o+i;n^=-1;for(var c=o;c<l;c++)n=n>>>8^s[(n^a[c])&255];return n^-1}return eF=r,eF}var tF,BV;function kY(){return BV||(BV=1,tF={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}),tF}var xV;function v8e(){if(xV)return RA;xV=1;var e=kg(),t=p8e(),r=Ige(),n=bge(),a=kY(),i=0,o=1,s=3,l=4,c=5,A=0,u=1,d=-2,f=-3,h=-5,g=-1,p=1,m=2,y=3,C=4,w=0,B=2,x=8,M=9,S=15,R=8,b=29,T=256,D=T+1+b,F=30,N=19,_=2*D+1,P=15,k=3,j=258,Y=j+k+1,X=32,K=42,U=69,H=73,L=91,V=103,J=113,ee=666,ae=1,ne=2,fe=3,he=4,ye=3;function be($,Fe){return $.msg=a[Fe],Fe}function Se($){return($<<1)-($>4?9:0)}function ve($){for(var Fe=$.length;--Fe>=0;)$[Fe]=0}function de($){var Fe=$.state,je=Fe.pending;je>$.avail_out&&(je=$.avail_out),je!==0&&(e.arraySet($.output,Fe.pending_buf,Fe.pending_out,je,$.next_out),$.next_out+=je,Fe.pending_out+=je,$.total_out+=je,$.avail_out-=je,Fe.pending-=je,Fe.pending===0&&(Fe.pending_out=0))}function Ue($,Fe){t._tr_flush_block($,$.block_start>=0?$.block_start:-1,$.strstart-$.block_start,Fe),$.block_start=$.strstart,de($.strm)}function at($,Fe){$.pending_buf[$.pending++]=Fe}function Ve($,Fe){$.pending_buf[$.pending++]=Fe>>>8&255,$.pending_buf[$.pending++]=Fe&255}function Ie($,Fe,je,ue){var ie=$.avail_in;return ie>ue&&(ie=ue),ie===0?0:($.avail_in-=ie,e.arraySet(Fe,$.input,$.next_in,ie,je),$.state.wrap===1?$.adler=r($.adler,Fe,ie,je):$.state.wrap===2&&($.adler=n($.adler,Fe,ie,je)),$.next_in+=ie,$.total_in+=ie,ie)}function we($,Fe){var je=$.max_chain_length,ue=$.strstart,ie,Be,Xe=$.prev_length,Oe=$.nice_match,ft=$.strstart>$.w_size-Y?$.strstart-($.w_size-Y):0,wt=$.window,ot=$.w_mask,it=$.prev,vt=$.strstart+j,qt=wt[ue+Xe-1],Xt=wt[ue+Xe];$.prev_length>=$.good_match&&(je>>=2),Oe>$.lookahead&&(Oe=$.lookahead);do if(ie=Fe,!(wt[ie+Xe]!==Xt||wt[ie+Xe-1]!==qt||wt[ie]!==wt[ue]||wt[++ie]!==wt[ue+1])){ue+=2,ie++;do;while(wt[++ue]===wt[++ie]&&wt[++ue]===wt[++ie]&&wt[++ue]===wt[++ie]&&wt[++ue]===wt[++ie]&&wt[++ue]===wt[++ie]&&wt[++ue]===wt[++ie]&&wt[++ue]===wt[++ie]&&wt[++ue]===wt[++ie]&&ue<vt);if(Be=j-(vt-ue),ue=vt-j,Be>Xe){if($.match_start=Fe,Xe=Be,Be>=Oe)break;qt=wt[ue+Xe-1],Xt=wt[ue+Xe]}}while((Fe=it[Fe&ot])>ft&&--je!==0);return Xe<=$.lookahead?Xe:$.lookahead}function Re($){var Fe=$.w_size,je,ue,ie,Be,Xe;do{if(Be=$.window_size-$.lookahead-$.strstart,$.strstart>=Fe+(Fe-Y)){e.arraySet($.window,$.window,Fe,Fe,0),$.match_start-=Fe,$.strstart-=Fe,$.block_start-=Fe,ue=$.hash_size,je=ue;do ie=$.head[--je],$.head[je]=ie>=Fe?ie-Fe:0;while(--ue);ue=Fe,je=ue;do ie=$.prev[--je],$.prev[je]=ie>=Fe?ie-Fe:0;while(--ue);Be+=Fe}if($.strm.avail_in===0)break;if(ue=Ie($.strm,$.window,$.strstart+$.lookahead,Be),$.lookahead+=ue,$.lookahead+$.insert>=k)for(Xe=$.strstart-$.insert,$.ins_h=$.window[Xe],$.ins_h=($.ins_h<<$.hash_shift^$.window[Xe+1])&$.hash_mask;$.insert&&($.ins_h=($.ins_h<<$.hash_shift^$.window[Xe+k-1])&$.hash_mask,$.prev[Xe&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=Xe,Xe++,$.insert--,!($.lookahead+$.insert<k)););}while($.lookahead<Y&&$.strm.avail_in!==0)}function Te($,Fe){var je=65535;for(je>$.pending_buf_size-5&&(je=$.pending_buf_size-5);;){if($.lookahead<=1){if(Re($),$.lookahead===0&&Fe===i)return ae;if($.lookahead===0)break}$.strstart+=$.lookahead,$.lookahead=0;var ue=$.block_start+je;if(($.strstart===0||$.strstart>=ue)&&($.lookahead=$.strstart-ue,$.strstart=ue,Ue($,!1),$.strm.avail_out===0)||$.strstart-$.block_start>=$.w_size-Y&&(Ue($,!1),$.strm.avail_out===0))return ae}return $.insert=0,Fe===l?(Ue($,!0),$.strm.avail_out===0?fe:he):($.strstart>$.block_start&&(Ue($,!1),$.strm.avail_out===0),ae)}function Ke($,Fe){for(var je,ue;;){if($.lookahead<Y){if(Re($),$.lookahead<Y&&Fe===i)return ae;if($.lookahead===0)break}if(je=0,$.lookahead>=k&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+k-1])&$.hash_mask,je=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),je!==0&&$.strstart-je<=$.w_size-Y&&($.match_length=we($,je)),$.match_length>=k)if(ue=t._tr_tally($,$.strstart-$.match_start,$.match_length-k),$.lookahead-=$.match_length,$.match_length<=$.max_lazy_match&&$.lookahead>=k){$.match_length--;do $.strstart++,$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+k-1])&$.hash_mask,je=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart;while(--$.match_length!==0);$.strstart++}else $.strstart+=$.match_length,$.match_length=0,$.ins_h=$.window[$.strstart],$.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+1])&$.hash_mask;else ue=t._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++;if(ue&&(Ue($,!1),$.strm.avail_out===0))return ae}return $.insert=$.strstart<k-1?$.strstart:k-1,Fe===l?(Ue($,!0),$.strm.avail_out===0?fe:he):$.last_lit&&(Ue($,!1),$.strm.avail_out===0)?ae:ne}function mt($,Fe){for(var je,ue,ie;;){if($.lookahead<Y){if(Re($),$.lookahead<Y&&Fe===i)return ae;if($.lookahead===0)break}if(je=0,$.lookahead>=k&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+k-1])&$.hash_mask,je=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart),$.prev_length=$.match_length,$.prev_match=$.match_start,$.match_length=k-1,je!==0&&$.prev_length<$.max_lazy_match&&$.strstart-je<=$.w_size-Y&&($.match_length=we($,je),$.match_length<=5&&($.strategy===p||$.match_length===k&&$.strstart-$.match_start>4096)&&($.match_length=k-1)),$.prev_length>=k&&$.match_length<=$.prev_length){ie=$.strstart+$.lookahead-k,ue=t._tr_tally($,$.strstart-1-$.prev_match,$.prev_length-k),$.lookahead-=$.prev_length-1,$.prev_length-=2;do++$.strstart<=ie&&($.ins_h=($.ins_h<<$.hash_shift^$.window[$.strstart+k-1])&$.hash_mask,je=$.prev[$.strstart&$.w_mask]=$.head[$.ins_h],$.head[$.ins_h]=$.strstart);while(--$.prev_length!==0);if($.match_available=0,$.match_length=k-1,$.strstart++,ue&&(Ue($,!1),$.strm.avail_out===0))return ae}else if($.match_available){if(ue=t._tr_tally($,0,$.window[$.strstart-1]),ue&&Ue($,!1),$.strstart++,$.lookahead--,$.strm.avail_out===0)return ae}else $.match_available=1,$.strstart++,$.lookahead--}return $.match_available&&(ue=t._tr_tally($,0,$.window[$.strstart-1]),$.match_available=0),$.insert=$.strstart<k-1?$.strstart:k-1,Fe===l?(Ue($,!0),$.strm.avail_out===0?fe:he):$.last_lit&&(Ue($,!1),$.strm.avail_out===0)?ae:ne}function tt($,Fe){for(var je,ue,ie,Be,Xe=$.window;;){if($.lookahead<=j){if(Re($),$.lookahead<=j&&Fe===i)return ae;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=k&&$.strstart>0&&(ie=$.strstart-1,ue=Xe[ie],ue===Xe[++ie]&&ue===Xe[++ie]&&ue===Xe[++ie])){Be=$.strstart+j;do;while(ue===Xe[++ie]&&ue===Xe[++ie]&&ue===Xe[++ie]&&ue===Xe[++ie]&&ue===Xe[++ie]&&ue===Xe[++ie]&&ue===Xe[++ie]&&ue===Xe[++ie]&&ie<Be);$.match_length=j-(Be-ie),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=k?(je=t._tr_tally($,1,$.match_length-k),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(je=t._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),je&&(Ue($,!1),$.strm.avail_out===0))return ae}return $.insert=0,Fe===l?(Ue($,!0),$.strm.avail_out===0?fe:he):$.last_lit&&(Ue($,!1),$.strm.avail_out===0)?ae:ne}function rt($,Fe){for(var je;;){if($.lookahead===0&&(Re($),$.lookahead===0)){if(Fe===i)return ae;break}if($.match_length=0,je=t._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,je&&(Ue($,!1),$.strm.avail_out===0))return ae}return $.insert=0,Fe===l?(Ue($,!0),$.strm.avail_out===0?fe:he):$.last_lit&&(Ue($,!1),$.strm.avail_out===0)?ae:ne}function lt($,Fe,je,ue,ie){this.good_length=$,this.max_lazy=Fe,this.nice_length=je,this.max_chain=ue,this.func=ie}var At;At=[new lt(0,0,0,0,Te),new lt(4,4,8,4,Ke),new lt(4,5,16,8,Ke),new lt(4,6,32,32,Ke),new lt(4,4,16,16,mt),new lt(8,16,32,32,mt),new lt(8,16,128,128,mt),new lt(8,32,128,256,mt),new lt(32,128,258,1024,mt),new lt(32,258,258,4096,mt)];function $e($){$.window_size=2*$.w_size,ve($.head),$.max_lazy_match=At[$.level].max_lazy,$.good_match=At[$.level].good_length,$.nice_match=At[$.level].nice_length,$.max_chain_length=At[$.level].max_chain,$.strstart=0,$.block_start=0,$.lookahead=0,$.insert=0,$.match_length=$.prev_length=k-1,$.match_available=0,$.ins_h=0}function ce(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=x,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new e.Buf16(_*2),this.dyn_dtree=new e.Buf16((2*F+1)*2),this.bl_tree=new e.Buf16((2*N+1)*2),ve(this.dyn_ltree),ve(this.dyn_dtree),ve(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new e.Buf16(P+1),this.heap=new e.Buf16(2*D+1),ve(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new e.Buf16(2*D+1),ve(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function qe($){var Fe;return!$||!$.state?be($,d):($.total_in=$.total_out=0,$.data_type=B,Fe=$.state,Fe.pending=0,Fe.pending_out=0,Fe.wrap<0&&(Fe.wrap=-Fe.wrap),Fe.status=Fe.wrap?K:J,$.adler=Fe.wrap===2?0:1,Fe.last_flush=i,t._tr_init(Fe),A)}function ct($){var Fe=qe($);return Fe===A&&$e($.state),Fe}function Tt($,Fe){return!$||!$.state||$.state.wrap!==2?d:($.state.gzhead=Fe,A)}function He($,Fe,je,ue,ie,Be){if(!$)return d;var Xe=1;if(Fe===g&&(Fe=6),ue<0?(Xe=0,ue=-ue):ue>15&&(Xe=2,ue-=16),ie<1||ie>M||je!==x||ue<8||ue>15||Fe<0||Fe>9||Be<0||Be>C)return be($,d);ue===8&&(ue=9);var Oe=new ce;return $.state=Oe,Oe.strm=$,Oe.wrap=Xe,Oe.gzhead=null,Oe.w_bits=ue,Oe.w_size=1<<Oe.w_bits,Oe.w_mask=Oe.w_size-1,Oe.hash_bits=ie+7,Oe.hash_size=1<<Oe.hash_bits,Oe.hash_mask=Oe.hash_size-1,Oe.hash_shift=~~((Oe.hash_bits+k-1)/k),Oe.window=new e.Buf8(Oe.w_size*2),Oe.head=new e.Buf16(Oe.hash_size),Oe.prev=new e.Buf16(Oe.w_size),Oe.lit_bufsize=1<<ie+6,Oe.pending_buf_size=Oe.lit_bufsize*4,Oe.pending_buf=new e.Buf8(Oe.pending_buf_size),Oe.d_buf=1*Oe.lit_bufsize,Oe.l_buf=3*Oe.lit_bufsize,Oe.level=Fe,Oe.strategy=Be,Oe.method=je,ct($)}function Ge($,Fe){return He($,Fe,x,S,R,w)}function Ee($,Fe){var je,ue,ie,Be;if(!$||!$.state||Fe>c||Fe<0)return $?be($,d):d;if(ue=$.state,!$.output||!$.input&&$.avail_in!==0||ue.status===ee&&Fe!==l)return be($,$.avail_out===0?h:d);if(ue.strm=$,je=ue.last_flush,ue.last_flush=Fe,ue.status===K)if(ue.wrap===2)$.adler=0,at(ue,31),at(ue,139),at(ue,8),ue.gzhead?(at(ue,(ue.gzhead.text?1:0)+(ue.gzhead.hcrc?2:0)+(ue.gzhead.extra?4:0)+(ue.gzhead.name?8:0)+(ue.gzhead.comment?16:0)),at(ue,ue.gzhead.time&255),at(ue,ue.gzhead.time>>8&255),at(ue,ue.gzhead.time>>16&255),at(ue,ue.gzhead.time>>24&255),at(ue,ue.level===9?2:ue.strategy>=m||ue.level<2?4:0),at(ue,ue.gzhead.os&255),ue.gzhead.extra&&ue.gzhead.extra.length&&(at(ue,ue.gzhead.extra.length&255),at(ue,ue.gzhead.extra.length>>8&255)),ue.gzhead.hcrc&&($.adler=n($.adler,ue.pending_buf,ue.pending,0)),ue.gzindex=0,ue.status=U):(at(ue,0),at(ue,0),at(ue,0),at(ue,0),at(ue,0),at(ue,ue.level===9?2:ue.strategy>=m||ue.level<2?4:0),at(ue,ye),ue.status=J);else{var Xe=x+(ue.w_bits-8<<4)<<8,Oe=-1;ue.strategy>=m||ue.level<2?Oe=0:ue.level<6?Oe=1:ue.level===6?Oe=2:Oe=3,Xe|=Oe<<6,ue.strstart!==0&&(Xe|=X),Xe+=31-Xe%31,ue.status=J,Ve(ue,Xe),ue.strstart!==0&&(Ve(ue,$.adler>>>16),Ve(ue,$.adler&65535)),$.adler=1}if(ue.status===U)if(ue.gzhead.extra){for(ie=ue.pending;ue.gzindex<(ue.gzhead.extra.length&65535)&&!(ue.pending===ue.pending_buf_size&&(ue.gzhead.hcrc&&ue.pending>ie&&($.adler=n($.adler,ue.pending_buf,ue.pending-ie,ie)),de($),ie=ue.pending,ue.pending===ue.pending_buf_size));)at(ue,ue.gzhead.extra[ue.gzindex]&255),ue.gzindex++;ue.gzhead.hcrc&&ue.pending>ie&&($.adler=n($.adler,ue.pending_buf,ue.pending-ie,ie)),ue.gzindex===ue.gzhead.extra.length&&(ue.gzindex=0,ue.status=H)}else ue.status=H;if(ue.status===H)if(ue.gzhead.name){ie=ue.pending;do{if(ue.pending===ue.pending_buf_size&&(ue.gzhead.hcrc&&ue.pending>ie&&($.adler=n($.adler,ue.pending_buf,ue.pending-ie,ie)),de($),ie=ue.pending,ue.pending===ue.pending_buf_size)){Be=1;break}ue.gzindex<ue.gzhead.name.length?Be=ue.gzhead.name.charCodeAt(ue.gzindex++)&255:Be=0,at(ue,Be)}while(Be!==0);ue.gzhead.hcrc&&ue.pending>ie&&($.adler=n($.adler,ue.pending_buf,ue.pending-ie,ie)),Be===0&&(ue.gzindex=0,ue.status=L)}else ue.status=L;if(ue.status===L)if(ue.gzhead.comment){ie=ue.pending;do{if(ue.pending===ue.pending_buf_size&&(ue.gzhead.hcrc&&ue.pending>ie&&($.adler=n($.adler,ue.pending_buf,ue.pending-ie,ie)),de($),ie=ue.pending,ue.pending===ue.pending_buf_size)){Be=1;break}ue.gzindex<ue.gzhead.comment.length?Be=ue.gzhead.comment.charCodeAt(ue.gzindex++)&255:Be=0,at(ue,Be)}while(Be!==0);ue.gzhead.hcrc&&ue.pending>ie&&($.adler=n($.adler,ue.pending_buf,ue.pending-ie,ie)),Be===0&&(ue.status=V)}else ue.status=V;if(ue.status===V&&(ue.gzhead.hcrc?(ue.pending+2>ue.pending_buf_size&&de($),ue.pending+2<=ue.pending_buf_size&&(at(ue,$.adler&255),at(ue,$.adler>>8&255),$.adler=0,ue.status=J)):ue.status=J),ue.pending!==0){if(de($),$.avail_out===0)return ue.last_flush=-1,A}else if($.avail_in===0&&Se(Fe)<=Se(je)&&Fe!==l)return be($,h);if(ue.status===ee&&$.avail_in!==0)return be($,h);if($.avail_in!==0||ue.lookahead!==0||Fe!==i&&ue.status!==ee){var ft=ue.strategy===m?rt(ue,Fe):ue.strategy===y?tt(ue,Fe):At[ue.level].func(ue,Fe);if((ft===fe||ft===he)&&(ue.status=ee),ft===ae||ft===fe)return $.avail_out===0&&(ue.last_flush=-1),A;if(ft===ne&&(Fe===o?t._tr_align(ue):Fe!==c&&(t._tr_stored_block(ue,0,0,!1),Fe===s&&(ve(ue.head),ue.lookahead===0&&(ue.strstart=0,ue.block_start=0,ue.insert=0))),de($),$.avail_out===0))return ue.last_flush=-1,A}return Fe!==l?A:ue.wrap<=0?u:(ue.wrap===2?(at(ue,$.adler&255),at(ue,$.adler>>8&255),at(ue,$.adler>>16&255),at(ue,$.adler>>24&255),at(ue,$.total_in&255),at(ue,$.total_in>>8&255),at(ue,$.total_in>>16&255),at(ue,$.total_in>>24&255)):(Ve(ue,$.adler>>>16),Ve(ue,$.adler&65535)),de($),ue.wrap>0&&(ue.wrap=-ue.wrap),ue.pending!==0?A:u)}function Et($){var Fe;return!$||!$.state?d:(Fe=$.state.status,Fe!==K&&Fe!==U&&Fe!==H&&Fe!==L&&Fe!==V&&Fe!==J&&Fe!==ee?be($,d):($.state=null,Fe===J?be($,f):A))}function Yt($,Fe){var je=Fe.length,ue,ie,Be,Xe,Oe,ft,wt,ot;if(!$||!$.state||(ue=$.state,Xe=ue.wrap,Xe===2||Xe===1&&ue.status!==K||ue.lookahead))return d;for(Xe===1&&($.adler=r($.adler,Fe,je,0)),ue.wrap=0,je>=ue.w_size&&(Xe===0&&(ve(ue.head),ue.strstart=0,ue.block_start=0,ue.insert=0),ot=new e.Buf8(ue.w_size),e.arraySet(ot,Fe,je-ue.w_size,ue.w_size,0),Fe=ot,je=ue.w_size),Oe=$.avail_in,ft=$.next_in,wt=$.input,$.avail_in=je,$.next_in=0,$.input=Fe,Re(ue);ue.lookahead>=k;){ie=ue.strstart,Be=ue.lookahead-(k-1);do ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ie+k-1])&ue.hash_mask,ue.prev[ie&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ie,ie++;while(--Be);ue.strstart=ie,ue.lookahead=k-1,Re(ue)}return ue.strstart+=ue.lookahead,ue.block_start=ue.strstart,ue.insert=ue.lookahead,ue.lookahead=0,ue.match_length=ue.prev_length=k-1,ue.match_available=0,$.next_in=ft,$.input=wt,$.avail_in=Oe,ue.wrap=Xe,A}return RA.deflateInit=Ge,RA.deflateInit2=He,RA.deflateReset=ct,RA.deflateResetKeep=qe,RA.deflateSetHeader=Tt,RA.deflate=Ee,RA.deflateEnd=Et,RA.deflateSetDictionary=Yt,RA.deflateInfo="pako deflate (from Nodeca project)",RA}var xp={},MV;function Sge(){if(MV)return xp;MV=1;var e=kg(),t=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch{t=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{r=!1}for(var n=new e.Buf8(256),a=0;a<256;a++)n[a]=a>=252?6:a>=248?5:a>=240?4:a>=224?3:a>=192?2:1;n[254]=n[254]=1,xp.string2buf=function(o){var s,l,c,A,u,d=o.length,f=0;for(A=0;A<d;A++)l=o.charCodeAt(A),(l&64512)===55296&&A+1<d&&(c=o.charCodeAt(A+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),A++)),f+=l<128?1:l<2048?2:l<65536?3:4;for(s=new e.Buf8(f),u=0,A=0;u<f;A++)l=o.charCodeAt(A),(l&64512)===55296&&A+1<d&&(c=o.charCodeAt(A+1),(c&64512)===56320&&(l=65536+(l-55296<<10)+(c-56320),A++)),l<128?s[u++]=l:l<2048?(s[u++]=192|l>>>6,s[u++]=128|l&63):l<65536?(s[u++]=224|l>>>12,s[u++]=128|l>>>6&63,s[u++]=128|l&63):(s[u++]=240|l>>>18,s[u++]=128|l>>>12&63,s[u++]=128|l>>>6&63,s[u++]=128|l&63);return s};function i(o,s){if(s<65534&&(o.subarray&&r||!o.subarray&&t))return String.fromCharCode.apply(null,e.shrinkBuf(o,s));for(var l="",c=0;c<s;c++)l+=String.fromCharCode(o[c]);return l}return xp.buf2binstring=function(o){return i(o,o.length)},xp.binstring2buf=function(o){for(var s=new e.Buf8(o.length),l=0,c=s.length;l<c;l++)s[l]=o.charCodeAt(l);return s},xp.buf2string=function(o,s){var l,c,A,u,d=s||o.length,f=new Array(d*2);for(c=0,l=0;l<d;){if(A=o[l++],A<128){f[c++]=A;continue}if(u=n[A],u>4){f[c++]=65533,l+=u-1;continue}for(A&=u===2?31:u===3?15:7;u>1&&l<d;)A=A<<6|o[l++]&63,u--;if(u>1){f[c++]=65533;continue}A<65536?f[c++]=A:(A-=65536,f[c++]=55296|A>>10&1023,f[c++]=56320|A&1023)}return i(f,c)},xp.utf8border=function(o,s){var l;for(s=s||o.length,s>o.length&&(s=o.length),l=s-1;l>=0&&(o[l]&192)===128;)l--;return l<0||l===0?s:l+n[o[l]]>s?l:s},xp}var rF,IV;function Rge(){if(IV)return rF;IV=1;function e(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}return rF=e,rF}var bV;function m8e(){if(bV)return Zm;bV=1;var e=v8e(),t=kg(),r=Sge(),n=kY(),a=Rge(),i=Object.prototype.toString,o=0,s=4,l=0,c=1,A=2,u=-1,d=0,f=8;function h(y){if(!(this instanceof h))return new h(y);this.options=t.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},y||{});var C=this.options;C.raw&&C.windowBits>0?C.windowBits=-C.windowBits:C.gzip&&C.windowBits>0&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new a,this.strm.avail_out=0;var w=e.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(w!==l)throw new Error(n[w]);if(C.header&&e.deflateSetHeader(this.strm,C.header),C.dictionary){var B;if(typeof C.dictionary=="string"?B=r.string2buf(C.dictionary):i.call(C.dictionary)==="[object ArrayBuffer]"?B=new Uint8Array(C.dictionary):B=C.dictionary,w=e.deflateSetDictionary(this.strm,B),w!==l)throw new Error(n[w]);this._dict_set=!0}}h.prototype.push=function(y,C){var w=this.strm,B=this.options.chunkSize,x,M;if(this.ended)return!1;M=C===~~C?C:C===!0?s:o,typeof y=="string"?w.input=r.string2buf(y):i.call(y)==="[object ArrayBuffer]"?w.input=new Uint8Array(y):w.input=y,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new t.Buf8(B),w.next_out=0,w.avail_out=B),x=e.deflate(w,M),x!==c&&x!==l)return this.onEnd(x),this.ended=!0,!1;(w.avail_out===0||w.avail_in===0&&(M===s||M===A))&&(this.options.to==="string"?this.onData(r.buf2binstring(t.shrinkBuf(w.output,w.next_out))):this.onData(t.shrinkBuf(w.output,w.next_out)))}while((w.avail_in>0||w.avail_out===0)&&x!==c);return M===s?(x=e.deflateEnd(this.strm),this.onEnd(x),this.ended=!0,x===l):(M===A&&(this.onEnd(l),w.avail_out=0),!0)},h.prototype.onData=function(y){this.chunks.push(y)},h.prototype.onEnd=function(y){y===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function g(y,C){var w=new h(C);if(w.push(y,!0),w.err)throw w.msg||n[w.err];return w.result}function p(y,C){return C=C||{},C.raw=!0,g(y,C)}function m(y,C){return C=C||{},C.gzip=!0,g(y,C)}return Zm.Deflate=h,Zm.deflate=g,Zm.deflateRaw=p,Zm.gzip=m,Zm}var $m={},jc={},nF,SV;function E8e(){if(SV)return nF;SV=1;var e=30,t=12;return nF=function(n,a){var i,o,s,l,c,A,u,d,f,h,g,p,m,y,C,w,B,x,M,S,R,b,T,D,F;i=n.state,o=n.next_in,D=n.input,s=o+(n.avail_in-5),l=n.next_out,F=n.output,c=l-(a-n.avail_out),A=l+(n.avail_out-257),u=i.dmax,d=i.wsize,f=i.whave,h=i.wnext,g=i.window,p=i.hold,m=i.bits,y=i.lencode,C=i.distcode,w=(1<<i.lenbits)-1,B=(1<<i.distbits)-1;e:do{m<15&&(p+=D[o++]<<m,m+=8,p+=D[o++]<<m,m+=8),x=y[p&w];t:for(;;){if(M=x>>>24,p>>>=M,m-=M,M=x>>>16&255,M===0)F[l++]=x&65535;else if(M&16){S=x&65535,M&=15,M&&(m<M&&(p+=D[o++]<<m,m+=8),S+=p&(1<<M)-1,p>>>=M,m-=M),m<15&&(p+=D[o++]<<m,m+=8,p+=D[o++]<<m,m+=8),x=C[p&B];r:for(;;){if(M=x>>>24,p>>>=M,m-=M,M=x>>>16&255,M&16){if(R=x&65535,M&=15,m<M&&(p+=D[o++]<<m,m+=8,m<M&&(p+=D[o++]<<m,m+=8)),R+=p&(1<<M)-1,R>u){n.msg="invalid distance too far back",i.mode=e;break e}if(p>>>=M,m-=M,M=l-c,R>M){if(M=R-M,M>f&&i.sane){n.msg="invalid distance too far back",i.mode=e;break e}if(b=0,T=g,h===0){if(b+=d-M,M<S){S-=M;do F[l++]=g[b++];while(--M);b=l-R,T=F}}else if(h<M){if(b+=d+h-M,M-=h,M<S){S-=M;do F[l++]=g[b++];while(--M);if(b=0,h<S){M=h,S-=M;do F[l++]=g[b++];while(--M);b=l-R,T=F}}}else if(b+=h-M,M<S){S-=M;do F[l++]=g[b++];while(--M);b=l-R,T=F}for(;S>2;)F[l++]=T[b++],F[l++]=T[b++],F[l++]=T[b++],S-=3;S&&(F[l++]=T[b++],S>1&&(F[l++]=T[b++]))}else{b=l-R;do F[l++]=F[b++],F[l++]=F[b++],F[l++]=F[b++],S-=3;while(S>2);S&&(F[l++]=F[b++],S>1&&(F[l++]=F[b++]))}}else if((M&64)===0){x=C[(x&65535)+(p&(1<<M)-1)];continue r}else{n.msg="invalid distance code",i.mode=e;break e}break}}else if((M&64)===0){x=y[(x&65535)+(p&(1<<M)-1)];continue t}else if(M&32){i.mode=t;break e}else{n.msg="invalid literal/length code",i.mode=e;break e}break}}while(o<s&&l<A);S=m>>3,o-=S,m-=S<<3,p&=(1<<m)-1,n.next_in=o,n.next_out=l,n.avail_in=o<s?5+(s-o):5-(o-s),n.avail_out=l<A?257+(A-l):257-(l-A),i.hold=p,i.bits=m},nF}var aF,RV;function y8e(){if(RV)return aF;RV=1;var e=kg(),t=15,r=852,n=592,a=0,i=1,o=2,s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],l=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],A=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];return aF=function(d,f,h,g,p,m,y,C){var w=C.bits,B=0,x=0,M=0,S=0,R=0,b=0,T=0,D=0,F=0,N=0,_,P,k,j,Y,X=null,K=0,U,H=new e.Buf16(t+1),L=new e.Buf16(t+1),V=null,J=0,ee,ae,ne;for(B=0;B<=t;B++)H[B]=0;for(x=0;x<g;x++)H[f[h+x]]++;for(R=w,S=t;S>=1&&H[S]===0;S--);if(R>S&&(R=S),S===0)return p[m++]=1<<24|64<<16|0,p[m++]=1<<24|64<<16|0,C.bits=1,0;for(M=1;M<S&&H[M]===0;M++);for(R<M&&(R=M),D=1,B=1;B<=t;B++)if(D<<=1,D-=H[B],D<0)return-1;if(D>0&&(d===a||S!==1))return-1;for(L[1]=0,B=1;B<t;B++)L[B+1]=L[B]+H[B];for(x=0;x<g;x++)f[h+x]!==0&&(y[L[f[h+x]]++]=x);if(d===a?(X=V=y,U=19):d===i?(X=s,K-=257,V=l,J-=257,U=256):(X=c,V=A,U=-1),N=0,x=0,B=M,Y=m,b=R,T=0,k=-1,F=1<<R,j=F-1,d===i&&F>r||d===o&&F>n)return 1;for(;;){ee=B-T,y[x]<U?(ae=0,ne=y[x]):y[x]>U?(ae=V[J+y[x]],ne=X[K+y[x]]):(ae=96,ne=0),_=1<<B-T,P=1<<b,M=P;do P-=_,p[Y+(N>>T)+P]=ee<<24|ae<<16|ne|0;while(P!==0);for(_=1<<B-1;N&_;)_>>=1;if(_!==0?(N&=_-1,N+=_):N=0,x++,--H[B]===0){if(B===S)break;B=f[h+y[x]]}if(B>R&&(N&j)!==k){for(T===0&&(T=R),Y+=M,b=B-T,D=1<<b;b+T<S&&(D-=H[b+T],!(D<=0));)b++,D<<=1;if(F+=1<<b,d===i&&F>r||d===o&&F>n)return 1;k=N&j,p[k]=R<<24|b<<16|Y-m|0}}return N!==0&&(p[Y+N]=B-T<<24|64<<16|0),C.bits=R,0},aF}var TV;function C8e(){if(TV)return jc;TV=1;var e=kg(),t=Ige(),r=bge(),n=E8e(),a=y8e(),i=0,o=1,s=2,l=4,c=5,A=6,u=0,d=1,f=2,h=-2,g=-3,p=-4,m=-5,y=8,C=1,w=2,B=3,x=4,M=5,S=6,R=7,b=8,T=9,D=10,F=11,N=12,_=13,P=14,k=15,j=16,Y=17,X=18,K=19,U=20,H=21,L=22,V=23,J=24,ee=25,ae=26,ne=27,fe=28,he=29,ye=30,be=31,Se=32,ve=852,de=592,Ue=15,at=Ue;function Ve(He){return(He>>>24&255)+(He>>>8&65280)+((He&65280)<<8)+((He&255)<<24)}function Ie(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new e.Buf16(320),this.work=new e.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function we(He){var Ge;return!He||!He.state?h:(Ge=He.state,He.total_in=He.total_out=Ge.total=0,He.msg="",Ge.wrap&&(He.adler=Ge.wrap&1),Ge.mode=C,Ge.last=0,Ge.havedict=0,Ge.dmax=32768,Ge.head=null,Ge.hold=0,Ge.bits=0,Ge.lencode=Ge.lendyn=new e.Buf32(ve),Ge.distcode=Ge.distdyn=new e.Buf32(de),Ge.sane=1,Ge.back=-1,u)}function Re(He){var Ge;return!He||!He.state?h:(Ge=He.state,Ge.wsize=0,Ge.whave=0,Ge.wnext=0,we(He))}function Te(He,Ge){var Ee,Et;return!He||!He.state||(Et=He.state,Ge<0?(Ee=0,Ge=-Ge):(Ee=(Ge>>4)+1,Ge<48&&(Ge&=15)),Ge&&(Ge<8||Ge>15))?h:(Et.window!==null&&Et.wbits!==Ge&&(Et.window=null),Et.wrap=Ee,Et.wbits=Ge,Re(He))}function Ke(He,Ge){var Ee,Et;return He?(Et=new Ie,He.state=Et,Et.window=null,Ee=Te(He,Ge),Ee!==u&&(He.state=null),Ee):h}function mt(He){return Ke(He,at)}var tt=!0,rt,lt;function At(He){if(tt){var Ge;for(rt=new e.Buf32(512),lt=new e.Buf32(32),Ge=0;Ge<144;)He.lens[Ge++]=8;for(;Ge<256;)He.lens[Ge++]=9;for(;Ge<280;)He.lens[Ge++]=7;for(;Ge<288;)He.lens[Ge++]=8;for(a(o,He.lens,0,288,rt,0,He.work,{bits:9}),Ge=0;Ge<32;)He.lens[Ge++]=5;a(s,He.lens,0,32,lt,0,He.work,{bits:5}),tt=!1}He.lencode=rt,He.lenbits=9,He.distcode=lt,He.distbits=5}function $e(He,Ge,Ee,Et){var Yt,$=He.state;return $.window===null&&($.wsize=1<<$.wbits,$.wnext=0,$.whave=0,$.window=new e.Buf8($.wsize)),Et>=$.wsize?(e.arraySet($.window,Ge,Ee-$.wsize,$.wsize,0),$.wnext=0,$.whave=$.wsize):(Yt=$.wsize-$.wnext,Yt>Et&&(Yt=Et),e.arraySet($.window,Ge,Ee-Et,Yt,$.wnext),Et-=Yt,Et?(e.arraySet($.window,Ge,Ee-Et,Et,0),$.wnext=Et,$.whave=$.wsize):($.wnext+=Yt,$.wnext===$.wsize&&($.wnext=0),$.whave<$.wsize&&($.whave+=Yt))),0}function ce(He,Ge){var Ee,Et,Yt,$,Fe,je,ue,ie,Be,Xe,Oe,ft,wt,ot,it=0,vt,qt,Xt,Tr,Kr,Vr,Pr,mr,xr=new e.Buf8(4),Ir,Fr,br=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!He||!He.state||!He.output||!He.input&&He.avail_in!==0)return h;Ee=He.state,Ee.mode===N&&(Ee.mode=_),Fe=He.next_out,Yt=He.output,ue=He.avail_out,$=He.next_in,Et=He.input,je=He.avail_in,ie=Ee.hold,Be=Ee.bits,Xe=je,Oe=ue,mr=u;e:for(;;)switch(Ee.mode){case C:if(Ee.wrap===0){Ee.mode=_;break}for(;Be<16;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(Ee.wrap&2&&ie===35615){Ee.check=0,xr[0]=ie&255,xr[1]=ie>>>8&255,Ee.check=r(Ee.check,xr,2,0),ie=0,Be=0,Ee.mode=w;break}if(Ee.flags=0,Ee.head&&(Ee.head.done=!1),!(Ee.wrap&1)||(((ie&255)<<8)+(ie>>8))%31){He.msg="incorrect header check",Ee.mode=ye;break}if((ie&15)!==y){He.msg="unknown compression method",Ee.mode=ye;break}if(ie>>>=4,Be-=4,Pr=(ie&15)+8,Ee.wbits===0)Ee.wbits=Pr;else if(Pr>Ee.wbits){He.msg="invalid window size",Ee.mode=ye;break}Ee.dmax=1<<Pr,He.adler=Ee.check=1,Ee.mode=ie&512?D:N,ie=0,Be=0;break;case w:for(;Be<16;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(Ee.flags=ie,(Ee.flags&255)!==y){He.msg="unknown compression method",Ee.mode=ye;break}if(Ee.flags&57344){He.msg="unknown header flags set",Ee.mode=ye;break}Ee.head&&(Ee.head.text=ie>>8&1),Ee.flags&512&&(xr[0]=ie&255,xr[1]=ie>>>8&255,Ee.check=r(Ee.check,xr,2,0)),ie=0,Be=0,Ee.mode=B;case B:for(;Be<32;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}Ee.head&&(Ee.head.time=ie),Ee.flags&512&&(xr[0]=ie&255,xr[1]=ie>>>8&255,xr[2]=ie>>>16&255,xr[3]=ie>>>24&255,Ee.check=r(Ee.check,xr,4,0)),ie=0,Be=0,Ee.mode=x;case x:for(;Be<16;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}Ee.head&&(Ee.head.xflags=ie&255,Ee.head.os=ie>>8),Ee.flags&512&&(xr[0]=ie&255,xr[1]=ie>>>8&255,Ee.check=r(Ee.check,xr,2,0)),ie=0,Be=0,Ee.mode=M;case M:if(Ee.flags&1024){for(;Be<16;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}Ee.length=ie,Ee.head&&(Ee.head.extra_len=ie),Ee.flags&512&&(xr[0]=ie&255,xr[1]=ie>>>8&255,Ee.check=r(Ee.check,xr,2,0)),ie=0,Be=0}else Ee.head&&(Ee.head.extra=null);Ee.mode=S;case S:if(Ee.flags&1024&&(ft=Ee.length,ft>je&&(ft=je),ft&&(Ee.head&&(Pr=Ee.head.extra_len-Ee.length,Ee.head.extra||(Ee.head.extra=new Array(Ee.head.extra_len)),e.arraySet(Ee.head.extra,Et,$,ft,Pr)),Ee.flags&512&&(Ee.check=r(Ee.check,Et,ft,$)),je-=ft,$+=ft,Ee.length-=ft),Ee.length))break e;Ee.length=0,Ee.mode=R;case R:if(Ee.flags&2048){if(je===0)break e;ft=0;do Pr=Et[$+ft++],Ee.head&&Pr&&Ee.length<65536&&(Ee.head.name+=String.fromCharCode(Pr));while(Pr&&ft<je);if(Ee.flags&512&&(Ee.check=r(Ee.check,Et,ft,$)),je-=ft,$+=ft,Pr)break e}else Ee.head&&(Ee.head.name=null);Ee.length=0,Ee.mode=b;case b:if(Ee.flags&4096){if(je===0)break e;ft=0;do Pr=Et[$+ft++],Ee.head&&Pr&&Ee.length<65536&&(Ee.head.comment+=String.fromCharCode(Pr));while(Pr&&ft<je);if(Ee.flags&512&&(Ee.check=r(Ee.check,Et,ft,$)),je-=ft,$+=ft,Pr)break e}else Ee.head&&(Ee.head.comment=null);Ee.mode=T;case T:if(Ee.flags&512){for(;Be<16;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(ie!==(Ee.check&65535)){He.msg="header crc mismatch",Ee.mode=ye;break}ie=0,Be=0}Ee.head&&(Ee.head.hcrc=Ee.flags>>9&1,Ee.head.done=!0),He.adler=Ee.check=0,Ee.mode=N;break;case D:for(;Be<32;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}He.adler=Ee.check=Ve(ie),ie=0,Be=0,Ee.mode=F;case F:if(Ee.havedict===0)return He.next_out=Fe,He.avail_out=ue,He.next_in=$,He.avail_in=je,Ee.hold=ie,Ee.bits=Be,f;He.adler=Ee.check=1,Ee.mode=N;case N:if(Ge===c||Ge===A)break e;case _:if(Ee.last){ie>>>=Be&7,Be-=Be&7,Ee.mode=ne;break}for(;Be<3;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}switch(Ee.last=ie&1,ie>>>=1,Be-=1,ie&3){case 0:Ee.mode=P;break;case 1:if(At(Ee),Ee.mode=U,Ge===A){ie>>>=2,Be-=2;break e}break;case 2:Ee.mode=Y;break;case 3:He.msg="invalid block type",Ee.mode=ye}ie>>>=2,Be-=2;break;case P:for(ie>>>=Be&7,Be-=Be&7;Be<32;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if((ie&65535)!==(ie>>>16^65535)){He.msg="invalid stored block lengths",Ee.mode=ye;break}if(Ee.length=ie&65535,ie=0,Be=0,Ee.mode=k,Ge===A)break e;case k:Ee.mode=j;case j:if(ft=Ee.length,ft){if(ft>je&&(ft=je),ft>ue&&(ft=ue),ft===0)break e;e.arraySet(Yt,Et,$,ft,Fe),je-=ft,$+=ft,ue-=ft,Fe+=ft,Ee.length-=ft;break}Ee.mode=N;break;case Y:for(;Be<14;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(Ee.nlen=(ie&31)+257,ie>>>=5,Be-=5,Ee.ndist=(ie&31)+1,ie>>>=5,Be-=5,Ee.ncode=(ie&15)+4,ie>>>=4,Be-=4,Ee.nlen>286||Ee.ndist>30){He.msg="too many length or distance symbols",Ee.mode=ye;break}Ee.have=0,Ee.mode=X;case X:for(;Ee.have<Ee.ncode;){for(;Be<3;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}Ee.lens[br[Ee.have++]]=ie&7,ie>>>=3,Be-=3}for(;Ee.have<19;)Ee.lens[br[Ee.have++]]=0;if(Ee.lencode=Ee.lendyn,Ee.lenbits=7,Ir={bits:Ee.lenbits},mr=a(i,Ee.lens,0,19,Ee.lencode,0,Ee.work,Ir),Ee.lenbits=Ir.bits,mr){He.msg="invalid code lengths set",Ee.mode=ye;break}Ee.have=0,Ee.mode=K;case K:for(;Ee.have<Ee.nlen+Ee.ndist;){for(;it=Ee.lencode[ie&(1<<Ee.lenbits)-1],vt=it>>>24,qt=it>>>16&255,Xt=it&65535,!(vt<=Be);){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(Xt<16)ie>>>=vt,Be-=vt,Ee.lens[Ee.have++]=Xt;else{if(Xt===16){for(Fr=vt+2;Be<Fr;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(ie>>>=vt,Be-=vt,Ee.have===0){He.msg="invalid bit length repeat",Ee.mode=ye;break}Pr=Ee.lens[Ee.have-1],ft=3+(ie&3),ie>>>=2,Be-=2}else if(Xt===17){for(Fr=vt+3;Be<Fr;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}ie>>>=vt,Be-=vt,Pr=0,ft=3+(ie&7),ie>>>=3,Be-=3}else{for(Fr=vt+7;Be<Fr;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}ie>>>=vt,Be-=vt,Pr=0,ft=11+(ie&127),ie>>>=7,Be-=7}if(Ee.have+ft>Ee.nlen+Ee.ndist){He.msg="invalid bit length repeat",Ee.mode=ye;break}for(;ft--;)Ee.lens[Ee.have++]=Pr}}if(Ee.mode===ye)break;if(Ee.lens[256]===0){He.msg="invalid code -- missing end-of-block",Ee.mode=ye;break}if(Ee.lenbits=9,Ir={bits:Ee.lenbits},mr=a(o,Ee.lens,0,Ee.nlen,Ee.lencode,0,Ee.work,Ir),Ee.lenbits=Ir.bits,mr){He.msg="invalid literal/lengths set",Ee.mode=ye;break}if(Ee.distbits=6,Ee.distcode=Ee.distdyn,Ir={bits:Ee.distbits},mr=a(s,Ee.lens,Ee.nlen,Ee.ndist,Ee.distcode,0,Ee.work,Ir),Ee.distbits=Ir.bits,mr){He.msg="invalid distances set",Ee.mode=ye;break}if(Ee.mode=U,Ge===A)break e;case U:Ee.mode=H;case H:if(je>=6&&ue>=258){He.next_out=Fe,He.avail_out=ue,He.next_in=$,He.avail_in=je,Ee.hold=ie,Ee.bits=Be,n(He,Oe),Fe=He.next_out,Yt=He.output,ue=He.avail_out,$=He.next_in,Et=He.input,je=He.avail_in,ie=Ee.hold,Be=Ee.bits,Ee.mode===N&&(Ee.back=-1);break}for(Ee.back=0;it=Ee.lencode[ie&(1<<Ee.lenbits)-1],vt=it>>>24,qt=it>>>16&255,Xt=it&65535,!(vt<=Be);){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(qt&&(qt&240)===0){for(Tr=vt,Kr=qt,Vr=Xt;it=Ee.lencode[Vr+((ie&(1<<Tr+Kr)-1)>>Tr)],vt=it>>>24,qt=it>>>16&255,Xt=it&65535,!(Tr+vt<=Be);){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}ie>>>=Tr,Be-=Tr,Ee.back+=Tr}if(ie>>>=vt,Be-=vt,Ee.back+=vt,Ee.length=Xt,qt===0){Ee.mode=ae;break}if(qt&32){Ee.back=-1,Ee.mode=N;break}if(qt&64){He.msg="invalid literal/length code",Ee.mode=ye;break}Ee.extra=qt&15,Ee.mode=L;case L:if(Ee.extra){for(Fr=Ee.extra;Be<Fr;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}Ee.length+=ie&(1<<Ee.extra)-1,ie>>>=Ee.extra,Be-=Ee.extra,Ee.back+=Ee.extra}Ee.was=Ee.length,Ee.mode=V;case V:for(;it=Ee.distcode[ie&(1<<Ee.distbits)-1],vt=it>>>24,qt=it>>>16&255,Xt=it&65535,!(vt<=Be);){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if((qt&240)===0){for(Tr=vt,Kr=qt,Vr=Xt;it=Ee.distcode[Vr+((ie&(1<<Tr+Kr)-1)>>Tr)],vt=it>>>24,qt=it>>>16&255,Xt=it&65535,!(Tr+vt<=Be);){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}ie>>>=Tr,Be-=Tr,Ee.back+=Tr}if(ie>>>=vt,Be-=vt,Ee.back+=vt,qt&64){He.msg="invalid distance code",Ee.mode=ye;break}Ee.offset=Xt,Ee.extra=qt&15,Ee.mode=J;case J:if(Ee.extra){for(Fr=Ee.extra;Be<Fr;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}Ee.offset+=ie&(1<<Ee.extra)-1,ie>>>=Ee.extra,Be-=Ee.extra,Ee.back+=Ee.extra}if(Ee.offset>Ee.dmax){He.msg="invalid distance too far back",Ee.mode=ye;break}Ee.mode=ee;case ee:if(ue===0)break e;if(ft=Oe-ue,Ee.offset>ft){if(ft=Ee.offset-ft,ft>Ee.whave&&Ee.sane){He.msg="invalid distance too far back",Ee.mode=ye;break}ft>Ee.wnext?(ft-=Ee.wnext,wt=Ee.wsize-ft):wt=Ee.wnext-ft,ft>Ee.length&&(ft=Ee.length),ot=Ee.window}else ot=Yt,wt=Fe-Ee.offset,ft=Ee.length;ft>ue&&(ft=ue),ue-=ft,Ee.length-=ft;do Yt[Fe++]=ot[wt++];while(--ft);Ee.length===0&&(Ee.mode=H);break;case ae:if(ue===0)break e;Yt[Fe++]=Ee.length,ue--,Ee.mode=H;break;case ne:if(Ee.wrap){for(;Be<32;){if(je===0)break e;je--,ie|=Et[$++]<<Be,Be+=8}if(Oe-=ue,He.total_out+=Oe,Ee.total+=Oe,Oe&&(He.adler=Ee.check=Ee.flags?r(Ee.check,Yt,Oe,Fe-Oe):t(Ee.check,Yt,Oe,Fe-Oe)),Oe=ue,(Ee.flags?ie:Ve(ie))!==Ee.check){He.msg="incorrect data check",Ee.mode=ye;break}ie=0,Be=0}Ee.mode=fe;case fe:if(Ee.wrap&&Ee.flags){for(;Be<32;){if(je===0)break e;je--,ie+=Et[$++]<<Be,Be+=8}if(ie!==(Ee.total&4294967295)){He.msg="incorrect length check",Ee.mode=ye;break}ie=0,Be=0}Ee.mode=he;case he:mr=d;break e;case ye:mr=g;break e;case be:return p;case Se:default:return h}return He.next_out=Fe,He.avail_out=ue,He.next_in=$,He.avail_in=je,Ee.hold=ie,Ee.bits=Be,(Ee.wsize||Oe!==He.avail_out&&Ee.mode<ye&&(Ee.mode<ne||Ge!==l))&&$e(He,He.output,He.next_out,Oe-He.avail_out),Xe-=He.avail_in,Oe-=He.avail_out,He.total_in+=Xe,He.total_out+=Oe,Ee.total+=Oe,Ee.wrap&&Oe&&(He.adler=Ee.check=Ee.flags?r(Ee.check,Yt,Oe,He.next_out-Oe):t(Ee.check,Yt,Oe,He.next_out-Oe)),He.data_type=Ee.bits+(Ee.last?64:0)+(Ee.mode===N?128:0)+(Ee.mode===U||Ee.mode===k?256:0),(Xe===0&&Oe===0||Ge===l)&&mr===u&&(mr=m),mr}function qe(He){if(!He||!He.state)return h;var Ge=He.state;return Ge.window&&(Ge.window=null),He.state=null,u}function ct(He,Ge){var Ee;return!He||!He.state||(Ee=He.state,(Ee.wrap&2)===0)?h:(Ee.head=Ge,Ge.done=!1,u)}function Tt(He,Ge){var Ee=Ge.length,Et,Yt,$;return!He||!He.state||(Et=He.state,Et.wrap!==0&&Et.mode!==F)?h:Et.mode===F&&(Yt=1,Yt=t(Yt,Ge,Ee,0),Yt!==Et.check)?g:($=$e(He,Ge,Ee,Ee),$?(Et.mode=be,p):(Et.havedict=1,u))}return jc.inflateReset=Re,jc.inflateReset2=Te,jc.inflateResetKeep=we,jc.inflateInit=mt,jc.inflateInit2=Ke,jc.inflate=ce,jc.inflateEnd=qe,jc.inflateGetHeader=ct,jc.inflateSetDictionary=Tt,jc.inflateInfo="pako inflate (from Nodeca project)",jc}var iF,QV;function Tge(){return QV||(QV=1,iF={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}),iF}var oF,DV;function w8e(){if(DV)return oF;DV=1;function e(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}return oF=e,oF}var FV;function B8e(){if(FV)return $m;FV=1;var e=C8e(),t=kg(),r=Sge(),n=Tge(),a=kY(),i=Rge(),o=w8e(),s=Object.prototype.toString;function l(u){if(!(this instanceof l))return new l(u);this.options=t.assign({chunkSize:16384,windowBits:0,to:""},u||{});var d=this.options;d.raw&&d.windowBits>=0&&d.windowBits<16&&(d.windowBits=-d.windowBits,d.windowBits===0&&(d.windowBits=-15)),d.windowBits>=0&&d.windowBits<16&&!(u&&u.windowBits)&&(d.windowBits+=32),d.windowBits>15&&d.windowBits<48&&(d.windowBits&15)===0&&(d.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new i,this.strm.avail_out=0;var f=e.inflateInit2(this.strm,d.windowBits);if(f!==n.Z_OK)throw new Error(a[f]);if(this.header=new o,e.inflateGetHeader(this.strm,this.header),d.dictionary&&(typeof d.dictionary=="string"?d.dictionary=r.string2buf(d.dictionary):s.call(d.dictionary)==="[object ArrayBuffer]"&&(d.dictionary=new Uint8Array(d.dictionary)),d.raw&&(f=e.inflateSetDictionary(this.strm,d.dictionary),f!==n.Z_OK)))throw new Error(a[f])}l.prototype.push=function(u,d){var f=this.strm,h=this.options.chunkSize,g=this.options.dictionary,p,m,y,C,w,B=!1;if(this.ended)return!1;m=d===~~d?d:d===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof u=="string"?f.input=r.binstring2buf(u):s.call(u)==="[object ArrayBuffer]"?f.input=new Uint8Array(u):f.input=u,f.next_in=0,f.avail_in=f.input.length;do{if(f.avail_out===0&&(f.output=new t.Buf8(h),f.next_out=0,f.avail_out=h),p=e.inflate(f,n.Z_NO_FLUSH),p===n.Z_NEED_DICT&&g&&(p=e.inflateSetDictionary(this.strm,g)),p===n.Z_BUF_ERROR&&B===!0&&(p=n.Z_OK,B=!1),p!==n.Z_STREAM_END&&p!==n.Z_OK)return this.onEnd(p),this.ended=!0,!1;f.next_out&&(f.avail_out===0||p===n.Z_STREAM_END||f.avail_in===0&&(m===n.Z_FINISH||m===n.Z_SYNC_FLUSH))&&(this.options.to==="string"?(y=r.utf8border(f.output,f.next_out),C=f.next_out-y,w=r.buf2string(f.output,y),f.next_out=C,f.avail_out=h-C,C&&t.arraySet(f.output,f.output,y,C,0),this.onData(w)):this.onData(t.shrinkBuf(f.output,f.next_out))),f.avail_in===0&&f.avail_out===0&&(B=!0)}while((f.avail_in>0||f.avail_out===0)&&p!==n.Z_STREAM_END);return p===n.Z_STREAM_END&&(m=n.Z_FINISH),m===n.Z_FINISH?(p=e.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===n.Z_OK):(m===n.Z_SYNC_FLUSH&&(this.onEnd(n.Z_OK),f.avail_out=0),!0)},l.prototype.onData=function(u){this.chunks.push(u)},l.prototype.onEnd=function(u){u===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=t.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg};function c(u,d){var f=new l(d);if(f.push(u,!0),f.err)throw f.msg||a[f.err];return f.result}function A(u,d){return d=d||{},d.raw=!0,c(u,d)}return $m.Inflate=l,$m.inflate=c,$m.inflateRaw=A,$m.ungzip=c,$m}var sF,NV;function x8e(){if(NV)return sF;NV=1;var e=kg().assign,t=m8e(),r=B8e(),n=Tge(),a={};return e(a,t,r,n),sF=a,sF}var M8e=x8e();const Pl=gn(M8e),I8e=e=>{var t=e.replace(/^.*<CTICONTENT>(.*)<\/CTICONTENT>.*$/gs,"$1");t.substring(0,3)==="_t_"&&(t=t.substring(10)),t.substring(0,3)==="_c_"&&(t=b8e(t.substring(3)));var r=/[^\x09\x0A\x0D\x20-\xFF\x85\xA0-\uD7FF\uE000-\uFDCF\uFDE0-\uFFFD]/gm;return t.replace(/\n<\?xml version="1\.0" encoding="ISO-8859-1"\?>/gm,"").replace(r,"")};function b8e(e){var t=new Uint8Array(atob(e).split("").map(n=>n.charCodeAt(0)));try{var r=Pl.inflate(t)}catch(n){console.log(n)}return new TextDecoder("iso-8859-1").decode(new Uint8Array(r))}var Qge={};Qge.latin_map={Á:"A",Ă:"A",Ắ:"A",Ặ:"A",Ằ:"A",Ẳ:"A",Ẵ:"A",Ǎ:"A",Â:"A",Ấ:"A",Ậ:"A",Ầ:"A",Ẩ:"A",Ẫ:"A",Ä:"A",Ǟ:"A",Ȧ:"A",Ǡ:"A",Ạ:"A",Ȁ:"A",À:"A",Ả:"A",Ȃ:"A",Ā:"A",Ą:"A",Å:"A",Ǻ:"A",Ḁ:"A","Ⱥ":"A",Ã:"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY",Ḃ:"B",Ḅ:"B",Ɓ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ć:"C",Č:"C",Ç:"C",Ḉ:"C",Ĉ:"C",Ċ:"C",Ƈ:"C","Ȼ":"C",Ď:"D",Ḑ:"D",Ḓ:"D",Ḋ:"D",Ḍ:"D",Ɗ:"D",Ḏ:"D",ǲ:"D",ǅ:"D",Đ:"D",Ƌ:"D",Ǳ:"DZ",Ǆ:"DZ",É:"E",Ĕ:"E",Ě:"E",Ȩ:"E",Ḝ:"E",Ê:"E",Ế:"E",Ệ:"E",Ề:"E",Ể:"E",Ễ:"E",Ḙ:"E",Ë:"E",Ė:"E",Ẹ:"E",Ȅ:"E",È:"E",Ẻ:"E",Ȇ:"E",Ē:"E",Ḗ:"E",Ḕ:"E",Ę:"E","Ɇ":"E",Ẽ:"E",Ḛ:"E","Ꝫ":"ET",Ḟ:"F",Ƒ:"F",Ǵ:"G",Ğ:"G",Ǧ:"G",Ģ:"G",Ĝ:"G",Ġ:"G",Ɠ:"G",Ḡ:"G",Ǥ:"G",Ḫ:"H",Ȟ:"H",Ḩ:"H",Ĥ:"H","Ⱨ":"H",Ḧ:"H",Ḣ:"H",Ḥ:"H",Ħ:"H",Í:"I",Ĭ:"I",Ǐ:"I",Î:"I",Ï:"I",Ḯ:"I",İ:"I",Ị:"I",Ȉ:"I",Ì:"I",Ỉ:"I",Ȋ:"I",Ī:"I",Į:"I",Ɨ:"I",Ĩ:"I",Ḭ:"I","Ꝺ":"D","Ꝼ":"F","Ᵹ":"G","Ꞃ":"R","Ꞅ":"S","Ꞇ":"T","Ꝭ":"IS",Ĵ:"J","Ɉ":"J",Ḱ:"K",Ǩ:"K",Ķ:"K","Ⱪ":"K","Ꝃ":"K",Ḳ:"K",Ƙ:"K",Ḵ:"K","Ꝁ":"K","Ꝅ":"K",Ĺ:"L","Ƚ":"L",Ľ:"L",Ļ:"L",Ḽ:"L",Ḷ:"L",Ḹ:"L","Ⱡ":"L","Ꝉ":"L",Ḻ:"L",Ŀ:"L","Ɫ":"L",ǈ:"L",Ł:"L",Ǉ:"LJ",Ḿ:"M",Ṁ:"M",Ṃ:"M","Ɱ":"M",Ń:"N",Ň:"N",Ņ:"N",Ṋ:"N",Ṅ:"N",Ṇ:"N",Ǹ:"N",Ɲ:"N",Ṉ:"N","Ƞ":"N",ǋ:"N",Ñ:"N",Ǌ:"NJ",Ó:"O",Ŏ:"O",Ǒ:"O",Ô:"O",Ố:"O",Ộ:"O",Ồ:"O",Ổ:"O",Ỗ:"O",Ö:"O",Ȫ:"O",Ȯ:"O",Ȱ:"O",Ọ:"O",Ő:"O",Ȍ:"O",Ò:"O",Ỏ:"O",Ơ:"O",Ớ:"O",Ợ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ȏ:"O","Ꝋ":"O","Ꝍ":"O",Ō:"O",Ṓ:"O",Ṑ:"O",Ɵ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Õ:"O",Ṍ:"O",Ṏ:"O",Ȭ:"O",Ƣ:"OI","Ꝏ":"OO",Ɛ:"E",Ɔ:"O",Ȣ:"OU",Ṕ:"P",Ṗ:"P","Ꝓ":"P",Ƥ:"P","Ꝕ":"P","Ᵽ":"P","Ꝑ":"P","Ꝙ":"Q","Ꝗ":"Q",Ŕ:"R",Ř:"R",Ŗ:"R",Ṙ:"R",Ṛ:"R",Ṝ:"R",Ȑ:"R",Ȓ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꜿ":"C",Ǝ:"E",Ś:"S",Ṥ:"S",Š:"S",Ṧ:"S",Ş:"S",Ŝ:"S",Ș:"S",Ṡ:"S",Ṣ:"S",Ṩ:"S",Ť:"T",Ţ:"T",Ṱ:"T",Ț:"T","Ⱦ":"T",Ṫ:"T",Ṭ:"T",Ƭ:"T",Ṯ:"T",Ʈ:"T",Ŧ:"T","Ɐ":"A","Ꞁ":"L",Ɯ:"M","Ʌ":"V","Ꜩ":"TZ",Ú:"U",Ŭ:"U",Ǔ:"U",Û:"U",Ṷ:"U",Ü:"U",Ǘ:"U",Ǚ:"U",Ǜ:"U",Ǖ:"U",Ṳ:"U",Ụ:"U",Ű:"U",Ȕ:"U",Ù:"U",Ủ:"U",Ư:"U",Ứ:"U",Ự:"U",Ừ:"U",Ử:"U",Ữ:"U",Ȗ:"U",Ū:"U",Ṻ:"U",Ų:"U",Ů:"U",Ũ:"U",Ṹ:"U",Ṵ:"U","Ꝟ":"V",Ṿ:"V",Ʋ:"V",Ṽ:"V","Ꝡ":"VY",Ẃ:"W",Ŵ:"W",Ẅ:"W",Ẇ:"W",Ẉ:"W",Ẁ:"W","Ⱳ":"W",Ẍ:"X",Ẋ:"X",Ý:"Y",Ŷ:"Y",Ÿ:"Y",Ẏ:"Y",Ỵ:"Y",Ỳ:"Y",Ƴ:"Y",Ỷ:"Y","Ỿ":"Y",Ȳ:"Y","Ɏ":"Y",Ỹ:"Y",Ź:"Z",Ž:"Z",Ẑ:"Z","Ⱬ":"Z",Ż:"Z",Ẓ:"Z",Ȥ:"Z",Ẕ:"Z",Ƶ:"Z",Ĳ:"IJ",Œ:"OE","ᴀ":"A","ᴁ":"AE",ʙ:"B","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴇ":"E","ꜰ":"F",ɢ:"G",ʛ:"G",ʜ:"H",ɪ:"I",ʁ:"R","ᴊ":"J","ᴋ":"K",ʟ:"L","ᴌ":"L","ᴍ":"M",ɴ:"N","ᴏ":"O",ɶ:"OE","ᴐ":"O","ᴕ":"OU","ᴘ":"P",ʀ:"R","ᴎ":"N","ᴙ":"R","ꜱ":"S","ᴛ":"T","ⱻ":"E","ᴚ":"R","ᴜ":"U","ᴠ":"V","ᴡ":"W",ʏ:"Y","ᴢ":"Z",á:"a",ă:"a",ắ:"a",ặ:"a",ằ:"a",ẳ:"a",ẵ:"a",ǎ:"a",â:"a",ấ:"a",ậ:"a",ầ:"a",ẩ:"a",ẫ:"a",ä:"a",ǟ:"a",ȧ:"a",ǡ:"a",ạ:"a",ȁ:"a",à:"a",ả:"a",ȃ:"a",ā:"a",ą:"a","ᶏ":"a",ẚ:"a",å:"a",ǻ:"a",ḁ:"a","ⱥ":"a",ã:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",ǣ:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay",ḃ:"b",ḅ:"b",ɓ:"b",ḇ:"b","ᵬ":"b","ᶀ":"b",ƀ:"b",ƃ:"b",ɵ:"o",ć:"c",č:"c",ç:"c",ḉ:"c",ĉ:"c",ɕ:"c",ċ:"c",ƈ:"c","ȼ":"c",ď:"d",ḑ:"d",ḓ:"d","ȡ":"d",ḋ:"d",ḍ:"d",ɗ:"d","ᶑ":"d",ḏ:"d","ᵭ":"d","ᶁ":"d",đ:"d",ɖ:"d",ƌ:"d",ı:"i","ȷ":"j",ɟ:"j",ʄ:"j",ǳ:"dz",ǆ:"dz",é:"e",ĕ:"e",ě:"e",ȩ:"e",ḝ:"e",ê:"e",ế:"e",ệ:"e",ề:"e",ể:"e",ễ:"e",ḙ:"e",ë:"e",ė:"e",ẹ:"e",ȅ:"e",è:"e",ẻ:"e",ȇ:"e",ē:"e",ḗ:"e",ḕ:"e","ⱸ":"e",ę:"e","ᶒ":"e","ɇ":"e",ẽ:"e",ḛ:"e","ꝫ":"et",ḟ:"f",ƒ:"f","ᵮ":"f","ᶂ":"f",ǵ:"g",ğ:"g",ǧ:"g",ģ:"g",ĝ:"g",ġ:"g",ɠ:"g",ḡ:"g","ᶃ":"g",ǥ:"g",ḫ:"h",ȟ:"h",ḩ:"h",ĥ:"h","ⱨ":"h",ḧ:"h",ḣ:"h",ḥ:"h",ɦ:"h",ẖ:"h",ħ:"h",ƕ:"hv",í:"i",ĭ:"i",ǐ:"i",î:"i",ï:"i",ḯ:"i",ị:"i",ȉ:"i",ì:"i",ỉ:"i",ȋ:"i",ī:"i",į:"i","ᶖ":"i",ɨ:"i",ĩ:"i",ḭ:"i","ꝺ":"d","ꝼ":"f","ᵹ":"g","ꞃ":"r","ꞅ":"s","ꞇ":"t","ꝭ":"is",ǰ:"j",ĵ:"j",ʝ:"j","ɉ":"j",ḱ:"k",ǩ:"k",ķ:"k","ⱪ":"k","ꝃ":"k",ḳ:"k",ƙ:"k",ḵ:"k","ᶄ":"k","ꝁ":"k","ꝅ":"k",ĺ:"l",ƚ:"l",ɬ:"l",ľ:"l",ļ:"l",ḽ:"l","ȴ":"l",ḷ:"l",ḹ:"l","ⱡ":"l","ꝉ":"l",ḻ:"l",ŀ:"l",ɫ:"l","ᶅ":"l",ɭ:"l",ł:"l",ǉ:"lj",ſ:"s","ẜ":"s",ẛ:"s","ẝ":"s",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m","ᵯ":"m","ᶆ":"m",ń:"n",ň:"n",ņ:"n",ṋ:"n","ȵ":"n",ṅ:"n",ṇ:"n",ǹ:"n",ɲ:"n",ṉ:"n",ƞ:"n","ᵰ":"n","ᶇ":"n",ɳ:"n",ñ:"n",ǌ:"nj",ó:"o",ŏ:"o",ǒ:"o",ô:"o",ố:"o",ộ:"o",ồ:"o",ổ:"o",ỗ:"o",ö:"o",ȫ:"o",ȯ:"o",ȱ:"o",ọ:"o",ő:"o",ȍ:"o",ò:"o",ỏ:"o",ơ:"o",ớ:"o",ợ:"o",ờ:"o",ở:"o",ỡ:"o",ȏ:"o","ꝋ":"o","ꝍ":"o","ⱺ":"o",ō:"o",ṓ:"o",ṑ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",õ:"o",ṍ:"o",ṏ:"o",ȭ:"o",ƣ:"oi","ꝏ":"oo",ɛ:"e","ᶓ":"e",ɔ:"o","ᶗ":"o",ȣ:"ou",ṕ:"p",ṗ:"p","ꝓ":"p",ƥ:"p","ᵱ":"p","ᶈ":"p","ꝕ":"p","ᵽ":"p","ꝑ":"p","ꝙ":"q",ʠ:"q","ɋ":"q","ꝗ":"q",ŕ:"r",ř:"r",ŗ:"r",ṙ:"r",ṛ:"r",ṝ:"r",ȑ:"r",ɾ:"r","ᵳ":"r",ȓ:"r",ṟ:"r",ɼ:"r","ᵲ":"r","ᶉ":"r","ɍ":"r",ɽ:"r","ↄ":"c","ꜿ":"c",ɘ:"e",ɿ:"r",ś:"s",ṥ:"s",š:"s",ṧ:"s",ş:"s",ŝ:"s",ș:"s",ṡ:"s",ṣ:"s",ṩ:"s",ʂ:"s","ᵴ":"s","ᶊ":"s","ȿ":"s",ɡ:"g","ᴑ":"o","ᴓ":"o","ᴝ":"u",ť:"t",ţ:"t",ṱ:"t",ț:"t","ȶ":"t",ẗ:"t","ⱦ":"t",ṫ:"t",ṭ:"t",ƭ:"t",ṯ:"t","ᵵ":"t",ƫ:"t",ʈ:"t",ŧ:"t","ᵺ":"th",ɐ:"a","ᴂ":"ae",ǝ:"e","ᵷ":"g",ɥ:"h","ʮ":"h","ʯ":"h","ᴉ":"i",ʞ:"k","ꞁ":"l",ɯ:"m",ɰ:"m","ᴔ":"oe",ɹ:"r",ɻ:"r",ɺ:"r","ⱹ":"r",ʇ:"t",ʌ:"v",ʍ:"w",ʎ:"y","ꜩ":"tz",ú:"u",ŭ:"u",ǔ:"u",û:"u",ṷ:"u",ü:"u",ǘ:"u",ǚ:"u",ǜ:"u",ǖ:"u",ṳ:"u",ụ:"u",ű:"u",ȕ:"u",ù:"u",ủ:"u",ư:"u",ứ:"u",ự:"u",ừ:"u",ử:"u",ữ:"u",ȗ:"u",ū:"u",ṻ:"u",ų:"u","ᶙ":"u",ů:"u",ũ:"u",ṹ:"u",ṵ:"u","ᵫ":"ue","ꝸ":"um","ⱴ":"v","ꝟ":"v",ṿ:"v",ʋ:"v","ᶌ":"v","ⱱ":"v",ṽ:"v","ꝡ":"vy",ẃ:"w",ŵ:"w",ẅ:"w",ẇ:"w",ẉ:"w",ẁ:"w","ⱳ":"w",ẘ:"w",ẍ:"x",ẋ:"x","ᶍ":"x",ý:"y",ŷ:"y",ÿ:"y",ẏ:"y",ỵ:"y",ỳ:"y",ƴ:"y",ỷ:"y","ỿ":"y",ȳ:"y",ẙ:"y","ɏ":"y",ỹ:"y",ź:"z",ž:"z",ẑ:"z",ʑ:"z","ⱬ":"z",ż:"z",ẓ:"z",ȥ:"z",ẕ:"z","ᵶ":"z","ᶎ":"z",ʐ:"z",ƶ:"z","ɀ":"z",ﬀ:"ff",ﬃ:"ffi",ﬄ:"ffl",ﬁ:"fi",ﬂ:"fl",ĳ:"ij",œ:"oe",ﬆ:"st","ₐ":"a","ₑ":"e","ᵢ":"i","ⱼ":"j","ₒ":"o","ᵣ":"r","ᵤ":"u","ᵥ":"v","ₓ":"x"};String.prototype.latinise=function(){return this.replace(/[^A-Za-z0-9\[\] ]/g,function(e){return Qge.latin_map[e]||e})};const Dge={"0x":"#","0X":"#","Ã©":"é","Ã":"É","Ã¨":"è",Ãª:"ê",ÃÐ:"é","Ã¢":"â","Ã§":"ç",ÃŽ:"ô","Ã´":"ô","Ã»":"û",Ãš:"è","Ã ":"à",Â:"","â‚¬":"€","â¬":"€","â":"Σ","âˆ‘":"Σ"},Pg=(e,t=!0)=>{const n=new TextDecoder("iso-8859-15").decode(e);return t?Nge(n):n};function Ii(){let e=window.location.pathname;return e.substring(0,e.indexOf("jis"))}function Fge(e,t){const r=new RegExp(Object.keys(t).join("|"),"gm");return e.replace(r,function(n){return t[n]})}function Yr(e){let t={};const r=e?.attributes;if(r)for(let n=0;n<r.length;n++){let a=r[n];[void 0,""].includes(a)||(t[a.name]=a.value)}return t}function Nt(e,t){const r=[];if(e?.childNodes!==void 0)for(var n in e.childNodes)e.childNodes[n].nodeName===t&&r.push(e.childNodes[n]);return r}function oa(e){let t=[];return e?.length&&e.forEach((r,n)=>{let a=Yr(r);a.key=n,t.push(a)}),t}function Nge(e){if(window.DOMParser){let t=new window.DOMParser,r=I8e(e.substring(e.indexOf("<CTICONTENT>")));const n=Fge(r,Dge);return t.parseFromString(n,"text/xml")}}function Zh(e){for(const t in e)if(e.hasOwnProperty(t))return!1;return!0}function Rf(e,t=!1){let r={"ACTI_globals.XML":"globals_activite","PMSI_globals.XML":"globals_pmsi","PMSISSR_globals.XML":"globals_pmsissr","PMSIHAD_globals.XML":"globals_pmsihad","PMSIPSY_globals.XML":"globals_pmsipsy","RH_globals.XML":"globals_rh","ECO_globals.XML":"globals_eco","COMPTA_globals.XML":"globals_compta","DPI_globals.XML":"globals_dpi","QUAL_globals.XML":"globals_qual"};if(t===!0)for(let n in r)return r[n]===e?n:`${e.split("_")[1].toUpperCase()}_GLOBALS.XML`;else return r[e]?r[e]:`globals_${e.split("_")[0].toLowerCase()}`;return null}function PY(e,t=[]){return Object.values(e).forEach(r=>{r.group&&r.group.forEach(n=>{n.field&&n.field.forEach(a=>{t.push({...a,options:a.options?[...a.options]:null})}),n.group&&n.group.forEach(a=>{a.field.forEach(i=>{t.push({...i,options:i.options?[...i.options]:null})})})})}),t}function zf(e,t,r){e=e.map(a=>(a.children&&(a.children=zf(a.children,t,r)),a));let n;return e.every(a=>a[t]?.text&&!isNaN(a[t].text))?n=e.sort((a,i)=>Number(a[t].text)-Number(i[t].text)):n=e.sort((a,i)=>a[t]===void 0||i[t]===void 0?!0:typeof a[t]?.text=="string"&&typeof i[t]?.text=="string"?a[t].text.toLowerCase().localeCompare(i[t].text.toLowerCase(),void 0,{numeric:!0,sensitivity:"base"}):!isNaN(a[t])&&!isNaN(i[t])?a[t]-i[t]:typeof a[t]=="string"&&typeof i[t]=="string"?a[t].localeCompare(i[t],void 0,{numeric:!0,sensitivity:"base"}):!0),r==="desc"?g8e(n):n}function _V(e,t="_"){if(e!==void 0){let r=[],n=e.split(t),a="";return n.forEach(i=>{a===""?a+=i:a+="_"+i,r.push(a)}),r}else return[]}const RR={ACTI:"activite",COMPTA:"compta",DPI:"dpi",ECO:"eco",EIS:"eis",PMSI:"pmsi",PMSIHAD:"pmsihad",PMSIPSY:"pmsipsy",PMSISSR:"pmsissr",QUAL:"qualite",RH:"rh"};function S8e(e){let t=[];return e.forEach(r=>{if(r.oid!=="0"){let n={XMLType:"SECTION"};for(let a in r)a!=="elements"&&(n[a]=r[a]);n.children=R8e(r.elements),t.push(n)}}),t}function R8e(e){let t=[],r=e.map(n=>n.oid);return r=[...new Set(r)],r.forEach(n=>{let a={XMLType:"ELEMENT"};a.oid=n,t.push(a)}),t}var NS={exports:{}},T8e=NS.exports,kV;function Q8e(){return kV||(kV=1,(function(e,t){(function(r,n){e.exports=n()})(T8e,(function(){var r=1e3,n=6e4,a=36e5,i="millisecond",o="second",s="minute",l="hour",c="day",A="week",u="month",d="quarter",f="year",h="date",g="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var _=["th","st","nd","rd"],P=N%100;return"["+N+(_[(P-20)%10]||_[P]||_[0])+"]"}},C=function(N,_,P){var k=String(N);return!k||k.length>=_?N:""+Array(_+1-k.length).join(P)+N},w={s:C,z:function(N){var _=-N.utcOffset(),P=Math.abs(_),k=Math.floor(P/60),j=P%60;return(_<=0?"+":"-")+C(k,2,"0")+":"+C(j,2,"0")},m:function N(_,P){if(_.date()<P.date())return-N(P,_);var k=12*(P.year()-_.year())+(P.month()-_.month()),j=_.clone().add(k,u),Y=P-j<0,X=_.clone().add(k+(Y?-1:1),u);return+(-(k+(P-j)/(Y?j-X:X-j))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:u,y:f,w:A,d:c,D:h,h:l,m:s,s:o,ms:i,Q:d}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},B="en",x={};x[B]=y;var M="$isDayjsObject",S=function(N){return N instanceof D||!(!N||!N[M])},R=function N(_,P,k){var j;if(!_)return B;if(typeof _=="string"){var Y=_.toLowerCase();x[Y]&&(j=Y),P&&(x[Y]=P,j=Y);var X=_.split("-");if(!j&&X.length>1)return N(X[0])}else{var K=_.name;x[K]=_,j=K}return!k&&j&&(B=j),j||!k&&B},b=function(N,_){if(S(N))return N.clone();var P=typeof _=="object"?_:{};return P.date=N,P.args=arguments,new D(P)},T=w;T.l=R,T.i=S,T.w=function(N,_){return b(N,{locale:_.$L,utc:_.$u,x:_.$x,$offset:_.$offset})};var D=(function(){function N(P){this.$L=R(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[M]=!0}var _=N.prototype;return _.parse=function(P){this.$d=(function(k){var j=k.date,Y=k.utc;if(j===null)return new Date(NaN);if(T.u(j))return new Date;if(j instanceof Date)return new Date(j);if(typeof j=="string"&&!/Z$/i.test(j)){var X=j.match(p);if(X){var K=X[2]-1||0,U=(X[7]||"0").substring(0,3);return Y?new Date(Date.UTC(X[1],K,X[3]||1,X[4]||0,X[5]||0,X[6]||0,U)):new Date(X[1],K,X[3]||1,X[4]||0,X[5]||0,X[6]||0,U)}}return new Date(j)})(P),this.init()},_.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==g},_.isSame=function(P,k){var j=b(P);return this.startOf(k)<=j&&j<=this.endOf(k)},_.isAfter=function(P,k){return b(P)<this.startOf(k)},_.isBefore=function(P,k){return this.endOf(k)<b(P)},_.$g=function(P,k,j){return T.u(P)?this[k]:this.set(j,P)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(P,k){var j=this,Y=!!T.u(k)||k,X=T.p(P),K=function(ne,fe){var he=T.w(j.$u?Date.UTC(j.$y,fe,ne):new Date(j.$y,fe,ne),j);return Y?he:he.endOf(c)},U=function(ne,fe){return T.w(j.toDate()[ne].apply(j.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(fe)),j)},H=this.$W,L=this.$M,V=this.$D,J="set"+(this.$u?"UTC":"");switch(X){case f:return Y?K(1,0):K(31,11);case u:return Y?K(1,L):K(0,L+1);case A:var ee=this.$locale().weekStart||0,ae=(H<ee?H+7:H)-ee;return K(Y?V-ae:V+(6-ae),L);case c:case h:return U(J+"Hours",0);case l:return U(J+"Minutes",1);case s:return U(J+"Seconds",2);case o:return U(J+"Milliseconds",3);default:return this.clone()}},_.endOf=function(P){return this.startOf(P,!1)},_.$set=function(P,k){var j,Y=T.p(P),X="set"+(this.$u?"UTC":""),K=(j={},j[c]=X+"Date",j[h]=X+"Date",j[u]=X+"Month",j[f]=X+"FullYear",j[l]=X+"Hours",j[s]=X+"Minutes",j[o]=X+"Seconds",j[i]=X+"Milliseconds",j)[Y],U=Y===c?this.$D+(k-this.$W):k;if(Y===u||Y===f){var H=this.clone().set(h,1);H.$d[K](U),H.init(),this.$d=H.set(h,Math.min(this.$D,H.daysInMonth())).$d}else K&&this.$d[K](U);return this.init(),this},_.set=function(P,k){return this.clone().$set(P,k)},_.get=function(P){return this[T.p(P)]()},_.add=function(P,k){var j,Y=this;P=Number(P);var X=T.p(k),K=function(L){var V=b(Y);return T.w(V.date(V.date()+Math.round(L*P)),Y)};if(X===u)return this.set(u,this.$M+P);if(X===f)return this.set(f,this.$y+P);if(X===c)return K(1);if(X===A)return K(7);var U=(j={},j[s]=n,j[l]=a,j[o]=r,j)[X]||1,H=this.$d.getTime()+P*U;return T.w(H,this)},_.subtract=function(P,k){return this.add(-1*P,k)},_.format=function(P){var k=this,j=this.$locale();if(!this.isValid())return j.invalidDate||g;var Y=P||"YYYY-MM-DDTHH:mm:ssZ",X=T.z(this),K=this.$H,U=this.$m,H=this.$M,L=j.weekdays,V=j.months,J=j.meridiem,ee=function(fe,he,ye,be){return fe&&(fe[he]||fe(k,Y))||ye[he].slice(0,be)},ae=function(fe){return T.s(K%12||12,fe,"0")},ne=J||function(fe,he,ye){var be=fe<12?"AM":"PM";return ye?be.toLowerCase():be};return Y.replace(m,(function(fe,he){return he||(function(ye){switch(ye){case"YY":return String(k.$y).slice(-2);case"YYYY":return T.s(k.$y,4,"0");case"M":return H+1;case"MM":return T.s(H+1,2,"0");case"MMM":return ee(j.monthsShort,H,V,3);case"MMMM":return ee(V,H);case"D":return k.$D;case"DD":return T.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return ee(j.weekdaysMin,k.$W,L,2);case"ddd":return ee(j.weekdaysShort,k.$W,L,3);case"dddd":return L[k.$W];case"H":return String(K);case"HH":return T.s(K,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return ne(K,U,!0);case"A":return ne(K,U,!1);case"m":return String(U);case"mm":return T.s(U,2,"0");case"s":return String(k.$s);case"ss":return T.s(k.$s,2,"0");case"SSS":return T.s(k.$ms,3,"0");case"Z":return X}return null})(fe)||X.replace(":","")}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(P,k,j){var Y,X=this,K=T.p(k),U=b(P),H=(U.utcOffset()-this.utcOffset())*n,L=this-U,V=function(){return T.m(X,U)};switch(K){case f:Y=V()/12;break;case u:Y=V();break;case d:Y=V()/3;break;case A:Y=(L-H)/6048e5;break;case c:Y=(L-H)/864e5;break;case l:Y=L/a;break;case s:Y=L/n;break;case o:Y=L/r;break;default:Y=L}return j?Y:T.a(Y)},_.daysInMonth=function(){return this.endOf(u).$D},_.$locale=function(){return x[this.$L]},_.locale=function(P,k){if(!P)return this.$L;var j=this.clone(),Y=R(P,k,!0);return Y&&(j.$L=Y),j},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},N})(),F=D.prototype;return b.prototype=F,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",c],["$M",u],["$y",f],["$D",h]].forEach((function(N){F[N[1]]=function(_){return this.$g(_,N[0],N[1])}})),b.extend=function(N,_){return N.$i||(N(_,D,b),N.$i=!0),b},b.locale=R,b.isDayjs=S,b.unix=function(N){return b(1e3*N)},b.en=x[B],b.Ls=x,b.p={},b}))})(NS)),NS.exports}var D8e=Q8e();const ei=gn(D8e);ei.locale("fr");function F8e(e,t,r){if(!e||!t||r===""||r==="Non autorisé")return r;const n=e.replace("AAAA","YYYY").replace("JJ","DD");return ei(r,n).format(t)}var _S={exports:{}},N8e=_S.exports,PV;function _8e(){return PV||(PV=1,(function(e,t){(function(r,n){e.exports=n()})(N8e,(function(){var r,n,a=1e3,i=6e4,o=36e5,s=864e5,l=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,c=31536e6,A=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,d={years:c,months:A,days:s,hours:o,minutes:i,seconds:a,milliseconds:1,weeks:6048e5},f=function(x){return x instanceof w},h=function(x,M,S){return new w(x,S,M.$l)},g=function(x){return n.p(x)+"s"},p=function(x){return x<0},m=function(x){return p(x)?Math.ceil(x):Math.floor(x)},y=function(x){return Math.abs(x)},C=function(x,M){return x?p(x)?{negative:!0,format:""+y(x)+M}:{negative:!1,format:""+x+M}:{negative:!1,format:""}},w=(function(){function x(S,R,b){var T=this;if(this.$d={},this.$l=b,S===void 0&&(this.$ms=0,this.parseFromMilliseconds()),R)return h(S*d[g(R)],this);if(typeof S=="number")return this.$ms=S,this.parseFromMilliseconds(),this;if(typeof S=="object")return Object.keys(S).forEach((function(N){T.$d[g(N)]=S[N]})),this.calMilliseconds(),this;if(typeof S=="string"){var D=S.match(u);if(D){var F=D.slice(2).map((function(N){return N!=null?Number(N):0}));return this.$d.years=F[0],this.$d.months=F[1],this.$d.weeks=F[2],this.$d.days=F[3],this.$d.hours=F[4],this.$d.minutes=F[5],this.$d.seconds=F[6],this.calMilliseconds(),this}}return this}var M=x.prototype;return M.calMilliseconds=function(){var S=this;this.$ms=Object.keys(this.$d).reduce((function(R,b){return R+(S.$d[b]||0)*d[b]}),0)},M.parseFromMilliseconds=function(){var S=this.$ms;this.$d.years=m(S/c),S%=c,this.$d.months=m(S/A),S%=A,this.$d.days=m(S/s),S%=s,this.$d.hours=m(S/o),S%=o,this.$d.minutes=m(S/i),S%=i,this.$d.seconds=m(S/a),S%=a,this.$d.milliseconds=S},M.toISOString=function(){var S=C(this.$d.years,"Y"),R=C(this.$d.months,"M"),b=+this.$d.days||0;this.$d.weeks&&(b+=7*this.$d.weeks);var T=C(b,"D"),D=C(this.$d.hours,"H"),F=C(this.$d.minutes,"M"),N=this.$d.seconds||0;this.$d.milliseconds&&(N+=this.$d.milliseconds/1e3,N=Math.round(1e3*N)/1e3);var _=C(N,"S"),P=S.negative||R.negative||T.negative||D.negative||F.negative||_.negative,k=D.format||F.format||_.format?"T":"",j=(P?"-":"")+"P"+S.format+R.format+T.format+k+D.format+F.format+_.format;return j==="P"||j==="-P"?"P0D":j},M.toJSON=function(){return this.toISOString()},M.format=function(S){var R=S||"YYYY-MM-DDTHH:mm:ss",b={Y:this.$d.years,YY:n.s(this.$d.years,2,"0"),YYYY:n.s(this.$d.years,4,"0"),M:this.$d.months,MM:n.s(this.$d.months,2,"0"),D:this.$d.days,DD:n.s(this.$d.days,2,"0"),H:this.$d.hours,HH:n.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:n.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:n.s(this.$d.seconds,2,"0"),SSS:n.s(this.$d.milliseconds,3,"0")};return R.replace(l,(function(T,D){return D||String(b[T])}))},M.as=function(S){return this.$ms/d[g(S)]},M.get=function(S){var R=this.$ms,b=g(S);return b==="milliseconds"?R%=1e3:R=b==="weeks"?m(R/d[b]):this.$d[b],R||0},M.add=function(S,R,b){var T;return T=R?S*d[g(R)]:f(S)?S.$ms:h(S,this).$ms,h(this.$ms+T*(b?-1:1),this)},M.subtract=function(S,R){return this.add(S,R,!0)},M.locale=function(S){var R=this.clone();return R.$l=S,R},M.clone=function(){return h(this.$ms,this)},M.humanize=function(S){return r().add(this.$ms,"ms").locale(this.$l).fromNow(!S)},M.valueOf=function(){return this.asMilliseconds()},M.milliseconds=function(){return this.get("milliseconds")},M.asMilliseconds=function(){return this.as("milliseconds")},M.seconds=function(){return this.get("seconds")},M.asSeconds=function(){return this.as("seconds")},M.minutes=function(){return this.get("minutes")},M.asMinutes=function(){return this.as("minutes")},M.hours=function(){return this.get("hours")},M.asHours=function(){return this.as("hours")},M.days=function(){return this.get("days")},M.asDays=function(){return this.as("days")},M.weeks=function(){return this.get("weeks")},M.asWeeks=function(){return this.as("weeks")},M.months=function(){return this.get("months")},M.asMonths=function(){return this.as("months")},M.years=function(){return this.get("years")},M.asYears=function(){return this.as("years")},x})(),B=function(x,M,S){return x.add(M.years()*S,"y").add(M.months()*S,"M").add(M.days()*S,"d").add(M.hours()*S,"h").add(M.minutes()*S,"m").add(M.seconds()*S,"s").add(M.milliseconds()*S,"ms")};return function(x,M,S){r=S,n=S().$utils(),S.duration=function(T,D){var F=S.locale();return h(T,{$l:F},D)},S.isDuration=f;var R=M.prototype.add,b=M.prototype.subtract;M.prototype.add=function(T,D){return f(T)?B(this,T,1):R.bind(this)(T,D)},M.prototype.subtract=function(T,D){return f(T)?B(this,T,-1):b.bind(this)(T,D)}}}))})(_S)),_S.exports}var k8e=_8e();const P8e=gn(k8e);ei.locale("fr");ei.extend(P8e);function O8e(e,t){const n=ei.duration(t,"seconds").$d;let a="";const i=[{format:"Y",duration:n.years,label:"a",key:1},{format:"M",duration:n.months,label:"m",key:2},{format:"D",duration:n.days,label:"j",key:3},{format:"H",duration:n.hours,label:"h",key:4},{format:"m",duration:n.minutes,label:"mn",key:5},{format:"s",duration:n.seconds,label:"s",key:6}],s=RegExp(/\(([^)]+)\)/).exec(e),c=i.filter(A=>A.format===s[1])[0].key;return c&&i.forEach(A=>{A.key<=c&&A.duration!==0&&(a+=`${A.duration}${A.label} `)}),["",NaN,null,void 0].includes(a)?"-":a}function j8e(e="#",t){if(t===void 0||Number(t)===0||t==="Infinity"||t==="infinity"||t==="NaN"||t===null)return"-";let r=Number(t),n={digits:0,style:""},a=0,i=e.match(/(,)(0*)/gm);i&&(i=i[0].substring(1),a=i.length),e.includes("(k)")&&(r=r/1e3);let s=e.includes("+"),l=null;return s&&r>0&&(l="+"),e=e.replace(/^0+/gm,""),n.style=e.replace(/\+?(\(.*\)\d*)?#(,\d*)?/gm,"").replace(/E/gm,"€").replace("(k)",""),n.digits=a,`${l??""}${r.toFixed(n.digits).replace(".",",")} ${n.style}`.trim()}function OV(e){let t=0,r=e.match(/(,)(0*)/gm);return r&&(r=r[0].substring(1),t=r.length),t}function I1(e,t){let r=0;switch(t){case"Minute":r=e/60;break;case"Hour":r=e/Math.pow(60,2);break;case"Day":r=e/Math.pow(60,2)/24;break;case"Month":r=e/Math.pow(60,2)/24/30;break;case"Year":r=e/Math.pow(60,2)/24/30/12;break;default:r=e}return r}function z8e(e,t){const r=[{format:"Y",duration:I1(t,"Year"),label:"a",key:1},{format:"M",duration:I1(t,"Month"),label:"m",key:2},{format:"D",duration:I1(t,"Day"),label:"j",key:3},{format:"H",duration:I1(t,"Hour"),label:"h",key:4},{format:"m",duration:I1(t,"Minute"),label:"mn",key:5}];let n="";const i=RegExp(/\(([^)]+)\)/).exec(e),s=r.filter(l=>l.format===i[1])[0].key;return s&&r.forEach(l=>{l.key===s&&l.duration!==0&&(n=`${Math.round(l.duration*100)/100}${l.label} `)}),["0a","0m","0j","0h","0mn","",NaN,null,void 0].includes(n.trim())&&(n="-"),n}const L8e=(e,t)=>{const r=Math.ceil(e),n=Math.floor(t);return Math.floor(Math.random()*(n-r+1)+r)},Y8e=e=>{const[t,r]=e.toString().split(","),n=t.replace(/\B(?=(\d{3})+(?!\d))/g," ");return r?`${n},${r}`:n};function TR({type:e,format:t,inputFormat:r,outputFormat:n,data:a,viewTitle:i=""}={}){let o="";switch(i.toLowerCase().includes("essentiel")&&e==="Number"&&(e=U8e(t)),e){case"Number":o=j8e(t,a);break;case"Date":o=F8e(r,n,a);break;case"Interval":o=O8e(t,Number(a));break;case"Tps_deci":o=z8e(t,Number(a));break;default:o=a}return e==="Date"?o.trim():Y8e(o)}function U8e(e=""){return e.toLowerCase().includes("interval")?"Interval":e.toLowerCase().includes("deci")?"Tps_deci":e.toLowerCase().includes("date")?"Date":"Number"}var lF={exports:{}},cF,jV;function H8e(){if(jV)return cF;jV=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cF=e,cF}var AF,zV;function G8e(){if(zV)return AF;zV=1;var e=H8e();function t(){}function r(){}return r.resetWarningCache=t,AF=function(){function n(o,s,l,c,A,u){if(u!==e){var d=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 d.name="Invariant Violation",d}}n.isRequired=n;function a(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:a,element:n,elementType:n,instanceOf:a,node:n,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},AF}var LV;function cA(){return LV||(LV=1,lF.exports=G8e()()),lF.exports}var K8e=cA();const W=gn(K8e);var Bd=le.createContext(null);function V8e(e){e()}var _ge=V8e,J8e=function(t){return _ge=t},W8e=function(){return _ge};function X8e(){var e=W8e(),t=null,r=null;return{clear:function(){t=null,r=null},notify:function(){e(function(){for(var a=t;a;)a.callback(),a=a.next})},get:function(){for(var a=[],i=t;i;)a.push(i),i=i.next;return a},subscribe:function(a){var i=!0,o=r={callback:a,next:null,prev:r};return o.prev?o.prev.next=o:t=o,function(){!i||t===null||(i=!1,o.next?o.next.prev=o.prev:r=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}var YV={notify:function(){},get:function(){return[]}};function OY(e,t){var r,n=YV;function a(u){return l(),n.subscribe(u)}function i(){n.notify()}function o(){A.onStateChange&&A.onStateChange()}function s(){return!!r}function l(){r||(r=t?t.addNestedSub(o):e.subscribe(o),n=X8e())}function c(){r&&(r(),r=void 0,n.clear(),n=YV)}var A={addNestedSub:a,notifyNestedSubs:i,handleChangeWrapper:o,isSubscribed:s,trySubscribe:l,tryUnsubscribe:c,getListeners:function(){return n}};return A}var QR=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?E.useLayoutEffect:E.useEffect;function q8e(e){var t=e.store,r=e.context,n=e.children,a=E.useMemo(function(){var s=OY(t);return{store:t,subscription:s}},[t]),i=E.useMemo(function(){return t.getState()},[t]);QR(function(){var s=a.subscription;return s.onStateChange=s.notifyNestedSubs,s.trySubscribe(),i!==t.getState()&&s.notifyNestedSubs(),function(){s.tryUnsubscribe(),s.onStateChange=null}},[a,i]);var o=r||Bd;return le.createElement(o.Provider,{value:a},n)}function ge(){return ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ge.apply(null,arguments)}var uF={exports:{}},Fa={};/** @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 UV;function Z8e(){if(UV)return Fa;UV=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,A=e?Symbol.for("react.forward_ref"):60112,u=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,p=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,y=e?Symbol.for("react.scope"):60119;function C(B){if(typeof B=="object"&&B!==null){var x=B.$$typeof;switch(x){case t:switch(B=B.type,B){case l:case c:case n:case i:case a:case u:return B;default:switch(B=B&&B.$$typeof,B){case s:case A:case h:case f:case o:return B;default:return x}}case r:return x}}}function w(B){return C(B)===c}return Fa.AsyncMode=l,Fa.ConcurrentMode=c,Fa.ContextConsumer=s,Fa.ContextProvider=o,Fa.Element=t,Fa.ForwardRef=A,Fa.Fragment=n,Fa.Lazy=h,Fa.Memo=f,Fa.Portal=r,Fa.Profiler=i,Fa.StrictMode=a,Fa.Suspense=u,Fa.isAsyncMode=function(B){return w(B)||C(B)===l},Fa.isConcurrentMode=w,Fa.isContextConsumer=function(B){return C(B)===s},Fa.isContextProvider=function(B){return C(B)===o},Fa.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===t},Fa.isForwardRef=function(B){return C(B)===A},Fa.isFragment=function(B){return C(B)===n},Fa.isLazy=function(B){return C(B)===h},Fa.isMemo=function(B){return C(B)===f},Fa.isPortal=function(B){return C(B)===r},Fa.isProfiler=function(B){return C(B)===i},Fa.isStrictMode=function(B){return C(B)===a},Fa.isSuspense=function(B){return C(B)===u},Fa.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===n||B===c||B===i||B===a||B===u||B===d||typeof B=="object"&&B!==null&&(B.$$typeof===h||B.$$typeof===f||B.$$typeof===o||B.$$typeof===s||B.$$typeof===A||B.$$typeof===p||B.$$typeof===m||B.$$typeof===y||B.$$typeof===g)},Fa.typeOf=C,Fa}var HV;function kge(){return HV||(HV=1,uF.exports=Z8e()),uF.exports}var dF,GV;function $8e(){if(GV)return dF;GV=1;var e=kge(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=n,i[e.Memo]=a;function o(h){return e.isMemo(h)?a:i[h.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,A=Object.getOwnPropertyDescriptor,u=Object.getPrototypeOf,d=Object.prototype;function f(h,g,p){if(typeof g!="string"){if(d){var m=u(g);m&&m!==d&&f(h,m,p)}var y=l(g);c&&(y=y.concat(c(g)));for(var C=o(h),w=o(g),B=0;B<y.length;++B){var x=y[B];if(!r[x]&&!(p&&p[x])&&!(w&&w[x])&&!(C&&C[x])){var M=A(g,x);try{s(h,x,M)}catch{}}}}return h}return dF=f,dF}var eke=$8e();const KV=gn(eke);var fF={exports:{}},za={};/** @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 VV;function tke(){if(VV)return za;VV=1;var e=60103,t=60106,r=60107,n=60108,a=60114,i=60109,o=60110,s=60112,l=60113,c=60120,A=60115,u=60116,d=60121,f=60122,h=60117,g=60129,p=60131;if(typeof Symbol=="function"&&Symbol.for){var m=Symbol.for;e=m("react.element"),t=m("react.portal"),r=m("react.fragment"),n=m("react.strict_mode"),a=m("react.profiler"),i=m("react.provider"),o=m("react.context"),s=m("react.forward_ref"),l=m("react.suspense"),c=m("react.suspense_list"),A=m("react.memo"),u=m("react.lazy"),d=m("react.block"),f=m("react.server.block"),h=m("react.fundamental"),g=m("react.debug_trace_mode"),p=m("react.legacy_hidden")}function y(F){if(typeof F=="object"&&F!==null){var N=F.$$typeof;switch(N){case e:switch(F=F.type,F){case r:case a:case n:case l:case c:return F;default:switch(F=F&&F.$$typeof,F){case o:case s:case u:case A:case i:return F;default:return N}}case t:return N}}}var C=i,w=e,B=s,x=r,M=u,S=A,R=t,b=a,T=n,D=l;return za.ContextConsumer=o,za.ContextProvider=C,za.Element=w,za.ForwardRef=B,za.Fragment=x,za.Lazy=M,za.Memo=S,za.Portal=R,za.Profiler=b,za.StrictMode=T,za.Suspense=D,za.isAsyncMode=function(){return!1},za.isConcurrentMode=function(){return!1},za.isContextConsumer=function(F){return y(F)===o},za.isContextProvider=function(F){return y(F)===i},za.isElement=function(F){return typeof F=="object"&&F!==null&&F.$$typeof===e},za.isForwardRef=function(F){return y(F)===s},za.isFragment=function(F){return y(F)===r},za.isLazy=function(F){return y(F)===u},za.isMemo=function(F){return y(F)===A},za.isPortal=function(F){return y(F)===t},za.isProfiler=function(F){return y(F)===a},za.isStrictMode=function(F){return y(F)===n},za.isSuspense=function(F){return y(F)===l},za.isValidElementType=function(F){return typeof F=="string"||typeof F=="function"||F===r||F===a||F===g||F===n||F===l||F===c||F===p||typeof F=="object"&&F!==null&&(F.$$typeof===u||F.$$typeof===A||F.$$typeof===i||F.$$typeof===o||F.$$typeof===s||F.$$typeof===h||F.$$typeof===d||F[0]===f)},za.typeOf=y,za}var JV;function rke(){return JV||(JV=1,fF.exports=tke()),fF.exports}var nke=rke(),ake=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],ike=["reactReduxForwardedRef"],oke=[],ske=[null,null];function lke(e,t){var r=e[1];return[t.payload,r+1]}function WV(e,t,r){QR(function(){return e.apply(void 0,t)},r)}function cke(e,t,r,n,a,i,o){e.current=n,t.current=a,r.current=!1,i.current&&(i.current=null,o())}function Ake(e,t,r,n,a,i,o,s,l,c){if(e){var A=!1,u=null,d=function(){if(!A){var g=t.getState(),p,m;try{p=n(g,a.current)}catch(y){m=y,u=y}m||(u=null),p===i.current?o.current||l():(i.current=p,s.current=p,o.current=!0,c({type:"STORE_UPDATED",payload:{error:m}}))}};r.onStateChange=d,r.trySubscribe(),d();var f=function(){if(A=!0,r.tryUnsubscribe(),r.onStateChange=null,u)throw u};return f}}var uke=function(){return[null,0]};function dke(e,t){t===void 0&&(t={});var r=t,n=r.getDisplayName,a=n===void 0?function(C){return"ConnectAdvanced("+C+")"}:n,i=r.methodName,o=i===void 0?"connectAdvanced":i,s=r.renderCountProp,l=s===void 0?void 0:s,c=r.shouldHandleStateChanges,A=c===void 0?!0:c,u=r.storeKey,d=u===void 0?"store":u;r.withRef;var f=r.forwardRef,h=f===void 0?!1:f,g=r.context,p=g===void 0?Bd:g,m=Ai(r,ake),y=p;return function(w){var B=w.displayName||w.name||"Component",x=a(B),M=ge({},m,{getDisplayName:a,methodName:o,renderCountProp:l,shouldHandleStateChanges:A,storeKey:d,displayName:x,wrappedComponentName:B,WrappedComponent:w}),S=m.pure;function R(N){return e(N.dispatch,M)}var b=S?E.useMemo:function(N){return N()};function T(N){var _=E.useMemo(function(){var Ve=N.reactReduxForwardedRef,Ie=Ai(N,ike);return[N.context,Ve,Ie]},[N]),P=_[0],k=_[1],j=_[2],Y=E.useMemo(function(){return P&&P.Consumer&&nke.isContextConsumer(le.createElement(P.Consumer,null))?P:y},[P,y]),X=E.useContext(Y),K=!!N.store&&!!N.store.getState&&!!N.store.dispatch;X&&X.store;var U=K?N.store:X.store,H=E.useMemo(function(){return R(U)},[U]),L=E.useMemo(function(){if(!A)return ske;var Ve=OY(U,K?null:X.subscription),Ie=Ve.notifyNestedSubs.bind(Ve);return[Ve,Ie]},[U,K,X]),V=L[0],J=L[1],ee=E.useMemo(function(){return K?X:ge({},X,{subscription:V})},[K,X,V]),ae=E.useReducer(lke,oke,uke),ne=ae[0],fe=ne[0],he=ae[1];if(fe&&fe.error)throw fe.error;var ye=E.useRef(),be=E.useRef(j),Se=E.useRef(),ve=E.useRef(!1),de=b(function(){return Se.current&&j===be.current?Se.current:H(U.getState(),j)},[U,fe,j]);WV(cke,[be,ye,ve,j,de,Se,J]),WV(Ake,[A,U,V,H,be,ye,ve,Se,J,he],[U,V,H]);var Ue=E.useMemo(function(){return le.createElement(w,ge({},de,{ref:k}))},[k,w,de]),at=E.useMemo(function(){return A?le.createElement(Y.Provider,{value:ee},Ue):Ue},[Y,Ue,ee]);return at}var D=S?le.memo(T):T;if(D.WrappedComponent=w,D.displayName=T.displayName=x,h){var F=le.forwardRef(function(_,P){return le.createElement(D,ge({},_,{reactReduxForwardedRef:P}))});return F.displayName=x,F.WrappedComponent=w,KV(F,w)}return KV(D,w)}}function XV(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function hF(e,t){if(XV(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var a=0;a<r.length;a++)if(!Object.prototype.hasOwnProperty.call(t,r[a])||!XV(e[r[a]],t[r[a]]))return!1;return!0}function fke(e,t){var r={},n=function(o){var s=e[o];typeof s=="function"&&(r[o]=function(){return t(s.apply(void 0,arguments))})};for(var a in e)n(a);return r}function jY(e){return function(r,n){var a=e(r,n);function i(){return a}return i.dependsOnOwnProps=!1,i}}function qV(e){return e.dependsOnOwnProps!==null&&e.dependsOnOwnProps!==void 0?!!e.dependsOnOwnProps:e.length!==1}function Pge(e,t){return function(n,a){a.displayName;var i=function(s,l){return i.dependsOnOwnProps?i.mapToProps(s,l):i.mapToProps(s)};return i.dependsOnOwnProps=!0,i.mapToProps=function(s,l){i.mapToProps=e,i.dependsOnOwnProps=qV(e);var c=i(s,l);return typeof c=="function"&&(i.mapToProps=c,i.dependsOnOwnProps=qV(c),c=i(s,l)),c},i}}function hke(e){return typeof e=="function"?Pge(e):void 0}function gke(e){return e?void 0:jY(function(t){return{dispatch:t}})}function pke(e){return e&&typeof e=="object"?jY(function(t){return fke(e,t)}):void 0}const vke=[hke,gke,pke];function mke(e){return typeof e=="function"?Pge(e):void 0}function Eke(e){return e?void 0:jY(function(){return{}})}const yke=[mke,Eke];function Cke(e,t,r){return ge({},r,e,t)}function wke(e){return function(r,n){n.displayName;var a=n.pure,i=n.areMergedPropsEqual,o=!1,s;return function(c,A,u){var d=e(c,A,u);return o?(!a||!i(d,s))&&(s=d):(o=!0,s=d),s}}}function Bke(e){return typeof e=="function"?wke(e):void 0}function xke(e){return e?void 0:function(){return Cke}}const Mke=[Bke,xke];var Ike=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function bke(e,t,r,n){return function(i,o){return r(e(i,o),t(n,o),o)}}function Ske(e,t,r,n,a){var i=a.areStatesEqual,o=a.areOwnPropsEqual,s=a.areStatePropsEqual,l=!1,c,A,u,d,f;function h(C,w){return c=C,A=w,u=e(c,A),d=t(n,A),f=r(u,d,A),l=!0,f}function g(){return u=e(c,A),t.dependsOnOwnProps&&(d=t(n,A)),f=r(u,d,A),f}function p(){return e.dependsOnOwnProps&&(u=e(c,A)),t.dependsOnOwnProps&&(d=t(n,A)),f=r(u,d,A),f}function m(){var C=e(c,A),w=!s(C,u);return u=C,w&&(f=r(u,d,A)),f}function y(C,w){var B=!o(w,A),x=!i(C,c,w,A);return c=C,A=w,B&&x?g():B?p():x?m():f}return function(w,B){return l?y(w,B):h(w,B)}}function Rke(e,t){var r=t.initMapStateToProps,n=t.initMapDispatchToProps,a=t.initMergeProps,i=Ai(t,Ike),o=r(e,i),s=n(e,i),l=a(e,i),c=i.pure?Ske:bke;return c(o,s,l,e,i)}var Tke=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function gF(e,t,r){for(var n=t.length-1;n>=0;n--){var a=t[n](e);if(a)return a}return function(i,o){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+o.wrappedComponentName+".")}}function Qke(e,t){return e===t}function Dke(e){var t={},r=t.connectHOC,n=r===void 0?dke:r,a=t.mapStateToPropsFactories,i=a===void 0?yke:a,o=t.mapDispatchToPropsFactories,s=o===void 0?vke:o,l=t.mergePropsFactories,c=l===void 0?Mke:l,A=t.selectorFactory,u=A===void 0?Rke:A;return function(f,h,g,p){p===void 0&&(p={});var m=p,y=m.pure,C=y===void 0?!0:y,w=m.areStatesEqual,B=w===void 0?Qke:w,x=m.areOwnPropsEqual,M=x===void 0?hF:x,S=m.areStatePropsEqual,R=S===void 0?hF:S,b=m.areMergedPropsEqual,T=b===void 0?hF:b,D=Ai(m,Tke),F=gF(f,i,"mapStateToProps"),N=gF(h,s,"mapDispatchToProps"),_=gF(g,c,"mergeProps");return n(u,ge({methodName:"connect",getDisplayName:function(k){return"Connect("+k+")"},shouldHandleStateChanges:!!f,initMapStateToProps:F,initMapDispatchToProps:N,initMergeProps:_,pure:C,areStatesEqual:B,areOwnPropsEqual:M,areStatePropsEqual:R,areMergedPropsEqual:T},D))}}const Fke=Dke();function Oge(){var e=E.useContext(Bd);return e}function jge(e){e===void 0&&(e=Bd);var t=e===Bd?Oge:function(){return E.useContext(e)};return function(){var n=t(),a=n.store;return a}}var Nke=jge();function _ke(e){e===void 0&&(e=Bd);var t=e===Bd?Nke:jge(e);return function(){var n=t();return n.dispatch}}var wn=_ke(),kke=function(t,r){return t===r};function Pke(e,t,r,n){var a=E.useReducer(function(h){return h+1},0),i=a[1],o=E.useMemo(function(){return OY(r,n)},[r,n]),s=E.useRef(),l=E.useRef(),c=E.useRef(),A=E.useRef(),u=r.getState(),d;try{if(e!==l.current||u!==c.current||s.current){var f=e(u);A.current===void 0||!t(f,A.current)?d=f:d=A.current}else d=A.current}catch(h){throw s.current&&(h.message+=`
The error may be correlated with this previous error:
`+s.current.stack+`

`),h}return QR(function(){l.current=e,c.current=u,A.current=d,s.current=void 0}),QR(function(){function h(){try{var g=r.getState();if(g===c.current)return;var p=l.current(g);if(t(p,A.current))return;A.current=p,c.current=g}catch(m){s.current=m}i()}return o.onStateChange=h,o.trySubscribe(),h(),function(){return o.tryUnsubscribe()}},[r,o]),d}function Oke(e){e===void 0&&(e=Bd);var t=e===Bd?Oge:function(){return E.useContext(e)};return function(n,a){a===void 0&&(a=kke);var i=t(),o=i.store,s=i.subscription,l=Pke(n,a,o,s);return E.useDebugValue(l),l}}var ut=Oke();J8e(Ko.unstable_batchedUpdates);function DR(e,t){return DR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},DR(e,t)}function Vi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,DR(e,t)}function _M(e){return e.charAt(0)==="/"}function pF(e,t){for(var r=t,n=r+1,a=e.length;n<a;r+=1,n+=1)e[r]=e[n];e.pop()}function jke(e,t){t===void 0&&(t="");var r=e&&e.split("/")||[],n=t&&t.split("/")||[],a=e&&_M(e),i=t&&_M(t),o=a||i;if(e&&_M(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var s;if(n.length){var l=n[n.length-1];s=l==="."||l===".."||l===""}else s=!1;for(var c=0,A=n.length;A>=0;A--){var u=n[A];u==="."?pF(n,A):u===".."?(pF(n,A),c++):c&&(pF(n,A),c--)}if(!o)for(;c--;c)n.unshift("..");o&&n[0]!==""&&(!n[0]||!_M(n[0]))&&n.unshift("");var d=n.join("/");return s&&d.substr(-1)!=="/"&&(d+="/"),d}function ZV(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}function kS(e,t){if(e===t)return!0;if(e==null||t==null)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(a,i){return kS(a,t[i])});if(typeof e=="object"||typeof t=="object"){var r=ZV(e),n=ZV(t);return r!==e||n!==t?kS(r,n):Object.keys(Object.assign({},e,t)).every(function(a){return kS(e[a],t[a])})}return!1}var zke="Invariant failed";function Og(e,t){throw new Error(zke)}function bw(e){return e.charAt(0)==="/"?e:"/"+e}function $V(e){return e.charAt(0)==="/"?e.substr(1):e}function Lke(e,t){return e.toLowerCase().indexOf(t.toLowerCase())===0&&"/?#".indexOf(e.charAt(t.length))!==-1}function zge(e,t){return Lke(e,t)?e.substr(t.length):e}function Lge(e){return e.charAt(e.length-1)==="/"?e.slice(0,-1):e}function Yke(e){var t=e||"/",r="",n="",a=t.indexOf("#");a!==-1&&(n=t.substr(a),t=t.substr(0,a));var i=t.indexOf("?");return i!==-1&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:r==="?"?"":r,hash:n==="#"?"":n}}function Sl(e){var t=e.pathname,r=e.search,n=e.hash,a=t||"/";return r&&r!=="?"&&(a+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(a+=n.charAt(0)==="#"?n:"#"+n),a}function ol(e,t,r,n){var a;typeof e=="string"?(a=Yke(e),a.state=t):(a=ge({},e),a.pathname===void 0&&(a.pathname=""),a.search?a.search.charAt(0)!=="?"&&(a.search="?"+a.search):a.search="",a.hash?a.hash.charAt(0)!=="#"&&(a.hash="#"+a.hash):a.hash="",t!==void 0&&a.state===void 0&&(a.state=t));try{a.pathname=decodeURI(a.pathname)}catch(i){throw i instanceof URIError?new URIError('Pathname "'+a.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):i}return r&&(a.key=r),n?a.pathname?a.pathname.charAt(0)!=="/"&&(a.pathname=jke(a.pathname,n.pathname)):a.pathname=n.pathname:a.pathname||(a.pathname="/"),a}function Uke(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&kS(e.state,t.state)}function zY(){var e=null;function t(o){return e=o,function(){e===o&&(e=null)}}function r(o,s,l,c){if(e!=null){var A=typeof e=="function"?e(o,s):e;typeof A=="string"?typeof l=="function"?l(A,c):c(!0):c(A!==!1)}else c(!0)}var n=[];function a(o){var s=!0;function l(){s&&o.apply(void 0,arguments)}return n.push(l),function(){s=!1,n=n.filter(function(c){return c!==l})}}function i(){for(var o=arguments.length,s=new Array(o),l=0;l<o;l++)s[l]=arguments[l];n.forEach(function(c){return c.apply(void 0,s)})}return{setPrompt:t,confirmTransitionTo:r,appendListener:a,notifyListeners:i}}var Yge=!!(typeof window<"u"&&window.document&&window.document.createElement);function Uge(e,t){t(window.confirm(e))}function Hke(){var e=window.navigator.userAgent;return(e.indexOf("Android 2.")!==-1||e.indexOf("Android 4.0")!==-1)&&e.indexOf("Mobile Safari")!==-1&&e.indexOf("Chrome")===-1&&e.indexOf("Windows Phone")===-1?!1:window.history&&"pushState"in window.history}function Gke(){return window.navigator.userAgent.indexOf("Trident")===-1}function Kke(){return window.navigator.userAgent.indexOf("Firefox")===-1}function Vke(e){return e.state===void 0&&navigator.userAgent.indexOf("CriOS")===-1}var eJ="popstate",tJ="hashchange";function rJ(){try{return window.history.state||{}}catch{return{}}}function Hge(e){e===void 0&&(e={}),Yge||Og();var t=window.history,r=Hke(),n=!Gke(),a=e,i=a.forceRefresh,o=i===void 0?!1:i,s=a.getUserConfirmation,l=s===void 0?Uge:s,c=a.keyLength,A=c===void 0?6:c,u=e.basename?Lge(bw(e.basename)):"";function d(Y){var X=Y||{},K=X.key,U=X.state,H=window.location,L=H.pathname,V=H.search,J=H.hash,ee=L+V+J;return u&&(ee=zge(ee,u)),ol(ee,U,K)}function f(){return Math.random().toString(36).substr(2,A)}var h=zY();function g(Y){ge(j,Y),j.length=t.length,h.notifyListeners(j.location,j.action)}function p(Y){Vke(Y)||C(d(Y.state))}function m(){C(d(rJ()))}var y=!1;function C(Y){if(y)y=!1,g();else{var X="POP";h.confirmTransitionTo(Y,X,l,function(K){K?g({action:X,location:Y}):w(Y)})}}function w(Y){var X=j.location,K=x.indexOf(X.key);K===-1&&(K=0);var U=x.indexOf(Y.key);U===-1&&(U=0);var H=K-U;H&&(y=!0,b(H))}var B=d(rJ()),x=[B.key];function M(Y){return u+Sl(Y)}function S(Y,X){var K="PUSH",U=ol(Y,X,f(),j.location);h.confirmTransitionTo(U,K,l,function(H){if(H){var L=M(U),V=U.key,J=U.state;if(r)if(t.pushState({key:V,state:J},null,L),o)window.location.href=L;else{var ee=x.indexOf(j.location.key),ae=x.slice(0,ee+1);ae.push(U.key),x=ae,g({action:K,location:U})}else window.location.href=L}})}function R(Y,X){var K="REPLACE",U=ol(Y,X,f(),j.location);h.confirmTransitionTo(U,K,l,function(H){if(H){var L=M(U),V=U.key,J=U.state;if(r)if(t.replaceState({key:V,state:J},null,L),o)window.location.replace(L);else{var ee=x.indexOf(j.location.key);ee!==-1&&(x[ee]=U.key),g({action:K,location:U})}else window.location.replace(L)}})}function b(Y){t.go(Y)}function T(){b(-1)}function D(){b(1)}var F=0;function N(Y){F+=Y,F===1&&Y===1?(window.addEventListener(eJ,p),n&&window.addEventListener(tJ,m)):F===0&&(window.removeEventListener(eJ,p),n&&window.removeEventListener(tJ,m))}var _=!1;function P(Y){Y===void 0&&(Y=!1);var X=h.setPrompt(Y);return _||(N(1),_=!0),function(){return _&&(_=!1,N(-1)),X()}}function k(Y){var X=h.appendListener(Y);return N(1),function(){N(-1),X()}}var j={length:t.length,action:"POP",location:B,createHref:M,push:S,replace:R,go:b,goBack:T,goForward:D,block:P,listen:k};return j}var nJ="hashchange",Jke={hashbang:{encodePath:function(t){return t.charAt(0)==="!"?t:"!/"+$V(t)},decodePath:function(t){return t.charAt(0)==="!"?t.substr(1):t}},noslash:{encodePath:$V,decodePath:bw},slash:{encodePath:bw,decodePath:bw}};function Gge(e){var t=e.indexOf("#");return t===-1?e:e.slice(0,t)}function b1(){var e=window.location.href,t=e.indexOf("#");return t===-1?"":e.substring(t+1)}function Wke(e){window.location.hash=e}function vF(e){window.location.replace(Gge(window.location.href)+"#"+e)}function Xke(e){e===void 0&&(e={}),Yge||Og();var t=window.history;Kke();var r=e,n=r.getUserConfirmation,a=n===void 0?Uge:n,i=r.hashType,o=i===void 0?"slash":i,s=e.basename?Lge(bw(e.basename)):"",l=Jke[o],c=l.encodePath,A=l.decodePath;function u(){var X=A(b1());return s&&(X=zge(X,s)),ol(X)}var d=zY();function f(X){ge(Y,X),Y.length=t.length,d.notifyListeners(Y.location,Y.action)}var h=!1,g=null;function p(X,K){return X.pathname===K.pathname&&X.search===K.search&&X.hash===K.hash}function m(){var X=b1(),K=c(X);if(X!==K)vF(K);else{var U=u(),H=Y.location;if(!h&&p(H,U)||g===Sl(U))return;g=null,y(U)}}function y(X){if(h)h=!1,f();else{var K="POP";d.confirmTransitionTo(X,K,a,function(U){U?f({action:K,location:X}):C(X)})}}function C(X){var K=Y.location,U=M.lastIndexOf(Sl(K));U===-1&&(U=0);var H=M.lastIndexOf(Sl(X));H===-1&&(H=0);var L=U-H;L&&(h=!0,T(L))}var w=b1(),B=c(w);w!==B&&vF(B);var x=u(),M=[Sl(x)];function S(X){var K=document.querySelector("base"),U="";return K&&K.getAttribute("href")&&(U=Gge(window.location.href)),U+"#"+c(s+Sl(X))}function R(X,K){var U="PUSH",H=ol(X,void 0,void 0,Y.location);d.confirmTransitionTo(H,U,a,function(L){if(L){var V=Sl(H),J=c(s+V),ee=b1()!==J;if(ee){g=V,Wke(J);var ae=M.lastIndexOf(Sl(Y.location)),ne=M.slice(0,ae+1);ne.push(V),M=ne,f({action:U,location:H})}else f()}})}function b(X,K){var U="REPLACE",H=ol(X,void 0,void 0,Y.location);d.confirmTransitionTo(H,U,a,function(L){if(L){var V=Sl(H),J=c(s+V),ee=b1()!==J;ee&&(g=V,vF(J));var ae=M.indexOf(Sl(Y.location));ae!==-1&&(M[ae]=V),f({action:U,location:H})}})}function T(X){t.go(X)}function D(){T(-1)}function F(){T(1)}var N=0;function _(X){N+=X,N===1&&X===1?window.addEventListener(nJ,m):N===0&&window.removeEventListener(nJ,m)}var P=!1;function k(X){X===void 0&&(X=!1);var K=d.setPrompt(X);return P||(_(1),P=!0),function(){return P&&(P=!1,_(-1)),K()}}function j(X){var K=d.appendListener(X);return _(1),function(){_(-1),K()}}var Y={length:t.length,action:"POP",location:x,createHref:S,push:R,replace:b,go:T,goBack:D,goForward:F,block:k,listen:j};return Y}function aJ(e,t,r){return Math.min(Math.max(e,t),r)}function qke(e){e===void 0&&(e={});var t=e,r=t.getUserConfirmation,n=t.initialEntries,a=n===void 0?["/"]:n,i=t.initialIndex,o=i===void 0?0:i,s=t.keyLength,l=s===void 0?6:s,c=zY();function A(S){ge(M,S),M.length=M.entries.length,c.notifyListeners(M.location,M.action)}function u(){return Math.random().toString(36).substr(2,l)}var d=aJ(o,0,a.length-1),f=a.map(function(S){return typeof S=="string"?ol(S,void 0,u()):ol(S,void 0,S.key||u())}),h=Sl;function g(S,R){var b="PUSH",T=ol(S,R,u(),M.location);c.confirmTransitionTo(T,b,r,function(D){if(D){var F=M.index,N=F+1,_=M.entries.slice(0);_.length>N?_.splice(N,_.length-N,T):_.push(T),A({action:b,location:T,index:N,entries:_})}})}function p(S,R){var b="REPLACE",T=ol(S,R,u(),M.location);c.confirmTransitionTo(T,b,r,function(D){D&&(M.entries[M.index]=T,A({action:b,location:T}))})}function m(S){var R=aJ(M.index+S,0,M.entries.length-1),b="POP",T=M.entries[R];c.confirmTransitionTo(T,b,r,function(D){D?A({action:b,location:T,index:R}):A()})}function y(){m(-1)}function C(){m(1)}function w(S){var R=M.index+S;return R>=0&&R<M.entries.length}function B(S){return S===void 0&&(S=!1),c.setPrompt(S)}function x(S){return c.appendListener(S)}var M={length:f.length,action:"POP",location:f[d],index:d,entries:f,createHref:h,push:g,replace:p,go:m,goBack:y,goForward:C,canGo:w,block:B,listen:x};return M}var Mp={exports:{}},mF,iJ;function Zke(){return iJ||(iJ=1,mF=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"}),mF}var oJ;function $ke(){if(oJ)return Mp.exports;oJ=1;var e=Zke();Mp.exports=p,Mp.exports.parse=r,Mp.exports.compile=a,Mp.exports.tokensToFunction=s,Mp.exports.tokensToRegExp=g;var t=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function r(m,y){for(var C=[],w=0,B=0,x="",M=y&&y.delimiter||"/",S;(S=t.exec(m))!=null;){var R=S[0],b=S[1],T=S.index;if(x+=m.slice(B,T),B=T+R.length,b){x+=b[1];continue}var D=m[B],F=S[2],N=S[3],_=S[4],P=S[5],k=S[6],j=S[7];x&&(C.push(x),x="");var Y=F!=null&&D!=null&&D!==F,X=k==="+"||k==="*",K=k==="?"||k==="*",U=F||M,H=_||P,L=F||(typeof C[C.length-1]=="string"?C[C.length-1]:"");C.push({name:N||w++,prefix:F||"",delimiter:U,optional:K,repeat:X,partial:Y,asterisk:!!j,pattern:H?c(H):j?".*":n(U,L)})}return B<m.length&&(x+=m.substr(B)),x&&C.push(x),C}function n(m,y){return!y||y.indexOf(m)>-1?"[^"+l(m)+"]+?":l(y)+"|(?:(?!"+l(y)+")[^"+l(m)+"])+?"}function a(m,y){return s(r(m,y),y)}function i(m){return encodeURI(m).replace(/[\/?#]/g,function(y){return"%"+y.charCodeAt(0).toString(16).toUpperCase()})}function o(m){return encodeURI(m).replace(/[?#]/g,function(y){return"%"+y.charCodeAt(0).toString(16).toUpperCase()})}function s(m,y){for(var C=new Array(m.length),w=0;w<m.length;w++)typeof m[w]=="object"&&(C[w]=new RegExp("^(?:"+m[w].pattern+")$",u(y)));return function(B,x){for(var M="",S=B||{},R=x||{},b=R.pretty?i:encodeURIComponent,T=0;T<m.length;T++){var D=m[T];if(typeof D=="string"){M+=D;continue}var F=S[D.name],N;if(F==null)if(D.optional){D.partial&&(M+=D.prefix);continue}else throw new TypeError('Expected "'+D.name+'" to be defined');if(e(F)){if(!D.repeat)throw new TypeError('Expected "'+D.name+'" to not repeat, but received `'+JSON.stringify(F)+"`");if(F.length===0){if(D.optional)continue;throw new TypeError('Expected "'+D.name+'" to not be empty')}for(var _=0;_<F.length;_++){if(N=b(F[_]),!C[T].test(N))throw new TypeError('Expected all "'+D.name+'" to match "'+D.pattern+'", but received `'+JSON.stringify(N)+"`");M+=(_===0?D.prefix:D.delimiter)+N}continue}if(N=D.asterisk?o(F):b(F),!C[T].test(N))throw new TypeError('Expected "'+D.name+'" to match "'+D.pattern+'", but received "'+N+'"');M+=D.prefix+N}return M}}function l(m){return m.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(m){return m.replace(/([=!:$\/()])/g,"\\$1")}function A(m,y){return m.keys=y,m}function u(m){return m&&m.sensitive?"":"i"}function d(m,y){var C=m.source.match(/\((?!\?)/g);if(C)for(var w=0;w<C.length;w++)y.push({name:w,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return A(m,y)}function f(m,y,C){for(var w=[],B=0;B<m.length;B++)w.push(p(m[B],y,C).source);var x=new RegExp("(?:"+w.join("|")+")",u(C));return A(x,y)}function h(m,y,C){return g(r(m,C),y,C)}function g(m,y,C){e(y)||(C=y||C,y=[]),C=C||{};for(var w=C.strict,B=C.end!==!1,x="",M=0;M<m.length;M++){var S=m[M];if(typeof S=="string")x+=l(S);else{var R=l(S.prefix),b="(?:"+S.pattern+")";y.push(S),S.repeat&&(b+="(?:"+R+b+")*"),S.optional?S.partial?b=R+"("+b+")?":b="(?:"+R+"("+b+"))?":b=R+"("+b+")",x+=b}}var T=l(C.delimiter||"/"),D=x.slice(-T.length)===T;return w||(x=(D?x.slice(0,-T.length):x)+"(?:"+T+"(?=$))?"),B?x+="$":x+=w&&D?"":"(?="+T+"|$)",A(new RegExp("^"+x,u(C)),y)}function p(m,y,C){return e(y)||(C=y||C,y=[]),C=C||{},m instanceof RegExp?d(m,y):e(m)?f(m,y,C):h(m,y,C)}return Mp.exports}var ePe=$ke();const Kge=gn(ePe);kge();var EF=1073741823,sJ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{};function tPe(){var e="__global_unique_id__";return sJ[e]=(sJ[e]||0)+1}function rPe(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function nPe(e){var t=[];return{on:function(n){t.push(n)},off:function(n){t=t.filter(function(a){return a!==n})},get:function(){return e},set:function(n,a){e=n,t.forEach(function(i){return i(e,a)})}}}function aPe(e){return Array.isArray(e)?e[0]:e}function iPe(e,t){var r,n,a="__create-react-context-"+tPe()+"__",i=(function(s){Vi(l,s);function l(){for(var A,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return A=s.call.apply(s,[this].concat(d))||this,A.emitter=nPe(A.props.value),A}var c=l.prototype;return c.getChildContext=function(){var u;return u={},u[a]=this.emitter,u},c.componentWillReceiveProps=function(u){if(this.props.value!==u.value){var d=this.props.value,f=u.value,h;rPe(d,f)?h=0:(h=typeof t=="function"?t(d,f):EF,h|=0,h!==0&&this.emitter.set(u.value,h))}},c.render=function(){return this.props.children},l})(le.Component);i.childContextTypes=(r={},r[a]=W.object.isRequired,r);var o=(function(s){Vi(l,s);function l(){for(var A,u=arguments.length,d=new Array(u),f=0;f<u;f++)d[f]=arguments[f];return A=s.call.apply(s,[this].concat(d))||this,A.observedBits=void 0,A.state={value:A.getValue()},A.onUpdate=function(h,g){var p=A.observedBits|0;(p&g)!==0&&A.setState({value:A.getValue()})},A}var c=l.prototype;return c.componentWillReceiveProps=function(u){var d=u.observedBits;this.observedBits=d??EF},c.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var u=this.props.observedBits;this.observedBits=u??EF},c.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},c.getValue=function(){return this.context[a]?this.context[a].get():e},c.render=function(){return aPe(this.props.children)(this.state.value)},l})(le.Component);return o.contextTypes=(n={},n[a]=W.object,n),{Provider:i,Consumer:o}}var oPe=le.createContext||iPe,Vge=function(t){var r=oPe();return r.displayName=t,r},Jge=Vge("Router-History"),wg=Vge("Router"),qB=(function(e){Vi(t,e),t.computeRootMatch=function(a){return{path:"/",url:"/",params:{},isExact:a==="/"}};function t(n){var a;return a=e.call(this,n)||this,a.state={location:n.history.location},a._isMounted=!1,a._pendingLocation=null,n.staticContext||(a.unlisten=n.history.listen(function(i){a._pendingLocation=i})),a}var r=t.prototype;return r.componentDidMount=function(){var a=this;this._isMounted=!0,this.unlisten&&this.unlisten(),this.props.staticContext||(this.unlisten=this.props.history.listen(function(i){a._isMounted&&a.setState({location:i})})),this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},r.render=function(){return le.createElement(wg.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},le.createElement(Jge.Provider,{children:this.props.children||null,value:this.props.history}))},t})(le.Component);le.Component;var sPe=(function(e){Vi(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},r.componentDidUpdate=function(a){this.props.onUpdate&&this.props.onUpdate.call(this,this,a)},r.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},r.render=function(){return null},t})(le.Component),yF={},lPe=1e4,lJ=0;function cPe(e){if(yF[e])return yF[e];var t=Kge.compile(e);return lJ<lPe&&(yF[e]=t,lJ++),t}function cJ(e,t){return e===void 0&&(e="/"),t===void 0&&(t={}),e==="/"?e:cPe(e)(t,{pretty:!0})}function vE(e){var t=e.computedMatch,r=e.to,n=e.push,a=n===void 0?!1:n;return le.createElement(wg.Consumer,null,function(i){i||Og();var o=i.history,s=i.staticContext,l=a?o.push:o.replace,c=ol(t?typeof r=="string"?cJ(r,t.params):ge({},r,{pathname:cJ(r.pathname,t.params)}):r);return s?(l(c),null):le.createElement(sPe,{onMount:function(){l(c)},onUpdate:function(u,d){var f=ol(d.to);Uke(f,ge({},c,{key:f.key}))||l(c)},to:r})})}var AJ={},APe=1e4,uJ=0;function uPe(e,t){var r=""+t.end+t.strict+t.sensitive,n=AJ[r]||(AJ[r]={});if(n[e])return n[e];var a=[],i=Kge(e,a,t),o={regexp:i,keys:a};return uJ<APe&&(n[e]=o,uJ++),o}function wQ(e,t){t===void 0&&(t={}),(typeof t=="string"||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,a=r.exact,i=a===void 0?!1:a,o=r.strict,s=o===void 0?!1:o,l=r.sensitive,c=l===void 0?!1:l,A=[].concat(n);return A.reduce(function(u,d){if(!d&&d!=="")return null;if(u)return u;var f=uPe(d,{end:i,strict:s,sensitive:c}),h=f.regexp,g=f.keys,p=h.exec(e);if(!p)return null;var m=p[0],y=p.slice(1),C=e===m;return i&&!C?null:{path:d,url:d==="/"&&m===""?"/":m,isExact:C,params:g.reduce(function(w,B,x){return w[B.name]=y[x],w},{})}},null)}function dPe(e){return le.Children.count(e)===0}var aE=(function(e){Vi(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var a=this;return le.createElement(wg.Consumer,null,function(i){i||Og();var o=a.props.location||i.location,s=a.props.computedMatch?a.props.computedMatch:a.props.path?wQ(o.pathname,a.props):i.match,l=ge({},i,{location:o,match:s}),c=a.props,A=c.children,u=c.component,d=c.render;return Array.isArray(A)&&dPe(A)&&(A=null),le.createElement(wg.Provider,{value:l},l.match?A?typeof A=="function"?A(l):A:u?le.createElement(u,l):d?d(l):null:typeof A=="function"?A(l):null)})},t})(le.Component);function LY(e){return e.charAt(0)==="/"?e:"/"+e}function fPe(e,t){return e?ge({},t,{pathname:LY(e)+t.pathname}):t}function hPe(e,t){if(!e)return t;var r=LY(e);return t.pathname.indexOf(r)!==0?t:ge({},t,{pathname:t.pathname.substr(r.length)})}function dJ(e){return typeof e=="string"?e:Sl(e)}function CF(e){return function(){Og()}}function fJ(){}le.Component;var Wge=(function(e){Vi(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.render=function(){var a=this;return le.createElement(wg.Consumer,null,function(i){i||Og();var o=a.props.location||i.location,s,l;return le.Children.forEach(a.props.children,function(c){if(l==null&&le.isValidElement(c)){s=c;var A=c.props.path||c.props.from;l=A?wQ(o.pathname,ge({},c.props,{path:A})):i.match}}),l?le.cloneElement(s,{location:o,computedMatch:l}):null})},t})(le.Component),Xge=le.useContext;function qf(){return Xge(Jge)}function gPe(){return Xge(wg).location}var tw={exports:{}};tw.exports;var hJ;function pPe(){return hJ||(hJ=1,(function(e,t){var r=200,n="__lodash_hash_undefined__",a=1,i=2,o=9007199254740991,s="[object Arguments]",l="[object Array]",c="[object Boolean]",A="[object Date]",u="[object Error]",d="[object Function]",f="[object GeneratorFunction]",h="[object Map]",g="[object Number]",p="[object Object]",m="[object Promise]",y="[object RegExp]",C="[object Set]",w="[object String]",B="[object Symbol]",x="[object WeakMap]",M="[object ArrayBuffer]",S="[object DataView]",R="[object Float32Array]",b="[object Float64Array]",T="[object Int8Array]",D="[object Int16Array]",F="[object Int32Array]",N="[object Uint8Array]",_="[object Uint8ClampedArray]",P="[object Uint16Array]",k="[object Uint32Array]",j=/[\\^$.*+?()[\]{}|]/g,Y=/^\[object .+?Constructor\]$/,X=/^(?:0|[1-9]\d*)$/,K={};K[R]=K[b]=K[T]=K[D]=K[F]=K[N]=K[_]=K[P]=K[k]=!0,K[s]=K[l]=K[M]=K[c]=K[S]=K[A]=K[u]=K[d]=K[h]=K[g]=K[p]=K[y]=K[C]=K[w]=K[x]=!1;var U=typeof Ho=="object"&&Ho&&Ho.Object===Object&&Ho,H=typeof self=="object"&&self&&self.Object===Object&&self,L=U||H||Function("return this")(),V=t&&!t.nodeType&&t,J=V&&!0&&e&&!e.nodeType&&e,ee=J&&J.exports===V,ae=ee&&U.process,ne=(function(){try{return ae&&ae.binding("util")}catch{}})(),fe=ne&&ne.isTypedArray;function he(ht,Pt){for(var Ft=-1,or=ht?ht.length:0;++Ft<or;)if(Pt(ht[Ft],Ft,ht))return!0;return!1}function ye(ht,Pt){for(var Ft=-1,or=Array(ht);++Ft<ht;)or[Ft]=Pt(Ft);return or}function be(ht){return function(Pt){return ht(Pt)}}function Se(ht,Pt){return ht?.[Pt]}function ve(ht){var Pt=!1;if(ht!=null&&typeof ht.toString!="function")try{Pt=!!(ht+"")}catch{}return Pt}function de(ht){var Pt=-1,Ft=Array(ht.size);return ht.forEach(function(or,Zr){Ft[++Pt]=[Zr,or]}),Ft}function Ue(ht,Pt){return function(Ft){return ht(Pt(Ft))}}function at(ht){var Pt=-1,Ft=Array(ht.size);return ht.forEach(function(or){Ft[++Pt]=or}),Ft}var Ve=Array.prototype,Ie=Function.prototype,we=Object.prototype,Re=L["__core-js_shared__"],Te=(function(){var ht=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return ht?"Symbol(src)_1."+ht:""})(),Ke=Ie.toString,mt=we.hasOwnProperty,tt=we.toString,rt=RegExp("^"+Ke.call(mt).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lt=L.Symbol,At=L.Uint8Array,$e=we.propertyIsEnumerable,ce=Ve.splice,qe=Ue(Object.keys,Object),ct=ze(L,"DataView"),Tt=ze(L,"Map"),He=ze(L,"Promise"),Ge=ze(L,"Set"),Ee=ze(L,"WeakMap"),Et=ze(Object,"create"),Yt=Jt(ct),$=Jt(Tt),Fe=Jt(He),je=Jt(Ge),ue=Jt(Ee),ie=lt?lt.prototype:void 0,Be=ie?ie.valueOf:void 0;function Xe(ht){var Pt=-1,Ft=ht?ht.length:0;for(this.clear();++Pt<Ft;){var or=ht[Pt];this.set(or[0],or[1])}}function Oe(){this.__data__=Et?Et(null):{}}function ft(ht){return this.has(ht)&&delete this.__data__[ht]}function wt(ht){var Pt=this.__data__;if(Et){var Ft=Pt[ht];return Ft===n?void 0:Ft}return mt.call(Pt,ht)?Pt[ht]:void 0}function ot(ht){var Pt=this.__data__;return Et?Pt[ht]!==void 0:mt.call(Pt,ht)}function it(ht,Pt){var Ft=this.__data__;return Ft[ht]=Et&&Pt===void 0?n:Pt,this}Xe.prototype.clear=Oe,Xe.prototype.delete=ft,Xe.prototype.get=wt,Xe.prototype.has=ot,Xe.prototype.set=it;function vt(ht){var Pt=-1,Ft=ht?ht.length:0;for(this.clear();++Pt<Ft;){var or=ht[Pt];this.set(or[0],or[1])}}function qt(){this.__data__=[]}function Xt(ht){var Pt=this.__data__,Ft=pn(Pt,ht);if(Ft<0)return!1;var or=Pt.length-1;return Ft==or?Pt.pop():ce.call(Pt,Ft,1),!0}function Tr(ht){var Pt=this.__data__,Ft=pn(Pt,ht);return Ft<0?void 0:Pt[Ft][1]}function Kr(ht){return pn(this.__data__,ht)>-1}function Vr(ht,Pt){var Ft=this.__data__,or=pn(Ft,ht);return or<0?Ft.push([ht,Pt]):Ft[or][1]=Pt,this}vt.prototype.clear=qt,vt.prototype.delete=Xt,vt.prototype.get=Tr,vt.prototype.has=Kr,vt.prototype.set=Vr;function Pr(ht){var Pt=-1,Ft=ht?ht.length:0;for(this.clear();++Pt<Ft;){var or=ht[Pt];this.set(or[0],or[1])}}function mr(){this.__data__={hash:new Xe,map:new(Tt||vt),string:new Xe}}function xr(ht){return Me(this,ht).delete(ht)}function Ir(ht){return Me(this,ht).get(ht)}function Fr(ht){return Me(this,ht).has(ht)}function br(ht,Pt){return Me(this,ht).set(ht,Pt),this}Pr.prototype.clear=mr,Pr.prototype.delete=xr,Pr.prototype.get=Ir,Pr.prototype.has=Fr,Pr.prototype.set=br;function Sr(ht){var Pt=-1,Ft=ht?ht.length:0;for(this.__data__=new Pr;++Pt<Ft;)this.add(ht[Pt])}function fr(ht){return this.__data__.set(ht,n),this}function Cr(ht){return this.__data__.has(ht)}Sr.prototype.add=Sr.prototype.push=fr,Sr.prototype.has=Cr;function hr(ht){this.__data__=new vt(ht)}function Ht(){this.__data__=new vt}function Gt(ht){return this.__data__.delete(ht)}function er(ht){return this.__data__.get(ht)}function Qr(ht){return this.__data__.has(ht)}function Hr(ht,Pt){var Ft=this.__data__;if(Ft instanceof vt){var or=Ft.__data__;if(!Tt||or.length<r-1)return or.push([ht,Pt]),this;Ft=this.__data__=new Pr(or)}return Ft.set(ht,Pt),this}hr.prototype.clear=Ht,hr.prototype.delete=Gt,hr.prototype.get=er,hr.prototype.has=Qr,hr.prototype.set=Hr;function vn(ht,Pt){var Ft=rn(ht)||Nr(ht)?ye(ht.length,String):[],or=Ft.length,Zr=!!or;for(var lr in ht)mt.call(ht,lr)&&!(Zr&&(lr=="length"||et(lr,or)))&&Ft.push(lr);return Ft}function pn(ht,Pt){for(var Ft=ht.length;Ft--;)if(ar(ht[Ft][0],Pt))return Ft;return-1}function Qn(ht){return tt.call(ht)}function pt(ht,Pt,Ft,or,Zr){return ht===Pt?!0:ht==null||Pt==null||!Wn(ht)&&!Cn(Pt)?ht!==ht&&Pt!==Pt:Ze(ht,Pt,pt,Ft,or,Zr)}function Ze(ht,Pt,Ft,or,Zr,lr){var $n=rn(ht),pa=rn(Pt),ha=l,In=l;$n||(ha=Ye(ht),ha=ha==s?p:ha),pa||(In=Ye(Pt),In=In==s?p:In);var Oa=ha==p&&!ve(ht),bi=In==p&&!ve(Pt),ri=ha==In;if(ri&&!Oa)return lr||(lr=new hr),$n||qa(ht)?St(ht,Pt,Ft,or,Zr,lr):pe(ht,Pt,ha,Ft,or,Zr,lr);if(!(Zr&i)){var Za=Oa&&mt.call(ht,"__wrapped__"),Xi=bi&&mt.call(Pt,"__wrapped__");if(Za||Xi){var po=Za?ht.value():ht,ni=Xi?Pt.value():Pt;return lr||(lr=new hr),Ft(po,ni,or,Zr,lr)}}return ri?(lr||(lr=new hr),ke(ht,Pt,Ft,or,Zr,lr)):!1}function bt(ht){if(!Wn(ht)||Ot(ht))return!1;var Pt=Rr(ht)||ve(ht)?rt:Y;return Pt.test(Jt(ht))}function kt(ht){return Cn(ht)&&Gn(ht.length)&&!!K[tt.call(ht)]}function Wt(ht){if(!Ut(ht))return qe(ht);var Pt=[];for(var Ft in Object(ht))mt.call(ht,Ft)&&Ft!="constructor"&&Pt.push(Ft);return Pt}function St(ht,Pt,Ft,or,Zr,lr){var $n=Zr&i,pa=ht.length,ha=Pt.length;if(pa!=ha&&!($n&&ha>pa))return!1;var In=lr.get(ht);if(In&&lr.get(Pt))return In==Pt;var Oa=-1,bi=!0,ri=Zr&a?new Sr:void 0;for(lr.set(ht,Pt),lr.set(Pt,ht);++Oa<pa;){var Za=ht[Oa],Xi=Pt[Oa];if(or)var po=$n?or(Xi,Za,Oa,Pt,ht,lr):or(Za,Xi,Oa,ht,Pt,lr);if(po!==void 0){if(po)continue;bi=!1;break}if(ri){if(!he(Pt,function(ni,zi){if(!ri.has(zi)&&(Za===ni||Ft(Za,ni,or,Zr,lr)))return ri.add(zi)})){bi=!1;break}}else if(!(Za===Xi||Ft(Za,Xi,or,Zr,lr))){bi=!1;break}}return lr.delete(ht),lr.delete(Pt),bi}function pe(ht,Pt,Ft,or,Zr,lr,$n){switch(Ft){case S:if(ht.byteLength!=Pt.byteLength||ht.byteOffset!=Pt.byteOffset)return!1;ht=ht.buffer,Pt=Pt.buffer;case M:return!(ht.byteLength!=Pt.byteLength||!or(new At(ht),new At(Pt)));case c:case A:case g:return ar(+ht,+Pt);case u:return ht.name==Pt.name&&ht.message==Pt.message;case y:case w:return ht==Pt+"";case h:var pa=de;case C:var ha=lr&i;if(pa||(pa=at),ht.size!=Pt.size&&!ha)return!1;var In=$n.get(ht);if(In)return In==Pt;lr|=a,$n.set(ht,Pt);var Oa=St(pa(ht),pa(Pt),or,Zr,lr,$n);return $n.delete(ht),Oa;case B:if(Be)return Be.call(ht)==Be.call(Pt)}return!1}function ke(ht,Pt,Ft,or,Zr,lr){var $n=Zr&i,pa=wa(ht),ha=pa.length,In=wa(Pt),Oa=In.length;if(ha!=Oa&&!$n)return!1;for(var bi=ha;bi--;){var ri=pa[bi];if(!($n?ri in Pt:mt.call(Pt,ri)))return!1}var Za=lr.get(ht);if(Za&&lr.get(Pt))return Za==Pt;var Xi=!0;lr.set(ht,Pt),lr.set(Pt,ht);for(var po=$n;++bi<ha;){ri=pa[bi];var ni=ht[ri],zi=Pt[ri];if(or)var Qo=$n?or(zi,ni,ri,Pt,ht,lr):or(ni,zi,ri,ht,Pt,lr);if(!(Qo===void 0?ni===zi||Ft(ni,zi,or,Zr,lr):Qo)){Xi=!1;break}po||(po=ri=="constructor")}if(Xi&&!po){var so=ht.constructor,gs=Pt.constructor;so!=gs&&"constructor"in ht&&"constructor"in Pt&&!(typeof so=="function"&&so instanceof so&&typeof gs=="function"&&gs instanceof gs)&&(Xi=!1)}return lr.delete(ht),lr.delete(Pt),Xi}function Me(ht,Pt){var Ft=ht.__data__;return Ct(Pt)?Ft[typeof Pt=="string"?"string":"hash"]:Ft.map}function ze(ht,Pt){var Ft=Se(ht,Pt);return bt(Ft)?Ft:void 0}var Ye=Qn;(ct&&Ye(new ct(new ArrayBuffer(1)))!=S||Tt&&Ye(new Tt)!=h||He&&Ye(He.resolve())!=m||Ge&&Ye(new Ge)!=C||Ee&&Ye(new Ee)!=x)&&(Ye=function(ht){var Pt=tt.call(ht),Ft=Pt==p?ht.constructor:void 0,or=Ft?Jt(Ft):void 0;if(or)switch(or){case Yt:return S;case $:return h;case Fe:return m;case je:return C;case ue:return x}return Pt});function et(ht,Pt){return Pt=Pt??o,!!Pt&&(typeof ht=="number"||X.test(ht))&&ht>-1&&ht%1==0&&ht<Pt}function Ct(ht){var Pt=typeof ht;return Pt=="string"||Pt=="number"||Pt=="symbol"||Pt=="boolean"?ht!=="__proto__":ht===null}function Ot(ht){return!!Te&&Te in ht}function Ut(ht){var Pt=ht&&ht.constructor,Ft=typeof Pt=="function"&&Pt.prototype||we;return ht===Ft}function Jt(ht){if(ht!=null){try{return Ke.call(ht)}catch{}try{return ht+""}catch{}}return""}function ar(ht,Pt){return ht===Pt||ht!==ht&&Pt!==Pt}function Nr(ht){return kr(ht)&&mt.call(ht,"callee")&&(!$e.call(ht,"callee")||tt.call(ht)==s)}var rn=Array.isArray;function dn(ht){return ht!=null&&Gn(ht.length)&&!Rr(ht)}function kr(ht){return Cn(ht)&&dn(ht)}function Wr(ht,Pt,Ft){Ft=typeof Ft=="function"?Ft:void 0;var or=Ft?Ft(ht,Pt):void 0;return or===void 0?pt(ht,Pt,Ft):!!or}function Rr(ht){var Pt=Wn(ht)?tt.call(ht):"";return Pt==d||Pt==f}function Gn(ht){return typeof ht=="number"&&ht>-1&&ht%1==0&&ht<=o}function Wn(ht){var Pt=typeof ht;return!!ht&&(Pt=="object"||Pt=="function")}function Cn(ht){return!!ht&&typeof ht=="object"}var qa=fe?be(fe):kt;function wa(ht){return dn(ht)?vn(ht):Wt(ht)}e.exports=Wr})(tw,tw.exports)),tw.exports}var vPe=pPe();const mPe=gn(vPe);var qge="@@router/LOCATION_CHANGE",EPe=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return{type:qge,payload:{location:t,action:r,isFirstRendering:n}}},Zge="@@router/CALL_HISTORY_METHOD",$ge=function(t){return function(){for(var r=arguments.length,n=new Array(r),a=0;a<r;a++)n[a]=arguments[a];return{type:Zge,payload:{method:t,args:n}}}},yPe=$ge("push"),YY=$ge("replace");function PS(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?PS=function(r){return typeof r}:PS=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},PS(e)}var CPe=function(t){var r=t.getIn,n=t.toJS,a=function(d){return d!=null&&PS(d)==="object"&&r(d,["location"])&&r(d,["action"])},i=function(d){var f=n(r(d,["router"]));if(!a(f))throw'Could not find router reducer in state tree, it must be mounted under "router"';return f},o=function(d){return n(r(i(d),["location"]))},s=function(d){return n(r(i(d),["action"]))},l=function(d){return n(r(i(d),["location","search"]))},c=function(d){return n(r(i(d),["location","hash"]))},A=function(d){var f=null,h=null;return function(g){var p=o(g)||{},m=p.pathname;if(m===f)return h;f=m;var y=wQ(m,d);return(!y||!h||y.url!==h.url||y.isExact!==h.isExact)&&(h=y),h}};return{getLocation:o,getAction:s,getRouter:i,getSearch:l,getHash:c,createMatchSelector:A}};function OS(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?OS=function(r){return typeof r}:OS=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},OS(e)}function $j(){return $j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$j.apply(this,arguments)}function wPe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BPe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function xPe(e,t,r){return t&&BPe(e.prototype,t),e}function MPe(e){return function(){var t=FR(e),r;if(SPe()){var n=FR(this).constructor;r=Reflect.construct(t,arguments,n)}else r=t.apply(this,arguments);return IPe(this,r)}}function IPe(e,t){return t&&(OS(t)==="object"||typeof t=="function")?t:bPe(e)}function bPe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SPe(){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 FR(e){return FR=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},FR(e)}function RPe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ez(e,t)}function ez(e,t){return ez=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n},ez(e,t)}var TPe=function(t){var r=CPe(t),n=r.getLocation,a=(function(s){RPe(c,s);var l=MPe(c);function c(A){var u;wPe(this,c),u=l.call(this,A);var d=A.store,f=A.history,h=A.onLocationChanged,g=A.stateCompareFunction;u.inTimeTravelling=!1,u.unsubscribe=d.subscribe(function(){var m=!A.noTimeTravelDebugging,y=n(d.getState()),C=y.pathname,w=y.search,B=y.hash,x=y.state,M=f.location,S=M.pathname,R=M.search,b=M.hash,T=M.state;m&&A.history.action==="PUSH"&&(S!==C||R!==w||b!==B||!mPe(x,T,g))&&(u.inTimeTravelling=!0,f.push({pathname:C,search:w,hash:B,state:x}))});var p=function(y,C){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;u.inTimeTravelling?u.inTimeTravelling=!1:h(y,C,w)};return u.unlisten=f.listen(p),A.noInitialPop||p(f.location,f.action,!0),u}return xPe(c,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var u=this.props,d=u.omitRouter,f=u.history,h=u.children;return d?le.createElement(le.Fragment,null,h):le.createElement(qB,{history:f},h)}}]),c})(E.PureComponent);a.propTypes={store:W.shape({getState:W.func.isRequired,subscribe:W.func.isRequired}).isRequired,history:W.shape({action:W.string.isRequired,listen:W.func.isRequired,location:W.object.isRequired,push:W.func.isRequired}).isRequired,basename:W.string,children:W.oneOfType([W.func,W.node]),onLocationChanged:W.func.isRequired,noInitialPop:W.bool,noTimeTravelDebugging:W.bool,stateCompareFunction:W.func,omitRouter:W.bool};var i=function(l){return{onLocationChanged:function(A,u,d){return l(EPe(A,u,d))}}},o=function(l){var c=l.context||Bd;if(c==null)throw"Please upgrade to react-redux v6";return le.createElement(c.Consumer,null,function(A){var u=A.store;return le.createElement(a,$j({store:u},l))})};return o.propTypes={context:W.object},Fke(null,i)(o)};function QPe(e,t){return _Pe(e)||NPe(e,t)||FPe(e,t)||DPe()}function DPe(){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 FPe(e,t){if(e){if(typeof e=="string")return gJ(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gJ(e,t)}}function gJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NPe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),s;!(n=(s=o.next()).done)&&(r.push(s.value),!(t&&r.length===t));n=!0);}catch(l){a=!0,i=l}finally{try{!n&&o.return!=null&&o.return()}finally{if(a)throw i}}return r}}function _Pe(e){if(Array.isArray(e))return e}function pJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function wF(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pJ(Object(r),!0).forEach(function(n){epe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pJ(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function epe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var vJ=function(t){if(t&&t.query)return t;var r=t&&t.search;if(typeof r!="string"||r.length===0)return wF({},t,{query:{}});var n=r.substring(1),a=n.split("&"),i=a.reduce(function(o,s){var l=s.split("="),c=QPe(l,2),A=c[0],u=c[1];return wF({},o,epe({},A,u))},{});return wF({},t,{query:i})},kPe=function(t){var r=t.fromJS,n=t.merge,a=function(o){var s=r({location:vJ(o.location),action:o.action});return function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:s,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=c.type,u=c.payload;if(A===qge){var d=u.location,f=u.action,h=u.isFirstRendering;return h?l:n(l,{location:r(vJ(d)),action:f})}return l}};return a},PPe=function(t,r){if(!t)return t;var n=r.length;if(n){for(var a=t,i=0;i<n&&a;++i)a=a[r[i]];return a}};function mJ(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function OPe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mJ(Object(r),!0).forEach(function(n){jPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mJ(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function jPe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tpe={fromJS:function(t){return t},getIn:PPe,merge:function(t,r){return OPe({},t,{},r)},toJS:function(t){return t}};function zPe(e){return HPe(e)||UPe(e)||YPe(e)||LPe()}function LPe(){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 YPe(e,t){if(e){if(typeof e=="string")return tz(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tz(e,t)}}function UPe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function HPe(e){if(Array.isArray(e))return tz(e)}function tz(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var GPe=function(t){return function(r){return function(n){return function(a){if(a.type!==Zge)return n(a);var i=a.payload,o=i.method,s=i.args;t[o].apply(t,zPe(s))}}}},KPe=TPe(tpe),VPe=kPe(tpe);function JPe(e){var t,r=e.Symbol;return typeof r=="function"?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var N0;typeof self<"u"?N0=self:typeof window<"u"?N0=window:typeof global<"u"?N0=global:typeof module<"u"?N0=module:N0=Function("return this")();var EJ=JPe(N0),BF=function(){return Math.random().toString(36).substring(7).split("").join(".")},Sw={INIT:"@@redux/INIT"+BF(),REPLACE:"@@redux/REPLACE"+BF(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+BF()}};function WPe(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function rpe(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error("Expected the enhancer to be a function.");return r(rpe)(e,t)}if(typeof e!="function")throw new Error("Expected the reducer to be a function.");var a=e,i=t,o=[],s=o,l=!1;function c(){s===o&&(s=o.slice())}function A(){if(l)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function u(g){if(typeof g!="function")throw new Error("Expected the listener to be a function.");if(l)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var p=!0;return c(),s.push(g),function(){if(p){if(l)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");p=!1,c();var y=s.indexOf(g);s.splice(y,1),o=null}}}function d(g){if(!WPe(g))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(typeof g.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(l)throw new Error("Reducers may not dispatch actions.");try{l=!0,i=a(i,g)}finally{l=!1}for(var p=o=s,m=0;m<p.length;m++){var y=p[m];y()}return g}function f(g){if(typeof g!="function")throw new Error("Expected the nextReducer to be a function.");a=g,d({type:Sw.REPLACE})}function h(){var g,p=u;return g={subscribe:function(y){if(typeof y!="object"||y===null)throw new TypeError("Expected the observer to be an object.");function C(){y.next&&y.next(A())}C();var w=p(C);return{unsubscribe:w}}},g[EJ]=function(){return this},g}return d({type:Sw.INIT}),n={dispatch:d,subscribe:u,getState:A,replaceReducer:f},n[EJ]=h,n}function XPe(e,t){var r=t&&t.type,n=r&&'action "'+String(r)+'"'||"an action";return"Given "+n+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function qPe(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:Sw.INIT});if(typeof n>"u")throw new Error('Reducer "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:Sw.PROBE_UNKNOWN_ACTION()})>"u")throw new Error('Reducer "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle "+Sw.INIT+' or other actions in "redux/*" ')+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function UY(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var a=t[n];typeof e[a]=="function"&&(r[a]=e[a])}var i=Object.keys(r),o;try{qPe(r)}catch(s){o=s}return function(l,c){if(l===void 0&&(l={}),o)throw o;for(var A=!1,u={},d=0;d<i.length;d++){var f=i[d],h=r[f],g=l[f],p=h(g,c);if(typeof p>"u"){var m=XPe(f,c);throw new Error(m)}u[f]=p,A=A||p!==g}return A=A||i.length!==Object.keys(l).length,A?u:l}}function ZPe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yJ(e,t){var r=Object.keys(e);return Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(e)),t&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r}function $Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yJ(r,!0).forEach(function(n){ZPe(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yJ(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function npe(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function e3e(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),i=function(){throw new Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:a.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map(function(l){return l(o)});return i=npe.apply(void 0,s)(a.dispatch),$Pe({},a,{dispatch:i})}}}function ape(e){var t=function(n){var a=n.dispatch,i=n.getState;return function(o){return function(s){return typeof s=="function"?s(a,i,e):o(s)}}};return t}var ipe=ape();ipe.withExtraArgument=ape;function kM(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var xF={exports:{}};/*!
    localForage -- Offline Storage, Improved
    Version 1.10.0
    https://localforage.github.io/localForage
    (c) 2013-2017 Mozilla, Apache License 2.0
*/var CJ;function t3e(){return CJ||(CJ=1,(function(e,t){(function(r){e.exports=r()})(function(){return(function r(n,a,i){function o(c,A){if(!a[c]){if(!n[c]){var u=typeof kM=="function"&&kM;if(!A&&u)return u(c,!0);if(s)return s(c,!0);var d=new Error("Cannot find module '"+c+"'");throw d.code="MODULE_NOT_FOUND",d}var f=a[c]={exports:{}};n[c][0].call(f.exports,function(h){var g=n[c][1][h];return o(g||h)},f,f.exports,r,n,a,i)}return a[c].exports}for(var s=typeof kM=="function"&&kM,l=0;l<i.length;l++)o(i[l]);return o})({1:[function(r,n,a){(function(i){var o=i.MutationObserver||i.WebKitMutationObserver,s;if(o){var l=0,c=new o(h),A=i.document.createTextNode("");c.observe(A,{characterData:!0}),s=function(){A.data=l=++l%2}}else if(!i.setImmediate&&typeof i.MessageChannel<"u"){var u=new i.MessageChannel;u.port1.onmessage=h,s=function(){u.port2.postMessage(0)}}else"document"in i&&"onreadystatechange"in i.document.createElement("script")?s=function(){var p=i.document.createElement("script");p.onreadystatechange=function(){h(),p.onreadystatechange=null,p.parentNode.removeChild(p),p=null},i.document.documentElement.appendChild(p)}:s=function(){setTimeout(h,0)};var d,f=[];function h(){d=!0;for(var p,m,y=f.length;y;){for(m=f,f=[],p=-1;++p<y;)m[p]();y=f.length}d=!1}n.exports=g;function g(p){f.push(p)===1&&!d&&s()}}).call(this,typeof Ho<"u"?Ho:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(r,n,a){var i=r(1);function o(){}var s={},l=["REJECTED"],c=["FULFILLED"],A=["PENDING"];n.exports=u;function u(B){if(typeof B!="function")throw new TypeError("resolver must be a function");this.state=A,this.queue=[],this.outcome=void 0,B!==o&&g(this,B)}u.prototype.catch=function(B){return this.then(null,B)},u.prototype.then=function(B,x){if(typeof B!="function"&&this.state===c||typeof x!="function"&&this.state===l)return this;var M=new this.constructor(o);if(this.state!==A){var S=this.state===c?B:x;f(M,S,this.outcome)}else this.queue.push(new d(M,B,x));return M};function d(B,x,M){this.promise=B,typeof x=="function"&&(this.onFulfilled=x,this.callFulfilled=this.otherCallFulfilled),typeof M=="function"&&(this.onRejected=M,this.callRejected=this.otherCallRejected)}d.prototype.callFulfilled=function(B){s.resolve(this.promise,B)},d.prototype.otherCallFulfilled=function(B){f(this.promise,this.onFulfilled,B)},d.prototype.callRejected=function(B){s.reject(this.promise,B)},d.prototype.otherCallRejected=function(B){f(this.promise,this.onRejected,B)};function f(B,x,M){i(function(){var S;try{S=x(M)}catch(R){return s.reject(B,R)}S===B?s.reject(B,new TypeError("Cannot resolve promise with itself")):s.resolve(B,S)})}s.resolve=function(B,x){var M=p(h,x);if(M.status==="error")return s.reject(B,M.value);var S=M.value;if(S)g(B,S);else{B.state=c,B.outcome=x;for(var R=-1,b=B.queue.length;++R<b;)B.queue[R].callFulfilled(x)}return B},s.reject=function(B,x){B.state=l,B.outcome=x;for(var M=-1,S=B.queue.length;++M<S;)B.queue[M].callRejected(x);return B};function h(B){var x=B&&B.then;if(B&&(typeof B=="object"||typeof B=="function")&&typeof x=="function")return function(){x.apply(B,arguments)}}function g(B,x){var M=!1;function S(D){M||(M=!0,s.reject(B,D))}function R(D){M||(M=!0,s.resolve(B,D))}function b(){x(R,S)}var T=p(b);T.status==="error"&&S(T.value)}function p(B,x){var M={};try{M.value=B(x),M.status="success"}catch(S){M.status="error",M.value=S}return M}u.resolve=m;function m(B){return B instanceof this?B:s.resolve(new this(o),B)}u.reject=y;function y(B){var x=new this(o);return s.reject(x,B)}u.all=C;function C(B){var x=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=B.length,S=!1;if(!M)return this.resolve([]);for(var R=new Array(M),b=0,T=-1,D=new this(o);++T<M;)F(B[T],T);return D;function F(N,_){x.resolve(N).then(P,function(k){S||(S=!0,s.reject(D,k))});function P(k){R[_]=k,++b===M&&!S&&(S=!0,s.resolve(D,R))}}}u.race=w;function w(B){var x=this;if(Object.prototype.toString.call(B)!=="[object Array]")return this.reject(new TypeError("must be an array"));var M=B.length,S=!1;if(!M)return this.resolve([]);for(var R=-1,b=new this(o);++R<M;)T(B[R]);return b;function T(D){x.resolve(D).then(function(F){S||(S=!0,s.resolve(b,F))},function(F){S||(S=!0,s.reject(b,F))})}}},{1:1}],3:[function(r,n,a){(function(i){typeof i.Promise!="function"&&(i.Promise=r(2))}).call(this,typeof Ho<"u"?Ho:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(r,n,a){var i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(pe){return typeof pe}:function(pe){return pe&&typeof Symbol=="function"&&pe.constructor===Symbol&&pe!==Symbol.prototype?"symbol":typeof pe};function o(pe,ke){if(!(pe instanceof ke))throw new TypeError("Cannot call a class as a function")}function s(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var l=s();function c(){try{if(!l||!l.open)return!1;var pe=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),ke=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!pe||ke)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function A(pe,ke){pe=pe||[],ke=ke||{};try{return new Blob(pe,ke)}catch(et){if(et.name!=="TypeError")throw et;for(var Me=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,ze=new Me,Ye=0;Ye<pe.length;Ye+=1)ze.append(pe[Ye]);return ze.getBlob(ke.type)}}typeof Promise>"u"&&r(3);var u=Promise;function d(pe,ke){ke&&pe.then(function(Me){ke(null,Me)},function(Me){ke(Me)})}function f(pe,ke,Me){typeof ke=="function"&&pe.then(ke),typeof Me=="function"&&pe.catch(Me)}function h(pe){return typeof pe!="string"&&(console.warn(pe+" used as a key, but it is not a string."),pe=String(pe)),pe}function g(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var p="local-forage-detect-blob-support",m=void 0,y={},C=Object.prototype.toString,w="readonly",B="readwrite";function x(pe){for(var ke=pe.length,Me=new ArrayBuffer(ke),ze=new Uint8Array(Me),Ye=0;Ye<ke;Ye++)ze[Ye]=pe.charCodeAt(Ye);return Me}function M(pe){return new u(function(ke){var Me=pe.transaction(p,B),ze=A([""]);Me.objectStore(p).put(ze,"key"),Me.onabort=function(Ye){Ye.preventDefault(),Ye.stopPropagation(),ke(!1)},Me.oncomplete=function(){var Ye=navigator.userAgent.match(/Chrome\/(\d+)/),et=navigator.userAgent.match(/Edge\//);ke(et||!Ye||parseInt(Ye[1],10)>=43)}}).catch(function(){return!1})}function S(pe){return typeof m=="boolean"?u.resolve(m):M(pe).then(function(ke){return m=ke,m})}function R(pe){var ke=y[pe.name],Me={};Me.promise=new u(function(ze,Ye){Me.resolve=ze,Me.reject=Ye}),ke.deferredOperations.push(Me),ke.dbReady?ke.dbReady=ke.dbReady.then(function(){return Me.promise}):ke.dbReady=Me.promise}function b(pe){var ke=y[pe.name],Me=ke.deferredOperations.pop();if(Me)return Me.resolve(),Me.promise}function T(pe,ke){var Me=y[pe.name],ze=Me.deferredOperations.pop();if(ze)return ze.reject(ke),ze.promise}function D(pe,ke){return new u(function(Me,ze){if(y[pe.name]=y[pe.name]||U(),pe.db)if(ke)R(pe),pe.db.close();else return Me(pe.db);var Ye=[pe.name];ke&&Ye.push(pe.version);var et=l.open.apply(l,Ye);ke&&(et.onupgradeneeded=function(Ct){var Ot=et.result;try{Ot.createObjectStore(pe.storeName),Ct.oldVersion<=1&&Ot.createObjectStore(p)}catch(Ut){if(Ut.name==="ConstraintError")console.warn('The database "'+pe.name+'" has been upgraded from version '+Ct.oldVersion+" to version "+Ct.newVersion+', but the storage "'+pe.storeName+'" already exists.');else throw Ut}}),et.onerror=function(Ct){Ct.preventDefault(),ze(et.error)},et.onsuccess=function(){var Ct=et.result;Ct.onversionchange=function(Ot){Ot.target.close()},Me(Ct),b(pe)}})}function F(pe){return D(pe,!1)}function N(pe){return D(pe,!0)}function _(pe,ke){if(!pe.db)return!0;var Me=!pe.db.objectStoreNames.contains(pe.storeName),ze=pe.version<pe.db.version,Ye=pe.version>pe.db.version;if(ze&&(pe.version!==ke&&console.warn('The database "'+pe.name+`" can't be downgraded from version `+pe.db.version+" to version "+pe.version+"."),pe.version=pe.db.version),Ye||Me){if(Me){var et=pe.db.version+1;et>pe.version&&(pe.version=et)}return!0}return!1}function P(pe){return new u(function(ke,Me){var ze=new FileReader;ze.onerror=Me,ze.onloadend=function(Ye){var et=btoa(Ye.target.result||"");ke({__local_forage_encoded_blob:!0,data:et,type:pe.type})},ze.readAsBinaryString(pe)})}function k(pe){var ke=x(atob(pe.data));return A([ke],{type:pe.type})}function j(pe){return pe&&pe.__local_forage_encoded_blob}function Y(pe){var ke=this,Me=ke._initReady().then(function(){var ze=y[ke._dbInfo.name];if(ze&&ze.dbReady)return ze.dbReady});return f(Me,pe,pe),Me}function X(pe){R(pe);for(var ke=y[pe.name],Me=ke.forages,ze=0;ze<Me.length;ze++){var Ye=Me[ze];Ye._dbInfo.db&&(Ye._dbInfo.db.close(),Ye._dbInfo.db=null)}return pe.db=null,F(pe).then(function(et){return pe.db=et,_(pe)?N(pe):et}).then(function(et){pe.db=ke.db=et;for(var Ct=0;Ct<Me.length;Ct++)Me[Ct]._dbInfo.db=et}).catch(function(et){throw T(pe,et),et})}function K(pe,ke,Me,ze){ze===void 0&&(ze=1);try{var Ye=pe.db.transaction(pe.storeName,ke);Me(null,Ye)}catch(et){if(ze>0&&(!pe.db||et.name==="InvalidStateError"||et.name==="NotFoundError"))return u.resolve().then(function(){if(!pe.db||et.name==="NotFoundError"&&!pe.db.objectStoreNames.contains(pe.storeName)&&pe.version<=pe.db.version)return pe.db&&(pe.version=pe.db.version+1),N(pe)}).then(function(){return X(pe).then(function(){K(pe,ke,Me,ze-1)})}).catch(Me);Me(et)}}function U(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function H(pe){var ke=this,Me={db:null};if(pe)for(var ze in pe)Me[ze]=pe[ze];var Ye=y[Me.name];Ye||(Ye=U(),y[Me.name]=Ye),Ye.forages.push(ke),ke._initReady||(ke._initReady=ke.ready,ke.ready=Y);var et=[];function Ct(){return u.resolve()}for(var Ot=0;Ot<Ye.forages.length;Ot++){var Ut=Ye.forages[Ot];Ut!==ke&&et.push(Ut._initReady().catch(Ct))}var Jt=Ye.forages.slice(0);return u.all(et).then(function(){return Me.db=Ye.db,F(Me)}).then(function(ar){return Me.db=ar,_(Me,ke._defaultConfig.version)?N(Me):ar}).then(function(ar){Me.db=Ye.db=ar,ke._dbInfo=Me;for(var Nr=0;Nr<Jt.length;Nr++){var rn=Jt[Nr];rn!==ke&&(rn._dbInfo.db=Me.db,rn._dbInfo.version=Me.version)}})}function L(pe,ke){var Me=this;pe=h(pe);var ze=new u(function(Ye,et){Me.ready().then(function(){K(Me._dbInfo,w,function(Ct,Ot){if(Ct)return et(Ct);try{var Ut=Ot.objectStore(Me._dbInfo.storeName),Jt=Ut.get(pe);Jt.onsuccess=function(){var ar=Jt.result;ar===void 0&&(ar=null),j(ar)&&(ar=k(ar)),Ye(ar)},Jt.onerror=function(){et(Jt.error)}}catch(ar){et(ar)}})}).catch(et)});return d(ze,ke),ze}function V(pe,ke){var Me=this,ze=new u(function(Ye,et){Me.ready().then(function(){K(Me._dbInfo,w,function(Ct,Ot){if(Ct)return et(Ct);try{var Ut=Ot.objectStore(Me._dbInfo.storeName),Jt=Ut.openCursor(),ar=1;Jt.onsuccess=function(){var Nr=Jt.result;if(Nr){var rn=Nr.value;j(rn)&&(rn=k(rn));var dn=pe(rn,Nr.key,ar++);dn!==void 0?Ye(dn):Nr.continue()}else Ye()},Jt.onerror=function(){et(Jt.error)}}catch(Nr){et(Nr)}})}).catch(et)});return d(ze,ke),ze}function J(pe,ke,Me){var ze=this;pe=h(pe);var Ye=new u(function(et,Ct){var Ot;ze.ready().then(function(){return Ot=ze._dbInfo,C.call(ke)==="[object Blob]"?S(Ot.db).then(function(Ut){return Ut?ke:P(ke)}):ke}).then(function(Ut){K(ze._dbInfo,B,function(Jt,ar){if(Jt)return Ct(Jt);try{var Nr=ar.objectStore(ze._dbInfo.storeName);Ut===null&&(Ut=void 0);var rn=Nr.put(Ut,pe);ar.oncomplete=function(){Ut===void 0&&(Ut=null),et(Ut)},ar.onabort=ar.onerror=function(){var dn=rn.error?rn.error:rn.transaction.error;Ct(dn)}}catch(dn){Ct(dn)}})}).catch(Ct)});return d(Ye,Me),Ye}function ee(pe,ke){var Me=this;pe=h(pe);var ze=new u(function(Ye,et){Me.ready().then(function(){K(Me._dbInfo,B,function(Ct,Ot){if(Ct)return et(Ct);try{var Ut=Ot.objectStore(Me._dbInfo.storeName),Jt=Ut.delete(pe);Ot.oncomplete=function(){Ye()},Ot.onerror=function(){et(Jt.error)},Ot.onabort=function(){var ar=Jt.error?Jt.error:Jt.transaction.error;et(ar)}}catch(ar){et(ar)}})}).catch(et)});return d(ze,ke),ze}function ae(pe){var ke=this,Me=new u(function(ze,Ye){ke.ready().then(function(){K(ke._dbInfo,B,function(et,Ct){if(et)return Ye(et);try{var Ot=Ct.objectStore(ke._dbInfo.storeName),Ut=Ot.clear();Ct.oncomplete=function(){ze()},Ct.onabort=Ct.onerror=function(){var Jt=Ut.error?Ut.error:Ut.transaction.error;Ye(Jt)}}catch(Jt){Ye(Jt)}})}).catch(Ye)});return d(Me,pe),Me}function ne(pe){var ke=this,Me=new u(function(ze,Ye){ke.ready().then(function(){K(ke._dbInfo,w,function(et,Ct){if(et)return Ye(et);try{var Ot=Ct.objectStore(ke._dbInfo.storeName),Ut=Ot.count();Ut.onsuccess=function(){ze(Ut.result)},Ut.onerror=function(){Ye(Ut.error)}}catch(Jt){Ye(Jt)}})}).catch(Ye)});return d(Me,pe),Me}function fe(pe,ke){var Me=this,ze=new u(function(Ye,et){if(pe<0){Ye(null);return}Me.ready().then(function(){K(Me._dbInfo,w,function(Ct,Ot){if(Ct)return et(Ct);try{var Ut=Ot.objectStore(Me._dbInfo.storeName),Jt=!1,ar=Ut.openKeyCursor();ar.onsuccess=function(){var Nr=ar.result;if(!Nr){Ye(null);return}pe===0||Jt?Ye(Nr.key):(Jt=!0,Nr.advance(pe))},ar.onerror=function(){et(ar.error)}}catch(Nr){et(Nr)}})}).catch(et)});return d(ze,ke),ze}function he(pe){var ke=this,Me=new u(function(ze,Ye){ke.ready().then(function(){K(ke._dbInfo,w,function(et,Ct){if(et)return Ye(et);try{var Ot=Ct.objectStore(ke._dbInfo.storeName),Ut=Ot.openKeyCursor(),Jt=[];Ut.onsuccess=function(){var ar=Ut.result;if(!ar){ze(Jt);return}Jt.push(ar.key),ar.continue()},Ut.onerror=function(){Ye(Ut.error)}}catch(ar){Ye(ar)}})}).catch(Ye)});return d(Me,pe),Me}function ye(pe,ke){ke=g.apply(this,arguments);var Me=this.config();pe=typeof pe!="function"&&pe||{},pe.name||(pe.name=pe.name||Me.name,pe.storeName=pe.storeName||Me.storeName);var ze=this,Ye;if(!pe.name)Ye=u.reject("Invalid arguments");else{var et=pe.name===Me.name&&ze._dbInfo.db,Ct=et?u.resolve(ze._dbInfo.db):F(pe).then(function(Ot){var Ut=y[pe.name],Jt=Ut.forages;Ut.db=Ot;for(var ar=0;ar<Jt.length;ar++)Jt[ar]._dbInfo.db=Ot;return Ot});pe.storeName?Ye=Ct.then(function(Ot){if(Ot.objectStoreNames.contains(pe.storeName)){var Ut=Ot.version+1;R(pe);var Jt=y[pe.name],ar=Jt.forages;Ot.close();for(var Nr=0;Nr<ar.length;Nr++){var rn=ar[Nr];rn._dbInfo.db=null,rn._dbInfo.version=Ut}var dn=new u(function(kr,Wr){var Rr=l.open(pe.name,Ut);Rr.onerror=function(Gn){var Wn=Rr.result;Wn.close(),Wr(Gn)},Rr.onupgradeneeded=function(){var Gn=Rr.result;Gn.deleteObjectStore(pe.storeName)},Rr.onsuccess=function(){var Gn=Rr.result;Gn.close(),kr(Gn)}});return dn.then(function(kr){Jt.db=kr;for(var Wr=0;Wr<ar.length;Wr++){var Rr=ar[Wr];Rr._dbInfo.db=kr,b(Rr._dbInfo)}}).catch(function(kr){throw(T(pe,kr)||u.resolve()).catch(function(){}),kr})}}):Ye=Ct.then(function(Ot){R(pe);var Ut=y[pe.name],Jt=Ut.forages;Ot.close();for(var ar=0;ar<Jt.length;ar++){var Nr=Jt[ar];Nr._dbInfo.db=null}var rn=new u(function(dn,kr){var Wr=l.deleteDatabase(pe.name);Wr.onerror=function(){var Rr=Wr.result;Rr&&Rr.close(),kr(Wr.error)},Wr.onblocked=function(){console.warn('dropInstance blocked for database "'+pe.name+'" until all open connections are closed')},Wr.onsuccess=function(){var Rr=Wr.result;Rr&&Rr.close(),dn(Rr)}});return rn.then(function(dn){Ut.db=dn;for(var kr=0;kr<Jt.length;kr++){var Wr=Jt[kr];b(Wr._dbInfo)}}).catch(function(dn){throw(T(pe,dn)||u.resolve()).catch(function(){}),dn})})}return d(Ye,ke),Ye}var be={_driver:"asyncStorage",_initStorage:H,_support:c(),iterate:V,getItem:L,setItem:J,removeItem:ee,clear:ae,length:ne,key:fe,keys:he,dropInstance:ye};function Se(){return typeof openDatabase=="function"}var ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",de="~~local_forage_type~",Ue=/^~~local_forage_type~([^~]+)~/,at="__lfsc__:",Ve=at.length,Ie="arbf",we="blob",Re="si08",Te="ui08",Ke="uic8",mt="si16",tt="si32",rt="ur16",lt="ui32",At="fl32",$e="fl64",ce=Ve+Ie.length,qe=Object.prototype.toString;function ct(pe){var ke=pe.length*.75,Me=pe.length,ze,Ye=0,et,Ct,Ot,Ut;pe[pe.length-1]==="="&&(ke--,pe[pe.length-2]==="="&&ke--);var Jt=new ArrayBuffer(ke),ar=new Uint8Array(Jt);for(ze=0;ze<Me;ze+=4)et=ve.indexOf(pe[ze]),Ct=ve.indexOf(pe[ze+1]),Ot=ve.indexOf(pe[ze+2]),Ut=ve.indexOf(pe[ze+3]),ar[Ye++]=et<<2|Ct>>4,ar[Ye++]=(Ct&15)<<4|Ot>>2,ar[Ye++]=(Ot&3)<<6|Ut&63;return Jt}function Tt(pe){var ke=new Uint8Array(pe),Me="",ze;for(ze=0;ze<ke.length;ze+=3)Me+=ve[ke[ze]>>2],Me+=ve[(ke[ze]&3)<<4|ke[ze+1]>>4],Me+=ve[(ke[ze+1]&15)<<2|ke[ze+2]>>6],Me+=ve[ke[ze+2]&63];return ke.length%3===2?Me=Me.substring(0,Me.length-1)+"=":ke.length%3===1&&(Me=Me.substring(0,Me.length-2)+"=="),Me}function He(pe,ke){var Me="";if(pe&&(Me=qe.call(pe)),pe&&(Me==="[object ArrayBuffer]"||pe.buffer&&qe.call(pe.buffer)==="[object ArrayBuffer]")){var ze,Ye=at;pe instanceof ArrayBuffer?(ze=pe,Ye+=Ie):(ze=pe.buffer,Me==="[object Int8Array]"?Ye+=Re:Me==="[object Uint8Array]"?Ye+=Te:Me==="[object Uint8ClampedArray]"?Ye+=Ke:Me==="[object Int16Array]"?Ye+=mt:Me==="[object Uint16Array]"?Ye+=rt:Me==="[object Int32Array]"?Ye+=tt:Me==="[object Uint32Array]"?Ye+=lt:Me==="[object Float32Array]"?Ye+=At:Me==="[object Float64Array]"?Ye+=$e:ke(new Error("Failed to get type for BinaryArray"))),ke(Ye+Tt(ze))}else if(Me==="[object Blob]"){var et=new FileReader;et.onload=function(){var Ct=de+pe.type+"~"+Tt(this.result);ke(at+we+Ct)},et.readAsArrayBuffer(pe)}else try{ke(JSON.stringify(pe))}catch(Ct){console.error("Couldn't convert value into a JSON string: ",pe),ke(null,Ct)}}function Ge(pe){if(pe.substring(0,Ve)!==at)return JSON.parse(pe);var ke=pe.substring(ce),Me=pe.substring(Ve,ce),ze;if(Me===we&&Ue.test(ke)){var Ye=ke.match(Ue);ze=Ye[1],ke=ke.substring(Ye[0].length)}var et=ct(ke);switch(Me){case Ie:return et;case we:return A([et],{type:ze});case Re:return new Int8Array(et);case Te:return new Uint8Array(et);case Ke:return new Uint8ClampedArray(et);case mt:return new Int16Array(et);case rt:return new Uint16Array(et);case tt:return new Int32Array(et);case lt:return new Uint32Array(et);case At:return new Float32Array(et);case $e:return new Float64Array(et);default:throw new Error("Unkown type: "+Me)}}var Ee={serialize:He,deserialize:Ge,stringToBuffer:ct,bufferToString:Tt};function Et(pe,ke,Me,ze){pe.executeSql("CREATE TABLE IF NOT EXISTS "+ke.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],Me,ze)}function Yt(pe){var ke=this,Me={db:null};if(pe)for(var ze in pe)Me[ze]=typeof pe[ze]!="string"?pe[ze].toString():pe[ze];var Ye=new u(function(et,Ct){try{Me.db=openDatabase(Me.name,String(Me.version),Me.description,Me.size)}catch(Ot){return Ct(Ot)}Me.db.transaction(function(Ot){Et(Ot,Me,function(){ke._dbInfo=Me,et()},function(Ut,Jt){Ct(Jt)})},Ct)});return Me.serializer=Ee,Ye}function $(pe,ke,Me,ze,Ye,et){pe.executeSql(Me,ze,Ye,function(Ct,Ot){Ot.code===Ot.SYNTAX_ERR?Ct.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[ke.storeName],function(Ut,Jt){Jt.rows.length?et(Ut,Ot):Et(Ut,ke,function(){Ut.executeSql(Me,ze,Ye,et)},et)},et):et(Ct,Ot)},et)}function Fe(pe,ke){var Me=this;pe=h(pe);var ze=new u(function(Ye,et){Me.ready().then(function(){var Ct=Me._dbInfo;Ct.db.transaction(function(Ot){$(Ot,Ct,"SELECT * FROM "+Ct.storeName+" WHERE key = ? LIMIT 1",[pe],function(Ut,Jt){var ar=Jt.rows.length?Jt.rows.item(0).value:null;ar&&(ar=Ct.serializer.deserialize(ar)),Ye(ar)},function(Ut,Jt){et(Jt)})})}).catch(et)});return d(ze,ke),ze}function je(pe,ke){var Me=this,ze=new u(function(Ye,et){Me.ready().then(function(){var Ct=Me._dbInfo;Ct.db.transaction(function(Ot){$(Ot,Ct,"SELECT * FROM "+Ct.storeName,[],function(Ut,Jt){for(var ar=Jt.rows,Nr=ar.length,rn=0;rn<Nr;rn++){var dn=ar.item(rn),kr=dn.value;if(kr&&(kr=Ct.serializer.deserialize(kr)),kr=pe(kr,dn.key,rn+1),kr!==void 0){Ye(kr);return}}Ye()},function(Ut,Jt){et(Jt)})})}).catch(et)});return d(ze,ke),ze}function ue(pe,ke,Me,ze){var Ye=this;pe=h(pe);var et=new u(function(Ct,Ot){Ye.ready().then(function(){ke===void 0&&(ke=null);var Ut=ke,Jt=Ye._dbInfo;Jt.serializer.serialize(ke,function(ar,Nr){Nr?Ot(Nr):Jt.db.transaction(function(rn){$(rn,Jt,"INSERT OR REPLACE INTO "+Jt.storeName+" (key, value) VALUES (?, ?)",[pe,ar],function(){Ct(Ut)},function(dn,kr){Ot(kr)})},function(rn){if(rn.code===rn.QUOTA_ERR){if(ze>0){Ct(ue.apply(Ye,[pe,Ut,Me,ze-1]));return}Ot(rn)}})})}).catch(Ot)});return d(et,Me),et}function ie(pe,ke,Me){return ue.apply(this,[pe,ke,Me,1])}function Be(pe,ke){var Me=this;pe=h(pe);var ze=new u(function(Ye,et){Me.ready().then(function(){var Ct=Me._dbInfo;Ct.db.transaction(function(Ot){$(Ot,Ct,"DELETE FROM "+Ct.storeName+" WHERE key = ?",[pe],function(){Ye()},function(Ut,Jt){et(Jt)})})}).catch(et)});return d(ze,ke),ze}function Xe(pe){var ke=this,Me=new u(function(ze,Ye){ke.ready().then(function(){var et=ke._dbInfo;et.db.transaction(function(Ct){$(Ct,et,"DELETE FROM "+et.storeName,[],function(){ze()},function(Ot,Ut){Ye(Ut)})})}).catch(Ye)});return d(Me,pe),Me}function Oe(pe){var ke=this,Me=new u(function(ze,Ye){ke.ready().then(function(){var et=ke._dbInfo;et.db.transaction(function(Ct){$(Ct,et,"SELECT COUNT(key) as c FROM "+et.storeName,[],function(Ot,Ut){var Jt=Ut.rows.item(0).c;ze(Jt)},function(Ot,Ut){Ye(Ut)})})}).catch(Ye)});return d(Me,pe),Me}function ft(pe,ke){var Me=this,ze=new u(function(Ye,et){Me.ready().then(function(){var Ct=Me._dbInfo;Ct.db.transaction(function(Ot){$(Ot,Ct,"SELECT key FROM "+Ct.storeName+" WHERE id = ? LIMIT 1",[pe+1],function(Ut,Jt){var ar=Jt.rows.length?Jt.rows.item(0).key:null;Ye(ar)},function(Ut,Jt){et(Jt)})})}).catch(et)});return d(ze,ke),ze}function wt(pe){var ke=this,Me=new u(function(ze,Ye){ke.ready().then(function(){var et=ke._dbInfo;et.db.transaction(function(Ct){$(Ct,et,"SELECT key FROM "+et.storeName,[],function(Ot,Ut){for(var Jt=[],ar=0;ar<Ut.rows.length;ar++)Jt.push(Ut.rows.item(ar).key);ze(Jt)},function(Ot,Ut){Ye(Ut)})})}).catch(Ye)});return d(Me,pe),Me}function ot(pe){return new u(function(ke,Me){pe.transaction(function(ze){ze.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(Ye,et){for(var Ct=[],Ot=0;Ot<et.rows.length;Ot++)Ct.push(et.rows.item(Ot).name);ke({db:pe,storeNames:Ct})},function(Ye,et){Me(et)})},function(ze){Me(ze)})})}function it(pe,ke){ke=g.apply(this,arguments);var Me=this.config();pe=typeof pe!="function"&&pe||{},pe.name||(pe.name=pe.name||Me.name,pe.storeName=pe.storeName||Me.storeName);var ze=this,Ye;return pe.name?Ye=new u(function(et){var Ct;pe.name===Me.name?Ct=ze._dbInfo.db:Ct=openDatabase(pe.name,"","",0),pe.storeName?et({db:Ct,storeNames:[pe.storeName]}):et(ot(Ct))}).then(function(et){return new u(function(Ct,Ot){et.db.transaction(function(Ut){function Jt(dn){return new u(function(kr,Wr){Ut.executeSql("DROP TABLE IF EXISTS "+dn,[],function(){kr()},function(Rr,Gn){Wr(Gn)})})}for(var ar=[],Nr=0,rn=et.storeNames.length;Nr<rn;Nr++)ar.push(Jt(et.storeNames[Nr]));u.all(ar).then(function(){Ct()}).catch(function(dn){Ot(dn)})},function(Ut){Ot(Ut)})})}):Ye=u.reject("Invalid arguments"),d(Ye,ke),Ye}var vt={_driver:"webSQLStorage",_initStorage:Yt,_support:Se(),iterate:je,getItem:Fe,setItem:ie,removeItem:Be,clear:Xe,length:Oe,key:ft,keys:wt,dropInstance:it};function qt(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Xt(pe,ke){var Me=pe.name+"/";return pe.storeName!==ke.storeName&&(Me+=pe.storeName+"/"),Me}function Tr(){var pe="_localforage_support_test";try{return localStorage.setItem(pe,!0),localStorage.removeItem(pe),!1}catch{return!0}}function Kr(){return!Tr()||localStorage.length>0}function Vr(pe){var ke=this,Me={};if(pe)for(var ze in pe)Me[ze]=pe[ze];return Me.keyPrefix=Xt(pe,ke._defaultConfig),Kr()?(ke._dbInfo=Me,Me.serializer=Ee,u.resolve()):u.reject()}function Pr(pe){var ke=this,Me=ke.ready().then(function(){for(var ze=ke._dbInfo.keyPrefix,Ye=localStorage.length-1;Ye>=0;Ye--){var et=localStorage.key(Ye);et.indexOf(ze)===0&&localStorage.removeItem(et)}});return d(Me,pe),Me}function mr(pe,ke){var Me=this;pe=h(pe);var ze=Me.ready().then(function(){var Ye=Me._dbInfo,et=localStorage.getItem(Ye.keyPrefix+pe);return et&&(et=Ye.serializer.deserialize(et)),et});return d(ze,ke),ze}function xr(pe,ke){var Me=this,ze=Me.ready().then(function(){for(var Ye=Me._dbInfo,et=Ye.keyPrefix,Ct=et.length,Ot=localStorage.length,Ut=1,Jt=0;Jt<Ot;Jt++){var ar=localStorage.key(Jt);if(ar.indexOf(et)===0){var Nr=localStorage.getItem(ar);if(Nr&&(Nr=Ye.serializer.deserialize(Nr)),Nr=pe(Nr,ar.substring(Ct),Ut++),Nr!==void 0)return Nr}}});return d(ze,ke),ze}function Ir(pe,ke){var Me=this,ze=Me.ready().then(function(){var Ye=Me._dbInfo,et;try{et=localStorage.key(pe)}catch{et=null}return et&&(et=et.substring(Ye.keyPrefix.length)),et});return d(ze,ke),ze}function Fr(pe){var ke=this,Me=ke.ready().then(function(){for(var ze=ke._dbInfo,Ye=localStorage.length,et=[],Ct=0;Ct<Ye;Ct++){var Ot=localStorage.key(Ct);Ot.indexOf(ze.keyPrefix)===0&&et.push(Ot.substring(ze.keyPrefix.length))}return et});return d(Me,pe),Me}function br(pe){var ke=this,Me=ke.keys().then(function(ze){return ze.length});return d(Me,pe),Me}function Sr(pe,ke){var Me=this;pe=h(pe);var ze=Me.ready().then(function(){var Ye=Me._dbInfo;localStorage.removeItem(Ye.keyPrefix+pe)});return d(ze,ke),ze}function fr(pe,ke,Me){var ze=this;pe=h(pe);var Ye=ze.ready().then(function(){ke===void 0&&(ke=null);var et=ke;return new u(function(Ct,Ot){var Ut=ze._dbInfo;Ut.serializer.serialize(ke,function(Jt,ar){if(ar)Ot(ar);else try{localStorage.setItem(Ut.keyPrefix+pe,Jt),Ct(et)}catch(Nr){(Nr.name==="QuotaExceededError"||Nr.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Ot(Nr),Ot(Nr)}})})});return d(Ye,Me),Ye}function Cr(pe,ke){if(ke=g.apply(this,arguments),pe=typeof pe!="function"&&pe||{},!pe.name){var Me=this.config();pe.name=pe.name||Me.name,pe.storeName=pe.storeName||Me.storeName}var ze=this,Ye;return pe.name?Ye=new u(function(et){pe.storeName?et(Xt(pe,ze._defaultConfig)):et(pe.name+"/")}).then(function(et){for(var Ct=localStorage.length-1;Ct>=0;Ct--){var Ot=localStorage.key(Ct);Ot.indexOf(et)===0&&localStorage.removeItem(Ot)}}):Ye=u.reject("Invalid arguments"),d(Ye,ke),Ye}var hr={_driver:"localStorageWrapper",_initStorage:Vr,_support:qt(),iterate:xr,getItem:mr,setItem:fr,removeItem:Sr,clear:Pr,length:br,key:Ir,keys:Fr,dropInstance:Cr},Ht=function(ke,Me){return ke===Me||typeof ke=="number"&&typeof Me=="number"&&isNaN(ke)&&isNaN(Me)},Gt=function(ke,Me){for(var ze=ke.length,Ye=0;Ye<ze;){if(Ht(ke[Ye],Me))return!0;Ye++}return!1},er=Array.isArray||function(pe){return Object.prototype.toString.call(pe)==="[object Array]"},Qr={},Hr={},vn={INDEXEDDB:be,WEBSQL:vt,LOCALSTORAGE:hr},pn=[vn.INDEXEDDB._driver,vn.WEBSQL._driver,vn.LOCALSTORAGE._driver],Qn=["dropInstance"],pt=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Qn),Ze={description:"",driver:pn.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function bt(pe,ke){pe[ke]=function(){var Me=arguments;return pe.ready().then(function(){return pe[ke].apply(pe,Me)})}}function kt(){for(var pe=1;pe<arguments.length;pe++){var ke=arguments[pe];if(ke)for(var Me in ke)ke.hasOwnProperty(Me)&&(er(ke[Me])?arguments[0][Me]=ke[Me].slice():arguments[0][Me]=ke[Me])}return arguments[0]}var Wt=(function(){function pe(ke){o(this,pe);for(var Me in vn)if(vn.hasOwnProperty(Me)){var ze=vn[Me],Ye=ze._driver;this[Me]=Ye,Qr[Ye]||this.defineDriver(ze)}this._defaultConfig=kt({},Ze),this._config=kt({},this._defaultConfig,ke),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return pe.prototype.config=function(Me){if((typeof Me>"u"?"undefined":i(Me))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var ze in Me){if(ze==="storeName"&&(Me[ze]=Me[ze].replace(/\W/g,"_")),ze==="version"&&typeof Me[ze]!="number")return new Error("Database version must be a number.");this._config[ze]=Me[ze]}return"driver"in Me&&Me.driver?this.setDriver(this._config.driver):!0}else return typeof Me=="string"?this._config[Me]:this._config},pe.prototype.defineDriver=function(Me,ze,Ye){var et=new u(function(Ct,Ot){try{var Ut=Me._driver,Jt=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!Me._driver){Ot(Jt);return}for(var ar=pt.concat("_initStorage"),Nr=0,rn=ar.length;Nr<rn;Nr++){var dn=ar[Nr],kr=!Gt(Qn,dn);if((kr||Me[dn])&&typeof Me[dn]!="function"){Ot(Jt);return}}var Wr=function(){for(var Wn=function(Pt){return function(){var Ft=new Error("Method "+Pt+" is not implemented by the current driver"),or=u.reject(Ft);return d(or,arguments[arguments.length-1]),or}},Cn=0,qa=Qn.length;Cn<qa;Cn++){var wa=Qn[Cn];Me[wa]||(Me[wa]=Wn(wa))}};Wr();var Rr=function(Wn){Qr[Ut]&&console.info("Redefining LocalForage driver: "+Ut),Qr[Ut]=Me,Hr[Ut]=Wn,Ct()};"_support"in Me?Me._support&&typeof Me._support=="function"?Me._support().then(Rr,Ot):Rr(!!Me._support):Rr(!0)}catch(Gn){Ot(Gn)}});return f(et,ze,Ye),et},pe.prototype.driver=function(){return this._driver||null},pe.prototype.getDriver=function(Me,ze,Ye){var et=Qr[Me]?u.resolve(Qr[Me]):u.reject(new Error("Driver not found."));return f(et,ze,Ye),et},pe.prototype.getSerializer=function(Me){var ze=u.resolve(Ee);return f(ze,Me),ze},pe.prototype.ready=function(Me){var ze=this,Ye=ze._driverSet.then(function(){return ze._ready===null&&(ze._ready=ze._initDriver()),ze._ready});return f(Ye,Me,Me),Ye},pe.prototype.setDriver=function(Me,ze,Ye){var et=this;er(Me)||(Me=[Me]);var Ct=this._getSupportedDrivers(Me);function Ot(){et._config.driver=et.driver()}function Ut(Nr){return et._extend(Nr),Ot(),et._ready=et._initStorage(et._config),et._ready}function Jt(Nr){return function(){var rn=0;function dn(){for(;rn<Nr.length;){var kr=Nr[rn];return rn++,et._dbInfo=null,et._ready=null,et.getDriver(kr).then(Ut).catch(dn)}Ot();var Wr=new Error("No available storage method found.");return et._driverSet=u.reject(Wr),et._driverSet}return dn()}}var ar=this._driverSet!==null?this._driverSet.catch(function(){return u.resolve()}):u.resolve();return this._driverSet=ar.then(function(){var Nr=Ct[0];return et._dbInfo=null,et._ready=null,et.getDriver(Nr).then(function(rn){et._driver=rn._driver,Ot(),et._wrapLibraryMethodsWithReady(),et._initDriver=Jt(Ct)})}).catch(function(){Ot();var Nr=new Error("No available storage method found.");return et._driverSet=u.reject(Nr),et._driverSet}),f(this._driverSet,ze,Ye),this._driverSet},pe.prototype.supports=function(Me){return!!Hr[Me]},pe.prototype._extend=function(Me){kt(this,Me)},pe.prototype._getSupportedDrivers=function(Me){for(var ze=[],Ye=0,et=Me.length;Ye<et;Ye++){var Ct=Me[Ye];this.supports(Ct)&&ze.push(Ct)}return ze},pe.prototype._wrapLibraryMethodsWithReady=function(){for(var Me=0,ze=pt.length;Me<ze;Me++)bt(this,pt[Me])},pe.prototype.createInstance=function(Me){return new pe(Me)},pe})(),St=new Wt;n.exports=St},{3:3}]},{},[4])(4)})})(xF)),xF.exports}var r3e=t3e();const HY=gn(r3e),Ji=HY.createInstance({name:Ii().replace(/\//g,"")}),wJ=HY.createInstance({name:"cti_ccn"}),n3e=e=>new Promise(async t=>{await HY.removeItem(e),t()}),a3e=()=>{const e=["ccn","sider","menuMode"];Ji.iterate((t,r)=>{e.includes(r)||Ji.removeItem(r)}).catch(function(t){console.log(t)})},Mn={lightBlue:"#98C1D9",moutarde:"#FCBF49",lightOrange:"#FFB488",green:"#73BA9B",red:"#FD5A5D",lightGreen:"#CCD5AE",primaryColor:"#FF8801",blue:"#3D5A80",lightBrown:"#E4D2B3",yellow:"#FDD85D",lightGrey:"#B4B8C5",lightPurple:"#EABFCB",primaryBlue:"#012B43",terraCota:"#EB5E28",pink:"#FF9B9B",darkBrown:"#7F5539",bluePastel:"#E9EBF8",brown:"#D4A373",grey:"#929292",purple:"#C08497",inactiveGrey:"#b1b1b1"},NR="MENU_DRAWER",iE="MENU_CLASSIC",i3e={filters:{visible:!1,editor:!1},selections:{},download:0,sider:{isVisible:s3e()},primaryColor:"#FF8801",tab:null,shortcuts:!1,serverMessage:!1,theme:"light",generatePDF:!1,pdfSize:{width:550,height:560},showOverlay:!1,bugTracker:0,showMenus:!0,menuMode:iE,siderIsCollapsed:!1,devMode:!1,graphDisplayPreference:"always",graphColors:{columnChart:[Mn.lightBlue,Mn.moutarde,Mn.lightOrange,Mn.green,Mn.red,Mn.lightGreen,Mn.primaryColor,Mn.blue,Mn.lightBrown,Mn.yellow,Mn.lightGrey,Mn.lightPurple,Mn.primaryBlue,Mn.terraCota,Mn.pink,Mn.darkBrown,Mn.bluePastel,Mn.brown,Mn.grey,Mn.purple],pieChart:[Mn.yellow,Mn.lightBlue,Mn.lightOrange,Mn.lightGreen,Mn.brown,Mn.red,Mn.blue,Mn.pink,Mn.primaryColor,Mn.grey,Mn.lightBrown,Mn.purple],lineChart:[Mn.lightBlue,Mn.lightOrange,Mn.lightGreen,Mn.pink,Mn.yellow],sexChart:[Mn.lightBlue,Mn.pink]}},o3e=(e=i3e,t)=>{switch(t.type){case o8e:return Object.assign({},e,{menu:t.data});case gge:return Ji.setItem("menuMode",t.mode!==null?t.mode:e.menuMode===iE?NR:iE),Object.assign({},e,{menuMode:t.mode!==null?t.mode:e.menuMode===iE?NR:iE});case pge:return Ji.setItem("sider",t.collapsed!==null?t.collapsed:!e.siderIsCollapsed),Object.assign({},e,{siderIsCollapsed:t.collapsed!==null?t.collapsed:!e.siderIsCollapsed});case lge:return Object.assign({},e,{filters:{visible:t.visible,editor:t.editor?t.editor:!1}});case sge:return Object.assign({},e,{download:t.download});case cge:return Object.assign({},e,{tab:t.tab});case Age:return Object.assign({},e,{showShortcuts:t.visible});case uge:return Object.assign({},e,{generatePDF:t.status});case dge:return Object.assign({},e,{showOverlay:t.status});case fge:return Object.assign({},e,{bugTracker:t.value?t.value:e.bugTracker+1});case hge:return Object.assign({},e,{showMenus:t.status});case vge:return Object.assign({},e,{devMode:t.devMode});case mge:return Object.assign({},e,{primaryColor:t.primaryColor});case Ege:return Object.assign({},e,{graphDisplayPreference:t.graphDisplayPreference});default:return e}};function s3e(){let e=localStorage.getItem("ui-sider-show");return e===null?!0:e==="true"}const ope="SET_CLASSES",spe="SET_LOADING",lpe="SET_SELECTED_CLASSE",l3e="SET_SELECTED_SECTION",cpe="REMOVE_CLASSE",Ape="RESET_CLASSE",YE=e=>({type:spe,loading:e}),c3e=(e,t,r)=>({type:ope,schema:e,tables:t,refTables:r}),A3e=e=>({type:lpe,classe:e}),u3e=(e,t)=>({type:cpe,tableId:e,classeId:t}),d3e=()=>({type:Ape}),f3e={data:{schema:[],tables:{},refTables:{},selectedClasse:{},selectedSection:{},sectionTransfer:{oidsKeys:[],targetKeys:[],sections:[]}},loading:!1},h3e=(e=f3e,t)=>{switch(t.type){case spe:return{...e,loading:t.loading};case ope:return{...e,data:{...e.data,schema:t.schema,tables:t.tables,refTables:t.refTables}};case lpe:return{...e,data:{...e.data,selectedClasse:t.classe}};case l3e:return{...e,data:{...e.data,selectedSection:t.section}};case cpe:let r=[...e.data.tables],n=r.find(a=>a.table_id===t.tableId);return n&&(n.classes=n.classes.filter(a=>a.oid!=="action.classeId")),{...e,data:{...e.data,tables:r}};case Ape:return{...e,data:{...e.data,selectedClasse:{}}};default:return e}},upe="SET_HIDDEN_COLUMNS",dpe="SET_FAVORITES_DATA",fpe="SET_LOADING",hpe="SET_SELECT",gpe="SET_COLUMN_FILTERED",ppe="SET_RESET",g3e=e=>({type:upe,columns:e}),p3e=(e,t)=>({type:dpe,myFavorites:e,allViews:t}),BJ=e=>({type:fpe,loading:e}),v3e=e=>({type:hpe,selected:e}),m3e=(e,t)=>({type:gpe,tabName:e,columnsFiltered:t}),E3e=()=>({type:ppe}),y3e={hiddenColumns:[],dataOnglet:[],data:{myFavorites:{},allViews:{}},loading:!1,selected:!1},C3e=(e=y3e,t)=>{switch(t.type){case upe:return{...e,hiddenColumns:t.columns};case fpe:return{...e,loading:t.loading};case hpe:return{...e,selected:t.selected};case ppe:return{...e,dataOnglet:[]};case dpe:return{...e,data:{myFavorites:t.myFavorites,allViews:t.allViews}};case gpe:const r=e.dataOnglet.findIndex(n=>n.tabName===t.tabName);return r!==-1?(e.dataOnglet[r]={tabName:t.tabName,columnsFiltered:t.columnsFiltered},{...e,dataOnglet:[...e.dataOnglet]}):{...e,dataOnglet:[...e.dataOnglet,{tabName:t.tabName,columnsFiltered:t.columnsFiltered}]};default:return e}},vpe="SET_INDICATORS",mpe="SET_LOADING",Epe="REMOVE_INDICATOR",ype="SET_SEARCH_INDICATOR_VALUE",w3e=(e,t,r,n)=>({type:vpe,indicators:e,tables:t,themes:n,themesSearch:r}),B3e=e=>({type:Epe,indicator:e}),xJ=e=>({type:mpe,loading:e}),x3e=e=>({type:ype,searchIndicatorFilterValue:e}),M3e={data:{indicators:[],tables:[],themesSearch:[],themes:[],loading:!1},searchIndicatorFilterValue:""},I3e=(e=M3e,t)=>{switch(t.type){case vpe:return{...e,data:{indicators:t.indicators,tables:t.tables,themes:t.themes,themesSearch:t.themesSearch}};case mpe:return{...e,loading:t.loading};case Epe:let r=[...e.data.indicators];return r=r.filter(n=>n.oid!==t.indicator),{...e,data:{...e.data,indicators:r}};case ype:return{...e,searchIndicatorFilterValue:t.searchIndicatorFilterValue};default:return e}},Cpe="LISTES_MANAGER_INIT_LISTES",wpe="SET_LOADING",Bpe="LISTES_MANAGER_SET_LISTES",xpe="LISTES_MANAGER_SET_LISTE_TO_EDIT",Mpe="LISTES_MANAGER_INIT_LISTE_TO_EDIT",b3e=()=>({type:Cpe}),S3e=e=>({type:Bpe,data:e}),R3e=()=>({type:Mpe}),T3e=(e,t,r,n=null)=>({type:xpe,table_id:e,liste_id:t,liste:r,treeSelectedKey:n}),MJ=e=>({type:wpe,loading:e}),IJ={listeEditor:{table_id:null,liste_id:null,liste:null},data:{schema:{},tables:{},refTables:{}},loading:!1,treeSelectedKey:null},Q3e=(e=IJ,t)=>{switch(t.type){case Cpe:return{...e,data:{schema:{},tables:{},refTables:{}}};case Bpe:return{...e,data:{...e.data,schema:t.data.schema,tables:t.data.tables,refTables:t.data.refTables}};case Mpe:return{...e,listeEditor:IJ.listeEditor};case xpe:return{...e,listeEditor:{table_id:t.table_id,liste_id:t.liste_id,liste:t.liste},treeSelectedKey:t.treeSelectedKey};case wpe:return{...e,loading:t.loading};default:return e}},Ipe="LOGS_SET_LOADING",bpe="LOGS_SET_DATA",_R=e=>({type:Ipe,loading:e}),D3e=e=>({type:bpe,data:e}),F3e={loading:!1,data:{logs:[]}},N3e=(e=F3e,t)=>{switch(t.type){case Ipe:return{...e,loading:t.loading};case bpe:return{...e,data:{...e.data,logs:t.data}};default:return e}},_3e="SET_LOGS_LOADING",Spe="SET_EXPLOIT",k3e=e=>({type:Spe,exploit:e}),P3e={data:{logs:[],exploit:[],timestamp:""},loading:!1},O3e=(e=P3e,t)=>{switch(t.type){case _3e:return{...e,loading:t.loading};case Spe:return{...e,data:{...e.data,exploit:t.exploit.envs,timestamp:t.exploit.timestamp}};default:return e}},Rpe="SET_LOADING",Tpe="SET_IMPORTS",Qpe="REMOVE_IMPORT",UE=e=>({type:Rpe,loading:e}),j3e=e=>({type:Tpe,imports:e}),z3e=e=>({type:Qpe,id:e}),L3e={data:{imports:[]},loading:!1},Y3e=(e=L3e,t)=>{switch(t.type){case Rpe:return{...e,loading:t.loading};case Tpe:return{...e,data:{...e.data,imports:t.imports}};case Qpe:let r=e.data.imports.filter(n=>n.oid!==t.id);return{...e,data:{...e.data,imports:r}};default:return e}},Dpe="SET_REPORTS",Fpe="SET_LOADING",Npe="SET_SELECTED_REPORT",_pe="SET_COMBO_GROUPS",kpe="SET_LAST_VIEWS",Ppe="REMOVE_REPORT",Ope="SET_COMPUTING_ESSENTIELS",jpe="SET_REPORTS_INDICATORS",zpe="SET_SELECTED_REPORT_MODIFIED",Lpe="SET_SEARCH_VALUE",kR=e=>({type:Fpe,loading:e}),U3e=(e,t,r,n,a,i,o)=>({type:Dpe,reports:e,refReports:t,comboGroup:r,comboReport:n,comboCondition:a,conditions:i,types:o}),H3e=e=>({type:Npe,report:e}),G3e=e=>({type:zpe,modified:e}),K3e=e=>({type:_pe,comboGroup:e}),V3e=e=>({type:Ppe,report:e}),PR=e=>({type:Ope,computing:e}),J3e=e=>({type:kpe,views:e}),W3e=(e,t,r)=>({type:jpe,tables:e,themes:t,indicators:r}),X3e=e=>({type:Lpe,searchValue:e}),q3e={data:{reports:[],types:[],refReports:[],comboGroup:[],comboReport:[],comboCondition:[],selectedReport:{},updatedSections:[],flatConditions:[],indicators:{tables:[],themes:[],indicators:[],lastViews:[]}},loading:!1,computingEssentiels:!1,reportModified:!1,searchFilterValue:""},Z3e=(e=q3e,t)=>{switch(t.type){case Fpe:return{...e,loading:t.loading};case Ope:return{...e,computingEssentiels:t.computing};case Dpe:return{...e,data:{...e.data,reports:t.reports,types:t.types,refReports:t.refReports,comboGroup:t.comboGroup,comboReport:t.comboReport,comboCondition:t.comboCondition,flatConditions:t.conditions}};case Npe:return{...e,data:{...e.data,selectedReport:t.report,updatedSections:t.report.sections}};case zpe:return{...e,reportModified:t.modified};case _pe:return{...e,data:{...e.data,comboGroup:t.comboGroup}};case kpe:return{...e,data:{...e.data,lastViews:t.views}};case Ppe:let r=[...e.data.reports];return r=r.filter(n=>n.oid!==t.report),{...e,data:{...e.data,reports:r}};case jpe:return{...e,data:{...e.data,indicators:{tables:t.tables,themes:t.themes,indicators:t.indicators}}};case Lpe:return{...e,data:{...e.data,searchFilterValue:t.searchValue}};default:return e}},Ype="SET_SIMULATIONS_LOADING",Upe="SET_SIMULATIONS",$3e=(e,t)=>({type:Upe,simulations:e,message:t}),gg=e=>({type:Ype,loading:e}),eOe={data:{simulations:[],message:{}},loading:!1},tOe=(e=eOe,t)=>{switch(t.type){case Ype:return{...e,loading:t.loading};case Upe:return{...e,data:{...e.data,simulations:t.simulations,message:t.message}};default:return e}},Hpe="SET_JOBS",Gpe="SET_LOADING",Kpe=(e,t,r)=>({type:Hpe,jobs:e,execs:t,lastJobs:r}),OR=e=>({type:Gpe,loading:e}),rOe={data:{jobs:null,execs:null,lastJobs:null},loading:!1},nOe=(e=rOe,t)=>{switch(t.type){case Gpe:return{...e,loading:t.loading};case Hpe:return{...e,data:{...e.data,jobs:t.jobs,execs:t.execs,lastJobs:t.lastJobs}};default:return e}},Vpe="SET_LOADING",Jpe="SET_RECORDS",Wpe="SET_RECORDS_ONLY",Xpe="SET_CHOICES",qpe="ADD_COMBO",Zpe="ADD_DATA_EDITOR",HE=e=>({type:Vpe,loading:e}),aOe=(e,t,r,n,a,i)=>({type:Jpe,records:e,combos:t,lists:r,divers:n,addRecord:a,refRecords:i}),iOe=e=>({type:Wpe,records:e}),oOe=e=>({type:Xpe,choices:e}),sOe=(e,t)=>({type:qpe,key:e,combo:t}),jS=e=>({type:Zpe,dataEditor:e}),lOe={data:{records:[],refRecords:[],combos:{},lists:[],divers:[],choices:[],addRecord:{},dataEditor:[]},loading:!1},cOe=(e=lOe,t)=>{switch(t.type){case Vpe:return{...e,loading:t.loading};case Jpe:return{...e,data:{...e.data,records:t.records,refRecords:t.refRecords,combos:{...e.data.combos,...t.combos},divers:t.divers,lists:t.lists,addRecord:t.addRecord}};case Wpe:return{...e,data:{...e.data,records:t.records}};case Xpe:return{...e,data:{...e.data,choices:t.choices}};case qpe:return{...e,data:{...e.data,combos:{...e.data.combos,[t.key]:t.combo}}};case Zpe:return{...e,data:{...e.data,dataEditor:t.dataEditor}};default:return e}},$pe="SET_USERS",eve="SET_MODULES",tve="SET_LOADING",AOe=e=>({type:$pe,users:e}),bJ=e=>({type:tve,loading:e}),uOe=(e,t,r,n)=>({type:eve,modules:e,securityLevels:t,envs:r,ctiusrdir:n}),dOe={data:{users:[],modules:[],securityLevels:[],envs:[],ctiusrdir:{}},loading:!1},fOe=(e=dOe,t)=>{switch(t.type){case tve:return{...e,loading:t.loading};case $pe:return{...e,data:{...e.data,users:t.users}};case eve:return{...e,data:{...e.data,modules:t.modules,securityLevels:t.securityLevels,envs:t.envs,ctiusrdir:t.ctiusrdir}};default:return e}},rve="SET_LOADING",nve="SET_IMPORTS",hOe="REMOVE_IMPORT",jR=e=>({type:rve,loading:e}),gOe=e=>({type:nve,imports:e}),pOe={data:{imports:[]},loading:!1},vOe=(e=pOe,t)=>{switch(t.type){case rve:return{...e,loading:t.loading};case nve:return{...e,data:{...e.data,imports:t.imports}};case hOe:let r=e.data.imports.filter(n=>n.oid!==t.id);return{...e,data:{...e.data,imports:r}};default:return e}},mOe=UY({listesManager:Q3e,synchronize:nOe,simulations:tOe,indicators:I3e,favorites:C3e,classes:h3e,reports:Z3e,ovalide:Y3e,tables:cOe,users:fOe,logs:O3e,valo:vOe,log:N3e}),EOe={isLoading:!1,type:null,name:null,pathname:null,viewlink:!1,error:null},yOe=(e=EOe,t)=>{switch(t.type){case phe:return Object.assign({},e,{...e,type:"view",name:t.viewName,viewlink:t.viewlink,pathname:t.pathname});case vhe:return Object.assign({},e,{...e,type:"component",name:t.name,moduleId:t.moduleId});case mhe:return Object.assign({},e,{isLoading:!1,name:t.name,type:"page"});default:return e}},ave="SET_DYNAMIC_SELECTS",GE=e=>({type:ave,selects:e});var MF,SJ;function COe(){return SJ||(SJ=1,MF=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),MF}var wOe=COe();const xo=gn(wOe),BOe=[],xOe=(e=BOe,t)=>{switch(t.type){case ave:return xo(e,t.selects)?e:[...t.selects];default:return e}},MOe="SET_LOADING",IOe="SET_DATA",ive="SET_SELECTED_CONDITION",bOe="SET_RELOADING",ove=e=>({type:ive,condition:e}),SOe={data:{tabs:{},categories:{},data:[],charts:[],series:[],conditions:[],poles:[],finess:[],dates:[]},module:"",selectedCondition:[],selectedPoles:[],selectedFiness:[],loading:!1,reloading:!1,editable:!1,date:ei().subtract(1,"months"),dashboardModified:!1},ROe=(e=SOe,t)=>{switch(t.type){case MOe:return{...e,loading:t.loading};case bOe:return{...e,reloading:t.loading};case IOe:return{...e,module:t.module,data:{...e.data,tabs:t.tabs,categories:t.categories,data:t.data,charts:t.charts,series:t.series,conditions:t.conditions,poles:t.poles,finess:t.finess,dates:t.dates}};case ive:let r=[...e.selectedCondition];return Array.isArray(t.condition)?r=t.condition:r.push(t.condition.toString()),{...e,selectedCondition:r};default:return e}},sve="SET_GLOBAL_VARIABLES",pg=e=>({type:sve,variables:e}),TOe={},QOe=(e=TOe,t)=>{switch(t.type){case sve:return t.variables;default:return e}},lve="GLOBALS_SET_LOADING",cve="GLOBALS_SET_MODULE",IF=e=>({type:lve,loading:e}),rz=(e,t)=>({type:cve,module:e,data:t}),DOe={module:null,data:{},isLoading:!1,error:void 0},FOe=(e=DOe,t)=>{switch(t.type){case lve:return Object.assign({},e,{isLoading:t.loading});case cve:return{...e,module:t.module,data:t.data};default:return e}},Ave="HISTORY_SET_ENTRY",uve="HISTORY_SET_MODULE",dve="HISTORY_SET_EXPAND",fve="HISTORY_SET_COLUMNS",hve="HISTORY_SET_SORT",NOe=(e,t)=>({type:Ave,viewUrl:e,hArgs:t}),_Oe=(e,t)=>({type:uve,module:e,item:t}),bF=(e,t)=>({type:dve,view:e,keys:t}),RJ=(e,t)=>({type:fve,view:e,columns:t}),gve=e=>({type:hve,sort:e}),kOe={views:{},modules:{},expand:{},columns:{},sort:{}},POe=(e=kOe,t)=>{switch(t.type){case Ave:return{...e,views:{...e.views,[t.viewUrl]:t.hArgs}};case uve:return{...e,modules:{...e.modules,[t.module]:t.item}};case dve:return{...e,expand:{...e.expand,[t.view]:t.keys}};case fve:return{...e,columns:{...e.columns,[t.view]:t.columns}};case hve:return{...e,sort:t.sort};default:return e}},pve="SET_LICENCES",vve="ADD_LICENCE_ERROR",mve="SET_LOADING",Eve=e=>({type:pve,data:e}),yve=e=>({type:vve,error:e}),nB=e=>({type:mve,loading:e}),OOe={data:null,error:!1,addError:null,loading:!1},jOe=(e=OOe,t)=>{switch(t.type){case pve:return Object.assign({},e,{data:t.data});case vve:return Object.assign({},e,{...e,addError:t.error});case mve:return{...e,loading:t.loading};default:return e}},Cve="MENU_SET_MENU",wve="MENU_SET_ERROR",Bve="MENU_SET_SELECTED_MODULE",xve="SET_MODULE_ENTRIES",Mve="SET_MENU_ITEM",Ive="MENU_SET_LOADING",bve=e=>({type:Cve,menu:e}),GY=e=>({type:Bve,selectedModuleKey:e}),zOe=e=>({type:xve,moduleEntries:e}),LOe=e=>({type:wve,menu:e}),zR=e=>({type:Mve,item:e}),TJ=e=>({type:Ive,loading:e}),YOe={selectedModuleKey:"myfavorites",selectedKey:void 0,previouslySelectedModuleKeys:null,modules:{},moduleEntries:void 0,siderIsVisible:!0,error:null,item:null,loading:!1},UOe=(e=YOe,t)=>{switch(t.type){case Cve:return{...e,modules:t.menu};case Bve:return{...e,selectedModuleKey:t.selectedModuleKey};case xve:return xo(t.moduleEntries,e.moduleEntries)?e:{...e,moduleEntries:t.moduleEntries};case wve:return{...e,error:t.error};case Mve:return{...e,item:t.item};case Ive:return{...e,loading:t.loading};default:return e}},Sve="SET_NOTIFICATIONS",HOe=e=>({type:Sve,notifications:e}),GOe={selectedModule:"",data:{}},KOe=(e=GOe,t)=>{switch(t.type){case Sve:return{...e,data:t.notifications};default:return e}},VOe={data:{session:null,environment:null,map:null,chart:null,version:null},loading:!1,user:{homePageDefaultModule:"accueil",showGraphs:"always",spreadsheetEditor:"EXCEL",spreadsheetSeparator:";",pmsiDefaultModule:null,expandedRows:"ouvert"}},JOe=(e=VOe,t)=>{switch(t.type){case wge:return{...e,data:{...e.data,...t.settings}};case Bge:return{...e,loading:t.loading};case xge:return{...e,user:{...e.user,...t.userSettings}};default:return e}},Rve="VIEW_SET_ROW",Tve="VIEW_SET_CELL",rw=e=>({type:Rve,row:e}),$h=(e,t)=>({type:Tve,row:e,column:t}),WOe={cell:{row:null,column:null},row:null},XOe=(e=WOe,t)=>{switch(t.type){case Rve:return Object.assign({},e,{...e,row:t.row});case Tve:return Object.assign({},e,{...e,cell:{row:t.row,column:t.column}});default:return e}},Qve="DESC_SET_REF",Dve="RUN_SET_REF",Fve="VIEW_SET_IS_LOADING",qOe="SHOW_FILTERS_DRAWER",Nve="SET_ERRORS",_ve="SET_GETTING_RUN",kve="SET_RENDERING",ZOe=e=>({type:qOe,visible:e}),$Oe=e=>({type:Qve,descRef:e}),eje=e=>({type:Dve,runRef:e}),rm=e=>({type:Fve,isLoading:e}),KE=(e=[])=>({type:Nve,errors:e}),nz=e=>({type:_ve,gettingRun:e}),Pve=e=>({type:kve,rendering:e}),tje={isLoading:!1,descRef:null,runRef:null,errors:[],gettingRun:!1,rendering:!1,globalVariables:{}},rje=(e=tje,t)=>{switch(t.type){case Qve:return Object.assign({},e,{...e,descRef:t.descRef});case Dve:return Object.assign({},e,{...e,runRef:t.runRef});case Fve:return Object.assign({},e,{...e,isLoading:t.isLoading});case Nve:return{...e,errors:t.errors};case _ve:return{...e,gettingRun:t.gettingRun};case kve:return t.rendering===e.rendering?e:{...e,rendering:t.rendering};default:return e}},nje=UY({history:POe,ui:o3e,menu:UOe,content:yOe,view:rje,settings:JOe,globals:FOe,licences:jOe,viewlinks:XOe,dynamicSelects:xOe,components:mOe,eis:ROe,notifications:KOe,globalVariables:QOe}),aje=e=>UY({router:VPe(e),cti:nje});let az=null,SF="jis";var QJ=window.location.pathname;if(QJ.indexOf(SF)===-1)az="/";else{var ije=QJ.split(SF);az=ije[0]+SF}const iz=Hge({basename:az});function oje(e){let t;return t=npe,rpe(aje(iz),e,t(e3e(GPe(iz),ipe)))}const sl=oje();let DJ=[{name:"fontSize",value:"11"},{name:"rowHeight",value:"20",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"backgroundColor",value:"#FFD393",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"backgroundColor",value:"#FFD393",condition:"ROW.LVL == '1' && VIEW.QTAB != '1'"},{name:"backgroundColor",value:"#FFD393",condition:"ROW.LVL == '2' && VIEW.QTAB == '1'"},{name:"fontWeight",value:"bold",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"borderSides",value:"top bottom",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"borderStyle",value:"solid",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"borderThickness",value:"2",condition:"ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 1 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"fontWeight",value:"bold",condition:"ROW.LVL == '2' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"color",value:"#084b96",condition:"ROW.LVL == '2' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB != 'TAB'"},{name:"rowHeight",value:"20",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"backgroundColor",value:"#FFD393",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"fontWeight",value:"bold",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"borderSides",value:"top bottom",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"borderStyle",value:"solid",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"borderThickness",value:"2",condition:"Number(ROW.TABD) >= 0 && ROW.LVL == '1' && Number(VIEW.GROUPBY_MAXLVL) > 2 && VIEW.GROUPBY_TAB == 'TAB'"},{name:"paddingLeft",value:"15",condition:"(VIEW.GROUPBY_MAXLVL == '2' || VIEW.GROUPBY_MAXLVL == '3') && ROW.LVL == '2' && VIEW.GROUPBY_TAB != 'TAB' "},{name:"paddingLeft",value:"30",condition:"(VIEW.GROUPBY_MAXLVL == '3') && ROW.LVL == '3' && VIEW.GROUPBY_TAB != 'TAB' "},{name:"paddingLeft",value:"15",condition:"(VIEW.GROUPBY_MAXLVL == '3') && ROW.LVL == '2' && VIEW.GROUPBY_TAB == 'TAB' "}];var RF,FJ;function sje(){if(FJ)return RF;FJ=1;function e(t,r,n,a){for(var i=-1,o=t==null?0:t.length;++i<o;){var s=t[i];r(a,s,n(s),t)}return a}return RF=e,RF}var TF,NJ;function lje(){if(NJ)return TF;NJ=1;function e(t){return function(r,n,a){for(var i=-1,o=Object(r),s=a(r),l=s.length;l--;){var c=s[t?l:++i];if(n(o[c],c,o)===!1)break}return r}}return TF=e,TF}var QF,_J;function Ove(){if(_J)return QF;_J=1;var e=lje(),t=e();return QF=t,QF}var DF,kJ;function cje(){if(kJ)return DF;kJ=1;function e(t,r){for(var n=-1,a=Array(t);++n<t;)a[n]=r(n);return a}return DF=e,DF}var FF,PJ;function Aje(){if(PJ)return FF;PJ=1;var e=Zv(),t=Sd(),r="[object Arguments]";function n(a){return t(a)&&e(a)==r}return FF=n,FF}var NF,OJ;function ZB(){if(OJ)return NF;OJ=1;var e=Aje(),t=Sd(),r=Object.prototype,n=r.hasOwnProperty,a=r.propertyIsEnumerable,i=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!a.call(o,"callee")};return NF=i,NF}var nw={exports:{}},_F,jJ;function uje(){if(jJ)return _F;jJ=1;function e(){return!1}return _F=e,_F}nw.exports;var zJ;function $B(){return zJ||(zJ=1,(function(e,t){var r=du(),n=uje(),a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,c=l||n;e.exports=c})(nw,nw.exports)),nw.exports}var kF,LJ;function BQ(){if(LJ)return kF;LJ=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,a){var i=typeof n;return a=a??e,!!a&&(i=="number"||i!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<a}return kF=r,kF}var PF,YJ;function KY(){if(YJ)return PF;YJ=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return PF=t,PF}var OF,UJ;function dje(){if(UJ)return OF;UJ=1;var e=Zv(),t=KY(),r=Sd(),n="[object Arguments]",a="[object Array]",i="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",c="[object Map]",A="[object Number]",u="[object Object]",d="[object RegExp]",f="[object Set]",h="[object String]",g="[object WeakMap]",p="[object ArrayBuffer]",m="[object DataView]",y="[object Float32Array]",C="[object Float64Array]",w="[object Int8Array]",B="[object Int16Array]",x="[object Int32Array]",M="[object Uint8Array]",S="[object Uint8ClampedArray]",R="[object Uint16Array]",b="[object Uint32Array]",T={};T[y]=T[C]=T[w]=T[B]=T[x]=T[M]=T[S]=T[R]=T[b]=!0,T[n]=T[a]=T[p]=T[i]=T[m]=T[o]=T[s]=T[l]=T[c]=T[A]=T[u]=T[d]=T[f]=T[h]=T[g]=!1;function D(F){return r(F)&&t(F.length)&&!!T[e(F)]}return OF=D,OF}var jF,HJ;function xQ(){if(HJ)return jF;HJ=1;function e(t){return function(r){return t(r)}}return jF=e,jF}var aw={exports:{}};aw.exports;var GJ;function VY(){return GJ||(GJ=1,(function(e,t){var r=Yhe(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=(function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}})();e.exports=s})(aw,aw.exports)),aw.exports}var zF,KJ;function MQ(){if(KJ)return zF;KJ=1;var e=dje(),t=xQ(),r=VY(),n=r&&r.isTypedArray,a=n?t(n):e;return zF=a,zF}var LF,VJ;function jve(){if(VJ)return LF;VJ=1;var e=cje(),t=ZB(),r=Ps(),n=$B(),a=BQ(),i=MQ(),o=Object.prototype,s=o.hasOwnProperty;function l(c,A){var u=r(c),d=!u&&t(c),f=!u&&!d&&n(c),h=!u&&!d&&!f&&i(c),g=u||d||f||h,p=g?e(c.length,String):[],m=p.length;for(var y in c)(A||s.call(c,y))&&!(g&&(y=="length"||f&&(y=="offset"||y=="parent")||h&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||a(y,m)))&&p.push(y);return p}return LF=l,LF}var YF,JJ;function IQ(){if(JJ)return YF;JJ=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,a=typeof n=="function"&&n.prototype||e;return r===a}return YF=t,YF}var UF,WJ;function zve(){if(WJ)return UF;WJ=1;function e(t,r){return function(n){return t(r(n))}}return UF=e,UF}var HF,XJ;function fje(){if(XJ)return HF;XJ=1;var e=zve(),t=e(Object.keys,Object);return HF=t,HF}var GF,qJ;function Lve(){if(qJ)return GF;qJ=1;var e=IQ(),t=fje(),r=Object.prototype,n=r.hasOwnProperty;function a(i){if(!e(i))return t(i);var o=[];for(var s in Object(i))n.call(i,s)&&s!="constructor"&&o.push(s);return o}return GF=a,GF}var KF,ZJ;function mc(){if(ZJ)return KF;ZJ=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return KF=e,KF}var VF,$J;function JY(){if($J)return VF;$J=1;var e=Zv(),t=mc(),r="[object AsyncFunction]",n="[object Function]",a="[object GeneratorFunction]",i="[object Proxy]";function o(s){if(!t(s))return!1;var l=e(s);return l==n||l==a||l==r||l==i}return VF=o,VF}var JF,eW;function jg(){if(eW)return JF;eW=1;var e=JY(),t=KY();function r(n){return n!=null&&t(n.length)&&!e(n)}return JF=r,JF}var WF,tW;function wy(){if(tW)return WF;tW=1;var e=jve(),t=Lve(),r=jg();function n(a){return r(a)?e(a):t(a)}return WF=n,WF}var XF,rW;function Yve(){if(rW)return XF;rW=1;var e=Ove(),t=wy();function r(n,a){return n&&e(n,a,t)}return XF=r,XF}var qF,nW;function hje(){if(nW)return qF;nW=1;var e=jg();function t(r,n){return function(a,i){if(a==null)return a;if(!e(a))return r(a,i);for(var o=a.length,s=n?o:-1,l=Object(a);(n?s--:++s<o)&&i(l[s],s,l)!==!1;);return a}}return qF=t,qF}var ZF,aW;function Uve(){if(aW)return ZF;aW=1;var e=Yve(),t=hje(),r=t(e);return ZF=r,ZF}var $F,iW;function gje(){if(iW)return $F;iW=1;var e=Uve();function t(r,n,a,i){return e(r,function(o,s,l){n(i,o,a(o),l)}),i}return $F=t,$F}var eN,oW;function pje(){if(oW)return eN;oW=1;function e(){this.__data__=[],this.size=0}return eN=e,eN}var tN,sW;function ex(){if(sW)return tN;sW=1;function e(t,r){return t===r||t!==t&&r!==r}return tN=e,tN}var rN,lW;function bQ(){if(lW)return rN;lW=1;var e=ex();function t(r,n){for(var a=r.length;a--;)if(e(r[a][0],n))return a;return-1}return rN=t,rN}var nN,cW;function vje(){if(cW)return nN;cW=1;var e=bQ(),t=Array.prototype,r=t.splice;function n(a){var i=this.__data__,o=e(i,a);if(o<0)return!1;var s=i.length-1;return o==s?i.pop():r.call(i,o,1),--this.size,!0}return nN=n,nN}var aN,AW;function mje(){if(AW)return aN;AW=1;var e=bQ();function t(r){var n=this.__data__,a=e(n,r);return a<0?void 0:n[a][1]}return aN=t,aN}var iN,uW;function Eje(){if(uW)return iN;uW=1;var e=bQ();function t(r){return e(this.__data__,r)>-1}return iN=t,iN}var oN,dW;function yje(){if(dW)return oN;dW=1;var e=bQ();function t(r,n){var a=this.__data__,i=e(a,r);return i<0?(++this.size,a.push([r,n])):a[i][1]=n,this}return oN=t,oN}var sN,fW;function SQ(){if(fW)return sN;fW=1;var e=pje(),t=vje(),r=mje(),n=Eje(),a=yje();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,sN=i,sN}var lN,hW;function Cje(){if(hW)return lN;hW=1;var e=SQ();function t(){this.__data__=new e,this.size=0}return lN=t,lN}var cN,gW;function wje(){if(gW)return cN;gW=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return cN=e,cN}var AN,pW;function Bje(){if(pW)return AN;pW=1;function e(t){return this.__data__.get(t)}return AN=e,AN}var uN,vW;function xje(){if(vW)return uN;vW=1;function e(t){return this.__data__.has(t)}return uN=e,uN}var dN,mW;function Mje(){if(mW)return dN;mW=1;var e=du(),t=e["__core-js_shared__"];return dN=t,dN}var fN,EW;function Ije(){if(EW)return fN;EW=1;var e=Mje(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return fN=r,fN}var hN,yW;function Hve(){if(yW)return hN;yW=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return hN=r,hN}var gN,CW;function bje(){if(CW)return gN;CW=1;var e=JY(),t=Ije(),r=mc(),n=Hve(),a=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,l=o.toString,c=s.hasOwnProperty,A=RegExp("^"+l.call(c).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function u(d){if(!r(d)||t(d))return!1;var f=e(d)?A:i;return f.test(n(d))}return gN=u,gN}var pN,wW;function Sje(){if(wW)return pN;wW=1;function e(t,r){return t?.[r]}return pN=e,pN}var vN,BW;function nm(){if(BW)return vN;BW=1;var e=bje(),t=Sje();function r(n,a){var i=t(n,a);return e(i)?i:void 0}return vN=r,vN}var mN,xW;function WY(){if(xW)return mN;xW=1;var e=nm(),t=du(),r=e(t,"Map");return mN=r,mN}var EN,MW;function RQ(){if(MW)return EN;MW=1;var e=nm(),t=e(Object,"create");return EN=t,EN}var yN,IW;function Rje(){if(IW)return yN;IW=1;var e=RQ();function t(){this.__data__=e?e(null):{},this.size=0}return yN=t,yN}var CN,bW;function Tje(){if(bW)return CN;bW=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return CN=e,CN}var wN,SW;function Qje(){if(SW)return wN;SW=1;var e=RQ(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function a(i){var o=this.__data__;if(e){var s=o[i];return s===t?void 0:s}return n.call(o,i)?o[i]:void 0}return wN=a,wN}var BN,RW;function Dje(){if(RW)return BN;RW=1;var e=RQ(),t=Object.prototype,r=t.hasOwnProperty;function n(a){var i=this.__data__;return e?i[a]!==void 0:r.call(i,a)}return BN=n,BN}var xN,TW;function Fje(){if(TW)return xN;TW=1;var e=RQ(),t="__lodash_hash_undefined__";function r(n,a){var i=this.__data__;return this.size+=this.has(n)?0:1,i[n]=e&&a===void 0?t:a,this}return xN=r,xN}var MN,QW;function Nje(){if(QW)return MN;QW=1;var e=Rje(),t=Tje(),r=Qje(),n=Dje(),a=Fje();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,MN=i,MN}var IN,DW;function _je(){if(DW)return IN;DW=1;var e=Nje(),t=SQ(),r=WY();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return IN=n,IN}var bN,FW;function kje(){if(FW)return bN;FW=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return bN=e,bN}var SN,NW;function TQ(){if(NW)return SN;NW=1;var e=kje();function t(r,n){var a=r.__data__;return e(n)?a[typeof n=="string"?"string":"hash"]:a.map}return SN=t,SN}var RN,_W;function Pje(){if(_W)return RN;_W=1;var e=TQ();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return RN=t,RN}var TN,kW;function Oje(){if(kW)return TN;kW=1;var e=TQ();function t(r){return e(this,r).get(r)}return TN=t,TN}var QN,PW;function jje(){if(PW)return QN;PW=1;var e=TQ();function t(r){return e(this,r).has(r)}return QN=t,QN}var DN,OW;function zje(){if(OW)return DN;OW=1;var e=TQ();function t(r,n){var a=e(this,r),i=a.size;return a.set(r,n),this.size+=a.size==i?0:1,this}return DN=t,DN}var FN,jW;function XY(){if(jW)return FN;jW=1;var e=_je(),t=Pje(),r=Oje(),n=jje(),a=zje();function i(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s<l;){var c=o[s];this.set(c[0],c[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=a,FN=i,FN}var NN,zW;function Lje(){if(zW)return NN;zW=1;var e=SQ(),t=WY(),r=XY(),n=200;function a(i,o){var s=this.__data__;if(s instanceof e){var l=s.__data__;if(!t||l.length<n-1)return l.push([i,o]),this.size=++s.size,this;s=this.__data__=new r(l)}return s.set(i,o),this.size=s.size,this}return NN=a,NN}var _N,LW;function QQ(){if(LW)return _N;LW=1;var e=SQ(),t=Cje(),r=wje(),n=Bje(),a=xje(),i=Lje();function o(s){var l=this.__data__=new e(s);this.size=l.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=a,o.prototype.set=i,_N=o,_N}var kN,YW;function Yje(){if(YW)return kN;YW=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return kN=t,kN}var PN,UW;function Uje(){if(UW)return PN;UW=1;function e(t){return this.__data__.has(t)}return PN=e,PN}var ON,HW;function Hje(){if(HW)return ON;HW=1;var e=XY(),t=Yje(),r=Uje();function n(a){var i=-1,o=a==null?0:a.length;for(this.__data__=new e;++i<o;)this.add(a[i])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,ON=n,ON}var jN,GW;function Gje(){if(GW)return jN;GW=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a;)if(r(t[n],n,t))return!0;return!1}return jN=e,jN}var zN,KW;function Kje(){if(KW)return zN;KW=1;function e(t,r){return t.has(r)}return zN=e,zN}var LN,VW;function Gve(){if(VW)return LN;VW=1;var e=Hje(),t=Gje(),r=Kje(),n=1,a=2;function i(o,s,l,c,A,u){var d=l&n,f=o.length,h=s.length;if(f!=h&&!(d&&h>f))return!1;var g=u.get(o),p=u.get(s);if(g&&p)return g==s&&p==o;var m=-1,y=!0,C=l&a?new e:void 0;for(u.set(o,s),u.set(s,o);++m<f;){var w=o[m],B=s[m];if(c)var x=d?c(B,w,m,s,o,u):c(w,B,m,o,s,u);if(x!==void 0){if(x)continue;y=!1;break}if(C){if(!t(s,function(M,S){if(!r(C,S)&&(w===M||A(w,M,l,c,u)))return C.push(S)})){y=!1;break}}else if(!(w===B||A(w,B,l,c,u))){y=!1;break}}return u.delete(o),u.delete(s),y}return LN=i,LN}var YN,JW;function Kve(){if(JW)return YN;JW=1;var e=du(),t=e.Uint8Array;return YN=t,YN}var UN,WW;function Vje(){if(WW)return UN;WW=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a,i){n[++r]=[i,a]}),n}return UN=e,UN}var HN,XW;function Jje(){if(XW)return HN;XW=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(a){n[++r]=a}),n}return HN=e,HN}var GN,qW;function Wje(){if(qW)return GN;qW=1;var e=py(),t=Kve(),r=ex(),n=Gve(),a=Vje(),i=Jje(),o=1,s=2,l="[object Boolean]",c="[object Date]",A="[object Error]",u="[object Map]",d="[object Number]",f="[object RegExp]",h="[object Set]",g="[object String]",p="[object Symbol]",m="[object ArrayBuffer]",y="[object DataView]",C=e?e.prototype:void 0,w=C?C.valueOf:void 0;function B(x,M,S,R,b,T,D){switch(S){case y:if(x.byteLength!=M.byteLength||x.byteOffset!=M.byteOffset)return!1;x=x.buffer,M=M.buffer;case m:return!(x.byteLength!=M.byteLength||!T(new t(x),new t(M)));case l:case c:case d:return r(+x,+M);case A:return x.name==M.name&&x.message==M.message;case f:case g:return x==M+"";case u:var F=a;case h:var N=R&o;if(F||(F=i),x.size!=M.size&&!N)return!1;var _=D.get(x);if(_)return _==M;R|=s,D.set(x,M);var P=n(F(x),F(M),R,b,T,D);return D.delete(x),P;case p:if(w)return w.call(x)==w.call(M)}return!1}return GN=B,GN}var KN,ZW;function qY(){if(ZW)return KN;ZW=1;function e(t,r){for(var n=-1,a=r.length,i=t.length;++n<a;)t[i+n]=r[n];return t}return KN=e,KN}var VN,$W;function Vve(){if($W)return VN;$W=1;var e=qY(),t=Ps();function r(n,a,i){var o=a(n);return t(n)?o:e(o,i(n))}return VN=r,VN}var JN,eX;function Xje(){if(eX)return JN;eX=1;function e(t,r){for(var n=-1,a=t==null?0:t.length,i=0,o=[];++n<a;){var s=t[n];r(s,n,t)&&(o[i++]=s)}return o}return JN=e,JN}var WN,tX;function Jve(){if(tX)return WN;tX=1;function e(){return[]}return WN=e,WN}var XN,rX;function ZY(){if(rX)return XN;rX=1;var e=Xje(),t=Jve(),r=Object.prototype,n=r.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(o){return o==null?[]:(o=Object(o),e(a(o),function(s){return n.call(o,s)}))}:t;return XN=i,XN}var qN,nX;function Wve(){if(nX)return qN;nX=1;var e=Vve(),t=ZY(),r=wy();function n(a){return e(a,r,t)}return qN=n,qN}var ZN,aX;function qje(){if(aX)return ZN;aX=1;var e=Wve(),t=1,r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s,l,c,A){var u=s&t,d=e(i),f=d.length,h=e(o),g=h.length;if(f!=g&&!u)return!1;for(var p=f;p--;){var m=d[p];if(!(u?m in o:n.call(o,m)))return!1}var y=A.get(i),C=A.get(o);if(y&&C)return y==o&&C==i;var w=!0;A.set(i,o),A.set(o,i);for(var B=u;++p<f;){m=d[p];var x=i[m],M=o[m];if(l)var S=u?l(M,x,m,o,i,A):l(x,M,m,i,o,A);if(!(S===void 0?x===M||c(x,M,s,l,A):S)){w=!1;break}B||(B=m=="constructor")}if(w&&!B){var R=i.constructor,b=o.constructor;R!=b&&"constructor"in i&&"constructor"in o&&!(typeof R=="function"&&R instanceof R&&typeof b=="function"&&b instanceof b)&&(w=!1)}return A.delete(i),A.delete(o),w}return ZN=a,ZN}var $N,iX;function Zje(){if(iX)return $N;iX=1;var e=nm(),t=du(),r=e(t,"DataView");return $N=r,$N}var e_,oX;function $je(){if(oX)return e_;oX=1;var e=nm(),t=du(),r=e(t,"Promise");return e_=r,e_}var t_,sX;function eze(){if(sX)return t_;sX=1;var e=nm(),t=du(),r=e(t,"Set");return t_=r,t_}var r_,lX;function tze(){if(lX)return r_;lX=1;var e=nm(),t=du(),r=e(t,"WeakMap");return r_=r,r_}var n_,cX;function tx(){if(cX)return n_;cX=1;var e=Zje(),t=WY(),r=$je(),n=eze(),a=tze(),i=Zv(),o=Hve(),s="[object Map]",l="[object Object]",c="[object Promise]",A="[object Set]",u="[object WeakMap]",d="[object DataView]",f=o(e),h=o(t),g=o(r),p=o(n),m=o(a),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=d||t&&y(new t)!=s||r&&y(r.resolve())!=c||n&&y(new n)!=A||a&&y(new a)!=u)&&(y=function(C){var w=i(C),B=w==l?C.constructor:void 0,x=B?o(B):"";if(x)switch(x){case f:return d;case h:return s;case g:return c;case p:return A;case m:return u}return w}),n_=y,n_}var a_,AX;function rze(){if(AX)return a_;AX=1;var e=QQ(),t=Gve(),r=Wje(),n=qje(),a=tx(),i=Ps(),o=$B(),s=MQ(),l=1,c="[object Arguments]",A="[object Array]",u="[object Object]",d=Object.prototype,f=d.hasOwnProperty;function h(g,p,m,y,C,w){var B=i(g),x=i(p),M=B?A:a(g),S=x?A:a(p);M=M==c?u:M,S=S==c?u:S;var R=M==u,b=S==u,T=M==S;if(T&&o(g)){if(!o(p))return!1;B=!0,R=!1}if(T&&!R)return w||(w=new e),B||s(g)?t(g,p,m,y,C,w):r(g,p,M,m,y,C,w);if(!(m&l)){var D=R&&f.call(g,"__wrapped__"),F=b&&f.call(p,"__wrapped__");if(D||F){var N=D?g.value():g,_=F?p.value():p;return w||(w=new e),C(N,_,m,y,w)}}return T?(w||(w=new e),n(g,p,m,y,C,w)):!1}return a_=h,a_}var i_,uX;function $Y(){if(uX)return i_;uX=1;var e=rze(),t=Sd();function r(n,a,i,o,s){return n===a?!0:n==null||a==null||!t(n)&&!t(a)?n!==n&&a!==a:e(n,a,i,o,r,s)}return i_=r,i_}var o_,dX;function nze(){if(dX)return o_;dX=1;var e=QQ(),t=$Y(),r=1,n=2;function a(i,o,s,l){var c=s.length,A=c,u=!l;if(i==null)return!A;for(i=Object(i);c--;){var d=s[c];if(u&&d[2]?d[1]!==i[d[0]]:!(d[0]in i))return!1}for(;++c<A;){d=s[c];var f=d[0],h=i[f],g=d[1];if(u&&d[2]){if(h===void 0&&!(f in i))return!1}else{var p=new e;if(l)var m=l(h,g,f,i,o,p);if(!(m===void 0?t(g,h,r|n,l,p):m))return!1}}return!0}return o_=a,o_}var s_,fX;function Xve(){if(fX)return s_;fX=1;var e=mc();function t(r){return r===r&&!e(r)}return s_=t,s_}var l_,hX;function aze(){if(hX)return l_;hX=1;var e=Xve(),t=wy();function r(n){for(var a=t(n),i=a.length;i--;){var o=a[i],s=n[o];a[i]=[o,s,e(s)]}return a}return l_=r,l_}var c_,gX;function qve(){if(gX)return c_;gX=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return c_=e,c_}var A_,pX;function ize(){if(pX)return A_;pX=1;var e=nze(),t=aze(),r=qve();function n(a){var i=t(a);return i.length==1&&i[0][2]?r(i[0][0],i[0][1]):function(o){return o===a||e(o,a,i)}}return A_=n,A_}var u_,vX;function e7(){if(vX)return u_;vX=1;var e=Ps(),t=HB(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function a(i,o){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:n.test(i)||!r.test(i)||o!=null&&i in Object(o)}return u_=a,u_}var d_,mX;function oze(){if(mX)return d_;mX=1;var e=XY(),t="Expected a function";function r(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var i=function(){var o=arguments,s=a?a.apply(this,o):o[0],l=i.cache;if(l.has(s))return l.get(s);var c=n.apply(this,o);return i.cache=l.set(s,c)||l,c};return i.cache=new(r.Cache||e),i}return r.Cache=e,d_=r,d_}var f_,EX;function sze(){if(EX)return f_;EX=1;var e=oze(),t=500;function r(n){var a=e(n,function(o){return i.size===t&&i.clear(),o}),i=a.cache;return a}return f_=r,f_}var h_,yX;function lze(){if(yX)return h_;yX=1;var e=sze(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(a){var i=[];return a.charCodeAt(0)===46&&i.push(""),a.replace(t,function(o,s,l,c){i.push(l?c.replace(r,"$1"):s||o)}),i});return h_=n,h_}var g_,CX;function t7(){if(CX)return g_;CX=1;var e=Ps(),t=e7(),r=lze(),n=GB();function a(i,o){return e(i)?i:t(i,o)?[i]:r(n(i))}return g_=a,g_}var p_,wX;function rx(){if(wX)return p_;wX=1;var e=HB();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return p_=t,p_}var v_,BX;function r7(){if(BX)return v_;BX=1;var e=t7(),t=rx();function r(n,a){a=e(a,n);for(var i=0,o=a.length;n!=null&&i<o;)n=n[t(a[i++])];return i&&i==o?n:void 0}return v_=r,v_}var m_,xX;function Zve(){if(xX)return m_;xX=1;var e=r7();function t(r,n,a){var i=r==null?void 0:e(r,n);return i===void 0?a:i}return m_=t,m_}var E_,MX;function cze(){if(MX)return E_;MX=1;function e(t,r){return t!=null&&r in Object(t)}return E_=e,E_}var y_,IX;function Aze(){if(IX)return y_;IX=1;var e=t7(),t=ZB(),r=Ps(),n=BQ(),a=KY(),i=rx();function o(s,l,c){l=e(l,s);for(var A=-1,u=l.length,d=!1;++A<u;){var f=i(l[A]);if(!(d=s!=null&&c(s,f)))break;s=s[f]}return d||++A!=u?d:(u=s==null?0:s.length,!!u&&a(u)&&n(f,u)&&(r(s)||t(s)))}return y_=o,y_}var C_,bX;function uze(){if(bX)return C_;bX=1;var e=cze(),t=Aze();function r(n,a){return n!=null&&t(n,a,e)}return C_=r,C_}var w_,SX;function dze(){if(SX)return w_;SX=1;var e=$Y(),t=Zve(),r=uze(),n=e7(),a=Xve(),i=qve(),o=rx(),s=1,l=2;function c(A,u){return n(A)&&a(u)?i(o(A),u):function(d){var f=t(d,A);return f===void 0&&f===u?r(d,A):e(u,f,s|l)}}return w_=c,w_}var B_,RX;function nx(){if(RX)return B_;RX=1;function e(t){return t}return B_=e,B_}var x_,TX;function fze(){if(TX)return x_;TX=1;function e(t){return function(r){return r?.[t]}}return x_=e,x_}var M_,QX;function hze(){if(QX)return M_;QX=1;var e=r7();function t(r){return function(n){return e(n,r)}}return M_=t,M_}var I_,DX;function gze(){if(DX)return I_;DX=1;var e=fze(),t=hze(),r=e7(),n=rx();function a(i){return r(i)?e(n(i)):t(i)}return I_=a,I_}var b_,FX;function ax(){if(FX)return b_;FX=1;var e=ize(),t=dze(),r=nx(),n=Ps(),a=gze();function i(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):a(o)}return b_=i,b_}var S_,NX;function $ve(){if(NX)return S_;NX=1;var e=sje(),t=gje(),r=ax(),n=Ps();function a(i,o){return function(s,l){var c=n(s)?e:t,A=o?o():{};return c(s,i,r(l,2),A)}}return S_=a,S_}var R_,_X;function pze(){if(_X)return R_;_X=1;var e=$ve(),t=e(function(r,n,a){r[a?0:1].push(n)},function(){return[[],[]]});return R_=t,R_}var vze=pze();const mze=gn(vze);var PM,Eze=new Uint8Array(16);function yze(){if(!PM&&(PM=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!PM))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return PM(Eze)}const Cze=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function wze(e){return typeof e=="string"&&Cze.test(e)}var os=[];for(var T_=0;T_<256;++T_)os.push((T_+256).toString(16).substr(1));function Bze(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(os[e[t+0]]+os[e[t+1]]+os[e[t+2]]+os[e[t+3]]+"-"+os[e[t+4]]+os[e[t+5]]+"-"+os[e[t+6]]+os[e[t+7]]+"-"+os[e[t+8]]+os[e[t+9]]+"-"+os[e[t+10]]+os[e[t+11]]+os[e[t+12]]+os[e[t+13]]+os[e[t+14]]+os[e[t+15]]).toLowerCase();if(!wze(r))throw TypeError("Stringified UUID is invalid");return r}function xze(e,t,r){e=e||{};var n=e.random||(e.rng||yze)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Bze(n)}function eme(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mze}=Object.prototype,{getPrototypeOf:n7}=Object,{iterator:DQ,toStringTag:tme}=Symbol,FQ=(e=>t=>{const r=Mze.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),hu=e=>(e=e.toLowerCase(),t=>FQ(t)===e),NQ=e=>t=>typeof t===e,{isArray:By}=Array,aB=NQ("undefined");function ix(e){return e!==null&&!aB(e)&&e.constructor!==null&&!aB(e.constructor)&&Nl(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const rme=hu("ArrayBuffer");function Ize(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&rme(e.buffer),t}const bze=NQ("string"),Nl=NQ("function"),nme=NQ("number"),ox=e=>e!==null&&typeof e=="object",Sze=e=>e===!0||e===!1,zS=e=>{if(FQ(e)!=="object")return!1;const t=n7(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(tme in e)&&!(DQ in e)},Rze=e=>{if(!ox(e)||ix(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Tze=hu("Date"),Qze=hu("File"),Dze=hu("Blob"),Fze=hu("FileList"),Nze=e=>ox(e)&&Nl(e.pipe),_ze=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Nl(e.append)&&((t=FQ(e))==="formdata"||t==="object"&&Nl(e.toString)&&e.toString()==="[object FormData]"))},kze=hu("URLSearchParams"),[Pze,Oze,jze,zze]=["ReadableStream","Request","Response","Headers"].map(hu),Lze=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function sx(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,a;if(typeof e!="object"&&(e=[e]),By(e))for(n=0,a=e.length;n<a;n++)t.call(null,e[n],n,e);else{if(ix(e))return;const i=r?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let s;for(n=0;n<o;n++)s=i[n],t.call(null,e[s],s,e)}}function ame(e,t){if(ix(e))return null;t=t.toLowerCase();const r=Object.keys(e);let n=r.length,a;for(;n-- >0;)if(a=r[n],t===a.toLowerCase())return a;return null}const Av=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ime=e=>!aB(e)&&e!==Av;function oz(){const{caseless:e}=ime(this)&&this||{},t={},r=(n,a)=>{const i=e&&ame(t,a)||a;zS(t[i])&&zS(n)?t[i]=oz(t[i],n):zS(n)?t[i]=oz({},n):By(n)?t[i]=n.slice():t[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&sx(arguments[n],r);return t}const Yze=(e,t,r,{allOwnKeys:n}={})=>(sx(t,(a,i)=>{r&&Nl(a)?e[i]=eme(a,r):e[i]=a},{allOwnKeys:n}),e),Uze=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hze=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Gze=(e,t,r,n)=>{let a,i,o;const s={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&n7(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Kze=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},Vze=e=>{if(!e)return null;if(By(e))return e;let t=e.length;if(!nme(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Jze=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&n7(Uint8Array)),Wze=(e,t)=>{const n=(e&&e[DQ]).call(e);let a;for(;(a=n.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},Xze=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},qze=hu("HTMLFormElement"),Zze=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,a){return n.toUpperCase()+a}),kX=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),$ze=hu("RegExp"),ome=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};sx(r,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(n[i]=o||a)}),Object.defineProperties(e,n)},e6e=e=>{ome(e,(t,r)=>{if(Nl(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(Nl(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},t6e=(e,t)=>{const r={},n=a=>{a.forEach(i=>{r[i]=!0})};return By(e)?n(e):n(String(e).split(t)),r},r6e=()=>{},n6e=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function a6e(e){return!!(e&&Nl(e.append)&&e[tme]==="FormData"&&e[DQ])}const i6e=e=>{const t=new Array(10),r=(n,a)=>{if(ox(n)){if(t.indexOf(n)>=0)return;if(ix(n))return n;if(!("toJSON"in n)){t[a]=n;const i=By(n)?[]:{};return sx(n,(o,s)=>{const l=r(o,a+1);!aB(l)&&(i[s]=l)}),t[a]=void 0,i}}return n};return r(e,0)},o6e=hu("AsyncFunction"),s6e=e=>e&&(ox(e)||Nl(e))&&Nl(e.then)&&Nl(e.catch),sme=((e,t)=>e?setImmediate:t?((r,n)=>(Av.addEventListener("message",({source:a,data:i})=>{a===Av&&i===r&&n.length&&n.shift()()},!1),a=>{n.push(a),Av.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Nl(Av.postMessage)),l6e=typeof queueMicrotask<"u"?queueMicrotask.bind(Av):typeof process<"u"&&process.nextTick||sme,c6e=e=>e!=null&&Nl(e[DQ]),rr={isArray:By,isArrayBuffer:rme,isBuffer:ix,isFormData:_ze,isArrayBufferView:Ize,isString:bze,isNumber:nme,isBoolean:Sze,isObject:ox,isPlainObject:zS,isEmptyObject:Rze,isReadableStream:Pze,isRequest:Oze,isResponse:jze,isHeaders:zze,isUndefined:aB,isDate:Tze,isFile:Qze,isBlob:Dze,isRegExp:$ze,isFunction:Nl,isStream:Nze,isURLSearchParams:kze,isTypedArray:Jze,isFileList:Fze,forEach:sx,merge:oz,extend:Yze,trim:Lze,stripBOM:Uze,inherits:Hze,toFlatObject:Gze,kindOf:FQ,kindOfTest:hu,endsWith:Kze,toArray:Vze,forEachEntry:Wze,matchAll:Xze,isHTMLForm:qze,hasOwnProperty:kX,hasOwnProp:kX,reduceDescriptors:ome,freezeMethods:e6e,toObjectSet:t6e,toCamelCase:Zze,noop:r6e,toFiniteNumber:n6e,findKey:ame,global:Av,isContextDefined:ime,isSpecCompliantForm:a6e,toJSONObject:i6e,isAsyncFn:o6e,isThenable:s6e,setImmediate:sme,asap:l6e,isIterable:c6e};function Zn(e,t,r,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}rr.inherits(Zn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rr.toJSONObject(this.config),code:this.code,status:this.status}}});const lme=Zn.prototype,cme={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{cme[e]={value:e}});Object.defineProperties(Zn,cme);Object.defineProperty(lme,"isAxiosError",{value:!0});Zn.from=(e,t,r,n,a,i)=>{const o=Object.create(lme);return rr.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Zn.call(o,e.message,t,r,n,a),o.cause=e,o.name=e.name,i&&Object.assign(o,i),o};const A6e=null;function sz(e){return rr.isPlainObject(e)||rr.isArray(e)}function Ame(e){return rr.endsWith(e,"[]")?e.slice(0,-2):e}function PX(e,t,r){return e?e.concat(t).map(function(a,i){return a=Ame(a),!r&&i?"["+a+"]":a}).join(r?".":""):t}function u6e(e){return rr.isArray(e)&&!e.some(sz)}const d6e=rr.toFlatObject(rr,{},null,function(t){return/^is[A-Z]/.test(t)});function _Q(e,t,r){if(!rr.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=rr.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,p){return!rr.isUndefined(p[g])});const n=r.metaTokens,a=r.visitor||A,i=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&rr.isSpecCompliantForm(t);if(!rr.isFunction(a))throw new TypeError("visitor must be a function");function c(h){if(h===null)return"";if(rr.isDate(h))return h.toISOString();if(rr.isBoolean(h))return h.toString();if(!l&&rr.isBlob(h))throw new Zn("Blob is not supported. Use a Buffer instead.");return rr.isArrayBuffer(h)||rr.isTypedArray(h)?l&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}function A(h,g,p){let m=h;if(h&&!p&&typeof h=="object"){if(rr.endsWith(g,"{}"))g=n?g:g.slice(0,-2),h=JSON.stringify(h);else if(rr.isArray(h)&&u6e(h)||(rr.isFileList(h)||rr.endsWith(g,"[]"))&&(m=rr.toArray(h)))return g=Ame(g),m.forEach(function(C,w){!(rr.isUndefined(C)||C===null)&&t.append(o===!0?PX([g],w,i):o===null?g:g+"[]",c(C))}),!1}return sz(h)?!0:(t.append(PX(p,g,i),c(h)),!1)}const u=[],d=Object.assign(d6e,{defaultVisitor:A,convertValue:c,isVisitable:sz});function f(h,g){if(!rr.isUndefined(h)){if(u.indexOf(h)!==-1)throw Error("Circular reference detected in "+g.join("."));u.push(h),rr.forEach(h,function(m,y){(!(rr.isUndefined(m)||m===null)&&a.call(t,m,rr.isString(y)?y.trim():y,g,d))===!0&&f(m,g?g.concat(y):[y])}),u.pop()}}if(!rr.isObject(e))throw new TypeError("data must be an object");return f(e),t}function OX(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function a7(e,t){this._pairs=[],e&&_Q(e,this,t)}const ume=a7.prototype;ume.append=function(t,r){this._pairs.push([t,r])};ume.toString=function(t){const r=t?function(n){return t.call(this,n,OX)}:OX;return this._pairs.map(function(a){return r(a[0])+"="+r(a[1])},"").join("&")};function f6e(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function dme(e,t,r){if(!t)return e;const n=r&&r.encode||f6e;rr.isFunction(r)&&(r={serialize:r});const a=r&&r.serialize;let i;if(a?i=a(t,r):i=rr.isURLSearchParams(t)?t.toString():new a7(t,r).toString(n),i){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class jX{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){rr.forEach(this.handlers,function(n){n!==null&&t(n)})}}const fme={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},h6e=typeof URLSearchParams<"u"?URLSearchParams:a7,g6e=typeof FormData<"u"?FormData:null,p6e=typeof Blob<"u"?Blob:null,v6e={isBrowser:!0,classes:{URLSearchParams:h6e,FormData:g6e,Blob:p6e},protocols:["http","https","file","blob","url","data"]},i7=typeof window<"u"&&typeof document<"u",lz=typeof navigator=="object"&&navigator||void 0,m6e=i7&&(!lz||["ReactNative","NativeScript","NS"].indexOf(lz.product)<0),E6e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",y6e=i7&&window.location.href||"http://localhost",C6e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:i7,hasStandardBrowserEnv:m6e,hasStandardBrowserWebWorkerEnv:E6e,navigator:lz,origin:y6e},Symbol.toStringTag,{value:"Module"})),Ds={...C6e,...v6e};function w6e(e,t){return _Q(e,new Ds.classes.URLSearchParams,{visitor:function(r,n,a,i){return Ds.isNode&&rr.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function B6e(e){return rr.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function x6e(e){const t={},r=Object.keys(e);let n;const a=r.length;let i;for(n=0;n<a;n++)i=r[n],t[i]=e[i];return t}function hme(e){function t(r,n,a,i){let o=r[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=r.length;return o=!o&&rr.isArray(a)?a.length:o,l?(rr.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!rr.isObject(a[o]))&&(a[o]=[]),t(r,n,a[o],i)&&rr.isArray(a[o])&&(a[o]=x6e(a[o])),!s)}if(rr.isFormData(e)&&rr.isFunction(e.entries)){const r={};return rr.forEachEntry(e,(n,a)=>{t(B6e(n),a,r,0)}),r}return null}function M6e(e,t,r){if(rr.isString(e))try{return(t||JSON.parse)(e),rr.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(e)}const lx={transitional:fme,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",a=n.indexOf("application/json")>-1,i=rr.isObject(t);if(i&&rr.isHTMLForm(t)&&(t=new FormData(t)),rr.isFormData(t))return a?JSON.stringify(hme(t)):t;if(rr.isArrayBuffer(t)||rr.isBuffer(t)||rr.isStream(t)||rr.isFile(t)||rr.isBlob(t)||rr.isReadableStream(t))return t;if(rr.isArrayBufferView(t))return t.buffer;if(rr.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return w6e(t,this.formSerializer).toString();if((s=rr.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return _Q(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||a?(r.setContentType("application/json",!1),M6e(t)):t}],transformResponse:[function(t){const r=this.transitional||lx.transitional,n=r&&r.forcedJSONParsing,a=this.responseType==="json";if(rr.isResponse(t)||rr.isReadableStream(t))return t;if(t&&rr.isString(t)&&(n&&!this.responseType||a)){const o=!(r&&r.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Zn.from(s,Zn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ds.classes.FormData,Blob:Ds.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rr.forEach(["delete","get","head","post","put","patch"],e=>{lx.headers[e]={}});const I6e=rr.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),b6e=e=>{const t={};let r,n,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),r=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!r||t[r]&&I6e[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},zX=Symbol("internals");function S1(e){return e&&String(e).trim().toLowerCase()}function LS(e){return e===!1||e==null?e:rr.isArray(e)?e.map(LS):String(e)}function S6e(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const R6e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Q_(e,t,r,n,a){if(rr.isFunction(n))return n.call(this,t,r);if(a&&(t=r),!!rr.isString(t)){if(rr.isString(n))return t.indexOf(n)!==-1;if(rr.isRegExp(n))return n.test(t)}}function T6e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function Q6e(e,t){const r=rr.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(a,i,o){return this[n].call(this,t,a,i,o)},configurable:!0})})}let _l=class{constructor(t){t&&this.set(t)}set(t,r,n){const a=this;function i(s,l,c){const A=S1(l);if(!A)throw new Error("header name must be a non-empty string");const u=rr.findKey(a,A);(!u||a[u]===void 0||c===!0||c===void 0&&a[u]!==!1)&&(a[u||l]=LS(s))}const o=(s,l)=>rr.forEach(s,(c,A)=>i(c,A,l));if(rr.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(rr.isString(t)&&(t=t.trim())&&!R6e(t))o(b6e(t),r);else if(rr.isObject(t)&&rr.isIterable(t)){let s={},l,c;for(const A of t){if(!rr.isArray(A))throw TypeError("Object iterator must return a key-value pair");s[c=A[0]]=(l=s[c])?rr.isArray(l)?[...l,A[1]]:[l,A[1]]:A[1]}o(s,r)}else t!=null&&i(r,t,n);return this}get(t,r){if(t=S1(t),t){const n=rr.findKey(this,t);if(n){const a=this[n];if(!r)return a;if(r===!0)return S6e(a);if(rr.isFunction(r))return r.call(this,a,n);if(rr.isRegExp(r))return r.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=S1(t),t){const n=rr.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Q_(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let a=!1;function i(o){if(o=S1(o),o){const s=rr.findKey(n,o);s&&(!r||Q_(n,n[s],s,r))&&(delete n[s],a=!0)}}return rr.isArray(t)?t.forEach(i):i(t),a}clear(t){const r=Object.keys(this);let n=r.length,a=!1;for(;n--;){const i=r[n];(!t||Q_(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const r=this,n={};return rr.forEach(this,(a,i)=>{const o=rr.findKey(n,i);if(o){r[o]=LS(a),delete r[i];return}const s=t?T6e(i):String(i).trim();s!==i&&delete r[i],r[s]=LS(a),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return rr.forEach(this,(n,a)=>{n!=null&&n!==!1&&(r[a]=t&&rr.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(a=>n.set(a)),n}static accessor(t){const n=(this[zX]=this[zX]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=S1(o);n[s]||(Q6e(a,o),n[s]=!0)}return rr.isArray(t)?t.forEach(i):i(t),this}};_l.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);rr.reduceDescriptors(_l.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});rr.freezeMethods(_l);function D_(e,t){const r=this||lx,n=t||r,a=_l.from(n.headers);let i=n.data;return rr.forEach(e,function(s){i=s.call(r,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function gme(e){return!!(e&&e.__CANCEL__)}function xy(e,t,r){Zn.call(this,e??"canceled",Zn.ERR_CANCELED,t,r),this.name="CanceledError"}rr.inherits(xy,Zn,{__CANCEL__:!0});function pme(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Zn("Request failed with status code "+r.status,[Zn.ERR_BAD_REQUEST,Zn.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function D6e(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function F6e(e,t){e=e||10;const r=new Array(e),n=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),A=n[i];o||(o=c),r[a]=l,n[a]=c;let u=i,d=0;for(;u!==a;)d+=r[u++],u=u%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-o<t)return;const f=A&&c-A;return f?Math.round(d*1e3/f):void 0}}function N6e(e,t){let r=0,n=1e3/t,a,i;const o=(c,A=Date.now())=>{r=A,a=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const A=Date.now(),u=A-r;u>=n?o(c,A):(a=c,i||(i=setTimeout(()=>{i=null,o(a)},n-u)))},()=>a&&o(a)]}const LR=(e,t,r=3)=>{let n=0;const a=F6e(50,250);return N6e(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,c=a(l),A=o<=s;n=o;const u={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&A?(s-o)/c:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(u)},r)},LX=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},YX=e=>(...t)=>rr.asap(()=>e(...t)),_6e=Ds.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Ds.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Ds.origin),Ds.navigator&&/(msie|trident)/i.test(Ds.navigator.userAgent)):()=>!0,k6e=Ds.hasStandardBrowserEnv?{write(e,t,r,n,a,i){const o=[e+"="+encodeURIComponent(t)];rr.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),rr.isString(n)&&o.push("path="+n),rr.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function P6e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function O6e(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function vme(e,t,r){let n=!P6e(t);return e&&(n||r==!1)?O6e(e,t):t}const UX=e=>e instanceof _l?{...e}:e;function Pv(e,t){t=t||{};const r={};function n(c,A,u,d){return rr.isPlainObject(c)&&rr.isPlainObject(A)?rr.merge.call({caseless:d},c,A):rr.isPlainObject(A)?rr.merge({},A):rr.isArray(A)?A.slice():A}function a(c,A,u,d){if(rr.isUndefined(A)){if(!rr.isUndefined(c))return n(void 0,c,u,d)}else return n(c,A,u,d)}function i(c,A){if(!rr.isUndefined(A))return n(void 0,A)}function o(c,A){if(rr.isUndefined(A)){if(!rr.isUndefined(c))return n(void 0,c)}else return n(void 0,A)}function s(c,A,u){if(u in t)return n(c,A);if(u in e)return n(void 0,c)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,A,u)=>a(UX(c),UX(A),u,!0)};return rr.forEach(Object.keys({...e,...t}),function(A){const u=l[A]||a,d=u(e[A],t[A],A);rr.isUndefined(d)&&u!==s||(r[A]=d)}),r}const mme=e=>{const t=Pv({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=t;t.headers=o=_l.from(o),t.url=dme(vme(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(rr.isFormData(r)){if(Ds.hasStandardBrowserEnv||Ds.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...A]=l?l.split(";").map(u=>u.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...A].join("; "))}}if(Ds.hasStandardBrowserEnv&&(n&&rr.isFunction(n)&&(n=n(t)),n||n!==!1&&_6e(t.url))){const c=a&&i&&k6e.read(i);c&&o.set(a,c)}return t},j6e=typeof XMLHttpRequest<"u",z6e=j6e&&function(e){return new Promise(function(r,n){const a=mme(e);let i=a.data;const o=_l.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:c}=a,A,u,d,f,h;function g(){f&&f(),h&&h(),a.cancelToken&&a.cancelToken.unsubscribe(A),a.signal&&a.signal.removeEventListener("abort",A)}let p=new XMLHttpRequest;p.open(a.method.toUpperCase(),a.url,!0),p.timeout=a.timeout;function m(){if(!p)return;const C=_l.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders()),B={data:!s||s==="text"||s==="json"?p.responseText:p.response,status:p.status,statusText:p.statusText,headers:C,config:e,request:p};pme(function(M){r(M),g()},function(M){n(M),g()},B),p=null}"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){!p||p.readyState!==4||p.status===0&&!(p.responseURL&&p.responseURL.indexOf("file:")===0)||setTimeout(m)},p.onabort=function(){p&&(n(new Zn("Request aborted",Zn.ECONNABORTED,e,p)),p=null)},p.onerror=function(){n(new Zn("Network Error",Zn.ERR_NETWORK,e,p)),p=null},p.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const B=a.transitional||fme;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),n(new Zn(w,B.clarifyTimeoutError?Zn.ETIMEDOUT:Zn.ECONNABORTED,e,p)),p=null},i===void 0&&o.setContentType(null),"setRequestHeader"in p&&rr.forEach(o.toJSON(),function(w,B){p.setRequestHeader(B,w)}),rr.isUndefined(a.withCredentials)||(p.withCredentials=!!a.withCredentials),s&&s!=="json"&&(p.responseType=a.responseType),c&&([d,h]=LR(c,!0),p.addEventListener("progress",d)),l&&p.upload&&([u,f]=LR(l),p.upload.addEventListener("progress",u),p.upload.addEventListener("loadend",f)),(a.cancelToken||a.signal)&&(A=C=>{p&&(n(!C||C.type?new xy(null,e,p):C),p.abort(),p=null)},a.cancelToken&&a.cancelToken.subscribe(A),a.signal&&(a.signal.aborted?A():a.signal.addEventListener("abort",A)));const y=D6e(a.url);if(y&&Ds.protocols.indexOf(y)===-1){n(new Zn("Unsupported protocol "+y+":",Zn.ERR_BAD_REQUEST,e));return}p.send(i||null)})},L6e=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,a;const i=function(c){if(!a){a=!0,s();const A=c instanceof Error?c:this.reason;n.abort(A instanceof Zn?A:new xy(A instanceof Error?A.message:A))}};let o=t&&setTimeout(()=>{o=null,i(new Zn(`timeout ${t} of ms exceeded`,Zn.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(i):c.removeEventListener("abort",i)}),e=null)};e.forEach(c=>c.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>rr.asap(s),l}},Y6e=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let n=0,a;for(;n<r;)a=n+t,yield e.slice(n,a),n=a},U6e=async function*(e,t){for await(const r of H6e(e))yield*Y6e(r,t)},H6e=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:n}=await t.read();if(r)break;yield n}}finally{await t.cancel()}},HX=(e,t,r,n)=>{const a=U6e(e,t);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:c,value:A}=await a.next();if(c){s(),l.close();return}let u=A.byteLength;if(r){let d=i+=u;r(d)}l.enqueue(new Uint8Array(A))}catch(c){throw s(c),c}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},kQ=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Eme=kQ&&typeof ReadableStream=="function",G6e=kQ&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),yme=(e,...t)=>{try{return!!e(...t)}catch{return!1}},K6e=Eme&&yme(()=>{let e=!1;const t=new Request(Ds.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),GX=64*1024,cz=Eme&&yme(()=>rr.isReadableStream(new Response("").body)),YR={stream:cz&&(e=>e.body)};kQ&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!YR[t]&&(YR[t]=rr.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Zn(`Response type '${t}' is not supported`,Zn.ERR_NOT_SUPPORT,n)})})})(new Response);const V6e=async e=>{if(e==null)return 0;if(rr.isBlob(e))return e.size;if(rr.isSpecCompliantForm(e))return(await new Request(Ds.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(rr.isArrayBufferView(e)||rr.isArrayBuffer(e))return e.byteLength;if(rr.isURLSearchParams(e)&&(e=e+""),rr.isString(e))return(await G6e(e)).byteLength},J6e=async(e,t)=>{const r=rr.toFiniteNumber(e.getContentLength());return r??V6e(t)},W6e=kQ&&(async e=>{let{url:t,method:r,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:A,withCredentials:u="same-origin",fetchOptions:d}=mme(e);c=c?(c+"").toLowerCase():"text";let f=L6e([a,i&&i.toAbortSignal()],o),h;const g=f&&f.unsubscribe&&(()=>{f.unsubscribe()});let p;try{if(l&&K6e&&r!=="get"&&r!=="head"&&(p=await J6e(A,n))!==0){let B=new Request(t,{method:"POST",body:n,duplex:"half"}),x;if(rr.isFormData(n)&&(x=B.headers.get("content-type"))&&A.setContentType(x),B.body){const[M,S]=LX(p,LR(YX(l)));n=HX(B.body,GX,M,S)}}rr.isString(u)||(u=u?"include":"omit");const m="credentials"in Request.prototype;h=new Request(t,{...d,signal:f,method:r.toUpperCase(),headers:A.normalize().toJSON(),body:n,duplex:"half",credentials:m?u:void 0});let y=await fetch(h,d);const C=cz&&(c==="stream"||c==="response");if(cz&&(s||C&&g)){const B={};["status","statusText","headers"].forEach(R=>{B[R]=y[R]});const x=rr.toFiniteNumber(y.headers.get("content-length")),[M,S]=s&&LX(x,LR(YX(s),!0))||[];y=new Response(HX(y.body,GX,M,()=>{S&&S(),g&&g()}),B)}c=c||"text";let w=await YR[rr.findKey(YR,c)||"text"](y,e);return!C&&g&&g(),await new Promise((B,x)=>{pme(B,x,{data:w,headers:_l.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:h})})}catch(m){throw g&&g(),m&&m.name==="TypeError"&&/Load failed|fetch/i.test(m.message)?Object.assign(new Zn("Network Error",Zn.ERR_NETWORK,e,h),{cause:m.cause||m}):Zn.from(m,m&&m.code,e,h)}}),Az={http:A6e,xhr:z6e,fetch:W6e};rr.forEach(Az,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const KX=e=>`- ${e}`,X6e=e=>rr.isFunction(e)||e===null||e===!1,Cme={getAdapter:e=>{e=rr.isArray(e)?e:[e];const{length:t}=e;let r,n;const a={};for(let i=0;i<t;i++){r=e[i];let o;if(n=r,!X6e(r)&&(n=Az[(o=String(r)).toLowerCase()],n===void 0))throw new Zn(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?i.length>1?`since :
`+i.map(KX).join(`
`):" "+KX(i[0]):"as no adapter specified";throw new Zn("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:Az};function F_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xy(null,e)}function VX(e){return F_(e),e.headers=_l.from(e.headers),e.data=D_.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Cme.getAdapter(e.adapter||lx.adapter)(e).then(function(n){return F_(e),n.data=D_.call(e,e.transformResponse,n),n.headers=_l.from(n.headers),n},function(n){return gme(n)||(F_(e),n&&n.response&&(n.response.data=D_.call(e,e.transformResponse,n.response),n.response.headers=_l.from(n.response.headers))),Promise.reject(n)})}const wme="1.11.0",PQ={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{PQ[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const JX={};PQ.transitional=function(t,r,n){function a(i,o){return"[Axios v"+wme+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(t===!1)throw new Zn(a(o," has been removed"+(r?" in "+r:"")),Zn.ERR_DEPRECATED);return r&&!JX[o]&&(JX[o]=!0,console.warn(a(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(i,o,s):!0}};PQ.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function q6e(e,t,r){if(typeof e!="object")throw new Zn("options must be an object",Zn.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let a=n.length;for(;a-- >0;){const i=n[a],o=t[i];if(o){const s=e[i],l=s===void 0||o(s,i,e);if(l!==!0)throw new Zn("option "+i+" must be "+l,Zn.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Zn("Unknown option "+i,Zn.ERR_BAD_OPTION)}}const YS={assertOptions:q6e,validators:PQ},Xu=YS.validators;let wv=class{constructor(t){this.defaults=t||{},this.interceptors={request:new jX,response:new jX}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
`+i):n.stack=i}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=Pv(this.defaults,r);const{transitional:n,paramsSerializer:a,headers:i}=r;n!==void 0&&YS.assertOptions(n,{silentJSONParsing:Xu.transitional(Xu.boolean),forcedJSONParsing:Xu.transitional(Xu.boolean),clarifyTimeoutError:Xu.transitional(Xu.boolean)},!1),a!=null&&(rr.isFunction(a)?r.paramsSerializer={serialize:a}:YS.assertOptions(a,{encode:Xu.function,serialize:Xu.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),YS.assertOptions(r,{baseUrl:Xu.spelling("baseURL"),withXsrfToken:Xu.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=i&&rr.merge(i.common,i[r.method]);i&&rr.forEach(["delete","get","head","post","put","patch","common"],h=>{delete i[h]}),r.headers=_l.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(r)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let A,u=0,d;if(!l){const h=[VX.bind(this),void 0];for(h.unshift(...s),h.push(...c),d=h.length,A=Promise.resolve(r);u<d;)A=A.then(h[u++],h[u++]);return A}d=s.length;let f=r;for(u=0;u<d;){const h=s[u++],g=s[u++];try{f=h(f)}catch(p){g.call(this,p);break}}try{A=VX.call(this,f)}catch(h){return Promise.reject(h)}for(u=0,d=c.length;u<d;)A=A.then(c[u++],c[u++]);return A}getUri(t){t=Pv(this.defaults,t);const r=vme(t.baseURL,t.url,t.allowAbsoluteUrls);return dme(r,t.params,t.paramsSerializer)}};rr.forEach(["delete","get","head","options"],function(t){wv.prototype[t]=function(r,n){return this.request(Pv(n||{},{method:t,url:r,data:(n||{}).data}))}});rr.forEach(["post","put","patch"],function(t){function r(n){return function(i,o,s){return this.request(Pv(s||{},{method:t,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}wv.prototype[t]=r(),wv.prototype[t+"Form"]=r(!0)});let Z6e=class Bme{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},t(function(i,o,s){n.reason||(n.reason=new xy(i,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new Bme(function(a){t=a}),cancel:t}}};function $6e(e){return function(r){return e.apply(null,r)}}function eLe(e){return rr.isObject(e)&&e.isAxiosError===!0}const uz={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uz).forEach(([e,t])=>{uz[t]=e});function xme(e){const t=new wv(e),r=eme(wv.prototype.request,t);return rr.extend(r,wv.prototype,t,{allOwnKeys:!0}),rr.extend(r,t,null,{allOwnKeys:!0}),r.create=function(a){return xme(Pv(e,a))},r}const di=xme(lx);di.Axios=wv;di.CanceledError=xy;di.CancelToken=Z6e;di.isCancel=gme;di.VERSION=wme;di.toFormData=_Q;di.AxiosError=Zn;di.Cancel=di.CanceledError;di.all=function(t){return Promise.all(t)};di.spread=$6e;di.isAxiosError=eLe;di.mergeConfig=Pv;di.AxiosHeaders=_l;di.formToJSON=e=>hme(rr.isHTMLForm(e)?new FormData(e):e);di.getAdapter=Cme.getAdapter;di.HttpStatusCode=uz;di.default=di;const{Axios:C5t,AxiosError:w5t,CanceledError:B5t,isCancel:x5t,CancelToken:M5t,VERSION:I5t,all:b5t,Cancel:S5t,isAxiosError:R5t,spread:T5t,toFormData:Q5t,AxiosHeaders:D5t,HttpStatusCode:F5t,formToJSON:N5t,getAdapter:_5t,mergeConfig:k5t}=di,tLe=async()=>{let e=await wJ.getItem("ccn");if(!e){let r=(new Date().getTime()-new Date(2007,8,1).getTime()).toString();e=`PC${r.substr(r.length-6,6)}`,wJ.setItem("ccn",e)}return e},To=di.create({withCredentials:!0});To.interceptors.request.use(async e=>{if(e.method==="post"&&e.headers["Content-Type"]==="multipart/form-data"){const t=await tLe();e.data.append("CTI_SESSION_INDEX","0"),e.data.append("CTI_CLIENTNAME",t)}return e.metadata={startTime:new Date},e.data&&e.data instanceof FormData&&([...e.data.entries()].length||delete e.data),e});To.interceptors.response.use(function(e){e.config.metadata.endTime=new Date;const t=e.config.metadata.endTime-e.config.metadata.startTime;return e.duration=t,t>3e4&&Ki(8510,`${e.config.url} - ${t} ms`),e},function(e){return e.config.metadata.endTime=new Date,e.duration=e.config.metadata.endTime-e.config.metadata.startTime,Promise.reject(e)});var N_,WX;function rLe(){if(WX)return N_;WX=1;function e(ie){return ie instanceof Map?ie.clear=ie.delete=ie.set=function(){throw new Error("map is read-only")}:ie instanceof Set&&(ie.add=ie.clear=ie.delete=function(){throw new Error("set is read-only")}),Object.freeze(ie),Object.getOwnPropertyNames(ie).forEach(Be=>{const Xe=ie[Be],Oe=typeof Xe;(Oe==="object"||Oe==="function")&&!Object.isFrozen(Xe)&&e(Xe)}),ie}class t{constructor(Be){Be.data===void 0&&(Be.data={}),this.data=Be.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(ie){return ie.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function n(ie,...Be){const Xe=Object.create(null);for(const Oe in ie)Xe[Oe]=ie[Oe];return Be.forEach(function(Oe){for(const ft in Oe)Xe[ft]=Oe[ft]}),Xe}const a="</span>",i=ie=>!!ie.scope,o=(ie,{prefix:Be})=>{if(ie.startsWith("language:"))return ie.replace("language:","language-");if(ie.includes(".")){const Xe=ie.split(".");return[`${Be}${Xe.shift()}`,...Xe.map((Oe,ft)=>`${Oe}${"_".repeat(ft+1)}`)].join(" ")}return`${Be}${ie}`};class s{constructor(Be,Xe){this.buffer="",this.classPrefix=Xe.classPrefix,Be.walk(this)}addText(Be){this.buffer+=r(Be)}openNode(Be){if(!i(Be))return;const Xe=o(Be.scope,{prefix:this.classPrefix});this.span(Xe)}closeNode(Be){i(Be)&&(this.buffer+=a)}value(){return this.buffer}span(Be){this.buffer+=`<span class="${Be}">`}}const l=(ie={})=>{const Be={children:[]};return Object.assign(Be,ie),Be};class c{constructor(){this.rootNode=l(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Be){this.top.children.push(Be)}openNode(Be){const Xe=l({scope:Be});this.add(Xe),this.stack.push(Xe)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Be){return this.constructor._walk(Be,this.rootNode)}static _walk(Be,Xe){return typeof Xe=="string"?Be.addText(Xe):Xe.children&&(Be.openNode(Xe),Xe.children.forEach(Oe=>this._walk(Be,Oe)),Be.closeNode(Xe)),Be}static _collapse(Be){typeof Be!="string"&&Be.children&&(Be.children.every(Xe=>typeof Xe=="string")?Be.children=[Be.children.join("")]:Be.children.forEach(Xe=>{c._collapse(Xe)}))}}class A extends c{constructor(Be){super(),this.options=Be}addText(Be){Be!==""&&this.add(Be)}startScope(Be){this.openNode(Be)}endScope(){this.closeNode()}__addSublanguage(Be,Xe){const Oe=Be.root;Xe&&(Oe.scope=`language:${Xe}`),this.add(Oe)}toHTML(){return new s(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function u(ie){return ie?typeof ie=="string"?ie:ie.source:null}function d(ie){return g("(?=",ie,")")}function f(ie){return g("(?:",ie,")*")}function h(ie){return g("(?:",ie,")?")}function g(...ie){return ie.map(Xe=>u(Xe)).join("")}function p(ie){const Be=ie[ie.length-1];return typeof Be=="object"&&Be.constructor===Object?(ie.splice(ie.length-1,1),Be):{}}function m(...ie){return"("+(p(ie).capture?"":"?:")+ie.map(Oe=>u(Oe)).join("|")+")"}function y(ie){return new RegExp(ie.toString()+"|").exec("").length-1}function C(ie,Be){const Xe=ie&&ie.exec(Be);return Xe&&Xe.index===0}const w=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function B(ie,{joinWith:Be}){let Xe=0;return ie.map(Oe=>{Xe+=1;const ft=Xe;let wt=u(Oe),ot="";for(;wt.length>0;){const it=w.exec(wt);if(!it){ot+=wt;break}ot+=wt.substring(0,it.index),wt=wt.substring(it.index+it[0].length),it[0][0]==="\\"&&it[1]?ot+="\\"+String(Number(it[1])+ft):(ot+=it[0],it[0]==="("&&Xe++)}return ot}).map(Oe=>`(${Oe})`).join(Be)}const x=/\b\B/,M="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",R="\\b\\d+(\\.\\d+)?",b="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",T="\\b(0b[01]+)",D="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",F=(ie={})=>{const Be=/^#![ ]*\//;return ie.binary&&(ie.begin=g(Be,/.*\b/,ie.binary,/\b.*/)),n({scope:"meta",begin:Be,end:/$/,relevance:0,"on:begin":(Xe,Oe)=>{Xe.index!==0&&Oe.ignoreMatch()}},ie)},N={begin:"\\\\[\\s\\S]",relevance:0},_={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[N]},P={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[N]},k={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},j=function(ie,Be,Xe={}){const Oe=n({scope:"comment",begin:ie,end:Be,contains:[]},Xe);Oe.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const ft=m("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Oe.contains.push({begin:g(/[ ]+/,"(",ft,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Oe},Y=j("//","$"),X=j("/\\*","\\*/"),K=j("#","$"),U={scope:"number",begin:R,relevance:0},H={scope:"number",begin:b,relevance:0},L={scope:"number",begin:T,relevance:0},V={scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[N,{begin:/\[/,end:/\]/,relevance:0,contains:[N]}]},J={scope:"title",begin:M,relevance:0},ee={scope:"title",begin:S,relevance:0},ae={begin:"\\.\\s*"+S,relevance:0};var fe=Object.freeze({__proto__:null,APOS_STRING_MODE:_,BACKSLASH_ESCAPE:N,BINARY_NUMBER_MODE:L,BINARY_NUMBER_RE:T,COMMENT:j,C_BLOCK_COMMENT_MODE:X,C_LINE_COMMENT_MODE:Y,C_NUMBER_MODE:H,C_NUMBER_RE:b,END_SAME_AS_BEGIN:function(ie){return Object.assign(ie,{"on:begin":(Be,Xe)=>{Xe.data._beginMatch=Be[1]},"on:end":(Be,Xe)=>{Xe.data._beginMatch!==Be[1]&&Xe.ignoreMatch()}})},HASH_COMMENT_MODE:K,IDENT_RE:M,MATCH_NOTHING_RE:x,METHOD_GUARD:ae,NUMBER_MODE:U,NUMBER_RE:R,PHRASAL_WORDS_MODE:k,QUOTE_STRING_MODE:P,REGEXP_MODE:V,RE_STARTERS_RE:D,SHEBANG:F,TITLE_MODE:J,UNDERSCORE_IDENT_RE:S,UNDERSCORE_TITLE_MODE:ee});function he(ie,Be){ie.input[ie.index-1]==="."&&Be.ignoreMatch()}function ye(ie,Be){ie.className!==void 0&&(ie.scope=ie.className,delete ie.className)}function be(ie,Be){Be&&ie.beginKeywords&&(ie.begin="\\b("+ie.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ie.__beforeBegin=he,ie.keywords=ie.keywords||ie.beginKeywords,delete ie.beginKeywords,ie.relevance===void 0&&(ie.relevance=0))}function Se(ie,Be){Array.isArray(ie.illegal)&&(ie.illegal=m(...ie.illegal))}function ve(ie,Be){if(ie.match){if(ie.begin||ie.end)throw new Error("begin & end are not supported with match");ie.begin=ie.match,delete ie.match}}function de(ie,Be){ie.relevance===void 0&&(ie.relevance=1)}const Ue=(ie,Be)=>{if(!ie.beforeMatch)return;if(ie.starts)throw new Error("beforeMatch cannot be used with starts");const Xe=Object.assign({},ie);Object.keys(ie).forEach(Oe=>{delete ie[Oe]}),ie.keywords=Xe.keywords,ie.begin=g(Xe.beforeMatch,d(Xe.begin)),ie.starts={relevance:0,contains:[Object.assign(Xe,{endsParent:!0})]},ie.relevance=0,delete Xe.beforeMatch},at=["of","and","for","in","not","or","if","then","parent","list","value"],Ve="keyword";function Ie(ie,Be,Xe=Ve){const Oe=Object.create(null);return typeof ie=="string"?ft(Xe,ie.split(" ")):Array.isArray(ie)?ft(Xe,ie):Object.keys(ie).forEach(function(wt){Object.assign(Oe,Ie(ie[wt],Be,wt))}),Oe;function ft(wt,ot){Be&&(ot=ot.map(it=>it.toLowerCase())),ot.forEach(function(it){const vt=it.split("|");Oe[vt[0]]=[wt,we(vt[0],vt[1])]})}}function we(ie,Be){return Be?Number(Be):Re(ie)?0:1}function Re(ie){return at.includes(ie.toLowerCase())}const Te={},Ke=ie=>{console.error(ie)},mt=(ie,...Be)=>{console.log(`WARN: ${ie}`,...Be)},tt=(ie,Be)=>{Te[`${ie}/${Be}`]||(console.log(`Deprecated as of ${ie}. ${Be}`),Te[`${ie}/${Be}`]=!0)},rt=new Error;function lt(ie,Be,{key:Xe}){let Oe=0;const ft=ie[Xe],wt={},ot={};for(let it=1;it<=Be.length;it++)ot[it+Oe]=ft[it],wt[it+Oe]=!0,Oe+=y(Be[it-1]);ie[Xe]=ot,ie[Xe]._emit=wt,ie[Xe]._multi=!0}function At(ie){if(Array.isArray(ie.begin)){if(ie.skip||ie.excludeBegin||ie.returnBegin)throw Ke("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),rt;if(typeof ie.beginScope!="object"||ie.beginScope===null)throw Ke("beginScope must be object"),rt;lt(ie,ie.begin,{key:"beginScope"}),ie.begin=B(ie.begin,{joinWith:""})}}function $e(ie){if(Array.isArray(ie.end)){if(ie.skip||ie.excludeEnd||ie.returnEnd)throw Ke("skip, excludeEnd, returnEnd not compatible with endScope: {}"),rt;if(typeof ie.endScope!="object"||ie.endScope===null)throw Ke("endScope must be object"),rt;lt(ie,ie.end,{key:"endScope"}),ie.end=B(ie.end,{joinWith:""})}}function ce(ie){ie.scope&&typeof ie.scope=="object"&&ie.scope!==null&&(ie.beginScope=ie.scope,delete ie.scope)}function qe(ie){ce(ie),typeof ie.beginScope=="string"&&(ie.beginScope={_wrap:ie.beginScope}),typeof ie.endScope=="string"&&(ie.endScope={_wrap:ie.endScope}),At(ie),$e(ie)}function ct(ie){function Be(ot,it){return new RegExp(u(ot),"m"+(ie.case_insensitive?"i":"")+(ie.unicodeRegex?"u":"")+(it?"g":""))}class Xe{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(it,vt){vt.position=this.position++,this.matchIndexes[this.matchAt]=vt,this.regexes.push([vt,it]),this.matchAt+=y(it)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const it=this.regexes.map(vt=>vt[1]);this.matcherRe=Be(B(it,{joinWith:"|"}),!0),this.lastIndex=0}exec(it){this.matcherRe.lastIndex=this.lastIndex;const vt=this.matcherRe.exec(it);if(!vt)return null;const qt=vt.findIndex((Tr,Kr)=>Kr>0&&Tr!==void 0),Xt=this.matchIndexes[qt];return vt.splice(0,qt),Object.assign(vt,Xt)}}class Oe{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(it){if(this.multiRegexes[it])return this.multiRegexes[it];const vt=new Xe;return this.rules.slice(it).forEach(([qt,Xt])=>vt.addRule(qt,Xt)),vt.compile(),this.multiRegexes[it]=vt,vt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(it,vt){this.rules.push([it,vt]),vt.type==="begin"&&this.count++}exec(it){const vt=this.getMatcher(this.regexIndex);vt.lastIndex=this.lastIndex;let qt=vt.exec(it);if(this.resumingScanAtSamePosition()&&!(qt&&qt.index===this.lastIndex)){const Xt=this.getMatcher(0);Xt.lastIndex=this.lastIndex+1,qt=Xt.exec(it)}return qt&&(this.regexIndex+=qt.position+1,this.regexIndex===this.count&&this.considerAll()),qt}}function ft(ot){const it=new Oe;return ot.contains.forEach(vt=>it.addRule(vt.begin,{rule:vt,type:"begin"})),ot.terminatorEnd&&it.addRule(ot.terminatorEnd,{type:"end"}),ot.illegal&&it.addRule(ot.illegal,{type:"illegal"}),it}function wt(ot,it){const vt=ot;if(ot.isCompiled)return vt;[ye,ve,qe,Ue].forEach(Xt=>Xt(ot,it)),ie.compilerExtensions.forEach(Xt=>Xt(ot,it)),ot.__beforeBegin=null,[be,Se,de].forEach(Xt=>Xt(ot,it)),ot.isCompiled=!0;let qt=null;return typeof ot.keywords=="object"&&ot.keywords.$pattern&&(ot.keywords=Object.assign({},ot.keywords),qt=ot.keywords.$pattern,delete ot.keywords.$pattern),qt=qt||/\w+/,ot.keywords&&(ot.keywords=Ie(ot.keywords,ie.case_insensitive)),vt.keywordPatternRe=Be(qt,!0),it&&(ot.begin||(ot.begin=/\B|\b/),vt.beginRe=Be(vt.begin),!ot.end&&!ot.endsWithParent&&(ot.end=/\B|\b/),ot.end&&(vt.endRe=Be(vt.end)),vt.terminatorEnd=u(vt.end)||"",ot.endsWithParent&&it.terminatorEnd&&(vt.terminatorEnd+=(ot.end?"|":"")+it.terminatorEnd)),ot.illegal&&(vt.illegalRe=Be(ot.illegal)),ot.contains||(ot.contains=[]),ot.contains=[].concat(...ot.contains.map(function(Xt){return He(Xt==="self"?ot:Xt)})),ot.contains.forEach(function(Xt){wt(Xt,vt)}),ot.starts&&wt(ot.starts,it),vt.matcher=ft(vt),vt}if(ie.compilerExtensions||(ie.compilerExtensions=[]),ie.contains&&ie.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language.  See documentation.");return ie.classNameAliases=n(ie.classNameAliases||{}),wt(ie)}function Tt(ie){return ie?ie.endsWithParent||Tt(ie.starts):!1}function He(ie){return ie.variants&&!ie.cachedVariants&&(ie.cachedVariants=ie.variants.map(function(Be){return n(ie,{variants:null},Be)})),ie.cachedVariants?ie.cachedVariants:Tt(ie)?n(ie,{starts:ie.starts?n(ie.starts):null}):Object.isFrozen(ie)?n(ie):ie}var Ge="11.11.1";class Ee extends Error{constructor(Be,Xe){super(Be),this.name="HTMLInjectionError",this.html=Xe}}const Et=r,Yt=n,$=Symbol("nomatch"),Fe=7,je=function(ie){const Be=Object.create(null),Xe=Object.create(null),Oe=[];let ft=!0;const wt="Could not find the language '{}', did you forget to load/include a language module?",ot={disableAutodetect:!0,name:"Plain text",contains:[]};let it={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:A};function vt(pt){return it.noHighlightRe.test(pt)}function qt(pt){let Ze=pt.className+" ";Ze+=pt.parentNode?pt.parentNode.className:"";const bt=it.languageDetectRe.exec(Ze);if(bt){const kt=Ht(bt[1]);return kt||(mt(wt.replace("{}",bt[1])),mt("Falling back to no-highlight mode for this block.",pt)),kt?bt[1]:"no-highlight"}return Ze.split(/\s+/).find(kt=>vt(kt)||Ht(kt))}function Xt(pt,Ze,bt){let kt="",Wt="";typeof Ze=="object"?(kt=pt,bt=Ze.ignoreIllegals,Wt=Ze.language):(tt("10.7.0","highlight(lang, code, ...args) has been deprecated."),tt("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),Wt=pt,kt=Ze),bt===void 0&&(bt=!0);const St={code:kt,language:Wt};pn("before:highlight",St);const pe=St.result?St.result:Tr(St.language,St.code,bt);return pe.code=St.code,pn("after:highlight",pe),pe}function Tr(pt,Ze,bt,kt){const Wt=Object.create(null);function St(Ft,or){return Ft.keywords[or]}function pe(){if(!Rr.keywords){Wn.addText(Cn);return}let Ft=0;Rr.keywordPatternRe.lastIndex=0;let or=Rr.keywordPatternRe.exec(Cn),Zr="";for(;or;){Zr+=Cn.substring(Ft,or.index);const lr=dn.case_insensitive?or[0].toLowerCase():or[0],$n=St(Rr,lr);if($n){const[pa,ha]=$n;if(Wn.addText(Zr),Zr="",Wt[lr]=(Wt[lr]||0)+1,Wt[lr]<=Fe&&(qa+=ha),pa.startsWith("_"))Zr+=or[0];else{const In=dn.classNameAliases[pa]||pa;ze(or[0],In)}}else Zr+=or[0];Ft=Rr.keywordPatternRe.lastIndex,or=Rr.keywordPatternRe.exec(Cn)}Zr+=Cn.substring(Ft),Wn.addText(Zr)}function ke(){if(Cn==="")return;let Ft=null;if(typeof Rr.subLanguage=="string"){if(!Be[Rr.subLanguage]){Wn.addText(Cn);return}Ft=Tr(Rr.subLanguage,Cn,!0,Gn[Rr.subLanguage]),Gn[Rr.subLanguage]=Ft._top}else Ft=Vr(Cn,Rr.subLanguage.length?Rr.subLanguage:null);Rr.relevance>0&&(qa+=Ft.relevance),Wn.__addSublanguage(Ft._emitter,Ft.language)}function Me(){Rr.subLanguage!=null?ke():pe(),Cn=""}function ze(Ft,or){Ft!==""&&(Wn.startScope(or),Wn.addText(Ft),Wn.endScope())}function Ye(Ft,or){let Zr=1;const lr=or.length-1;for(;Zr<=lr;){if(!Ft._emit[Zr]){Zr++;continue}const $n=dn.classNameAliases[Ft[Zr]]||Ft[Zr],pa=or[Zr];$n?ze(pa,$n):(Cn=pa,pe(),Cn=""),Zr++}}function et(Ft,or){return Ft.scope&&typeof Ft.scope=="string"&&Wn.openNode(dn.classNameAliases[Ft.scope]||Ft.scope),Ft.beginScope&&(Ft.beginScope._wrap?(ze(Cn,dn.classNameAliases[Ft.beginScope._wrap]||Ft.beginScope._wrap),Cn=""):Ft.beginScope._multi&&(Ye(Ft.beginScope,or),Cn="")),Rr=Object.create(Ft,{parent:{value:Rr}}),Rr}function Ct(Ft,or,Zr){let lr=C(Ft.endRe,Zr);if(lr){if(Ft["on:end"]){const $n=new t(Ft);Ft["on:end"](or,$n),$n.isMatchIgnored&&(lr=!1)}if(lr){for(;Ft.endsParent&&Ft.parent;)Ft=Ft.parent;return Ft}}if(Ft.endsWithParent)return Ct(Ft.parent,or,Zr)}function Ot(Ft){return Rr.matcher.regexIndex===0?(Cn+=Ft[0],1):(Pt=!0,0)}function Ut(Ft){const or=Ft[0],Zr=Ft.rule,lr=new t(Zr),$n=[Zr.__beforeBegin,Zr["on:begin"]];for(const pa of $n)if(pa&&(pa(Ft,lr),lr.isMatchIgnored))return Ot(or);return Zr.skip?Cn+=or:(Zr.excludeBegin&&(Cn+=or),Me(),!Zr.returnBegin&&!Zr.excludeBegin&&(Cn=or)),et(Zr,Ft),Zr.returnBegin?0:or.length}function Jt(Ft){const or=Ft[0],Zr=Ze.substring(Ft.index),lr=Ct(Rr,Ft,Zr);if(!lr)return $;const $n=Rr;Rr.endScope&&Rr.endScope._wrap?(Me(),ze(or,Rr.endScope._wrap)):Rr.endScope&&Rr.endScope._multi?(Me(),Ye(Rr.endScope,Ft)):$n.skip?Cn+=or:($n.returnEnd||$n.excludeEnd||(Cn+=or),Me(),$n.excludeEnd&&(Cn=or));do Rr.scope&&Wn.closeNode(),!Rr.skip&&!Rr.subLanguage&&(qa+=Rr.relevance),Rr=Rr.parent;while(Rr!==lr.parent);return lr.starts&&et(lr.starts,Ft),$n.returnEnd?0:or.length}function ar(){const Ft=[];for(let or=Rr;or!==dn;or=or.parent)or.scope&&Ft.unshift(or.scope);Ft.forEach(or=>Wn.openNode(or))}let Nr={};function rn(Ft,or){const Zr=or&&or[0];if(Cn+=Ft,Zr==null)return Me(),0;if(Nr.type==="begin"&&or.type==="end"&&Nr.index===or.index&&Zr===""){if(Cn+=Ze.slice(or.index,or.index+1),!ft){const lr=new Error(`0 width match regex (${pt})`);throw lr.languageName=pt,lr.badRule=Nr.rule,lr}return 1}if(Nr=or,or.type==="begin")return Ut(or);if(or.type==="illegal"&&!bt){const lr=new Error('Illegal lexeme "'+Zr+'" for mode "'+(Rr.scope||"<unnamed>")+'"');throw lr.mode=Rr,lr}else if(or.type==="end"){const lr=Jt(or);if(lr!==$)return lr}if(or.type==="illegal"&&Zr==="")return Cn+=`
`,1;if(ht>1e5&&ht>or.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Cn+=Zr,Zr.length}const dn=Ht(pt);if(!dn)throw Ke(wt.replace("{}",pt)),new Error('Unknown language: "'+pt+'"');const kr=ct(dn);let Wr="",Rr=kt||kr;const Gn={},Wn=new it.__emitter(it);ar();let Cn="",qa=0,wa=0,ht=0,Pt=!1;try{if(dn.__emitTokens)dn.__emitTokens(Ze,Wn);else{for(Rr.matcher.considerAll();;){ht++,Pt?Pt=!1:Rr.matcher.considerAll(),Rr.matcher.lastIndex=wa;const Ft=Rr.matcher.exec(Ze);if(!Ft)break;const or=Ze.substring(wa,Ft.index),Zr=rn(or,Ft);wa=Ft.index+Zr}rn(Ze.substring(wa))}return Wn.finalize(),Wr=Wn.toHTML(),{language:pt,value:Wr,relevance:qa,illegal:!1,_emitter:Wn,_top:Rr}}catch(Ft){if(Ft.message&&Ft.message.includes("Illegal"))return{language:pt,value:Et(Ze),illegal:!0,relevance:0,_illegalBy:{message:Ft.message,index:wa,context:Ze.slice(wa-100,wa+100),mode:Ft.mode,resultSoFar:Wr},_emitter:Wn};if(ft)return{language:pt,value:Et(Ze),illegal:!1,relevance:0,errorRaised:Ft,_emitter:Wn,_top:Rr};throw Ft}}function Kr(pt){const Ze={value:Et(pt),illegal:!1,relevance:0,_top:ot,_emitter:new it.__emitter(it)};return Ze._emitter.addText(pt),Ze}function Vr(pt,Ze){Ze=Ze||it.languages||Object.keys(Be);const bt=Kr(pt),kt=Ze.filter(Ht).filter(er).map(Me=>Tr(Me,pt,!1));kt.unshift(bt);const Wt=kt.sort((Me,ze)=>{if(Me.relevance!==ze.relevance)return ze.relevance-Me.relevance;if(Me.language&&ze.language){if(Ht(Me.language).supersetOf===ze.language)return 1;if(Ht(ze.language).supersetOf===Me.language)return-1}return 0}),[St,pe]=Wt,ke=St;return ke.secondBest=pe,ke}function Pr(pt,Ze,bt){const kt=Ze&&Xe[Ze]||bt;pt.classList.add("hljs"),pt.classList.add(`language-${kt}`)}function mr(pt){let Ze=null;const bt=qt(pt);if(vt(bt))return;if(pn("before:highlightElement",{el:pt,language:bt}),pt.dataset.highlighted){console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",pt);return}if(pt.children.length>0&&(it.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(pt)),it.throwUnescapedHTML))throw new Ee("One of your code blocks includes unescaped HTML.",pt.innerHTML);Ze=pt;const kt=Ze.textContent,Wt=bt?Xt(kt,{language:bt,ignoreIllegals:!0}):Vr(kt);pt.innerHTML=Wt.value,pt.dataset.highlighted="yes",Pr(pt,bt,Wt.language),pt.result={language:Wt.language,re:Wt.relevance,relevance:Wt.relevance},Wt.secondBest&&(pt.secondBest={language:Wt.secondBest.language,relevance:Wt.secondBest.relevance}),pn("after:highlightElement",{el:pt,result:Wt,text:kt})}function xr(pt){it=Yt(it,pt)}const Ir=()=>{Sr(),tt("10.6.0","initHighlighting() deprecated.  Use highlightAll() now.")};function Fr(){Sr(),tt("10.6.0","initHighlightingOnLoad() deprecated.  Use highlightAll() now.")}let br=!1;function Sr(){function pt(){Sr()}if(document.readyState==="loading"){br||window.addEventListener("DOMContentLoaded",pt,!1),br=!0;return}document.querySelectorAll(it.cssSelector).forEach(mr)}function fr(pt,Ze){let bt=null;try{bt=Ze(ie)}catch(kt){if(Ke("Language definition for '{}' could not be registered.".replace("{}",pt)),ft)Ke(kt);else throw kt;bt=ot}bt.name||(bt.name=pt),Be[pt]=bt,bt.rawDefinition=Ze.bind(null,ie),bt.aliases&&Gt(bt.aliases,{languageName:pt})}function Cr(pt){delete Be[pt];for(const Ze of Object.keys(Xe))Xe[Ze]===pt&&delete Xe[Ze]}function hr(){return Object.keys(Be)}function Ht(pt){return pt=(pt||"").toLowerCase(),Be[pt]||Be[Xe[pt]]}function Gt(pt,{languageName:Ze}){typeof pt=="string"&&(pt=[pt]),pt.forEach(bt=>{Xe[bt.toLowerCase()]=Ze})}function er(pt){const Ze=Ht(pt);return Ze&&!Ze.disableAutodetect}function Qr(pt){pt["before:highlightBlock"]&&!pt["before:highlightElement"]&&(pt["before:highlightElement"]=Ze=>{pt["before:highlightBlock"](Object.assign({block:Ze.el},Ze))}),pt["after:highlightBlock"]&&!pt["after:highlightElement"]&&(pt["after:highlightElement"]=Ze=>{pt["after:highlightBlock"](Object.assign({block:Ze.el},Ze))})}function Hr(pt){Qr(pt),Oe.push(pt)}function vn(pt){const Ze=Oe.indexOf(pt);Ze!==-1&&Oe.splice(Ze,1)}function pn(pt,Ze){const bt=pt;Oe.forEach(function(kt){kt[bt]&&kt[bt](Ze)})}function Qn(pt){return tt("10.7.0","highlightBlock will be removed entirely in v12.0"),tt("10.7.0","Please use highlightElement now."),mr(pt)}Object.assign(ie,{highlight:Xt,highlightAuto:Vr,highlightAll:Sr,highlightElement:mr,highlightBlock:Qn,configure:xr,initHighlighting:Ir,initHighlightingOnLoad:Fr,registerLanguage:fr,unregisterLanguage:Cr,listLanguages:hr,getLanguage:Ht,registerAliases:Gt,autoDetection:er,inherit:Yt,addPlugin:Hr,removePlugin:vn}),ie.debugMode=function(){ft=!1},ie.safeMode=function(){ft=!0},ie.versionString=Ge,ie.regex={concat:g,lookahead:d,either:m,optional:h,anyNumberOfTimes:f};for(const pt in fe)typeof fe[pt]=="object"&&e(fe[pt]);return Object.assign(ie,fe),ie},ue=je({});return ue.newInstance=()=>je({}),N_=ue,ue.HighlightJS=ue,ue.default=ue,N_}var nLe=rLe();const dz=gn(nLe);function aLe(e){const t=e.regex,r=e.COMMENT("--","$"),n={scope:"string",variants:[{begin:/'/,end:/'/,contains:[{match:/''/}]}]},a={begin:/"/,end:/"/,contains:[{match:/""/}]},i=["true","false","unknown"],o=["double precision","large object","with timezone","without timezone"],s=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],A=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],u=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],d=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],f=A,h=[...c,...l].filter(B=>!A.includes(B)),g={scope:"variable",match:/@[a-z0-9][a-z0-9_]*/},p={scope:"operator",match:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},m={match:t.concat(/\b/,t.either(...f),/\s*\(/),relevance:0,keywords:{built_in:f}};function y(B){return t.concat(/\b/,t.either(...B.map(x=>x.replace(/\s+/,"\\s+"))),/\b/)}const C={scope:"keyword",match:y(d),relevance:0};function w(B,{exceptions:x,when:M}={}){const S=M;return x=x||[],B.map(R=>R.match(/\|\d+$/)||x.includes(R)?R:S(R)?`${R}|0`:R)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:w(h,{when:B=>B.length<3}),literal:i,type:s,built_in:u},contains:[{scope:"type",match:y(o)},C,m,g,n,a,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,r,p]}}function Vn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function XX(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yhe(n.key),n)}}function Jn(e,t,r){return t&&XX(e.prototype,t),r&&XX(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AA(e,t){if(t&&(Ar(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Bt(e)}function Rd(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rd=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pi(e)}function fa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DR(e,t)}var iLe=Symbol.for("react.element"),oLe=Symbol.for("react.transitional.element"),sLe=Symbol.for("react.fragment");function Mme(e){return e&&Ar(e)==="object"&&(e.$$typeof===iLe||e.$$typeof===oLe)&&e.type===sLe}function Vo(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[];return le.Children.forEach(e,function(n){n==null&&!t.keepEmpty||(Array.isArray(n)?r=r.concat(Vo(n)):Mme(n)&&n.props?r=r.concat(Vo(n.props.children,t)):r.push(n))}),r}function qX(e){return e instanceof HTMLElement||e instanceof SVGElement}function lLe(e){return e&&Ar(e)==="object"&&qX(e.nativeElement)?e.nativeElement:qX(e)?e:null}function Rw(e){var t=lLe(e);if(t)return t;if(e instanceof le.Component){var r;return(r=Ql.findDOMNode)===null||r===void 0?void 0:r.call(Ql,e)}return null}var __={exports:{}},Na={};/**
 * @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 ZX;function cLe(){if(ZX)return Na;ZX=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),h;h=Symbol.for("react.module.reference");function g(p){if(typeof p=="object"&&p!==null){var m=p.$$typeof;switch(m){case e:switch(p=p.type,p){case r:case a:case n:case c:case A:return p;default:switch(p=p&&p.$$typeof,p){case s:case o:case l:case d:case u:case i:return p;default:return m}}case t:return m}}}return Na.ContextConsumer=o,Na.ContextProvider=i,Na.Element=e,Na.ForwardRef=l,Na.Fragment=r,Na.Lazy=d,Na.Memo=u,Na.Portal=t,Na.Profiler=a,Na.StrictMode=n,Na.Suspense=c,Na.SuspenseList=A,Na.isAsyncMode=function(){return!1},Na.isConcurrentMode=function(){return!1},Na.isContextConsumer=function(p){return g(p)===o},Na.isContextProvider=function(p){return g(p)===i},Na.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},Na.isForwardRef=function(p){return g(p)===l},Na.isFragment=function(p){return g(p)===r},Na.isLazy=function(p){return g(p)===d},Na.isMemo=function(p){return g(p)===u},Na.isPortal=function(p){return g(p)===t},Na.isProfiler=function(p){return g(p)===a},Na.isStrictMode=function(p){return g(p)===n},Na.isSuspense=function(p){return g(p)===c},Na.isSuspenseList=function(p){return g(p)===A},Na.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===a||p===n||p===c||p===A||p===f||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===u||p.$$typeof===i||p.$$typeof===o||p.$$typeof===l||p.$$typeof===h||p.getModuleId!==void 0)},Na.typeOf=g,Na}var $X;function Ime(){return $X||($X=1,__.exports=cLe()),__.exports}var k_=Ime();function am(e,t,r){var n=E.useRef({});return(!("value"in n.current)||r(n.current.condition,t))&&(n.current.value=e(),n.current.condition=t),n.current.value}var ALe=Number(E.version.split(".")[0]),UR=function(t,r){typeof t=="function"?t(r):Ar(t)==="object"&&t&&"current"in t&&(t.current=r)},Ec=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var a=r.filter(Boolean);return a.length<=1?a[0]:function(i){r.forEach(function(o){UR(o,i)})}},cx=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return am(function(){return Ec.apply(void 0,r)},r,function(a,i){return a.length!==i.length||a.every(function(o,s){return o!==i[s]})})},im=function(t){var r,n;if(!t)return!1;if(bme(t)&&ALe>=19)return!0;var a=k_.isMemo(t)?t.type.type:t.type;return!(typeof a=="function"&&!((r=a.prototype)!==null&&r!==void 0&&r.render)&&a.$$typeof!==k_.ForwardRef||typeof t=="function"&&!((n=t.prototype)!==null&&n!==void 0&&n.render)&&t.$$typeof!==k_.ForwardRef)};function bme(e){return E.isValidElement(e)&&!Mme(e)}var Sme=function(t){if(t&&bme(t)){var r=t;return r.props.propertyIsEnumerable("ref")?r.props.ref:r.ref}return null},fz=E.createContext(null);function uLe(e){var t=e.children,r=e.onBatchResize,n=E.useRef(0),a=E.useRef([]),i=E.useContext(fz),o=E.useCallback(function(s,l,c){n.current+=1;var A=n.current;a.current.push({size:s,element:l,data:c}),Promise.resolve().then(function(){A===n.current&&(r?.(a.current),a.current=[])}),i?.(s,l,c)},[r,i]);return E.createElement(fz.Provider,{value:o},t)}var Rme=(function(){if(typeof Map<"u")return Map;function e(t,r){var n=-1;return t.some(function(a,i){return a[0]===r?(n=i,!0):!1}),n}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(r){var n=e(this.__entries__,r),a=this.__entries__[n];return a&&a[1]},t.prototype.set=function(r,n){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=n:this.__entries__.push([r,n])},t.prototype.delete=function(r){var n=this.__entries__,a=e(n,r);~a&&n.splice(a,1)},t.prototype.has=function(r){return!!~e(this.__entries__,r)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(r,n){n===void 0&&(n=null);for(var a=0,i=this.__entries__;a<i.length;a++){var o=i[a];r.call(n,o[1],o[0])}},t})()})(),hz=typeof window<"u"&&typeof document<"u"&&window.document===document,HR=(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")()})(),dLe=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(HR):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}})(),fLe=2;function hLe(e,t){var r=!1,n=!1,a=0;function i(){r&&(r=!1,e()),n&&s()}function o(){dLe(i)}function s(){var l=Date.now();if(r){if(l-a<fLe)return;n=!0}else r=!0,n=!1,setTimeout(o,t);a=l}return s}var gLe=20,pLe=["top","right","bottom","left","width","height","size","weight"],vLe=typeof MutationObserver<"u",mLe=(function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=hLe(this.refresh.bind(this),gLe)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var r=this.observers_,n=r.indexOf(t);~n&&r.splice(n,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return t.forEach(function(r){return r.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!hz||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),vLe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!hz||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,a=pLe.some(function(i){return!!~n.indexOf(i)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),Tme=(function(e,t){for(var r=0,n=Object.keys(t);r<n.length;r++){var a=n[r];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e}),VE=(function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||HR}),Qme=OQ(0,0,0,0);function GR(e){return parseFloat(e)||0}function eq(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t.reduce(function(n,a){var i=e["border-"+a+"-width"];return n+GR(i)},0)}function ELe(e){for(var t=["top","right","bottom","left"],r={},n=0,a=t;n<a.length;n++){var i=a[n],o=e["padding-"+i];r[i]=GR(o)}return r}function yLe(e){var t=e.getBBox();return OQ(0,0,t.width,t.height)}function CLe(e){var t=e.clientWidth,r=e.clientHeight;if(!t&&!r)return Qme;var n=VE(e).getComputedStyle(e),a=ELe(n),i=a.left+a.right,o=a.top+a.bottom,s=GR(n.width),l=GR(n.height);if(n.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=eq(n,"left","right")+i),Math.round(l+o)!==r&&(l-=eq(n,"top","bottom")+o)),!BLe(e)){var c=Math.round(s+i)-t,A=Math.round(l+o)-r;Math.abs(c)!==1&&(s-=c),Math.abs(A)!==1&&(l-=A)}return OQ(a.left,a.top,s,l)}var wLe=(function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof VE(e).SVGGraphicsElement}:function(e){return e instanceof VE(e).SVGElement&&typeof e.getBBox=="function"}})();function BLe(e){return e===VE(e).document.documentElement}function xLe(e){return hz?wLe(e)?yLe(e):CLe(e):Qme}function MLe(e){var t=e.x,r=e.y,n=e.width,a=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(i.prototype);return Tme(o,{x:t,y:r,width:n,height:a,top:r,right:t+n,bottom:a+r,left:t}),o}function OQ(e,t,r,n){return{x:e,y:t,width:r,height:n}}var ILe=(function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=OQ(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=xLe(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e})(),bLe=(function(){function e(t,r){var n=MLe(r);Tme(this,{target:t,contentRect:n})}return e})(),SLe=(function(){function e(t,r,n){if(this.activeObservations_=[],this.observations_=new Rme,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=r,this.callbackCtx_=n}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof VE(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new ILe(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof VE(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new bLe(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Dme=typeof WeakMap<"u"?new WeakMap:new Rme,Fme=(function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=mLe.getInstance(),n=new SLe(t,r,this);Dme.set(this,n)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Fme.prototype[e]=function(){var t;return(t=Dme.get(this))[e].apply(t,arguments)}});var o7=(function(){return typeof HR.ResizeObserver<"u"?HR.ResizeObserver:Fme})(),sg=new Map;function RLe(e){e.forEach(function(t){var r,n=t.target;(r=sg.get(n))===null||r===void 0||r.forEach(function(a){return a(n)})})}var Nme=new o7(RLe);function TLe(e,t){sg.has(e)||(sg.set(e,new Set),Nme.observe(e)),sg.get(e).add(t)}function QLe(e,t){sg.has(e)&&(sg.get(e).delete(t),sg.get(e).size||(Nme.unobserve(e),sg.delete(e)))}function pi(e){var t=Rd();return function(){var r,n=Pi(e);if(t){var a=Pi(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return AA(this,r)}}var DLe=(function(e){fa(r,e);var t=pi(r);function r(){return Vn(this,r),t.apply(this,arguments)}return Jn(r,[{key:"render",value:function(){return this.props.children}}]),r})(E.Component);function FLe(e,t){var r=e.children,n=e.disabled,a=E.useRef(null),i=E.useRef(null),o=E.useContext(fz),s=typeof r=="function",l=s?r(a):r,c=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),A=!s&&E.isValidElement(l)&&im(l),u=A?Sme(l):null,d=cx(u,a),f=function(){var m;return Rw(a.current)||(a.current&&Ar(a.current)==="object"?Rw((m=a.current)===null||m===void 0?void 0:m.nativeElement):null)||Rw(i.current)};E.useImperativeHandle(t,function(){return f()});var h=E.useRef(e);h.current=e;var g=E.useCallback(function(p){var m=h.current,y=m.onResize,C=m.data,w=p.getBoundingClientRect(),B=w.width,x=w.height,M=p.offsetWidth,S=p.offsetHeight,R=Math.floor(B),b=Math.floor(x);if(c.current.width!==R||c.current.height!==b||c.current.offsetWidth!==M||c.current.offsetHeight!==S){var T={width:R,height:b,offsetWidth:M,offsetHeight:S};c.current=T;var D=M===Math.round(B)?B:M,F=S===Math.round(x)?x:S,N=se(se({},T),{},{offsetWidth:D,offsetHeight:F});o?.(N,p,C),y&&Promise.resolve().then(function(){y(N,p)})}},[]);return E.useEffect(function(){var p=f();return p&&!n&&TLe(p,g),function(){return QLe(p,g)}},[a.current,n]),E.createElement(DLe,{ref:i},A?E.cloneElement(l,{ref:d}):l)}var NLe=E.forwardRef(FLe),_Le="rc-observer-key";function kLe(e,t){var r=e.children,n=typeof r=="function"?[r]:Vo(r);return n.map(function(a,i){var o=a?.key||"".concat(_Le,"-").concat(i);return E.createElement(NLe,ge({},e,{key:o,ref:i===0?t:void 0}),a)})}var $c=E.forwardRef(kLe);$c.Collection=uLe;function ji(e,t){var r=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(n){delete r[n]}),r}function PLe(e){if(Array.isArray(e))return Lj(e)}function _me(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OLe(){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 ir(e){return PLe(e)||_me(e)||yY(e)||OLe()}function s7(e){return Che(e)||_me(e)||yY(e)||whe()}function $A(e,t){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;r=r[t[n]]}return r}function kme(e,t,r,n){if(!t.length)return r;var a=s7(t),i=a[0],o=a.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=ir(e):s=se({},e),n&&r===void 0&&o.length===1?delete s[i][o[0]]:s[i]=kme(s[i],o,r,n),s}function KA(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!$A(e,t.slice(0,-1))?e:kme(e,t,r,n)}function jLe(e){return Ar(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function tq(e){return Array.isArray(e)?[]:{}}var zLe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function oE(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=tq(t[0]);return t.forEach(function(a){function i(o,s){var l=new Set(s),c=$A(a,o),A=Array.isArray(c);if(A||jLe(c)){if(!l.has(c)){l.add(c);var u=$A(n,o);A?n=KA(n,o,[]):(!u||Ar(u)!=="object")&&(n=KA(n,o,tq(c))),zLe(c).forEach(function(d){i([].concat(ir(o),[d]),l)})}}else n=KA(n,o,c)}i([])}),n}const Pme=E.createContext(void 0),Ome={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"};var LLe={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",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"},jme={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},KR={lang:ge({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"]},LLe),timePickerLocale:ge({},jme)},ec="${label} is not a valid ${type}",eA={locale:"en",Pagination:Ome,DatePicker:KR,TimePicker:jme,Calendar:KR,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"},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",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"},PageHeader:{back:"Back"},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:ec,method:ec,array:ec,object:ec,number:ec,date:ec,boolean:ec,integer:ec,float:ec,regexp:ec,email:ec,url:ec,hex:ec},string:{len:"${label} 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"}},US=ge({},eA.Modal);function rq(e){e?US=ge(ge({},US),e):US=ge({},eA.Modal)}function zme(){return US}var l7=E.createContext(void 0),YLe="internalMark",ULe=function(t){var r=t.locale,n=r===void 0?{}:r,a=t.children;t._ANT_MARK__,E.useEffect(function(){return rq(n&&n.Modal),function(){rq()}},[n]);var i=E.useMemo(function(){return ge(ge({},n),{exist:!0})},[n]);return E.createElement(l7.Provider,{value:i},a)},Td=function(t){var r=t.componentName,n=r===void 0?"global":r,a=t.defaultLocale,i=t.children,o=E.useContext(l7),s=E.useMemo(function(){var c,A=a||eA[n],u=(c=o?.[n])!==null&&c!==void 0?c:{};return ge(ge({},A instanceof Function?A():A),u||{})},[n,a,o]),l=E.useMemo(function(){var c=o&&o.locale;return o&&o.exist&&!c?eA.locale:c},[o]);return i(s,l,o)},Lme=function(t,r){var n=E.useContext(l7),a=E.useMemo(function(){var i,o=eA[t],s=(i=n?.[t])!==null&&i!==void 0?i:{};return ge(ge({},typeof o=="function"?o():o),s||{})},[t,r,n]);return[a]};function Yme(e,t){this.v=e,this.k=t}function Rs(e,t,r,n){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}Rs=function(o,s,l,c){function A(u,d){Rs(o,u,function(f){return this._invoke(u,d,f)})}s?a?a(o,s,{value:l,enumerable:!c,configurable:!c,writable:!c}):o[s]=l:(A("next",0),A("throw",1),A("return",2))},Rs(e,t,r,n)}function c7(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r=typeof Symbol=="function"?Symbol:{},n=r.iterator||"@@iterator",a=r.toStringTag||"@@toStringTag";function i(f,h,g,p){var m=h&&h.prototype instanceof s?h:s,y=Object.create(m.prototype);return Rs(y,"_invoke",(function(C,w,B){var x,M,S,R=0,b=B||[],T=!1,D={p:0,n:0,v:e,a:F,f:F.bind(e,4),d:function(_,P){return x=_,M=0,S=e,D.n=P,o}};function F(N,_){for(M=N,S=_,t=0;!T&&R&&!P&&t<b.length;t++){var P,k=b[t],j=D.p,Y=k[2];N>3?(P=Y===_)&&(S=k[(M=k[4])?5:(M=3,3)],k[4]=k[5]=e):k[0]<=j&&((P=N<2&&j<k[1])?(M=0,D.v=_,D.n=k[1]):j<Y&&(P=N<3||k[0]>_||_>Y)&&(k[4]=N,k[5]=_,D.n=Y,M=0))}if(P||N>1)return o;throw T=!0,_}return function(N,_,P){if(R>1)throw TypeError("Generator is already running");for(T&&_===1&&F(_,P),M=_,S=P;(t=M<2?e:S)||!T;){x||(M?M<3?(M>1&&(D.n=-1),F(M,S)):D.n=S:D.v=S);try{if(R=2,x){if(M||(N="next"),t=x[N]){if(!(t=t.call(x,S)))throw TypeError("iterator result is not an object");if(!t.done)return t;S=t.value,M<2&&(M=0)}else M===1&&(t=x.return)&&t.call(x),M<2&&(S=TypeError("The iterator does not provide a '"+N+"' method"),M=1);x=e}else if((t=(T=D.n<0)?S:C.call(w,D))!==o)break}catch(k){x=e,M=1,S=k}finally{R=1}}return{value:t,done:T}}})(f,g,p),!0),y}var o={};function s(){}function l(){}function c(){}t=Object.getPrototypeOf;var A=[][n]?t(t([][n]())):(Rs(t={},n,function(){return this}),t),u=c.prototype=s.prototype=Object.create(A);function d(f){return Object.setPrototypeOf?Object.setPrototypeOf(f,c):(f.__proto__=c,Rs(f,a,"GeneratorFunction")),f.prototype=Object.create(u),f}return l.prototype=c,Rs(u,"constructor",c),Rs(c,"constructor",l),l.displayName="GeneratorFunction",Rs(c,a,"GeneratorFunction"),Rs(u),Rs(u,a,"Generator"),Rs(u,n,function(){return this}),Rs(u,"toString",function(){return"[object Generator]"}),(c7=function(){return{w:i,m:d}})()}function VR(e,t){function r(a,i,o,s){try{var l=e[a](i),c=l.value;return c instanceof Yme?t.resolve(c.v).then(function(A){r("next",A,o,s)},function(A){r("throw",A,o,s)}):t.resolve(c).then(function(A){l.value=A,o(l)},function(A){return r("throw",A,o,s)})}catch(A){s(A)}}var n;this.next||(Rs(VR.prototype),Rs(VR.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),Rs(this,"_invoke",function(a,i,o){function s(){return new t(function(l,c){r(a,o,l,c)})}return n=n?n.then(s,s):s()},!0)}function Ume(e,t,r,n,a){return new VR(c7().w(e,t,r,n),a||Promise)}function HLe(e,t,r,n,a){var i=Ume(e,t,r,n,a);return i.next().then(function(o){return o.done?o.value:i.next()})}function GLe(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function a(){for(;r.length;)if((n=r.pop())in t)return a.value=n,a.done=!1,a;return a.done=!0,a}}function nq(e){if(e!=null){var t=e[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],r=0;if(t)return t.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}}}throw new TypeError(Ar(e)+" is not iterable")}function Jo(){var e=c7(),t=e.m(Jo),r=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function n(o){var s=typeof o=="function"&&o.constructor;return!!s&&(s===r||(s.displayName||s.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(o){var s,l;return function(c){s||(s={stop:function(){return l(c.a,2)},catch:function(){return c.v},abrupt:function(u,d){return l(c.a,a[u],d)},delegateYield:function(u,d,f){return s.resultName=d,l(c.d,nq(u),f)},finish:function(u){return l(c.f,u)}},l=function(u,d,f){c.p=s.prev,c.n=s.next;try{return u(d,f)}finally{s.next=c.n}}),s.resultName&&(s[s.resultName]=c.v,s.resultName=void 0),s.sent=c.v,s.next=c.n;try{return o.call(this,s)}finally{c.p=s.prev,c.n=s.next}}}return(Jo=function(){return{wrap:function(l,c,A,u){return e.w(i(l),c,A,u&&u.reverse())},isGeneratorFunction:n,mark:e.m,awrap:function(l,c){return new Yme(l,c)},AsyncIterator:VR,async:function(l,c,A,u,d){return(n(c)?Ume:HLe)(i(l),c,A,u,d)},keys:GLe,values:nq}})()}function aq(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,a)}function zg(e){return function(){var t=this,r=arguments;return new Promise(function(n,a){var i=e.apply(t,r);function o(l){aq(i,n,a,o,s,"next",l)}function s(l){aq(i,n,a,o,s,"throw",l)}o(void 0)})}}var Ax=se({},t4e),KLe=Ax.version,P_=Ax.render,VLe=Ax.unmountComponentAtNode,jQ;try{var JLe=Number((KLe||"").split(".")[0]);JLe>=18&&(jQ=Ax.createRoot)}catch{}function iq(e){var t=Ax.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&Ar(t)==="object"&&(t.usingClientEntryPoint=e)}var JR="__rc_react_root__";function WLe(e,t){iq(!0);var r=t[JR]||jQ(t);iq(!1),r.render(e),t[JR]=r}function XLe(e,t){P_?.(e,t)}function Hme(e,t){if(jQ){WLe(e,t);return}XLe(e,t)}function qLe(e){return gz.apply(this,arguments)}function gz(){return gz=zg(Jo().mark(function e(t){return Jo().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.resolve().then(function(){var a;(a=t[JR])===null||a===void 0||a.unmount(),delete t[JR]}));case 1:case"end":return n.stop()}},e)})),gz.apply(this,arguments)}function ZLe(e){VLe(e)}function Gme(e){return pz.apply(this,arguments)}function pz(){return pz=zg(Jo().mark(function e(t){return Jo().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(jQ===void 0){n.next=2;break}return n.abrupt("return",qLe(t));case 2:ZLe(t);case 3:case"end":return n.stop()}},e)})),pz.apply(this,arguments)}var $Le=["children"],Kme=E.createContext({});function eYe(e){var t=e.children,r=An(e,$Le);return E.createElement(Kme.Provider,{value:r},t)}var tYe=(function(e){fa(r,e);var t=pi(r);function r(){return Vn(this,r),t.apply(this,arguments)}return Jn(r,[{key:"render",value:function(){return this.props.children}}]),r})(E.Component);function tA(e){var t=E.useRef();t.current=e;var r=E.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return r}var oq=_s()?E.useLayoutEffect:E.useEffect,Wa=function(t,r){var n=E.useRef(!0);oq(function(){return t(n.current)},r),oq(function(){return n.current=!1,function(){n.current=!0}},[])},mE=function(t,r){Wa(function(n){if(!n)return t()},r)};function Bg(e){var t=E.useRef(!1),r=E.useState(e),n=Je(r,2),a=n[0],i=n[1];E.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function o(s,l){l&&t.current||i(s)}return[a,o]}function O_(e){return e!==void 0}function Ia(e,t){var r=t||{},n=r.defaultValue,a=r.value,i=r.onChange,o=r.postState,s=Bg(function(){return O_(a)?a:O_(n)?typeof n=="function"?n():n:typeof e=="function"?e():e}),l=Je(s,2),c=l[0],A=l[1],u=a!==void 0?a:c,d=o?o(u):u,f=tA(i),h=Bg([u]),g=Je(h,2),p=g[0],m=g[1];mE(function(){var C=p[0];c!==C&&f(c,C)},[p]),mE(function(){O_(a)||A(a)},[a]);var y=tA(function(C,w){A(C,w),m([u],w)});return[d,y]}function rYe(e){var t=E.useReducer(function(s){return s+1},0),r=Je(t,2),n=r[1],a=E.useRef(e),i=tA(function(){return a.current}),o=tA(function(s){a.current=typeof s=="function"?s(a.current):s,n()});return[i,o]}var Vh="none",OM="appear",jM="enter",zM="leave",sq="none",VA="prepare",sE="start",lE="active",A7="end",Vme="prepared";function lq(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit".concat(e)]="webkit".concat(t),r["Moz".concat(e)]="moz".concat(t),r["ms".concat(e)]="MS".concat(t),r["O".concat(e)]="o".concat(t.toLowerCase()),r}function nYe(e,t){var r={animationend:lq("Animation","AnimationEnd"),transitionend:lq("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete r.animationend.animation,"TransitionEvent"in t||delete r.transitionend.transition),r}var aYe=nYe(_s(),typeof window<"u"?window:{}),Jme={};if(_s()){var iYe=document.createElement("div");Jme=iYe.style}var LM={};function Wme(e){if(LM[e])return LM[e];var t=aYe[e];if(t)for(var r=Object.keys(t),n=r.length,a=0;a<n;a+=1){var i=r[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in Jme)return LM[e]=t[i],LM[e]}return""}var Xme=Wme("animationend"),qme=Wme("transitionend"),Zme=!!(Xme&&qme),cq=Xme||"animationend",Aq=qme||"transitionend";function uq(e,t){if(!e)return null;if(Ar(e)==="object"){var r=t.replace(/-\w/g,function(n){return n[1].toUpperCase()});return e[r]}return"".concat(e,"-").concat(t)}const oYe=(function(e){var t=E.useRef();function r(a){a&&(a.removeEventListener(Aq,e),a.removeEventListener(cq,e))}function n(a){t.current&&t.current!==a&&r(t.current),a&&a!==t.current&&(a.addEventListener(Aq,e),a.addEventListener(cq,e),t.current=a)}return E.useEffect(function(){return function(){r(t.current)}},[]),[n,r]});var $me=_s()?E.useLayoutEffect:E.useEffect,e0e=function(t){return+setTimeout(t,16)},t0e=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(e0e=function(t){return window.requestAnimationFrame(t)},t0e=function(t){return window.cancelAnimationFrame(t)});var dq=0,u7=new Map;function r0e(e){u7.delete(e)}var ta=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;dq+=1;var n=dq;function a(i){if(i===0)r0e(n),t();else{var o=e0e(function(){a(i-1)});u7.set(n,o)}}return a(r),n};ta.cancel=function(e){var t=u7.get(e);return r0e(e),t0e(t)};const sYe=(function(){var e=E.useRef(null);function t(){ta.cancel(e.current)}function r(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ta(function(){a<=1?n({isCanceled:function(){return i!==e.current}}):r(n,a-1)});e.current=i}return E.useEffect(function(){return function(){t()}},[]),[r,t]});var lYe=[VA,sE,lE,A7],cYe=[VA,Vme],n0e=!1,AYe=!0;function a0e(e){return e===lE||e===A7}const uYe=(function(e,t,r){var n=Bg(sq),a=Je(n,2),i=a[0],o=a[1],s=sYe(),l=Je(s,2),c=l[0],A=l[1];function u(){o(VA,!0)}var d=t?cYe:lYe;return $me(function(){if(i!==sq&&i!==A7){var f=d.indexOf(i),h=d[f+1],g=r(i);g===n0e?o(h,!0):h&&c(function(p){function m(){p.isCanceled()||o(h,!0)}g===!0?m():Promise.resolve(g).then(m)})}},[e,i]),E.useEffect(function(){return function(){A()}},[]),[u,i]});function dYe(e,t,r,n){var a=n.motionEnter,i=a===void 0?!0:a,o=n.motionAppear,s=o===void 0?!0:o,l=n.motionLeave,c=l===void 0?!0:l,A=n.motionDeadline,u=n.motionLeaveImmediately,d=n.onAppearPrepare,f=n.onEnterPrepare,h=n.onLeavePrepare,g=n.onAppearStart,p=n.onEnterStart,m=n.onLeaveStart,y=n.onAppearActive,C=n.onEnterActive,w=n.onLeaveActive,B=n.onAppearEnd,x=n.onEnterEnd,M=n.onLeaveEnd,S=n.onVisibleChanged,R=Bg(),b=Je(R,2),T=b[0],D=b[1],F=rYe(Vh),N=Je(F,2),_=N[0],P=N[1],k=Bg(null),j=Je(k,2),Y=j[0],X=j[1],K=_(),U=E.useRef(!1),H=E.useRef(null);function L(){return r()}var V=E.useRef(!1);function J(){P(Vh),X(null,!0)}var ee=tA(function(we){var Re=_();if(Re!==Vh){var Te=L();if(!(we&&!we.deadline&&we.target!==Te)){var Ke=V.current,mt;Re===OM&&Ke?mt=B?.(Te,we):Re===jM&&Ke?mt=x?.(Te,we):Re===zM&&Ke&&(mt=M?.(Te,we)),Ke&&mt!==!1&&J()}}}),ae=oYe(ee),ne=Je(ae,1),fe=ne[0],he=function(Re){switch(Re){case OM:return te(te(te({},VA,d),sE,g),lE,y);case jM:return te(te(te({},VA,f),sE,p),lE,C);case zM:return te(te(te({},VA,h),sE,m),lE,w);default:return{}}},ye=E.useMemo(function(){return he(K)},[K]),be=uYe(K,!e,function(we){if(we===VA){var Re=ye[VA];return Re?Re(L()):n0e}if(de in ye){var Te;X(((Te=ye[de])===null||Te===void 0?void 0:Te.call(ye,L(),null))||null)}return de===lE&&K!==Vh&&(fe(L()),A>0&&(clearTimeout(H.current),H.current=setTimeout(function(){ee({deadline:!0})},A))),de===Vme&&J(),AYe}),Se=Je(be,2),ve=Se[0],de=Se[1],Ue=a0e(de);V.current=Ue;var at=E.useRef(null);$me(function(){if(!(U.current&&at.current===t)){D(t);var we=U.current;U.current=!0;var Re;!we&&t&&s&&(Re=OM),we&&t&&i&&(Re=jM),(we&&!t&&c||!we&&u&&!t&&c)&&(Re=zM);var Te=he(Re);Re&&(e||Te[VA])?(P(Re),ve()):P(Vh),at.current=t}},[t]),E.useEffect(function(){(K===OM&&!s||K===jM&&!i||K===zM&&!c)&&P(Vh)},[s,i,c]),E.useEffect(function(){return function(){U.current=!1,clearTimeout(H.current)}},[]);var Ve=E.useRef(!1);E.useEffect(function(){T&&(Ve.current=!0),T!==void 0&&K===Vh&&((Ve.current||T)&&S?.(T),Ve.current=!0)},[T,K]);var Ie=Y;return ye[VA]&&de===sE&&(Ie=se({transition:"none"},Ie)),[K,de,Ie,T??t]}function fYe(e){var t=e;Ar(e)==="object"&&(t=e.transitionSupport);function r(a,i){return!!(a.motionName&&t&&i!==!1)}var n=E.forwardRef(function(a,i){var o=a.visible,s=o===void 0?!0:o,l=a.removeOnLeave,c=l===void 0?!0:l,A=a.forceRender,u=a.children,d=a.motionName,f=a.leavedClassName,h=a.eventProps,g=E.useContext(Kme),p=g.motion,m=r(a,p),y=E.useRef(),C=E.useRef();function w(){try{return y.current instanceof HTMLElement?y.current:Rw(C.current)}catch{return null}}var B=dYe(m,s,w,a),x=Je(B,4),M=x[0],S=x[1],R=x[2],b=x[3],T=E.useRef(b);b&&(T.current=!0);var D=E.useCallback(function(j){y.current=j,UR(i,j)},[i]),F,N=se(se({},h),{},{visible:s});if(!u)F=null;else if(M===Vh)b?F=u(se({},N),D):!c&&T.current&&f?F=u(se(se({},N),{},{className:f}),D):A||!c&&!f?F=u(se(se({},N),{},{style:{display:"none"}}),D):F=null;else{var _;S===VA?_="prepare":a0e(S)?_="active":S===sE&&(_="start");var P=uq(d,"".concat(M,"-").concat(_));F=u(se(se({},N),{},{className:dt(uq(d,M),te(te({},P,P&&_),d,typeof d=="string")),style:R}),D)}if(E.isValidElement(F)&&im(F)){var k=Sme(F);k||(F=E.cloneElement(F,{ref:D}))}return E.createElement(tYe,{ref:C},F)});return n.displayName="CSSMotion",n}const us=fYe(Zme);var vz="add",mz="keep",Ez="remove",j_="removed";function hYe(e){var t;return e&&Ar(e)==="object"&&"key"in e?t=e:t={key:e},se(se({},t),{},{key:String(t.key)})}function yz(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(hYe)}function gYe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=[],n=0,a=t.length,i=yz(e),o=yz(t);i.forEach(function(c){for(var A=!1,u=n;u<a;u+=1){var d=o[u];if(d.key===c.key){n<u&&(r=r.concat(o.slice(n,u).map(function(f){return se(se({},f),{},{status:vz})})),n=u),r.push(se(se({},d),{},{status:mz})),n+=1,A=!0;break}}A||r.push(se(se({},c),{},{status:Ez}))}),n<a&&(r=r.concat(o.slice(n).map(function(c){return se(se({},c),{},{status:vz})})));var s={};r.forEach(function(c){var A=c.key;s[A]=(s[A]||0)+1});var l=Object.keys(s).filter(function(c){return s[c]>1});return l.forEach(function(c){r=r.filter(function(A){var u=A.key,d=A.status;return u!==c||d!==Ez}),r.forEach(function(A){A.key===c&&(A.status=mz)})}),r}var pYe=["component","children","onVisibleChanged","onAllRemoved"],vYe=["status"],mYe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function EYe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:us,r=(function(n){fa(i,n);var a=pi(i);function i(){var o;Vn(this,i);for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return o=a.call.apply(a,[this].concat(l)),te(Bt(o),"state",{keyEntities:[]}),te(Bt(o),"removeKey",function(A){o.setState(function(u){var d=u.keyEntities.map(function(f){return f.key!==A?f:se(se({},f),{},{status:j_})});return{keyEntities:d}},function(){var u=o.state.keyEntities,d=u.filter(function(f){var h=f.status;return h!==j_}).length;d===0&&o.props.onAllRemoved&&o.props.onAllRemoved()})}),o}return Jn(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,c=this.props,A=c.component,u=c.children,d=c.onVisibleChanged;c.onAllRemoved;var f=An(c,pYe),h=A||E.Fragment,g={};return mYe.forEach(function(p){g[p]=f[p],delete f[p]}),delete f.keys,E.createElement(h,f,l.map(function(p,m){var y=p.status,C=An(p,vYe),w=y===vz||y===mz;return E.createElement(t,ge({},g,{key:C.key,visible:w,eventProps:C,onVisibleChanged:function(x){d?.(x,{key:C.key}),x||s.removeKey(C.key)}}),function(B,x){return u(se(se({},B),{},{index:m}),x)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var c=s.keys,A=l.keyEntities,u=yz(c),d=gYe(A,u);return{keyEntities:d.filter(function(f){var h=A.find(function(g){var p=g.key;return f.key===p});return!(h&&h.status===j_&&f.status===Ez)})}}}]),i})(E.Component);return te(r,"defaultProps",{component:"div"}),r}const d7=EYe(Zme),yYe=Object.freeze(Object.defineProperty({__proto__:null,CSSMotionList:d7,Provider:eYe,default:us},Symbol.toStringTag,{value:"Module"}));var f7=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.closeTimer=null,n.close=function(s){s&&s.stopPropagation(),n.clearCloseTimer();var l=n.props,c=l.onClose,A=l.noticeKey;c&&c(A)},n.startCloseTimer=function(){n.props.duration&&(n.closeTimer=window.setTimeout(function(){n.close()},n.props.duration*1e3))},n.clearCloseTimer=function(){n.closeTimer&&(clearTimeout(n.closeTimer),n.closeTimer=null)},n}return Jn(r,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(a){(this.props.duration!==a.duration||this.props.updateMark!==a.updateMark||this.props.visible!==a.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var a=this,i=this.props,o=i.prefixCls,s=i.className,l=i.closable,c=i.closeIcon,A=i.style,u=i.onClick,d=i.children,f=i.holder,h="".concat(o,"-notice"),g=Object.keys(this.props).reduce(function(m,y){return(y.substr(0,5)==="data-"||y.substr(0,5)==="aria-"||y==="role")&&(m[y]=a.props[y]),m},{}),p=E.createElement("div",ge({className:dt(h,s,te({},"".concat(h,"-closable"),l)),style:A,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:u},g),E.createElement("div",{className:"".concat(h,"-content")},d),l?E.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(h,"-close")},c||E.createElement("span",{className:"".concat(h,"-close-x")})):null);return f?Ql.createPortal(p,f):p}}]),r})(E.Component);f7.defaultProps={onClose:function(){},duration:1.5};function h7(e){var t=E.useRef({}),r=E.useState([]),n=Je(r,2),a=n[0],i=n[1];function o(s){var l=!0;e.add(s,function(c,A){var u=A.key;if(c&&(!t.current[u]||l)){var d=E.createElement(f7,ge({},A,{holder:c}));t.current[u]=d,i(function(f){var h=f.findIndex(function(p){return p.key===A.key});if(h===-1)return[].concat(ir(f),[d]);var g=ir(f);return g[h]=d,g})}l=!1})}return[o,E.createElement(E.Fragment,null,a)]}var CYe=["getContainer"],fq=0,wYe=Date.now();function hq(){var e=fq;return fq+=1,"rcNotification_".concat(wYe,"_").concat(e)}var Ov=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.state={notices:[]},n.hookRefs=new Map,n.add=function(s,l){var c,A=(c=s.key)!==null&&c!==void 0?c:hq(),u=se(se({},s),{},{key:A}),d=n.props.maxCount;n.setState(function(f){var h=f.notices,g=h.map(function(m){return m.notice.key}).indexOf(A),p=h.concat();return g!==-1?p.splice(g,1,{notice:u,holderCallback:l}):(d&&h.length>=d&&(u.key=p[0].notice.key,u.updateMark=hq(),u.userPassKey=A,p.shift()),p.push({notice:u,holderCallback:l})),{notices:p}})},n.remove=function(s){n.setState(function(l){var c=l.notices;return{notices:c.filter(function(A){var u=A.notice,d=u.key,f=u.userPassKey,h=f??d;return h!==s})}})},n.noticePropsMap={},n}return Jn(r,[{key:"getTransitionName",value:function(){var a=this.props,i=a.prefixCls,o=a.animation,s=this.props.transitionName;return!s&&o&&(s="".concat(i,"-").concat(o)),s}},{key:"render",value:function(){var a=this,i=this.state.notices,o=this.props,s=o.prefixCls,l=o.className,c=o.closeIcon,A=o.style,u=[];return i.forEach(function(d,f){var h=d.notice,g=d.holderCallback,p=f===i.length-1?h.updateMark:void 0,m=h.key,y=h.userPassKey,C=se(se(se({prefixCls:s,closeIcon:c},h),h.props),{},{key:m,noticeKey:y||m,updateMark:p,onClose:function(B){var x;a.remove(B),(x=h.onClose)===null||x===void 0||x.call(h)},onClick:h.onClick,children:h.content});u.push(m),a.noticePropsMap[m]={props:C,holderCallback:g}}),E.createElement("div",{className:dt(s,l),style:A},E.createElement(d7,{keys:u,motionName:this.getTransitionName(),onVisibleChanged:function(f,h){var g=h.key;f||delete a.noticePropsMap[g]}},function(d){var f=d.key,h=d.className,g=d.style,p=d.visible,m=a.noticePropsMap[f],y=m.props,C=m.holderCallback;return C?E.createElement("div",{key:f,className:dt(h,"".concat(s,"-hook-holder")),style:se({},g),ref:function(B){typeof f>"u"||(B?(a.hookRefs.set(f,B),C(B,y)):a.hookRefs.delete(f))}}):E.createElement(f7,ge({},y,{className:dt(h,y?.className),style:se(se({},g),y?.style),visible:p}))}))}}]),r})(E.Component);Ov.newInstance=void 0;Ov.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}};Ov.newInstance=function(t,r){var n=t||{},a=n.getContainer,i=An(n,CYe),o=document.createElement("div");if(a){var s=a();s.appendChild(o)}else document.body.appendChild(o);var l=!1;function c(A){l||(l=!0,r({notice:function(d){A.add(d)},removeNotice:function(d){A.remove(d)},component:A,destroy:function(){Gme(o),o.parentNode&&o.parentNode.removeChild(o)},useNotification:function(){return h7(A)}}))}Hme(E.createElement(Ov,ge({},i,{ref:c})),o)};const BYe=Object.freeze(Object.defineProperty({__proto__:null,default:Ov},Symbol.toStringTag,{value:"Module"}));function xYe(e,t){var r=function(){var a,i,o=null,s={add:function(g,p){o?.component.add(g,p)}},l=h7(s),c=Je(l,2),A=c[0],u=c[1];function d(h){var g=h.prefixCls,p=a("message",g),m=a(),y=h.key||d0e(),C=new Promise(function(B){var x=function(){return typeof h.onClose=="function"&&h.onClose(),B(!0)};e(ge(ge({},h),{prefixCls:p,rootPrefixCls:m,getPopupContainer:i}),function(M){var S=M.prefixCls,R=M.instance;o=R,A(t(ge(ge({},h),{key:y,onClose:x}),S))})}),w=function(){o&&o.removeNotice(y)};return w.then=function(B,x){return C.then(B,x)},w.promise=C,w}var f=E.useRef({});return f.current.open=d,g0e.forEach(function(h){return v0e(f.current,h)}),[f.current,E.createElement(Lg,{key:"holder"},function(h){return a=h.getPrefixCls,i=h.getPopupContainer,u})]};return r}var nl,i0e=3,o0e,MYe=1,s0e="",Cz="move-up",l0e=!1,c0e,A0e,u0e=!1;function d0e(){return MYe++}function IYe(e){e.top!==void 0&&(o0e=e.top,nl=null),e.duration!==void 0&&(i0e=e.duration),e.prefixCls!==void 0&&(s0e=e.prefixCls),e.getContainer!==void 0&&(c0e=e.getContainer,nl=null),e.transitionName!==void 0&&(Cz=e.transitionName,nl=null,l0e=!0),e.maxCount!==void 0&&(A0e=e.maxCount,nl=null),e.rtl!==void 0&&(u0e=e.rtl)}function f0e(e,t){var r=e.prefixCls,n=e.getPopupContainer,a=g7(),i=a.getPrefixCls,o=a.getRootPrefixCls,s=a.getIconPrefixCls,l=i("message",r||s0e),c=o(e.rootPrefixCls,l),A=s();if(nl){t({prefixCls:l,rootPrefixCls:c,iconPrefixCls:A,instance:nl});return}var u={prefixCls:l,transitionName:l0e?Cz:"".concat(c,"-").concat(Cz),style:{top:o0e},getContainer:c0e||n,maxCount:A0e};Ov.newInstance(u,function(d){if(nl){t({prefixCls:l,rootPrefixCls:c,iconPrefixCls:A,instance:nl});return}nl=d,t({prefixCls:l,rootPrefixCls:c,iconPrefixCls:A,instance:d})})}var h0e={info:DY,success:KB,error:fu,warning:JB,loading:Cg},g0e=Object.keys(h0e);function p0e(e,t,r){var n=e.duration!==void 0?e.duration:i0e,a=h0e[e.type],i=dt("".concat(t,"-custom-content"),te(te({},"".concat(t,"-").concat(e.type),e.type),"".concat(t,"-rtl"),u0e===!0));return{key:e.key,duration:n,style:e.style||{},className:e.className,content:E.createElement(om,{iconPrefixCls:r},E.createElement("div",{className:i},e.icon||a&&E.createElement(a,null),E.createElement("span",null,e.content))),onClose:e.onClose,onClick:e.onClick}}function bYe(e){var t=e.key||d0e(),r=new Promise(function(a){var i=function(){return typeof e.onClose=="function"&&e.onClose(),a(!0)};f0e(e,function(o){var s=o.prefixCls,l=o.iconPrefixCls,c=o.instance;c.notice(p0e(ge(ge({},e),{key:t,onClose:i}),s,l))})}),n=function(){var i;nl&&(nl.removeNotice(t),(i=e.onClose)===null||i===void 0||i.call(e))};return n.then=function(a,i){return r.then(a,i)},n.promise=r,n}function SYe(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}var tl={open:bYe,config:IYe,destroy:function(t){if(nl)if(t){var r=nl,n=r.removeNotice;n(t)}else{var a=nl,i=a.destroy;i(),nl=null}}};function v0e(e,t){e[t]=function(r,n,a){return SYe(r)?e.open(ge(ge({},r),{type:t})):(typeof n=="function"&&(a=n,n=void 0),e.open({content:r,duration:n,type:t,onClose:a}))}}g0e.forEach(function(e){return v0e(tl,e)});tl.warn=tl.warning;tl.useMessage=xYe(f0e,p0e);function RYe(e,t){var r=function(){var a,i=null,o={add:function(h,g){i?.component.add(h,g)}},s=h7(o),l=Je(s,2),c=l[0],A=l[1];function u(f){var h=f.prefixCls,g=a("notification",h);e(ge(ge({},f),{prefixCls:g}),function(p){var m=p.prefixCls,y=p.instance;i=y,c(t(f,m))})}var d=E.useRef({});return d.current.open=u,["success","info","warning","error"].forEach(function(f){d.current[f]=function(h){return d.current.open(ge(ge({},h),{type:f}))}}),[d.current,E.createElement(Lg,{key:"holder"},function(f){return a=f.getPrefixCls,A})]};return r}var av={},m0e=4.5,E0e=24,y0e=24,C0e="",wz="topRight",w0e,B0e,x0e=!1,M0e;function TYe(e){var t=e.duration,r=e.placement,n=e.bottom,a=e.top,i=e.getContainer,o=e.closeIcon,s=e.prefixCls;s!==void 0&&(C0e=s),t!==void 0&&(m0e=t),r!==void 0?wz=r:e.rtl&&(wz="topLeft"),n!==void 0&&(y0e=n),a!==void 0&&(E0e=a),i!==void 0&&(w0e=i),o!==void 0&&(B0e=o),e.rtl!==void 0&&(x0e=e.rtl),e.maxCount!==void 0&&(M0e=e.maxCount)}function QYe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:E0e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:y0e,n;switch(e){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":n={left:0,top:t,bottom:"auto"};break;case"topRight":n={right:0,top:t,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":n={left:0,top:"auto",bottom:r};break;default:n={right:0,top:"auto",bottom:r};break}return n}function I0e(e,t){var r=e.placement,n=r===void 0?wz:r,a=e.top,i=e.bottom,o=e.getContainer,s=o===void 0?w0e:o,l=e.prefixCls,c=g7(),A=c.getPrefixCls,u=c.getIconPrefixCls,d=A("notification",l||C0e),f=u(),h="".concat(d,"-").concat(n),g=av[h];if(g){Promise.resolve(g).then(function(m){t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:f,instance:m})});return}var p=dt("".concat(d,"-").concat(n),te({},"".concat(d,"-rtl"),x0e===!0));av[h]=new Promise(function(m){Ov.newInstance({prefixCls:d,className:p,style:QYe(n,a,i),getContainer:s,maxCount:M0e},function(y){m(y),t({prefixCls:"".concat(d,"-notice"),iconPrefixCls:f,instance:y})})})}var DYe={success:gQ,info:mQ,error:pQ,warning:Ey};function b0e(e,t,r){var n=e.duration,a=e.icon,i=e.type,o=e.description,s=e.message,l=e.btn,c=e.onClose,A=e.onClick,u=e.key,d=e.style,f=e.className,h=e.closeIcon,g=h===void 0?B0e:h,p=e.props,m=n===void 0?m0e:n,y=null;a?y=E.createElement("span",{className:"".concat(t,"-icon")},e.icon):i&&(y=E.createElement(DYe[i]||null,{className:"".concat(t,"-icon ").concat(t,"-icon-").concat(i)}));var C=typeof g>"u"?E.createElement("span",{className:"".concat(t,"-close-x")},E.createElement(Go,{className:"".concat(t,"-close-icon")})):g,w=!o&&y?E.createElement("span",{className:"".concat(t,"-message-single-line-auto-margin")}):null;return{content:E.createElement(om,{iconPrefixCls:r},E.createElement("div",{className:y?"".concat(t,"-with-icon"):"",role:"alert"},y,E.createElement("div",{className:"".concat(t,"-message")},w,s),E.createElement("div",{className:"".concat(t,"-description")},o),l?E.createElement("span",{className:"".concat(t,"-btn")},l):null)),duration:m,closable:!0,closeIcon:C,onClose:c,onClick:A,key:u,style:d||{},className:dt(f,te({},"".concat(t,"-").concat(i),!!i)),props:p}}function FYe(e){I0e(e,function(t){var r=t.prefixCls,n=t.iconPrefixCls,a=t.instance;a.notice(b0e(e,r,n))})}var hc={open:FYe,close:function(t){Object.keys(av).forEach(function(r){return Promise.resolve(av[r]).then(function(n){n.removeNotice(t)})})},config:TYe,destroy:function(){Object.keys(av).forEach(function(t){Promise.resolve(av[t]).then(function(r){r.destroy()}),delete av[t]})}};["success","info","warning","error"].forEach(function(e){hc[e]=function(t){return hc.open(ge(ge({},t),{type:e}))}});hc.warn=hc.warning;hc.useNotification=RYe(I0e,b0e);var NYe=function(t,r){return r||(t?"ant-".concat(t):"ant")},an=E.createContext({getPrefixCls:NYe}),Lg=an.Consumer,_Ye="-ant-".concat(Date.now(),"-").concat(Math.random());function kYe(e,t){var r={},n=function(A,u){var d=A.clone();return d=u?.(d)||d,d.toRgbString()},a=function(A,u){var d=new Fl(A),f=LE(d.toRgbString());r["".concat(u,"-color")]=n(d),r["".concat(u,"-color-disabled")]=f[1],r["".concat(u,"-color-hover")]=f[4],r["".concat(u,"-color-active")]=f[6],r["".concat(u,"-color-outline")]=d.clone().setAlpha(.2).toRgbString(),r["".concat(u,"-color-deprecated-bg")]=f[0],r["".concat(u,"-color-deprecated-border")]=f[2]};if(t.primaryColor){a(t.primaryColor,"primary");var i=new Fl(t.primaryColor),o=LE(i.toRgbString());o.forEach(function(c,A){r["primary-".concat(A+1)]=c}),r["primary-color-deprecated-l-35"]=n(i,function(c){return c.lighten(35)}),r["primary-color-deprecated-l-20"]=n(i,function(c){return c.lighten(20)}),r["primary-color-deprecated-t-20"]=n(i,function(c){return c.tint(20)}),r["primary-color-deprecated-t-50"]=n(i,function(c){return c.tint(50)}),r["primary-color-deprecated-f-12"]=n(i,function(c){return c.setAlpha(c.getAlpha()*.12)});var s=new Fl(o[0]);r["primary-color-active-deprecated-f-30"]=n(s,function(c){return c.setAlpha(c.getAlpha()*.3)}),r["primary-color-active-deprecated-d-02"]=n(s,function(c){return c.darken(2)})}t.successColor&&a(t.successColor,"success"),t.warningColor&&a(t.warningColor,"warning"),t.errorColor&&a(t.errorColor,"error"),t.infoColor&&a(t.infoColor,"info");var l=Object.keys(r).map(function(c){return"--".concat(e,"-").concat(c,": ").concat(r[c],";")});return`
  :root {
    `.concat(l.join(`
`),`
  }
  `).trim()}function PYe(e,t){var r=kYe(e,t);_s()&&UB(r,"".concat(_Ye,"-dynamic-theme"))}var Ol=E.createContext(!1),S0e=function(t){var r=t.children,n=t.disabled,a=E.useContext(Ol);return E.createElement(Ol.Provider,{value:n??a},r)},ds=E.createContext(void 0),R0e=function(t){var r=t.children,n=t.size;return E.createElement(ds.Consumer,null,function(a){return E.createElement(ds.Provider,{value:n||a},r)})},OYe=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"],jYe="ant",zYe="anticon",WR,T0e;function HS(){return WR||jYe}function LYe(){return T0e||zYe}var YYe=function(t){var r=t.prefixCls,n=t.iconPrefixCls,a=t.theme;r!==void 0&&(WR=r),n!==void 0&&(T0e=n),a&&PYe(HS(),a)},g7=function(){return{getPrefixCls:function(r,n){return n||(r?"".concat(HS(),"-").concat(r):HS())},getIconPrefixCls:LYe,getRootPrefixCls:function(r,n){return r||WR||(n&&n.includes("-")?n.replace(/^(.*)-[^-]*$/,"$1"):HS())}}},UYe=function(t){var r=t.children,n=t.csp,a=t.autoInsertSpaceInButton,i=t.form,o=t.locale,s=t.componentSize,l=t.direction,c=t.space,A=t.virtual,u=t.dropdownMatchSelectWidth,d=t.legacyLocale,f=t.parentContext,h=t.iconPrefixCls,g=t.componentDisabled,p=E.useCallback(function(x,M){var S=t.prefixCls;if(M)return M;var R=S||f.getPrefixCls("");return x?"".concat(R,"-").concat(x):R},[f.getPrefixCls,t.prefixCls]),m=ge(ge({},f),{csp:n,autoInsertSpaceInButton:a,locale:o||d,direction:l,space:c,virtual:A,dropdownMatchSelectWidth:u,getPrefixCls:p});OYe.forEach(function(x){var M=t[x];M&&(m[x]=M)});var y=am(function(){return m},m,function(x,M){var S=Object.keys(x),R=Object.keys(M);return S.length!==R.length||S.some(function(b){return x[b]!==M[b]})}),C=E.useMemo(function(){return{prefixCls:h,csp:n}},[h,n]),w=r,B=E.useMemo(function(){var x,M,S,R;return oE(((x=eA.Form)===null||x===void 0?void 0:x.defaultValidateMessages)||{},((S=(M=y.locale)===null||M===void 0?void 0:M.Form)===null||S===void 0?void 0:S.defaultValidateMessages)||{},((R=y.form)===null||R===void 0?void 0:R.validateMessages)||{},i?.validateMessages||{})},[y,i?.validateMessages]);return Object.keys(B).length>0&&(w=E.createElement(Pme.Provider,{value:B},r)),o&&(w=E.createElement(ULe,{locale:o,_ANT_MARK__:YLe},w)),(h||n)&&(w=E.createElement(EY.Provider,{value:C},w)),s&&(w=E.createElement(R0e,{size:s},w)),g!==void 0&&(w=E.createElement(S0e,{disabled:g},w)),E.createElement(an.Provider,{value:y},w)},om=function(t){return E.useEffect(function(){t.direction&&(tl.config({rtl:t.direction==="rtl"}),hc.config({rtl:t.direction==="rtl"}))},[t.direction]),E.createElement(Td,null,function(r,n,a){return E.createElement(Lg,null,function(i){return E.createElement(UYe,ge({parentContext:i,legacyLocale:a},t))})})};om.ConfigContext=an;om.SizeContext=ds;om.config=YYe;function Tf(e,t,r,n){var a=Ql.unstable_batchedUpdates?function(o){Ql.unstable_batchedUpdates(r,o)}:r;return e!=null&&e.addEventListener&&e.addEventListener(t,a,n),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,a,n)}}}function Q0e(e){return Object.keys(e).reduce(function(t,r){return(r.startsWith("data-")||r.startsWith("aria-")||r==="role")&&!r.startsWith("data-__")&&(t[r]=e[r]),t},{})}var gc=E.isValidElement;function D0e(e){return e&&gc(e)&&e.type===E.Fragment}function F0e(e,t,r){return gc(e)?E.cloneElement(e,typeof r=="function"?r(e.props||{}):r):t}function fi(e,t){return F0e(e,e,t)}function HYe(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var GYe=(function(e){fa(t,e);function t(){var r;return Vn(this,t),r=HYe(this,t,arguments),r.state={error:void 0,info:{componentStack:""}},r}return Jn(t,[{key:"componentDidCatch",value:function(n,a){this.setState({error:n,info:a})}},{key:"render",value:function(){var n=this.props,a=n.message,i=n.description,o=n.children,s=this.state,l=s.error,c=s.info,A=c&&c.componentStack?c.componentStack:null,u=typeof a>"u"?(l||"").toString():a,d=typeof i>"u"?A:i;return l?E.createElement(zQ,{type:"error",message:u,description:E.createElement("pre",null,d)}):o}}]),t})(E.Component),KYe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},VYe={success:KB,info:DY,error:fu,warning:JB},JYe={success:gQ,info:mQ,error:pQ,warning:Ey},WYe=function(t){var r=t.description,n=t.icon,a=t.prefixCls,i=t.type,o=(r?JYe:VYe)[i]||null;return n?F0e(n,E.createElement("span",{className:"".concat(a,"-icon")},n),function(){return{className:dt("".concat(a,"-icon"),te({},n.props.className,n.props.className))}}):E.createElement(o,{className:"".concat(a,"-icon")})},XYe=function(t){var r=t.isClosable,n=t.closeText,a=t.prefixCls,i=t.closeIcon,o=t.handleClose;return r?E.createElement("button",{type:"button",onClick:o,className:"".concat(a,"-close-icon"),tabIndex:0},n?E.createElement("span",{className:"".concat(a,"-close-text")},n):i):null},zQ=function(t){var r=t.description,n=t.prefixCls,a=t.message,i=t.banner,o=t.className,s=o===void 0?"":o,l=t.style,c=t.onMouseEnter,A=t.onMouseLeave,u=t.onClick,d=t.afterClose,f=t.showIcon,h=t.closable,g=t.closeText,p=t.closeIcon,m=p===void 0?E.createElement(Go,null):p,y=t.action,C=KYe(t,["description","prefixCls","message","banner","className","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action"]),w=E.useState(!1),B=Je(w,2),x=B[0],M=B[1],S=E.useRef(),R=E.useContext(an),b=R.getPrefixCls,T=R.direction,D=b("alert",n),F=function(K){var U;M(!0),(U=C.onClose)===null||U===void 0||U.call(C,K)},N=function(){var K=C.type;return K!==void 0?K:i?"warning":"info"},_=g?!0:h,P=N(),k=i&&f===void 0?!0:f,j=dt(D,"".concat(D,"-").concat(P),te(te(te(te({},"".concat(D,"-with-description"),!!r),"".concat(D,"-no-icon"),!k),"".concat(D,"-banner"),!!i),"".concat(D,"-rtl"),T==="rtl"),s),Y=Q0e(C);return E.createElement(us,{visible:!x,motionName:"".concat(D,"-motion"),motionAppear:!1,motionEnter:!1,onLeaveStart:function(K){return{maxHeight:K.offsetHeight}},onLeaveEnd:d},function(X){var K=X.className,U=X.style;return E.createElement("div",ge({ref:S,"data-show":!x,className:dt(j,K),style:ge(ge({},l),U),onMouseEnter:c,onMouseLeave:A,onClick:u,role:"alert"},Y),k?E.createElement(WYe,{description:r,icon:C.icon,prefixCls:D,type:P}):null,E.createElement("div",{className:"".concat(D,"-content")},a?E.createElement("div",{className:"".concat(D,"-message")},a):null,r?E.createElement("div",{className:"".concat(D,"-description")},r):null),y?E.createElement("div",{className:"".concat(D,"-action")},y):null,E.createElement(XYe,{isClosable:!!_,closeText:g,prefixCls:D,closeIcon:m,handleClose:F}))})};zQ.ErrorBoundary=GYe;function Bz(e){return e!=null&&e===e.window}function qYe(e,t){var r,n;if(typeof window>"u")return 0;var a="scrollTop",i=0;return Bz(e)?i=e.pageYOffset:e instanceof Document?i=e.documentElement[a]:(e instanceof HTMLElement||e)&&(i=e[a]),e&&!Bz(e)&&typeof i!="number"&&(i=(n=((r=e.ownerDocument)!==null&&r!==void 0?r:e).documentElement)===null||n===void 0?void 0:n[a]),i}function ZYe(e,t,r,n){var a=r-t;return e/=n/2,e<1?a/2*e*e*e+t:a/2*((e-=2)*e*e+2)+t}function $Ye(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.getContainer,n=r===void 0?function(){return window}:r,a=t.callback,i=t.duration,o=i===void 0?450:i,s=n(),l=qYe(s),c=Date.now(),A=function u(){var d=Date.now(),f=d-c,h=ZYe(f>o?o:f,l,e,o);Bz(s)?s.scrollTo(window.pageXOffset,h):s instanceof Document||s.constructor.name==="HTMLDocument"?s.documentElement.scrollTop=h:s.scrollTop=h,f<o?ta(u):typeof a=="function"&&a()};ta(A)}const LQ=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e?.substr(0,4))});var cr={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,N:78,P:80,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,EQUALS:187,WIN_KEY:224},N0e=E.createContext(null);function _0e(){return E.useContext(N0e)}function e7e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=E.useState(!1),r=Je(t,2),n=r[0],a=r[1],i=E.useRef(null),o=function(){window.clearTimeout(i.current)};E.useEffect(function(){return o},[]);var s=function(c,A){o(),i.current=window.setTimeout(function(){a(c),A&&A()},e)};return[n,s,o]}function k0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=E.useRef(null),r=E.useRef(null);E.useEffect(function(){return function(){window.clearTimeout(r.current)}},[]);function n(a){(a||t.current===null)&&(t.current=a),window.clearTimeout(r.current),r.current=window.setTimeout(function(){t.current=null},e)}return[function(){return t.current},n]}function t7e(e,t,r,n){var a=E.useRef(null);a.current={open:t,triggerOpen:r,customizedTrigger:n},E.useEffect(function(){function i(o){var s;if(!((s=a.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=o.target;l.shadowRoot&&o.composed&&(l=o.composedPath()[0]||l),a.current.open&&e().filter(function(c){return c}).every(function(c){return!c.contains(l)&&c!==l})&&a.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}var r7e=`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`,n7e=`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`,a7e="".concat(r7e," ").concat(n7e).split(/[\s\n]+/),i7e="aria-",o7e="data-";function gq(e,t){return e.indexOf(t)===0}function Gf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=se({},t);var n={};return Object.keys(e).forEach(function(a){(r.aria&&(a==="role"||gq(a,i7e))||r.data&&gq(a,o7e)||r.attr&&a7e.includes(a))&&(n[a]=e[a])}),n}var s7e=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],e0=void 0;function l7e(e,t){var r=e.prefixCls,n=e.invalidate,a=e.item,i=e.renderItem,o=e.responsive,s=e.responsiveDisabled,l=e.registerSize,c=e.itemKey,A=e.className,u=e.style,d=e.children,f=e.display,h=e.order,g=e.component,p=g===void 0?"div":g,m=An(e,s7e),y=o&&!f;function C(S){l(c,S)}E.useEffect(function(){return function(){C(null)}},[]);var w=i&&a!==e0?i(a,{index:h}):d,B;n||(B={opacity:y?0:1,height:y?0:e0,overflowY:y?"hidden":e0,order:o?h:e0,pointerEvents:y?"none":e0,position:y?"absolute":e0});var x={};y&&(x["aria-hidden"]=!0);var M=E.createElement(p,ge({className:dt(!n&&r,A),style:se(se({},B),u)},x,m,{ref:t}),w);return o&&(M=E.createElement($c,{onResize:function(R){var b=R.offsetWidth;C(b)},disabled:s},M)),M}var Tw=E.forwardRef(l7e);Tw.displayName="Item";function c7e(e){if(typeof MessageChannel>"u")ta(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function A7e(){var e=E.useRef(null),t=function(n){e.current||(e.current=[],c7e(function(){Ko.unstable_batchedUpdates(function(){e.current.forEach(function(a){a()}),e.current=null})})),e.current.push(n)};return t}function R1(e,t){var r=E.useState(t),n=Je(r,2),a=n[0],i=n[1],o=tA(function(s){e(function(){i(s)})});return[a,o]}var XR=le.createContext(null),u7e=["component"],d7e=["className"],f7e=["className"],h7e=function(t,r){var n=E.useContext(XR);if(!n){var a=t.component,i=a===void 0?"div":a,o=An(t,u7e);return E.createElement(i,ge({},o,{ref:r}))}var s=n.className,l=An(n,d7e),c=t.className,A=An(t,f7e);return E.createElement(XR.Provider,{value:null},E.createElement(Tw,ge({ref:r,className:dt(s,c)},l,A)))},P0e=E.forwardRef(h7e);P0e.displayName="RawItem";var g7e=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],O0e="responsive",j0e="invalidate";function p7e(e){return"+ ".concat(e.length," ...")}function v7e(e,t){var r=e.prefixCls,n=r===void 0?"rc-overflow":r,a=e.data,i=a===void 0?[]:a,o=e.renderItem,s=e.renderRawItem,l=e.itemKey,c=e.itemWidth,A=c===void 0?10:c,u=e.ssr,d=e.style,f=e.className,h=e.maxCount,g=e.renderRest,p=e.renderRawRest,m=e.suffix,y=e.component,C=y===void 0?"div":y,w=e.itemComponent,B=e.onVisibleChange,x=An(e,g7e),M=u==="full",S=A7e(),R=R1(S,null),b=Je(R,2),T=b[0],D=b[1],F=T||0,N=R1(S,new Map),_=Je(N,2),P=_[0],k=_[1],j=R1(S,0),Y=Je(j,2),X=Y[0],K=Y[1],U=R1(S,0),H=Je(U,2),L=H[0],V=H[1],J=R1(S,0),ee=Je(J,2),ae=ee[0],ne=ee[1],fe=E.useState(null),he=Je(fe,2),ye=he[0],be=he[1],Se=E.useState(null),ve=Je(Se,2),de=ve[0],Ue=ve[1],at=E.useMemo(function(){return de===null&&M?Number.MAX_SAFE_INTEGER:de||0},[de,T]),Ve=E.useState(!1),Ie=Je(Ve,2),we=Ie[0],Re=Ie[1],Te="".concat(n,"-item"),Ke=Math.max(X,L),mt=h===O0e,tt=i.length&&mt,rt=h===j0e,lt=tt||typeof h=="number"&&i.length>h,At=E.useMemo(function(){var Oe=i;return tt?T===null&&M?Oe=i:Oe=i.slice(0,Math.min(i.length,F/A)):typeof h=="number"&&(Oe=i.slice(0,h)),Oe},[i,A,T,h,tt]),$e=E.useMemo(function(){return tt?i.slice(at+1):i.slice(At.length)},[i,At,tt,at]),ce=E.useCallback(function(Oe,ft){var wt;return typeof l=="function"?l(Oe):(wt=l&&Oe?.[l])!==null&&wt!==void 0?wt:ft},[l]),qe=E.useCallback(o||function(Oe){return Oe},[o]);function ct(Oe,ft,wt){de===Oe&&(ft===void 0||ft===ye)||(Ue(Oe),wt||(Re(Oe<i.length-1),B?.(Oe)),ft!==void 0&&be(ft))}function Tt(Oe,ft){D(ft.clientWidth)}function He(Oe,ft){k(function(wt){var ot=new Map(wt);return ft===null?ot.delete(Oe):ot.set(Oe,ft),ot})}function Ge(Oe,ft){V(ft),K(L)}function Ee(Oe,ft){ne(ft)}function Et(Oe){return P.get(ce(At[Oe],Oe))}Wa(function(){if(F&&typeof Ke=="number"&&At){var Oe=ae,ft=At.length,wt=ft-1;if(!ft){ct(0,null);return}for(var ot=0;ot<ft;ot+=1){var it=Et(ot);if(M&&(it=it||0),it===void 0){ct(ot-1,void 0,!0);break}if(Oe+=it,wt===0&&Oe<=F||ot===wt-1&&Oe+Et(wt)<=F){ct(wt,null);break}else if(Oe+Ke>F){ct(ot-1,Oe-it-ae+L);break}}m&&Et(0)+ae>F&&be(null)}},[F,P,L,ae,ce,At]);var Yt=we&&!!$e.length,$={};ye!==null&&tt&&($={position:"absolute",left:ye,top:0});var Fe={prefixCls:Te,responsive:tt,component:w,invalidate:rt},je=s?function(Oe,ft){var wt=ce(Oe,ft);return E.createElement(XR.Provider,{key:wt,value:se(se({},Fe),{},{order:ft,item:Oe,itemKey:wt,registerSize:He,display:ft<=at})},s(Oe,ft))}:function(Oe,ft){var wt=ce(Oe,ft);return E.createElement(Tw,ge({},Fe,{order:ft,key:wt,item:Oe,renderItem:qe,itemKey:wt,registerSize:He,display:ft<=at}))},ue={order:Yt?at:Number.MAX_SAFE_INTEGER,className:"".concat(Te,"-rest"),registerSize:Ge,display:Yt},ie=g||p7e,Be=p?E.createElement(XR.Provider,{value:se(se({},Fe),ue)},p($e)):E.createElement(Tw,ge({},Fe,ue),typeof ie=="function"?ie($e):ie),Xe=E.createElement(C,ge({className:dt(!rt&&n,f),style:d,ref:t},x),At.map(je),lt?Be:null,m&&E.createElement(Tw,ge({},Fe,{responsive:mt,responsiveDisabled:!tt,order:at,className:"".concat(Te,"-suffix"),registerSize:Ee,display:!0,style:$}),m));return mt?E.createElement($c,{onResize:Tt,disabled:!tt},Xe):Xe}var vd=E.forwardRef(v7e);vd.displayName="Overflow";vd.Item=P0e;vd.RESPONSIVE=O0e;vd.INVALIDATE=j0e;var qR=function(t){var r=t.className,n=t.customizeIcon,a=t.customizeIconProps,i=t.onMouseDown,o=t.onClick,s=t.children,l;return typeof n=="function"?l=n(a):l=n,E.createElement("span",{className:r,onMouseDown:function(A){A.preventDefault(),i&&i(A)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:o,"aria-hidden":!0},l!==void 0?l:E.createElement("span",{className:dt(r.split(/\s+/).map(function(c){return"".concat(c,"-icon")}))},s))},m7e=function(t,r){var n,a,i=t.prefixCls,o=t.id,s=t.inputElement,l=t.disabled,c=t.tabIndex,A=t.autoFocus,u=t.autoComplete,d=t.editable,f=t.activeDescendantId,h=t.value,g=t.maxLength,p=t.onKeyDown,m=t.onMouseDown,y=t.onChange,C=t.onPaste,w=t.onCompositionStart,B=t.onCompositionEnd,x=t.open,M=t.attrs,S=s||E.createElement("input",null),R=S,b=R.ref,T=R.props,D=T.onKeyDown,F=T.onChange,N=T.onMouseDown,_=T.onCompositionStart,P=T.onCompositionEnd,k=T.style;return"maxLength"in S.props,S=E.cloneElement(S,se(se(se({type:"search"},T),{},{id:o,ref:Ec(r,b),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:A,className:dt("".concat(i,"-selection-search-input"),(n=S)===null||n===void 0||(a=n.props)===null||a===void 0?void 0:a.className),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":f},M),{},{value:d?h:"",maxLength:g,readOnly:!d,unselectable:d?null:"on",style:se(se({},k),{},{opacity:d?null:0}),onKeyDown:function(Y){p(Y),D&&D(Y)},onMouseDown:function(Y){m(Y),N&&N(Y)},onChange:function(Y){y(Y),F&&F(Y)},onCompositionStart:function(Y){w(Y),_&&_(Y)},onCompositionEnd:function(Y){B(Y),P&&P(Y)},onPaste:C})),S},p7=E.forwardRef(m7e);p7.displayName="Input";function z0e(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var E7e=typeof window<"u"&&window.document&&window.document.documentElement,y7e=E7e;function C7e(e){return e!=null}function pq(e){return["string","number"].includes(Ar(e))}function L0e(e){var t=void 0;return e&&(pq(e.title)?t=e.title.toString():pq(e.label)&&(t=e.label.toString())),t}function w7e(e,t){y7e?E.useLayoutEffect(e,t):E.useEffect(e,t)}function B7e(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var vq=function(t){t.preventDefault(),t.stopPropagation()},x7e=function(t){var r=t.id,n=t.prefixCls,a=t.values,i=t.open,o=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,c=t.placeholder,A=t.disabled,u=t.mode,d=t.showSearch,f=t.autoFocus,h=t.autoComplete,g=t.activeDescendantId,p=t.tabIndex,m=t.removeIcon,y=t.maxTagCount,C=t.maxTagTextLength,w=t.maxTagPlaceholder,B=w===void 0?function(be){return"+ ".concat(be.length," ...")}:w,x=t.tagRender,M=t.onToggleOpen,S=t.onRemove,R=t.onInputChange,b=t.onInputPaste,T=t.onInputKeyDown,D=t.onInputMouseDown,F=t.onInputCompositionStart,N=t.onInputCompositionEnd,_=E.useRef(null),P=E.useState(0),k=Je(P,2),j=k[0],Y=k[1],X=E.useState(!1),K=Je(X,2),U=K[0],H=K[1],L="".concat(n,"-selection"),V=i||u==="multiple"&&s===!1||u==="tags"?o:"",J=u==="tags"||u==="multiple"&&s===!1||d&&(i||U);w7e(function(){Y(_.current.scrollWidth)},[V]);function ee(be,Se,ve,de,Ue){return E.createElement("span",{className:dt("".concat(L,"-item"),te({},"".concat(L,"-item-disabled"),ve)),title:L0e(be)},E.createElement("span",{className:"".concat(L,"-item-content")},Se),de&&E.createElement(qR,{className:"".concat(L,"-item-remove"),onMouseDown:vq,onClick:Ue,customizeIcon:m},"×"))}function ae(be,Se,ve,de,Ue){var at=function(Ie){vq(Ie),M(!i)};return E.createElement("span",{onMouseDown:at},x({label:Se,value:be,disabled:ve,closable:de,onClose:Ue}))}function ne(be){var Se=be.disabled,ve=be.label,de=be.value,Ue=!A&&!Se,at=ve;if(typeof C=="number"&&(typeof ve=="string"||typeof ve=="number")){var Ve=String(at);Ve.length>C&&(at="".concat(Ve.slice(0,C),"..."))}var Ie=function(Re){Re&&Re.stopPropagation(),S(be)};return typeof x=="function"?ae(de,at,Se,Ue,Ie):ee(be,at,Se,Ue,Ie)}function fe(be){var Se=typeof B=="function"?B(be):B;return ee({title:Se},Se,!1)}var he=E.createElement("div",{className:"".concat(L,"-search"),style:{width:j},onFocus:function(){H(!0)},onBlur:function(){H(!1)}},E.createElement(p7,{ref:l,open:i,prefixCls:n,id:r,inputElement:null,disabled:A,autoFocus:f,autoComplete:h,editable:J,activeDescendantId:g,value:V,onKeyDown:T,onMouseDown:D,onChange:R,onPaste:b,onCompositionStart:F,onCompositionEnd:N,tabIndex:p,attrs:Gf(t,!0)}),E.createElement("span",{ref:_,className:"".concat(L,"-search-mirror"),"aria-hidden":!0},V," ")),ye=E.createElement(vd,{prefixCls:"".concat(L,"-overflow"),data:a,renderItem:ne,renderRest:fe,suffix:he,itemKey:B7e,maxCount:y});return E.createElement(E.Fragment,null,ye,!a.length&&!V&&E.createElement("span",{className:"".concat(L,"-placeholder")},c))},M7e=function(t){var r=t.inputElement,n=t.prefixCls,a=t.id,i=t.inputRef,o=t.disabled,s=t.autoFocus,l=t.autoComplete,c=t.activeDescendantId,A=t.mode,u=t.open,d=t.values,f=t.placeholder,h=t.tabIndex,g=t.showSearch,p=t.searchValue,m=t.activeValue,y=t.maxLength,C=t.onInputKeyDown,w=t.onInputMouseDown,B=t.onInputChange,x=t.onInputPaste,M=t.onInputCompositionStart,S=t.onInputCompositionEnd,R=E.useState(!1),b=Je(R,2),T=b[0],D=b[1],F=A==="combobox",N=F||g,_=d[0],P=p||"";F&&m&&!T&&(P=m),E.useEffect(function(){F&&D(!1)},[F,m]);var k=A!=="combobox"&&!u&&!g?!1:!!P,j=L0e(_),Y=function(){if(_)return null;var K=k?{visibility:"hidden"}:void 0;return E.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:K},f)};return E.createElement(E.Fragment,null,E.createElement("span",{className:"".concat(n,"-selection-search")},E.createElement(p7,{ref:i,prefixCls:n,id:a,open:u,inputElement:r,disabled:o,autoFocus:s,autoComplete:l,editable:N,activeDescendantId:c,value:P,onKeyDown:C,onMouseDown:w,onChange:function(K){D(!0),B(K)},onPaste:x,onCompositionStart:M,onCompositionEnd:S,tabIndex:h,attrs:Gf(t,!0),maxLength:F?y:void 0})),!F&&_?E.createElement("span",{className:"".concat(n,"-selection-item"),title:j,style:k?{visibility:"hidden"}:void 0},_.label):null,Y())};function I7e(e){return![cr.ESC,cr.SHIFT,cr.BACKSPACE,cr.TAB,cr.WIN_KEY,cr.ALT,cr.META,cr.WIN_KEY_RIGHT,cr.CTRL,cr.SEMICOLON,cr.EQUALS,cr.CAPS_LOCK,cr.CONTEXT_MENU,cr.F1,cr.F2,cr.F3,cr.F4,cr.F5,cr.F6,cr.F7,cr.F8,cr.F9,cr.F10,cr.F11,cr.F12].includes(e)}var b7e=function(t,r){var n=E.useRef(null),a=E.useRef(!1),i=t.prefixCls,o=t.open,s=t.mode,l=t.showSearch,c=t.tokenWithEnter,A=t.autoClearSearchValue,u=t.onSearch,d=t.onSearchSubmit,f=t.onToggleOpen,h=t.onInputKeyDown,g=t.domRef;E.useImperativeHandle(r,function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}});var p=k0e(0),m=Je(p,2),y=m[0],C=m[1],w=function(k){var j=k.which;(j===cr.UP||j===cr.DOWN)&&k.preventDefault(),h&&h(k),j===cr.ENTER&&s==="tags"&&!a.current&&!o&&d?.(k.target.value),I7e(j)&&f(!0)},B=function(){C(!0)},x=E.useRef(null),M=function(k){u(k,!0,a.current)!==!1&&f(!0)},S=function(){a.current=!0},R=function(k){a.current=!1,s!=="combobox"&&M(k.target.value)},b=function(k){var j=k.target.value;if(c&&x.current&&/[\r\n]/.test(x.current)){var Y=x.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");j=j.replace(Y,x.current)}x.current=null,M(j)},T=function(k){var j=k.clipboardData,Y=j.getData("text");x.current=Y},D=function(k){var j=k.target;if(j!==n.current){var Y=document.body.style.msTouchAction!==void 0;Y?setTimeout(function(){n.current.focus()}):n.current.focus()}},F=function(k){var j=y();k.target!==n.current&&!j&&s!=="combobox"&&k.preventDefault(),(s!=="combobox"&&(!l||!j)||!o)&&(o&&A!==!1&&u("",!0,!1),f())},N={inputRef:n,onInputKeyDown:w,onInputMouseDown:B,onInputChange:b,onInputPaste:T,onInputCompositionStart:S,onInputCompositionEnd:R},_=s==="multiple"||s==="tags"?E.createElement(x7e,ge({},t,N)):E.createElement(M7e,ge({},t,N));return E.createElement("div",{ref:g,className:"".concat(i,"-selector"),onClick:D,onMouseDown:F},_)},Y0e=E.forwardRef(b7e);Y0e.displayName="Selector";var S7e=E.forwardRef(function(e,t){var r=e.didUpdate,n=e.getContainer,a=e.children,i=E.useRef(),o=E.useRef();E.useImperativeHandle(t,function(){return{}});var s=E.useRef(!1);return!s.current&&_s()&&(o.current=n(),i.current=o.current.parentNode,s.current=!0),E.useEffect(function(){r?.(e)}),E.useEffect(function(){return o.current.parentNode===null&&i.current!==null&&i.current.appendChild(o.current),function(){var l;(l=o.current)===null||l===void 0||(l=l.parentNode)===null||l===void 0||l.removeChild(o.current)}},[]),o.current?Ql.createPortal(a,o.current):null});function R7e(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function T7e(e,t,r){var n=e[t]||{};return se(se({},n),r)}function Q7e(e,t,r,n){for(var a=r.points,i=Object.keys(e),o=0;o<i.length;o+=1){var s=i[o];if(R7e(e[s].points,a,n))return"".concat(t,"-placement-").concat(s)}return""}function U0e(e){var t=e.prefixCls,r=e.motion,n=e.animation,a=e.transitionName;return r||(n?{motionName:"".concat(t,"-").concat(n)}:a?{motionName:a}:null)}function D7e(e){var t=e.prefixCls,r=e.visible,n=e.zIndex,a=e.mask,i=e.maskMotion,o=e.maskAnimation,s=e.maskTransitionName;if(!a)return null;var l={};return(i||s||o)&&(l=se({motionAppear:!0},U0e({motion:i,prefixCls:t,transitionName:s,animation:o}))),E.createElement(us,ge({},l,{visible:r,removeOnLeave:!0}),function(c){var A=c.className;return E.createElement("div",{style:{zIndex:n},className:dt("".concat(t,"-mask"),A)})})}function mq(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Eq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mq(Object(r),!0).forEach(function(n){F7e(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mq(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xz(e){"@babel/helpers - typeof";return xz=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xz(e)}function F7e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var T1,N7e={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function ZR(){if(T1!==void 0)return T1;T1="";var e=document.createElement("p").style,t="Transform";for(var r in N7e)r+t in e&&(T1=r);return T1}function H0e(){return ZR()?"".concat(ZR(),"TransitionProperty"):"transitionProperty"}function YQ(){return ZR()?"".concat(ZR(),"Transform"):"transform"}function yq(e,t){var r=H0e();r&&(e.style[r]=t,r!=="transitionProperty"&&(e.style.transitionProperty=t))}function z_(e,t){var r=YQ();r&&(e.style[r]=t,r!=="transform"&&(e.style.transform=t))}function _7e(e){return e.style.transitionProperty||e.style[H0e()]}function k7e(e){var t=window.getComputedStyle(e,null),r=t.getPropertyValue("transform")||t.getPropertyValue(YQ());if(r&&r!=="none"){var n=r.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(n[12]||n[4],0),y:parseFloat(n[13]||n[5],0)}}return{x:0,y:0}}var P7e=/matrix\((.*)\)/,O7e=/matrix3d\((.*)\)/;function j7e(e,t){var r=window.getComputedStyle(e,null),n=r.getPropertyValue("transform")||r.getPropertyValue(YQ());if(n&&n!=="none"){var a,i=n.match(P7e);if(i)i=i[1],a=i.split(",").map(function(s){return parseFloat(s,10)}),a[4]=t.x,a[5]=t.y,z_(e,"matrix(".concat(a.join(","),")"));else{var o=n.match(O7e)[1];a=o.split(",").map(function(s){return parseFloat(s,10)}),a[12]=t.x,a[13]=t.y,z_(e,"matrix3d(".concat(a.join(","),")"))}}else z_(e,"translateX(".concat(t.x,"px) translateY(").concat(t.y,"px) translateZ(0)"))}var z7e=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,ux;function Cq(e){var t=e.style.display;e.style.display="none",e.offsetHeight,e.style.display=t}function EE(e,t,r){var n=r;if(xz(t)==="object"){for(var a in t)t.hasOwnProperty(a)&&EE(e,a,t[a]);return}if(typeof n<"u"){typeof n=="number"&&(n="".concat(n,"px")),e.style[t]=n;return}return ux(e,t)}function L7e(e){var t,r,n,a=e.ownerDocument,i=a.body,o=a&&a.documentElement;return t=e.getBoundingClientRect(),r=Math.floor(t.left),n=Math.floor(t.top),r-=o.clientLeft||i.clientLeft||0,n-=o.clientTop||i.clientTop||0,{left:r,top:n}}function G0e(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var a=e.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function K0e(e){return G0e(e)}function V0e(e){return G0e(e,!0)}function iB(e){var t=L7e(e),r=e.ownerDocument,n=r.defaultView||r.parentWindow;return t.left+=K0e(n),t.top+=V0e(n),t}function v7(e){return e!=null&&e==e.window}function J0e(e){return v7(e)?e.document:e.nodeType===9?e:e.ownerDocument}function Y7e(e,t,r){var n=r,a="",i=J0e(e);return n=n||i.defaultView.getComputedStyle(e,null),n&&(a=n.getPropertyValue(t)||n[t]),a}var U7e=new RegExp("^(".concat(z7e,")(?!px)[a-z%]+$"),"i"),H7e=/^(top|right|bottom|left)$/,L_="currentStyle",Y_="runtimeStyle",Ip="left",G7e="px";function K7e(e,t){var r=e[L_]&&e[L_][t];if(U7e.test(r)&&!H7e.test(t)){var n=e.style,a=n[Ip],i=e[Y_][Ip];e[Y_][Ip]=e[L_][Ip],n[Ip]=t==="fontSize"?"1em":r||0,r=n.pixelLeft+G7e,n[Ip]=a,e[Y_][Ip]=i}return r===""?"auto":r}typeof window<"u"&&(ux=window.getComputedStyle?Y7e:K7e);function YM(e,t){return e==="left"?t.useCssRight?"right":e:t.useCssBottom?"bottom":e}function wq(e){if(e==="left")return"right";if(e==="right")return"left";if(e==="top")return"bottom";if(e==="bottom")return"top"}function Bq(e,t,r){EE(e,"position")==="static"&&(e.style.position="relative");var n=-999,a=-999,i=YM("left",r),o=YM("top",r),s=wq(i),l=wq(o);i!=="left"&&(n=999),o!=="top"&&(a=999);var c="",A=iB(e);("left"in t||"top"in t)&&(c=_7e(e)||"",yq(e,"none")),"left"in t&&(e.style[s]="",e.style[i]="".concat(n,"px")),"top"in t&&(e.style[l]="",e.style[o]="".concat(a,"px")),Cq(e);var u=iB(e),d={};for(var f in t)if(t.hasOwnProperty(f)){var h=YM(f,r),g=f==="left"?n:a,p=A[f]-u[f];h===f?d[h]=g+p:d[h]=g-p}EE(e,d),Cq(e),("left"in t||"top"in t)&&yq(e,c);var m={};for(var y in t)if(t.hasOwnProperty(y)){var C=YM(y,r),w=t[y]-A[y];y===C?m[C]=d[C]+w:m[C]=d[C]-w}EE(e,m)}function V7e(e,t){var r=iB(e),n=k7e(e),a={x:n.x,y:n.y};"left"in t&&(a.x=n.x+t.left-r.left),"top"in t&&(a.y=n.y+t.top-r.top),j7e(e,a)}function J7e(e,t,r){if(r.ignoreShake){var n=iB(e),a=n.left.toFixed(0),i=n.top.toFixed(0),o=t.left.toFixed(0),s=t.top.toFixed(0);if(a===o&&i===s)return}r.useCssRight||r.useCssBottom?Bq(e,t,r):r.useCssTransform&&YQ()in document.body.style?V7e(e,t):Bq(e,t,r)}function m7(e,t){for(var r=0;r<e.length;r++)t(e[r])}function W0e(e){return ux(e,"boxSizing")==="border-box"}var W7e=["margin","border","padding"],Mz=-1,X7e=2,Iz=1,q7e=0;function Z7e(e,t,r){var n={},a=e.style,i;for(i in t)t.hasOwnProperty(i)&&(n[i]=a[i],a[i]=t[i]);r.call(e);for(i in t)t.hasOwnProperty(i)&&(a[i]=n[i])}function iw(e,t,r){var n=0,a,i,o;for(i=0;i<t.length;i++)if(a=t[i],a)for(o=0;o<r.length;o++){var s=void 0;a==="border"?s="".concat(a).concat(r[o],"Width"):s=a+r[o],n+=parseFloat(ux(e,s))||0}return n}var fd={getParent:function(t){var r=t;do r.nodeType===11&&r.host?r=r.host:r=r.parentNode;while(r&&r.nodeType!==1&&r.nodeType!==9);return r}};m7(["Width","Height"],function(e){fd["doc".concat(e)]=function(t){var r=t.document;return Math.max(r.documentElement["scroll".concat(e)],r.body["scroll".concat(e)],fd["viewport".concat(e)](r))},fd["viewport".concat(e)]=function(t){var r="client".concat(e),n=t.document,a=n.body,i=n.documentElement,o=i[r];return n.compatMode==="CSS1Compat"&&o||a&&a[r]||o}});function xq(e,t,r){var n=r;if(v7(e))return t==="width"?fd.viewportWidth(e):fd.viewportHeight(e);if(e.nodeType===9)return t==="width"?fd.docWidth(e):fd.docHeight(e);var a=t==="width"?["Left","Right"]:["Top","Bottom"],i=Math.floor(t==="width"?e.getBoundingClientRect().width:e.getBoundingClientRect().height),o=W0e(e),s=0;(i==null||i<=0)&&(i=void 0,s=ux(e,t),(s==null||Number(s)<0)&&(s=e.style[t]||0),s=Math.floor(parseFloat(s))||0),n===void 0&&(n=o?Iz:Mz);var l=i!==void 0||o,c=i||s;return n===Mz?l?c-iw(e,["border","padding"],a):s:l?n===Iz?c:c+(n===X7e?-iw(e,["border"],a):iw(e,["margin"],a)):s+iw(e,W7e.slice(n),a)}var $7e={position:"absolute",visibility:"hidden",display:"block"};function Mq(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n,a=t[0];return a.offsetWidth!==0?n=xq.apply(void 0,t):Z7e(a,$7e,function(){n=xq.apply(void 0,t)}),n}m7(["width","height"],function(e){var t=e.charAt(0).toUpperCase()+e.slice(1);fd["outer".concat(t)]=function(n,a){return n&&Mq(n,e,a?q7e:Iz)};var r=e==="width"?["Left","Right"]:["Top","Bottom"];fd[e]=function(n,a){var i=a;if(i!==void 0){if(n){var o=W0e(n);return o&&(i+=iw(n,["padding","border"],r)),EE(n,e,i)}return}return n&&Mq(n,e,Mz)}});function X0e(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}var Un={getWindow:function(t){if(t&&t.document&&t.setTimeout)return t;var r=t.ownerDocument||t;return r.defaultView||r.parentWindow},getDocument:J0e,offset:function(t,r,n){if(typeof r<"u")J7e(t,r,n||{});else return iB(t)},isWindow:v7,each:m7,css:EE,clone:function(t){var r,n={};for(r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);var a=t.overflow;if(a)for(r in t)t.hasOwnProperty(r)&&(n.overflow[r]=t.overflow[r]);return n},mix:X0e,getWindowScrollLeft:function(t){return K0e(t)},getWindowScrollTop:function(t){return V0e(t)},merge:function(){for(var t={},r=0;r<arguments.length;r++)Un.mix(t,r<0||arguments.length<=r?void 0:arguments[r]);return t},viewportWidth:0,viewportHeight:0};X0e(Un,fd);var U_=Un.getParent;function bz(e){if(Un.isWindow(e)||e.nodeType===9)return null;var t=Un.getDocument(e),r=t.body,n,a=Un.css(e,"position"),i=a==="fixed"||a==="absolute";if(!i)return e.nodeName.toLowerCase()==="html"?null:U_(e);for(n=U_(e);n&&n!==r&&n.nodeType!==9;n=U_(n))if(a=Un.css(n,"position"),a!=="static")return n;return null}var Iq=Un.getParent;function eUe(e){if(Un.isWindow(e)||e.nodeType===9)return!1;var t=Un.getDocument(e),r=t.body,n=null;for(n=Iq(e);n&&n!==r&&n!==t;n=Iq(n)){var a=Un.css(n,"position");if(a==="fixed")return!0}return!1}function E7(e,t){for(var r={left:0,right:1/0,top:0,bottom:1/0},n=bz(e),a=Un.getDocument(e),i=a.defaultView||a.parentWindow,o=a.body,s=a.documentElement;n;){if((navigator.userAgent.indexOf("MSIE")===-1||n.clientWidth!==0)&&n!==o&&n!==s&&Un.css(n,"overflow")!=="visible"){var l=Un.offset(n);l.left+=n.clientLeft,l.top+=n.clientTop,r.top=Math.max(r.top,l.top),r.right=Math.min(r.right,l.left+n.clientWidth),r.bottom=Math.min(r.bottom,l.top+n.clientHeight),r.left=Math.max(r.left,l.left)}else if(n===o||n===s)break;n=bz(n)}var c=null;if(!Un.isWindow(e)&&e.nodeType!==9){c=e.style.position;var A=Un.css(e,"position");A==="absolute"&&(e.style.position="fixed")}var u=Un.getWindowScrollLeft(i),d=Un.getWindowScrollTop(i),f=Un.viewportWidth(i),h=Un.viewportHeight(i),g=s.scrollWidth,p=s.scrollHeight,m=window.getComputedStyle(o);if(m.overflowX==="hidden"&&(g=i.innerWidth),m.overflowY==="hidden"&&(p=i.innerHeight),e.style&&(e.style.position=c),t||eUe(e))r.left=Math.max(r.left,u),r.top=Math.max(r.top,d),r.right=Math.min(r.right,u+f),r.bottom=Math.min(r.bottom,d+h);else{var y=Math.max(g,u+f);r.right=Math.min(r.right,y);var C=Math.max(p,d+h);r.bottom=Math.min(r.bottom,C)}return r.top>=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function tUe(e,t,r,n){var a=Un.clone(e),i={width:t.width,height:t.height};return n.adjustX&&a.left<r.left&&(a.left=r.left),n.resizeWidth&&a.left>=r.left&&a.left+i.width>r.right&&(i.width-=a.left+i.width-r.right),n.adjustX&&a.left+i.width>r.right&&(a.left=Math.max(r.right-i.width,r.left)),n.adjustY&&a.top<r.top&&(a.top=r.top),n.resizeHeight&&a.top>=r.top&&a.top+i.height>r.bottom&&(i.height-=a.top+i.height-r.bottom),n.adjustY&&a.top+i.height>r.bottom&&(a.top=Math.max(r.bottom-i.height,r.top)),Un.mix(a,i)}function y7(e){var t,r,n;if(!Un.isWindow(e)&&e.nodeType!==9)t=Un.offset(e),r=Un.outerWidth(e),n=Un.outerHeight(e);else{var a=Un.getWindow(e);t={left:Un.getWindowScrollLeft(a),top:Un.getWindowScrollTop(a)},r=Un.viewportWidth(a),n=Un.viewportHeight(a)}return t.width=r,t.height=n,t}function bq(e,t){var r=t.charAt(0),n=t.charAt(1),a=e.width,i=e.height,o=e.left,s=e.top;return r==="c"?s+=i/2:r==="b"&&(s+=i),n==="c"?o+=a/2:n==="r"&&(o+=a),{left:o,top:s}}function UM(e,t,r,n,a){var i=bq(t,r[1]),o=bq(e,r[0]),s=[o.left-i.left,o.top-i.top];return{left:Math.round(e.left-s[0]+n[0]-a[0]),top:Math.round(e.top-s[1]+n[1]-a[1])}}function Sq(e,t,r){return e.left<r.left||e.left+t.width>r.right}function Rq(e,t,r){return e.top<r.top||e.top+t.height>r.bottom}function rUe(e,t,r){return e.left>r.right||e.left+t.width<r.left}function nUe(e,t,r){return e.top>r.bottom||e.top+t.height<r.top}function HM(e,t,r){var n=[];return Un.each(e,function(a){n.push(a.replace(t,function(i){return r[i]}))}),n}function GM(e,t){return e[t]=-e[t],e}function Tq(e,t){var r;return/%$/.test(e)?r=parseInt(e.substring(0,e.length-1),10)/100*t:r=parseInt(e,10),r||0}function Qq(e,t){e[0]=Tq(e[0],t.width),e[1]=Tq(e[1],t.height)}function q0e(e,t,r,n){var a=r.points,i=r.offset||[0,0],o=r.targetOffset||[0,0],s=r.overflow,l=r.source||e;i=[].concat(i),o=[].concat(o),s=s||{};var c={},A=0,u=!!(s&&s.alwaysByViewport),d=E7(l,u),f=y7(l);Qq(i,f),Qq(o,t);var h=UM(f,t,a,i,o),g=Un.merge(f,h);if(d&&(s.adjustX||s.adjustY)&&n){if(s.adjustX&&Sq(h,f,d)){var p=HM(a,/[lr]/gi,{l:"r",r:"l"}),m=GM(i,0),y=GM(o,0),C=UM(f,t,p,m,y);rUe(C,f,d)||(A=1,a=p,i=m,o=y)}if(s.adjustY&&Rq(h,f,d)){var w=HM(a,/[tb]/gi,{t:"b",b:"t"}),B=GM(i,1),x=GM(o,1),M=UM(f,t,w,B,x);nUe(M,f,d)||(A=1,a=w,i=B,o=x)}A&&(h=UM(f,t,a,i,o),Un.mix(g,h));var S=Sq(h,f,d),R=Rq(h,f,d);if(S||R){var b=a;S&&(b=HM(a,/[lr]/gi,{l:"r",r:"l"})),R&&(b=HM(a,/[tb]/gi,{t:"b",b:"t"})),a=b,i=r.offset||[0,0],o=r.targetOffset||[0,0]}c.adjustX=s.adjustX&&S,c.adjustY=s.adjustY&&R,(c.adjustX||c.adjustY)&&(g=tUe(h,f,d,c))}return g.width!==f.width&&Un.css(l,"width",Un.width(l)+g.width-f.width),g.height!==f.height&&Un.css(l,"height",Un.height(l)+g.height-f.height),Un.offset(l,{left:g.left,top:g.top},{useCssRight:r.useCssRight,useCssBottom:r.useCssBottom,useCssTransform:r.useCssTransform,ignoreShake:r.ignoreShake}),{points:a,offset:i,targetOffset:o,overflow:c}}function aUe(e,t){var r=E7(e,t),n=y7(e);return!r||n.left+n.width<=r.left||n.top+n.height<=r.top||n.left>=r.right||n.top>=r.bottom}function C7(e,t,r){var n=r.target||t,a=y7(n),i=!aUe(n,r.overflow&&r.overflow.alwaysByViewport);return q0e(e,a,r,i)}C7.__getOffsetParent=bz;C7.__getVisibleRectForElement=E7;function iUe(e,t,r){var n,a,i=Un.getDocument(e),o=i.defaultView||i.parentWindow,s=Un.getWindowScrollLeft(o),l=Un.getWindowScrollTop(o),c=Un.viewportWidth(o),A=Un.viewportHeight(o);"pageX"in t?n=t.pageX:n=s+t.clientX,"pageY"in t?a=t.pageY:a=l+t.clientY;var u={left:n,top:a,width:0,height:0},d=n>=0&&n<=s+c&&a>=0&&a<=l+A,f=[r.points[0],"cc"];return q0e(e,u,Eq(Eq({},r),{},{points:f}),d)}function JE(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=new Set;function a(i,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=n.has(i);if(Ea(!l,"Warning: There may be circular references"),l)return!1;if(i===o)return!0;if(r&&s>1)return!1;n.add(i);var c=s+1;if(Array.isArray(i)){if(!Array.isArray(o)||i.length!==o.length)return!1;for(var A=0;A<i.length;A++)if(!a(i[A],o[A],c))return!1;return!0}if(i&&o&&Ar(i)==="object"&&Ar(o)==="object"){var u=Object.keys(i);return u.length!==Object.keys(o).length?!1:u.every(function(d){return a(i[d],o[d],c)})}return!1}return a(e,t)}const UQ=(function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),r=t.width,n=t.height;if(r||n)return!0}if(e.getBoundingClientRect){var a=e.getBoundingClientRect(),i=a.width,o=a.height;if(i||o)return!0}}return!1}),oUe=(function(e,t){var r=le.useRef(!1),n=le.useRef(null);function a(){window.clearTimeout(n.current)}function i(o){if(a(),!r.current||o===!0){if(e(o)===!1)return;r.current=!0,n.current=window.setTimeout(function(){r.current=!1},t)}else n.current=window.setTimeout(function(){r.current=!1,i()},t)}return[i,function(){r.current=!1,a()}]});function sUe(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function lUe(e,t){e!==document.activeElement&&Cv(t,e)&&typeof e.focus=="function"&&e.focus()}function Dq(e,t){var r=null,n=null;function a(o){var s=Je(o,1),l=s[0].target;if(document.documentElement.contains(l)){var c=l.getBoundingClientRect(),A=c.width,u=c.height,d=Math.floor(A),f=Math.floor(u);(r!==d||n!==f)&&Promise.resolve().then(function(){t({width:d,height:f})}),r=d,n=f}}var i=new o7(a);return e&&i.observe(e),function(){i.disconnect()}}function Fq(e){return typeof e!="function"?null:e()}function Nq(e){return Ar(e)!=="object"||!e?null:e}var cUe=function(t,r){var n=t.children,a=t.disabled,i=t.target,o=t.align,s=t.onAlign,l=t.monitorWindowResize,c=t.monitorBufferTime,A=c===void 0?0:c,u=le.useRef({}),d=le.useRef(),f=le.Children.only(n),h=le.useRef({});h.current.disabled=a,h.current.target=i,h.current.align=o,h.current.onAlign=s;var g=oUe(function(){var T=h.current,D=T.disabled,F=T.target,N=T.align,_=T.onAlign,P=d.current;if(!D&&F&&P){var k,j=Fq(F),Y=Nq(F);u.current.element=j,u.current.point=Y,u.current.align=N;var X=document,K=X.activeElement;return j&&UQ(j)?k=C7(P,j,N):Y&&(k=iUe(P,Y,N)),lUe(K,P),_&&k&&_(P,k),!0}return!1},A),p=Je(g,2),m=p[0],y=p[1],C=le.useState(),w=Je(C,2),B=w[0],x=w[1],M=le.useState(),S=Je(M,2),R=S[0],b=S[1];return Wa(function(){x(Fq(i)),b(Nq(i))}),le.useEffect(function(){(u.current.element!==B||!sUe(u.current.point,R)||!JE(u.current.align,o))&&m()}),le.useEffect(function(){var T=Dq(d.current,m);return T},[d.current]),le.useEffect(function(){var T=Dq(B,m);return T},[B]),le.useEffect(function(){a?y():m()},[a]),le.useEffect(function(){if(l){var T=Tf(window,"resize",m);return T.remove}},[l]),le.useEffect(function(){return function(){y()}},[]),le.useImperativeHandle(r,function(){return{forceAlign:function(){return m(!0)}}}),le.isValidElement(f)&&(f=le.cloneElement(f,{ref:Ec(f.ref,d)})),f},Z0e=le.forwardRef(cUe);Z0e.displayName="Align";var _q=["measure","alignPre","align",null,"motion"];const AUe=(function(e,t){var r=Bg(null),n=Je(r,2),a=n[0],i=n[1],o=E.useRef();function s(A){i(A,!0)}function l(){ta.cancel(o.current)}function c(A){l(),o.current=ta(function(){s(function(u){switch(a){case"align":return"motion";case"motion":return"stable"}return u}),A?.()})}return E.useEffect(function(){s("measure")},[e]),E.useEffect(function(){switch(a){case"measure":t();break}a&&(o.current=ta(zg(Jo().mark(function A(){var u,d;return Jo().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:u=_q.indexOf(a),d=_q[u+1],d&&u!==-1&&s(d);case 3:case"end":return h.stop()}},A)}))))},[a]),E.useEffect(function(){return function(){l()}},[]),[a,c]}),uUe=(function(e){var t=E.useState({width:0,height:0}),r=Je(t,2),n=r[0],a=r[1];function i(s){var l=s.offsetWidth,c=s.offsetHeight,A=s.getBoundingClientRect(),u=A.width,d=A.height;Math.abs(l-u)<1&&Math.abs(c-d)<1&&(l=u,c=d),a({width:l,height:c})}var o=E.useMemo(function(){var s={};if(e){var l=n.width,c=n.height;e.indexOf("height")!==-1&&c?s.height=c:e.indexOf("minHeight")!==-1&&c&&(s.minHeight=c),e.indexOf("width")!==-1&&l?s.width=l:e.indexOf("minWidth")!==-1&&l&&(s.minWidth=l)}return s},[e,n]);return[o,i]});var $0e=E.forwardRef(function(e,t){var r=e.visible,n=e.prefixCls,a=e.className,i=e.style,o=e.children,s=e.zIndex,l=e.stretch,c=e.destroyPopupOnHide,A=e.forceRender,u=e.align,d=e.point,f=e.getRootDomNode,h=e.getClassNameFromAlign,g=e.onAlign,p=e.onMouseEnter,m=e.onMouseLeave,y=e.onMouseDown,C=e.onTouchStart,w=e.onClick,B=E.useRef(),x=E.useRef(),M=E.useState(),S=Je(M,2),R=S[0],b=S[1],T=uUe(l),D=Je(T,2),F=D[0],N=D[1];function _(){l&&N(f())}var P=AUe(r,_),k=Je(P,2),j=k[0],Y=k[1],X=E.useState(0),K=Je(X,2),U=K[0],H=K[1],L=E.useRef();Wa(function(){j==="alignPre"&&H(0)},[j]);function V(){return d||f}function J(){var be;(be=B.current)===null||be===void 0||be.forceAlign()}function ee(be,Se){var ve=h(Se);R!==ve&&b(ve),H(function(de){return de+1}),j==="align"&&g?.(be,Se)}Wa(function(){j==="align"&&(U<3?J():Y(function(){var be;(be=L.current)===null||be===void 0||be.call(L)}))},[U]);var ae=se({},U0e(e));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(be){var Se=ae[be];ae[be]=function(ve,de){return Y(),Se?.(ve,de)}});function ne(){return new Promise(function(be){L.current=be})}E.useEffect(function(){!ae.motionName&&j==="motion"&&Y()},[ae.motionName,j]),E.useImperativeHandle(t,function(){return{forceAlign:J,getElement:function(){return x.current}}});var fe=se(se({},F),{},{zIndex:s,opacity:j==="motion"||j==="stable"||!r?void 0:0,pointerEvents:!r&&j!=="stable"?"none":void 0},i),he=!0;u!=null&&u.points&&(j==="align"||j==="stable")&&(he=!1);var ye=o;return E.Children.count(o)>1&&(ye=E.createElement("div",{className:"".concat(n,"-content")},o)),E.createElement(us,ge({visible:r,ref:x,leavedClassName:"".concat(n,"-hidden")},ae,{onAppearPrepare:ne,onEnterPrepare:ne,removeOnLeave:c,forceRender:A}),function(be,Se){var ve=be.className,de=be.style,Ue=dt(n,a,R,ve);return E.createElement(Z0e,{target:V(),key:"popup",ref:B,monitorWindowResize:!0,disabled:he,align:u,onAlign:ee},E.createElement("div",{ref:Se,className:Ue,onMouseEnter:p,onMouseLeave:m,onMouseDownCapture:y,onTouchStartCapture:C,onClick:w,style:se(se({},de),fe)},ye))})});$0e.displayName="PopupInner";var eEe=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.visible,a=e.zIndex,i=e.children,o=e.mobile;o=o===void 0?{}:o;var s=o.popupClassName,l=o.popupStyle,c=o.popupMotion,A=c===void 0?{}:c,u=o.popupRender,d=e.onClick,f=E.useRef();E.useImperativeHandle(t,function(){return{forceAlign:function(){},getElement:function(){return f.current}}});var h=se({zIndex:a},l),g=i;return E.Children.count(i)>1&&(g=E.createElement("div",{className:"".concat(r,"-content")},i)),u&&(g=u(g)),E.createElement(us,ge({visible:n,ref:f,removeOnLeave:!0},A),function(p,m){var y=p.className,C=p.style,w=dt(r,s,y);return E.createElement("div",{ref:m,className:w,onClick:d,style:se(se({},C),h)},g)})});eEe.displayName="MobilePopupInner";var dUe=["visible","mobile"],tEe=E.forwardRef(function(e,t){var r=e.visible,n=e.mobile,a=An(e,dUe),i=E.useState(r),o=Je(i,2),s=o[0],l=o[1],c=E.useState(!1),A=Je(c,2),u=A[0],d=A[1],f=se(se({},a),{},{visible:s});E.useEffect(function(){l(r),r&&n&&d(LQ())},[r,n]);var h=u?E.createElement(eEe,ge({},f,{mobile:n,ref:t})):E.createElement($0e,ge({},f,{ref:t}));return E.createElement("div",null,E.createElement(D7e,f),h)});tEe.displayName="Popup";var kq=E.createContext(null);function H_(){}function fUe(){return""}function hUe(e){return e?e.ownerDocument:window.document}var gUe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function pUe(e){var t=(function(r){fa(a,r);var n=pi(a);function a(i){var o;Vn(this,a),o=n.call(this,i),te(Bt(o),"popupRef",E.createRef()),te(Bt(o),"triggerRef",E.createRef()),te(Bt(o),"portalContainer",void 0),te(Bt(o),"attachId",void 0),te(Bt(o),"clickOutsideHandler",void 0),te(Bt(o),"touchOutsideHandler",void 0),te(Bt(o),"contextMenuOutsideHandler1",void 0),te(Bt(o),"contextMenuOutsideHandler2",void 0),te(Bt(o),"mouseDownTimeout",void 0),te(Bt(o),"focusTime",void 0),te(Bt(o),"preClickTime",void 0),te(Bt(o),"preTouchTime",void 0),te(Bt(o),"delayTimer",void 0),te(Bt(o),"hasPopupMouseDown",void 0),te(Bt(o),"onMouseEnter",function(l){var c=o.props.mouseEnterDelay;o.fireEvents("onMouseEnter",l),o.delaySetPopupVisible(!0,c,c?null:l)}),te(Bt(o),"onMouseMove",function(l){o.fireEvents("onMouseMove",l),o.setPoint(l)}),te(Bt(o),"onMouseLeave",function(l){o.fireEvents("onMouseLeave",l),o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),te(Bt(o),"onPopupMouseEnter",function(){o.clearDelayTimer()}),te(Bt(o),"onPopupMouseLeave",function(l){var c;l.relatedTarget&&!l.relatedTarget.setTimeout&&Cv((c=o.popupRef.current)===null||c===void 0?void 0:c.getElement(),l.relatedTarget)||o.delaySetPopupVisible(!1,o.props.mouseLeaveDelay)}),te(Bt(o),"onFocus",function(l){o.fireEvents("onFocus",l),o.clearDelayTimer(),o.isFocusToShow()&&(o.focusTime=Date.now(),o.delaySetPopupVisible(!0,o.props.focusDelay))}),te(Bt(o),"onMouseDown",function(l){o.fireEvents("onMouseDown",l),o.preClickTime=Date.now()}),te(Bt(o),"onTouchStart",function(l){o.fireEvents("onTouchStart",l),o.preTouchTime=Date.now()}),te(Bt(o),"onBlur",function(l){o.fireEvents("onBlur",l),o.clearDelayTimer(),o.isBlurToHide()&&o.delaySetPopupVisible(!1,o.props.blurDelay)}),te(Bt(o),"onContextMenu",function(l){l.preventDefault(),o.fireEvents("onContextMenu",l),o.setPopupVisible(!0,l)}),te(Bt(o),"onContextMenuClose",function(){o.isContextMenuToShow()&&o.close()}),te(Bt(o),"onClick",function(l){if(o.fireEvents("onClick",l),o.focusTime){var c;if(o.preClickTime&&o.preTouchTime?c=Math.min(o.preClickTime,o.preTouchTime):o.preClickTime?c=o.preClickTime:o.preTouchTime&&(c=o.preTouchTime),Math.abs(c-o.focusTime)<20)return;o.focusTime=0}o.preClickTime=0,o.preTouchTime=0,o.isClickToShow()&&(o.isClickToHide()||o.isBlurToHide())&&l&&l.preventDefault&&l.preventDefault();var A=!o.state.popupVisible;(o.isClickToHide()&&!A||A&&o.isClickToShow())&&o.setPopupVisible(!o.state.popupVisible,l)}),te(Bt(o),"onPopupMouseDown",function(){if(o.hasPopupMouseDown=!0,clearTimeout(o.mouseDownTimeout),o.mouseDownTimeout=window.setTimeout(function(){o.hasPopupMouseDown=!1},0),o.context){var l;(l=o.context).onPopupMouseDown.apply(l,arguments)}}),te(Bt(o),"onDocumentClick",function(l){if(!(o.props.mask&&!o.props.maskClosable)){var c=l.target,A=o.getRootDomNode(),u=o.getPopupDomNode();(!Cv(A,c)||o.isContextMenuOnly())&&!Cv(u,c)&&!o.hasPopupMouseDown&&o.close()}}),te(Bt(o),"getRootDomNode",function(){var l=o.props.getTriggerDOMNode;if(l)return l(o.triggerRef.current);try{var c=Rw(o.triggerRef.current);if(c)return c}catch{}return Ql.findDOMNode(Bt(o))}),te(Bt(o),"getPopupClassNameFromAlign",function(l){var c=[],A=o.props,u=A.popupPlacement,d=A.builtinPlacements,f=A.prefixCls,h=A.alignPoint,g=A.getPopupClassNameFromAlign;return u&&d&&c.push(Q7e(d,f,l,h)),g&&c.push(g(l)),c.join(" ")}),te(Bt(o),"getComponent",function(){var l=o.props,c=l.prefixCls,A=l.destroyPopupOnHide,u=l.popupClassName,d=l.onPopupAlign,f=l.popupMotion,h=l.popupAnimation,g=l.popupTransitionName,p=l.popupStyle,m=l.mask,y=l.maskAnimation,C=l.maskTransitionName,w=l.maskMotion,B=l.zIndex,x=l.popup,M=l.stretch,S=l.alignPoint,R=l.mobile,b=l.forceRender,T=l.onPopupClick,D=o.state,F=D.popupVisible,N=D.point,_=o.getPopupAlign(),P={};return o.isMouseEnterToShow()&&(P.onMouseEnter=o.onPopupMouseEnter),o.isMouseLeaveToHide()&&(P.onMouseLeave=o.onPopupMouseLeave),P.onMouseDown=o.onPopupMouseDown,P.onTouchStart=o.onPopupMouseDown,E.createElement(tEe,ge({prefixCls:c,destroyPopupOnHide:A,visible:F,point:S&&N,className:u,align:_,onAlign:d,animation:h,getClassNameFromAlign:o.getPopupClassNameFromAlign},P,{stretch:M,getRootDomNode:o.getRootDomNode,style:p,mask:m,zIndex:B,transitionName:g,maskAnimation:y,maskTransitionName:C,maskMotion:w,ref:o.popupRef,motion:f,mobile:R,forceRender:b,onClick:T}),typeof x=="function"?x():x)}),te(Bt(o),"attachParent",function(l){ta.cancel(o.attachId);var c=o.props,A=c.getPopupContainer,u=c.getDocument,d=o.getRootDomNode(),f;A?(d||A.length===0)&&(f=A(d)):f=u(o.getRootDomNode()).body,f?f.appendChild(l):o.attachId=ta(function(){o.attachParent(l)})}),te(Bt(o),"getContainer",function(){if(!o.portalContainer){var l=o.props.getDocument,c=l(o.getRootDomNode()).createElement("div");c.style.position="absolute",c.style.top="0",c.style.left="0",c.style.width="100%",o.portalContainer=c}return o.attachParent(o.portalContainer),o.portalContainer}),te(Bt(o),"setPoint",function(l){var c=o.props.alignPoint;!c||!l||o.setState({point:{pageX:l.pageX,pageY:l.pageY}})}),te(Bt(o),"handlePortalUpdate",function(){o.state.prevPopupVisible!==o.state.popupVisible&&o.props.afterPopupVisibleChange(o.state.popupVisible)}),te(Bt(o),"triggerContextValue",{onPopupMouseDown:o.onPopupMouseDown});var s;return"popupVisible"in i?s=!!i.popupVisible:s=!!i.defaultPopupVisible,o.state={prevPopupVisible:s,popupVisible:s},gUe.forEach(function(l){o["fire".concat(l)]=function(c){o.fireEvents(l,c)}}),o}return Jn(a,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var o=this.props,s=this.state;if(s.popupVisible){var l;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(l=o.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Tf(l,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(l=l||o.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Tf(l,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(l=l||o.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Tf(l,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Tf(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ta.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var o;return((o=this.popupRef.current)===null||o===void 0?void 0:o.getElement())||null}},{key:"getPopupAlign",value:function(){var o=this.props,s=o.popupPlacement,l=o.popupAlign,c=o.builtinPlacements;return s&&c?T7e(c,s,l):l}},{key:"setPopupVisible",value:function(o,s){var l=this.props.alignPoint,c=this.state.popupVisible;this.clearDelayTimer(),c!==o&&("popupVisible"in this.props||this.setState({popupVisible:o,prevPopupVisible:c}),this.props.onPopupVisibleChange(o)),l&&s&&o&&this.setPoint(s)}},{key:"delaySetPopupVisible",value:function(o,s,l){var c=this,A=s*1e3;if(this.clearDelayTimer(),A){var u=l?{pageX:l.pageX,pageY:l.pageY}:null;this.delayTimer=window.setTimeout(function(){c.setPopupVisible(o,u),c.clearDelayTimer()},A)}else this.setPopupVisible(o,l)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(o){var s=this.props.children.props,l=this.props;return s[o]&&l[o]?this["fire".concat(o)]:s[o]||l[o]}},{key:"isClickToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var o=this.props.action;return o==="contextMenu"||o.length===1&&o[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("contextMenu")!==-1||l.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("click")!==-1||l.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("hover")!==-1||l.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("hover")!==-1||l.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var o=this.props,s=o.action,l=o.showAction;return s.indexOf("focus")!==-1||l.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var o=this.props,s=o.action,l=o.hideAction;return s.indexOf("focus")!==-1||l.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var o;(o=this.popupRef.current)===null||o===void 0||o.forceAlign()}}},{key:"fireEvents",value:function(o,s){var l=this.props.children.props[o];l&&l(s);var c=this.props[o];c&&c(s)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var o=this.state.popupVisible,s=this.props,l=s.children,c=s.forceRender,A=s.alignPoint,u=s.className,d=s.autoDestroy,f=E.Children.only(l),h={key:"trigger"};this.isContextMenuToShow()?h.onContextMenu=this.onContextMenu:h.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(h.onClick=this.onClick,h.onMouseDown=this.onMouseDown,h.onTouchStart=this.onTouchStart):(h.onClick=this.createTwoChains("onClick"),h.onMouseDown=this.createTwoChains("onMouseDown"),h.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(h.onMouseEnter=this.onMouseEnter,A&&(h.onMouseMove=this.onMouseMove)):h.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?h.onMouseLeave=this.onMouseLeave:h.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(h.onFocus=this.onFocus,h.onBlur=this.onBlur):(h.onFocus=this.createTwoChains("onFocus"),h.onBlur=this.createTwoChains("onBlur"));var g=dt(f&&f.props&&f.props.className,u);g&&(h.className=g);var p=se({},h);im(f)&&(p.ref=Ec(this.triggerRef,f.ref));var m=E.cloneElement(f,p),y;return(o||this.popupRef.current||c)&&(y=E.createElement(e,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!o&&d&&(y=null),E.createElement(kq.Provider,{value:this.triggerContextValue},m,y)}}],[{key:"getDerivedStateFromProps",value:function(o,s){var l=o.popupVisible,c={};return l!==void 0&&s.popupVisible!==l&&(c.popupVisible=l,c.prevPopupVisible=s.popupVisible),c}}]),a})(E.Component);return te(t,"contextType",kq),te(t,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:fUe,getDocument:hUe,onPopupVisibleChange:H_,afterPopupVisibleChange:H_,onPopupAlign:H_,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),t}const dx=pUe(S7e);var vUe=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],mUe=function(t){var r=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:r,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:r,adjustY:1}}}},EUe=function(t,r){var n=t.prefixCls;t.disabled;var a=t.visible,i=t.children,o=t.popupElement,s=t.containerWidth,l=t.animation,c=t.transitionName,A=t.dropdownStyle,u=t.dropdownClassName,d=t.direction,f=d===void 0?"ltr":d,h=t.placement,g=t.dropdownMatchSelectWidth,p=t.dropdownRender,m=t.dropdownAlign,y=t.getPopupContainer,C=t.empty,w=t.getTriggerDOMNode,B=t.onPopupVisibleChange,x=t.onPopupMouseEnter,M=An(t,vUe),S="".concat(n,"-dropdown"),R=o;p&&(R=p(o));var b=E.useMemo(function(){return mUe(g)},[g]),T=l?"".concat(S,"-").concat(l):c,D=E.useRef(null);E.useImperativeHandle(r,function(){return{getPopupElement:function(){return D.current}}});var F=se({minWidth:s},A);return typeof g=="number"?F.width=g:g&&(F.width=s),E.createElement(dx,ge({},M,{showAction:B?["click"]:[],hideAction:B?["click"]:[],popupPlacement:h||(f==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:b,prefixCls:S,popupTransitionName:T,popup:E.createElement("div",{ref:D,onMouseEnter:x},R),popupAlign:m,popupVisible:a,getPopupContainer:y,popupClassName:dt(u,te({},"".concat(S,"-empty"),C)),popupStyle:F,getTriggerDOMNode:w,onPopupVisibleChange:B}),i)},rEe=E.forwardRef(EUe);rEe.displayName="SelectTrigger";function Pq(e,t){var r=e.key,n;return"value"in e&&(n=e.value),r??(n!==void 0?n:"rc-index-key-".concat(t))}function nEe(e,t){var r=e||{},n=r.label,a=r.value,i=r.options;return{label:n||(t?"children":"label"),value:a||"value",options:i||"options"}}function yUe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.fieldNames,n=t.childrenAsData,a=[],i=nEe(r,!1),o=i.label,s=i.value,l=i.options;function c(A,u){A.forEach(function(d){var f=d[o];if(u||!(l in d)){var h=d[s];a.push({key:Pq(d,a.length),groupOption:u,data:d,label:f,value:h})}else{var g=f;g===void 0&&n&&(g=d.label),a.push({key:Pq(d,a.length),group:!0,data:d,label:g}),c(d[l],!0)}})}return c(e,!1),a}function Sz(e){var t=se({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ea(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}function CUe(e,t){if(!t||!t.length)return null;var r=!1;function n(i,o){var s=s7(o),l=s[0],c=s.slice(1);if(!l)return[i];var A=i.split(l);return r=r||A.length>1,A.reduce(function(u,d){return[].concat(ir(u),ir(n(d,c)))},[]).filter(function(u){return u})}var a=n(e,t);return r?a:null}var wUe=["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","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],BUe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function Rz(e){return e==="tags"||e==="multiple"}var aEe=E.forwardRef(function(e,t){var r,n,a=e.id,i=e.prefixCls,o=e.className,s=e.showSearch,l=e.tagRender,c=e.direction,A=e.omitDomProps,u=e.displayValues,d=e.onDisplayValuesChange,f=e.emptyOptions,h=e.notFoundContent,g=h===void 0?"Not Found":h,p=e.onClear,m=e.mode,y=e.disabled,C=e.loading,w=e.getInputElement,B=e.getRawInputElement,x=e.open,M=e.defaultOpen,S=e.onDropdownVisibleChange,R=e.activeValue,b=e.onActiveValueChange,T=e.activeDescendantId,D=e.searchValue,F=e.autoClearSearchValue,N=e.onSearch,_=e.onSearchSplit,P=e.tokenSeparators,k=e.allowClear,j=e.showArrow,Y=e.inputIcon,X=e.clearIcon,K=e.OptionList,U=e.animation,H=e.transitionName,L=e.dropdownStyle,V=e.dropdownClassName,J=e.dropdownMatchSelectWidth,ee=e.dropdownRender,ae=e.dropdownAlign,ne=e.placement,fe=e.getPopupContainer,he=e.showAction,ye=he===void 0?[]:he,be=e.onFocus,Se=e.onBlur,ve=e.onKeyUp,de=e.onKeyDown,Ue=e.onMouseDown,at=An(e,wUe),Ve=Rz(m),Ie=(s!==void 0?s:Ve)||m==="combobox",we=se({},at);BUe.forEach(function(St){delete we[St]}),A?.forEach(function(St){delete we[St]});var Re=E.useState(!1),Te=Je(Re,2),Ke=Te[0],mt=Te[1];E.useEffect(function(){mt(LQ())},[]);var tt=E.useRef(null),rt=E.useRef(null),lt=E.useRef(null),At=E.useRef(null),$e=E.useRef(null),ce=e7e(),qe=Je(ce,3),ct=qe[0],Tt=qe[1],He=qe[2];E.useImperativeHandle(t,function(){var St,pe;return{focus:(St=At.current)===null||St===void 0?void 0:St.focus,blur:(pe=At.current)===null||pe===void 0?void 0:pe.blur,scrollTo:function(Me){var ze;return(ze=$e.current)===null||ze===void 0?void 0:ze.scrollTo(Me)}}});var Ge=E.useMemo(function(){var St;if(m!=="combobox")return D;var pe=(St=u[0])===null||St===void 0?void 0:St.value;return typeof pe=="string"||typeof pe=="number"?String(pe):""},[D,m,u]),Ee=m==="combobox"&&typeof w=="function"&&w()||null,Et=typeof B=="function"&&B(),Yt=cx(rt,Et==null||(r=Et.props)===null||r===void 0?void 0:r.ref),$=Ia(void 0,{defaultValue:M,value:x}),Fe=Je($,2),je=Fe[0],ue=Fe[1],ie=je,Be=!g&&f;(y||Be&&ie&&m==="combobox")&&(ie=!1);var Xe=Be?!1:ie,Oe=E.useCallback(function(St){var pe=St!==void 0?St:!ie;y||(ue(pe),ie!==pe&&S?.(pe))},[y,ie,ue,S]),ft=E.useMemo(function(){return(P||[]).some(function(St){return[`
`,`\r
`].includes(St)})},[P]),wt=function(pe,ke,Me){var ze=!0,Ye=pe;b?.(null);var et=Me?null:CUe(pe,P);return m!=="combobox"&&et&&(Ye="",_?.(et),Oe(!1),ze=!1),N&&Ge!==Ye&&N(Ye,{source:ke?"typing":"effect"}),ze},ot=function(pe){!pe||!pe.trim()||N(pe,{source:"submit"})};E.useEffect(function(){!ie&&!Ve&&m!=="combobox"&&wt("",!1,!1)},[ie]),E.useEffect(function(){je&&y&&ue(!1),y&&Tt(!1)},[y]);var it=k0e(),vt=Je(it,2),qt=vt[0],Xt=vt[1],Tr=function(pe){var ke=qt(),Me=pe.which;if(Me===cr.ENTER&&(m!=="combobox"&&pe.preventDefault(),ie||Oe(!0)),Xt(!!Ge),Me===cr.BACKSPACE&&!ke&&Ve&&!Ge&&u.length){for(var ze=ir(u),Ye=null,et=ze.length-1;et>=0;et-=1){var Ct=ze[et];if(!Ct.disabled){ze.splice(et,1),Ye=Ct;break}}Ye&&d(ze,{type:"remove",values:[Ye]})}for(var Ot=arguments.length,Ut=new Array(Ot>1?Ot-1:0),Jt=1;Jt<Ot;Jt++)Ut[Jt-1]=arguments[Jt];if(ie&&$e.current){var ar;(ar=$e.current).onKeyDown.apply(ar,[pe].concat(Ut))}de?.apply(void 0,[pe].concat(Ut))},Kr=function(pe){for(var ke=arguments.length,Me=new Array(ke>1?ke-1:0),ze=1;ze<ke;ze++)Me[ze-1]=arguments[ze];if(ie&&$e.current){var Ye;(Ye=$e.current).onKeyUp.apply(Ye,[pe].concat(Me))}ve?.apply(void 0,[pe].concat(Me))},Vr=function(pe){var ke=u.filter(function(Me){return Me!==pe});d(ke,{type:"remove",values:[pe]})},Pr=E.useRef(!1),mr=function(){Tt(!0),y||(be&&!Pr.current&&be.apply(void 0,arguments),ye.includes("focus")&&Oe(!0)),Pr.current=!0},xr=function(){Tt(!1,function(){Pr.current=!1,Oe(!1)}),!y&&(Ge&&(m==="tags"?N(Ge,{source:"submit"}):m==="multiple"&&N("",{source:"blur"})),Se&&Se.apply(void 0,arguments))},Ir=[];E.useEffect(function(){return function(){Ir.forEach(function(St){return clearTimeout(St)}),Ir.splice(0,Ir.length)}},[]);var Fr=function(pe){var ke,Me=pe.target,ze=(ke=lt.current)===null||ke===void 0?void 0:ke.getPopupElement();if(ze&&ze.contains(Me)){var Ye=setTimeout(function(){var Ut=Ir.indexOf(Ye);if(Ut!==-1&&Ir.splice(Ut,1),He(),!Ke&&!ze.contains(document.activeElement)){var Jt;(Jt=At.current)===null||Jt===void 0||Jt.focus()}});Ir.push(Ye)}for(var et=arguments.length,Ct=new Array(et>1?et-1:0),Ot=1;Ot<et;Ot++)Ct[Ot-1]=arguments[Ot];Ue?.apply(void 0,[pe].concat(Ct))},br=E.useState(null),Sr=Je(br,2),fr=Sr[0],Cr=Sr[1],hr=E.useState({}),Ht=Je(hr,2),Gt=Ht[1];function er(){Gt({})}Wa(function(){if(Xe){var St,pe=Math.ceil((St=tt.current)===null||St===void 0?void 0:St.offsetWidth);fr!==pe&&!Number.isNaN(pe)&&Cr(pe)}},[Xe]);var Qr;Et&&(Qr=function(pe){Oe(pe)}),t7e(function(){var St;return[tt.current,(St=lt.current)===null||St===void 0?void 0:St.getPopupElement()]},Xe,Oe,!!Et);var Hr=E.useMemo(function(){return se(se({},e),{},{notFoundContent:g,open:ie,triggerOpen:Xe,id:a,showSearch:Ie,multiple:Ve,toggleOpen:Oe})},[e,g,Xe,ie,a,Ie,Ve,Oe]),vn=j!==void 0?j:C||!Ve&&m!=="combobox",pn;vn&&(pn=E.createElement(qR,{className:dt("".concat(i,"-arrow"),te({},"".concat(i,"-arrow-loading"),C)),customizeIcon:Y,customizeIconProps:{loading:C,searchValue:Ge,open:ie,focused:ct,showSearch:Ie}}));var Qn,pt=function(){var pe;p?.(),(pe=At.current)===null||pe===void 0||pe.focus(),d([],{type:"clear",values:u}),wt("",!1,!1)};!y&&k&&(u.length||Ge)&&!(m==="combobox"&&Ge==="")&&(Qn=E.createElement(qR,{className:"".concat(i,"-clear"),onMouseDown:pt,customizeIcon:X},"×"));var Ze=E.createElement(K,{ref:$e}),bt=dt(i,o,(n={},te(n,"".concat(i,"-focused"),ct),te(n,"".concat(i,"-multiple"),Ve),te(n,"".concat(i,"-single"),!Ve),te(n,"".concat(i,"-allow-clear"),k),te(n,"".concat(i,"-show-arrow"),vn),te(n,"".concat(i,"-disabled"),y),te(n,"".concat(i,"-loading"),C),te(n,"".concat(i,"-open"),ie),te(n,"".concat(i,"-customize-input"),Ee),te(n,"".concat(i,"-show-search"),Ie),n)),kt=E.createElement(rEe,{ref:lt,disabled:y,prefixCls:i,visible:Xe,popupElement:Ze,containerWidth:fr,animation:U,transitionName:H,dropdownStyle:L,dropdownClassName:V,direction:c,dropdownMatchSelectWidth:J,dropdownRender:ee,dropdownAlign:ae,placement:ne,getPopupContainer:fe,empty:f,getTriggerDOMNode:function(){return rt.current},onPopupVisibleChange:Qr,onPopupMouseEnter:er},Et?E.cloneElement(Et,{ref:Yt}):E.createElement(Y0e,ge({},e,{domRef:rt,prefixCls:i,inputElement:Ee,ref:At,id:a,showSearch:Ie,autoClearSearchValue:F,mode:m,activeDescendantId:T,tagRender:l,values:u,open:ie,onToggleOpen:Oe,activeValue:R,searchValue:Ge,onSearch:wt,onSearchSubmit:ot,onRemove:Vr,tokenWithEnter:ft}))),Wt;return Et?Wt=kt:Wt=E.createElement("div",ge({className:bt},we,{ref:tt,onMouseDown:Fr,onKeyDown:Tr,onKeyUp:Kr,onFocus:mr,onBlur:xr}),ct&&!ie&&E.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(u.map(function(St){var pe=St.label,ke=St.value;return["number","string"].includes(Ar(pe))?pe:ke}).join(", "))),kt,pn,Qn),E.createElement(N0e.Provider,{value:Hr},Wt)});const xUe=(function(e,t){var r=E.useRef({values:new Map,options:new Map}),n=E.useMemo(function(){var i=r.current,o=i.values,s=i.options,l=e.map(function(u){if(u.label===void 0){var d;return se(se({},u),{},{label:(d=o.get(u.value))===null||d===void 0?void 0:d.label})}return u}),c=new Map,A=new Map;return l.forEach(function(u){c.set(u.value,u),A.set(u.value,t.get(u.value)||s.get(u.value))}),r.current.values=c,r.current.options=A,l},[e,t]),a=E.useCallback(function(i){return t.get(i)||r.current.options.get(i)},[t]);return[n,a]});function G_(e,t){return z0e(e).join("").toUpperCase().includes(t)}const MUe=(function(e,t,r,n,a){return E.useMemo(function(){if(!r||n===!1)return e;var i=t.options,o=t.label,s=t.value,l=[],c=typeof n=="function",A=r.toUpperCase(),u=c?n:function(f,h){return a?G_(h[a],A):h[i]?G_(h[o!=="children"?o:"label"],A):G_(h[s],A)},d=c?function(f){return Sz(f)}:function(f){return f};return e.forEach(function(f){if(f[i]){var h=u(r,d(f));if(h)l.push(f);else{var g=f[i].filter(function(p){return u(r,d(p))});g.length&&l.push(se(se({},f),{},te({},i,g)))}return}u(r,d(f))&&l.push(f)}),l},[e,n,a,r,t])});var Oq=0,IUe=_s();function bUe(){var e;return IUe?(e=Oq,Oq+=1):e="TEST_OR_SSR",e}function iEe(e){var t=E.useState(),r=Je(t,2),n=r[0],a=r[1];return E.useEffect(function(){a("rc_select_".concat(bUe()))},[]),e||n}var SUe=["children","value"],RUe=["children"];function TUe(e){var t=e,r=t.key,n=t.props,a=n.children,i=n.value,o=An(n,SUe);return se({key:r,value:i!==void 0?i:r,children:a},o)}function oEe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Vo(e).map(function(r,n){if(!E.isValidElement(r)||!r.type)return null;var a=r,i=a.type.isSelectOptGroup,o=a.key,s=a.props,l=s.children,c=An(s,RUe);return t||!i?TUe(r):se(se({key:"__RC_SELECT_GRP__".concat(o===null?n:o,"__"),label:o},c),{},{options:oEe(l)})}).filter(function(r){return r})}function QUe(e,t,r,n,a){return E.useMemo(function(){var i=e,o=!e;o&&(i=oEe(t));var s=new Map,l=new Map,c=function(d,f,h){h&&typeof h=="string"&&d.set(f[h],f)};function A(u){for(var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,f=0;f<u.length;f+=1){var h=u[f];!h[r.options]||d?(s.set(h[r.value],h),c(l,h,r.label),c(l,h,n),c(l,h,a)):A(h[r.options],!0)}}return A(i),{options:i,valueOptions:s,labelOptions:l}},[e,t,r,n,a])}function jq(e){var t=E.useRef();t.current=e;var r=E.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}var w7=function(){return null};w7.isSelectOptGroup=!0;var B7=function(){return null};B7.isSelectOption=!0;var sEe=E.forwardRef(function(e,t){var r=e.height,n=e.offsetY,a=e.offsetX,i=e.children,o=e.prefixCls,s=e.onInnerResize,l=e.innerProps,c=e.rtl,A=e.extra,u={},d={display:"flex",flexDirection:"column"};return n!==void 0&&(u={height:r,position:"relative",overflow:"hidden"},d=se(se({},d),{},te(te(te(te(te({transform:"translateY(".concat(n,"px)")},c?"marginRight":"marginLeft",-a),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:u},E.createElement($c,{onResize:function(h){var g=h.offsetHeight;g&&s&&s()}},E.createElement("div",ge({style:d,className:dt(te({},"".concat(o,"-holder-inner"),o)),ref:t},l),i,A)))});sEe.displayName="Filler";function DUe(e){var t=e.children,r=e.setRef,n=E.useCallback(function(a){r(a)},[]);return E.cloneElement(t,{ref:n})}function FUe(e,t,r,n,a,i,o,s){var l=s.getKey;return e.slice(t,r+1).map(function(c,A){var u=t+A,d=o(c,u,{style:{width:n},offsetX:a}),f=l(c);return E.createElement(DUe,{key:f,setRef:function(g){return i(c,g)}},d)})}function NUe(e,t,r){var n=e.length,a=t.length,i,o;if(n===0&&a===0)return null;n<a?(i=e,o=t):(i=t,o=e);var s={__EMPTY_ITEM__:!0};function l(h){return h!==void 0?r(h):s}for(var c=null,A=Math.abs(n-a)!==1,u=0;u<o.length;u+=1){var d=l(i[u]),f=l(o[u]);if(d!==f){c=u,A=A||d!==l(o[u+1]);break}}return c===null?null:{index:c,multiple:A}}function _Ue(e,t,r){var n=E.useState(e),a=Je(n,2),i=a[0],o=a[1],s=E.useState(null),l=Je(s,2),c=l[0],A=l[1];return E.useEffect(function(){var u=NUe(i||[],e||[],t);u?.index!==void 0&&A(e[u.index]),o(e)},[e]),[c]}var zq=(typeof navigator>"u"?"undefined":Ar(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const lEe=(function(e,t,r,n){var a=E.useRef(!1),i=E.useRef(null);function o(){clearTimeout(i.current),a.current=!0,i.current=setTimeout(function(){a.current=!1},50)}var s=E.useRef({top:e,bottom:t,left:r,right:n});return s.current.top=e,s.current.bottom=t,s.current.left=r,s.current.right=n,function(l,c){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=l?c<0&&s.current.left||c>0&&s.current.right:c<0&&s.current.top||c>0&&s.current.bottom;return A&&u?(clearTimeout(i.current),a.current=!1):(!u||a.current)&&o(),!a.current&&u}});function kUe(e,t,r,n,a,i,o){var s=E.useRef(0),l=E.useRef(null),c=E.useRef(null),A=E.useRef(!1),u=lEe(t,r,n,a);function d(y,C){if(ta.cancel(l.current),!u(!1,C)){var w=y;if(!w._virtualHandled)w._virtualHandled=!0;else return;s.current+=C,c.current=C,zq||w.preventDefault(),l.current=ta(function(){var B=A.current?10:1;o(s.current*B,!1),s.current=0})}}function f(y,C){o(C,!0),zq||y.preventDefault()}var h=E.useRef(null),g=E.useRef(null);function p(y){if(e){ta.cancel(g.current),g.current=ta(function(){h.current=null},2);var C=y.deltaX,w=y.deltaY,B=y.shiftKey,x=C,M=w;(h.current==="sx"||!h.current&&B&&w&&!C)&&(x=w,M=0,h.current="sx");var S=Math.abs(x),R=Math.abs(M);h.current===null&&(h.current=i&&S>R?"x":"y"),h.current==="y"?d(y,M):f(y,x)}}function m(y){e&&(A.current=y.detail===c.current)}return[p,m]}function PUe(e,t,r,n){var a=E.useMemo(function(){return[new Map,[]]},[e,r.id,n]),i=Je(a,2),o=i[0],s=i[1],l=function(A){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:A,d=o.get(A),f=o.get(u);if(d===void 0||f===void 0)for(var h=e.length,g=s.length;g<h;g+=1){var p,m=e[g],y=t(m);o.set(y,g);var C=(p=r.get(y))!==null&&p!==void 0?p:n;if(s[g]=(s[g-1]||0)+C,y===A&&(d=g),y===u&&(f=g),d!==void 0&&f!==void 0)break}return{top:s[d-1]||0,bottom:s[f]}};return l}var OUe=(function(){function e(){Vn(this,e),te(this,"maps",void 0),te(this,"id",0),te(this,"diffRecords",new Map),this.maps=Object.create(null)}return Jn(e,[{key:"set",value:function(r,n){this.diffRecords.set(r,this.maps[r]),this.maps[r]=n,this.id+=1}},{key:"get",value:function(r){return this.maps[r]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e})();function Lq(e){var t=parseFloat(e);return isNaN(t)?0:t}function jUe(e,t,r){var n=E.useState(0),a=Je(n,2),i=a[0],o=a[1],s=E.useRef(new Map),l=E.useRef(new OUe),c=E.useRef(0);function A(){c.current+=1}function u(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;A();var h=function(){var m=!1;s.current.forEach(function(y,C){if(y&&y.offsetParent){var w=y.offsetHeight,B=getComputedStyle(y),x=B.marginTop,M=B.marginBottom,S=Lq(x),R=Lq(M),b=w+S+R;l.current.get(C)!==b&&(l.current.set(C,b),m=!0)}}),m&&o(function(y){return y+1})};if(f)h();else{c.current+=1;var g=c.current;Promise.resolve().then(function(){g===c.current&&h()})}}function d(f,h){var g=e(f);s.current.get(g),h?(s.current.set(g,h),u()):s.current.delete(g)}return E.useEffect(function(){return A},[]),[d,u,l.current,i]}var Yq=14/15;function zUe(e,t,r){var n=E.useRef(!1),a=E.useRef(0),i=E.useRef(0),o=E.useRef(null),s=E.useRef(null),l,c=function(f){if(n.current){var h=Math.ceil(f.touches[0].pageX),g=Math.ceil(f.touches[0].pageY),p=a.current-h,m=i.current-g,y=Math.abs(p)>Math.abs(m);y?a.current=h:i.current=g;var C=r(y,y?p:m,!1,f);C&&f.preventDefault(),clearInterval(s.current),C&&(s.current=setInterval(function(){y?p*=Yq:m*=Yq;var w=Math.floor(y?p:m);(!r(y,w,!0)||Math.abs(w)<=.1)&&clearInterval(s.current)},16))}},A=function(){n.current=!1,l()},u=function(f){l(),f.touches.length===1&&!n.current&&(n.current=!0,a.current=Math.ceil(f.touches[0].pageX),i.current=Math.ceil(f.touches[0].pageY),o.current=f.target,o.current.addEventListener("touchmove",c,{passive:!1}),o.current.addEventListener("touchend",A,{passive:!0}))};l=function(){o.current&&(o.current.removeEventListener("touchmove",c),o.current.removeEventListener("touchend",A))},Wa(function(){return e&&t.current.addEventListener("touchstart",u,{passive:!0}),function(){var d;(d=t.current)===null||d===void 0||d.removeEventListener("touchstart",u),l(),clearInterval(s.current)}},[e])}function Uq(e){return Math.floor(Math.pow(e,.5))}function Tz(e,t){var r="touches"in e?e.touches[0]:e;return r[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function LUe(e,t,r){E.useEffect(function(){var n=t.current;if(e&&n){var a=!1,i,o,s=function(){ta.cancel(i)},l=function d(){s(),i=ta(function(){r(o),d()})},c=function(f){if(!(f.target.draggable||f.button!==0)){var h=f;h._virtualHandled||(h._virtualHandled=!0,a=!0)}},A=function(){a=!1,s()},u=function(f){if(a){var h=Tz(f,!1),g=n.getBoundingClientRect(),p=g.top,m=g.bottom;if(h<=p){var y=p-h;o=-Uq(y),l()}else if(h>=m){var C=h-m;o=Uq(C),l()}else s()}};return n.addEventListener("mousedown",c),n.ownerDocument.addEventListener("mouseup",A),n.ownerDocument.addEventListener("mousemove",u),function(){n.removeEventListener("mousedown",c),n.ownerDocument.removeEventListener("mouseup",A),n.ownerDocument.removeEventListener("mousemove",u),s()}}},[e])}var YUe=10;function UUe(e,t,r,n,a,i,o,s){var l=E.useRef(),c=E.useState(null),A=Je(c,2),u=A[0],d=A[1];return Wa(function(){if(u&&u.times<YUe){if(!e.current){d(function(Y){return se({},Y)});return}i();var f=u.targetAlign,h=u.originAlign,g=u.index,p=u.offset,m=e.current.clientHeight,y=!1,C=f,w=null;if(m){for(var B=f||h,x=0,M=0,S=0,R=Math.min(t.length-1,g),b=0;b<=R;b+=1){var T=a(t[b]);M=x;var D=r.get(T);S=M+(D===void 0?n:D),x=S}for(var F=B==="top"?p:m-p,N=R;N>=0;N-=1){var _=a(t[N]),P=r.get(_);if(P===void 0){y=!0;break}if(F-=P,F<=0)break}switch(B){case"top":w=M-p;break;case"bottom":w=S-m+p;break;default:{var k=e.current.scrollTop,j=k+m;M<k?C="top":S>j&&(C="bottom")}}w!==null&&o(w),w!==u.lastTop&&(y=!0)}y&&d(se(se({},u),{},{times:u.times+1,targetAlign:C,lastTop:w}))}},[u,e.current]),function(f){if(f==null){s();return}if(ta.cancel(l.current),typeof f=="number")o(f);else if(f&&Ar(f)==="object"){var h,g=f.align;"index"in f?h=f.index:h=t.findIndex(function(y){return a(y)===f.key});var p=f.offset,m=p===void 0?0:p;d({times:0,index:h,offset:m,originAlign:g})}}}var Hq=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.rtl,a=e.scrollOffset,i=e.scrollRange,o=e.onStartMove,s=e.onStopMove,l=e.onScroll,c=e.horizontal,A=e.spinSize,u=e.containerSize,d=e.style,f=e.thumbStyle,h=e.showScrollBar,g=E.useState(!1),p=Je(g,2),m=p[0],y=p[1],C=E.useState(null),w=Je(C,2),B=w[0],x=w[1],M=E.useState(null),S=Je(M,2),R=S[0],b=S[1],T=!n,D=E.useRef(),F=E.useRef(),N=E.useState(h),_=Je(N,2),P=_[0],k=_[1],j=E.useRef(),Y=function(){h===!0||h===!1||(clearTimeout(j.current),k(!0),j.current=setTimeout(function(){k(!1)},3e3))},X=i-u||0,K=u-A||0,U=E.useMemo(function(){if(a===0||X===0)return 0;var he=a/X;return he*K},[a,X,K]),H=function(ye){ye.stopPropagation(),ye.preventDefault()},L=E.useRef({top:U,dragging:m,pageY:B,startTop:R});L.current={top:U,dragging:m,pageY:B,startTop:R};var V=function(ye){y(!0),x(Tz(ye,c)),b(L.current.top),o(),ye.stopPropagation(),ye.preventDefault()};E.useEffect(function(){var he=function(ve){ve.preventDefault()},ye=D.current,be=F.current;return ye.addEventListener("touchstart",he,{passive:!1}),be.addEventListener("touchstart",V,{passive:!1}),function(){ye.removeEventListener("touchstart",he),be.removeEventListener("touchstart",V)}},[]);var J=E.useRef();J.current=X;var ee=E.useRef();ee.current=K,E.useEffect(function(){if(m){var he,ye=function(ve){var de=L.current,Ue=de.dragging,at=de.pageY,Ve=de.startTop;ta.cancel(he);var Ie=D.current.getBoundingClientRect(),we=u/(c?Ie.width:Ie.height);if(Ue){var Re=(Tz(ve,c)-at)*we,Te=Ve;!T&&c?Te-=Re:Te+=Re;var Ke=J.current,mt=ee.current,tt=mt?Te/mt:0,rt=Math.ceil(tt*Ke);rt=Math.max(rt,0),rt=Math.min(rt,Ke),he=ta(function(){l(rt,c)})}},be=function(){y(!1),s()};return window.addEventListener("mousemove",ye,{passive:!0}),window.addEventListener("touchmove",ye,{passive:!0}),window.addEventListener("mouseup",be,{passive:!0}),window.addEventListener("touchend",be,{passive:!0}),function(){window.removeEventListener("mousemove",ye),window.removeEventListener("touchmove",ye),window.removeEventListener("mouseup",be),window.removeEventListener("touchend",be),ta.cancel(he)}}},[m]),E.useEffect(function(){return Y(),function(){clearTimeout(j.current)}},[a]),E.useImperativeHandle(t,function(){return{delayHidden:Y}});var ae="".concat(r,"-scrollbar"),ne={position:"absolute",visibility:P?null:"hidden"},fe={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return c?(Object.assign(ne,{height:8,left:0,right:0,bottom:0}),Object.assign(fe,te({height:"100%",width:A},T?"left":"right",U))):(Object.assign(ne,te({width:8,top:0,bottom:0},T?"right":"left",0)),Object.assign(fe,{width:"100%",height:A,top:U})),E.createElement("div",{ref:D,className:dt(ae,te(te(te({},"".concat(ae,"-horizontal"),c),"".concat(ae,"-vertical"),!c),"".concat(ae,"-visible"),P)),style:se(se({},ne),d),onMouseDown:H,onMouseMove:Y},E.createElement("div",{ref:F,className:dt("".concat(ae,"-thumb"),te({},"".concat(ae,"-thumb-moving"),m)),style:se(se({},fe),f),onMouseDown:V}))}),HUe=20;function Gq(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=e/t*e;return isNaN(r)&&(r=0),r=Math.max(r,HUe),Math.floor(r)}var GUe=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],KUe=[],VUe={overflowY:"auto",overflowAnchor:"none"};function JUe(e,t){var r=e.prefixCls,n=r===void 0?"rc-virtual-list":r,a=e.className,i=e.height,o=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,c=e.style,A=e.data,u=e.children,d=e.itemKey,f=e.virtual,h=e.direction,g=e.scrollWidth,p=e.component,m=p===void 0?"div":p,y=e.onScroll,C=e.onVirtualScroll,w=e.onVisibleChange,B=e.innerProps,x=e.extraRender,M=e.styles,S=e.showScrollBar,R=S===void 0?"optional":S,b=An(e,GUe),T=E.useCallback(function(Ht){return typeof d=="function"?d(Ht):Ht?.[d]},[d]),D=jUe(T),F=Je(D,4),N=F[0],_=F[1],P=F[2],k=F[3],j=!!(f!==!1&&i&&o),Y=E.useMemo(function(){return Object.values(P.maps).reduce(function(Ht,Gt){return Ht+Gt},0)},[P.id,P.maps]),X=j&&A&&(Math.max(o*A.length,Y)>i||!!g),K=h==="rtl",U=dt(n,te({},"".concat(n,"-rtl"),K),a),H=A||KUe,L=E.useRef(),V=E.useRef(),J=E.useRef(),ee=E.useState(0),ae=Je(ee,2),ne=ae[0],fe=ae[1],he=E.useState(0),ye=Je(he,2),be=ye[0],Se=ye[1],ve=E.useState(!1),de=Je(ve,2),Ue=de[0],at=de[1],Ve=function(){at(!0)},Ie=function(){at(!1)},we={getKey:T};function Re(Ht){fe(function(Gt){var er;typeof Ht=="function"?er=Ht(Gt):er=Ht;var Qr=ie(er);return L.current.scrollTop=Qr,Qr})}var Te=E.useRef({start:0,end:H.length}),Ke=E.useRef(),mt=_Ue(H,T),tt=Je(mt,1),rt=tt[0];Ke.current=rt;var lt=E.useMemo(function(){if(!j)return{scrollHeight:void 0,start:0,end:H.length-1,offset:void 0};if(!X){var Ht;return{scrollHeight:((Ht=V.current)===null||Ht===void 0?void 0:Ht.offsetHeight)||0,start:0,end:H.length-1,offset:void 0}}for(var Gt=0,er,Qr,Hr,vn=H.length,pn=0;pn<vn;pn+=1){var Qn=H[pn],pt=T(Qn),Ze=P.get(pt),bt=Gt+(Ze===void 0?o:Ze);bt>=ne&&er===void 0&&(er=pn,Qr=Gt),bt>ne+i&&Hr===void 0&&(Hr=pn),Gt=bt}return er===void 0&&(er=0,Qr=0,Hr=Math.ceil(i/o)),Hr===void 0&&(Hr=H.length-1),Hr=Math.min(Hr+1,H.length-1),{scrollHeight:Gt,start:er,end:Hr,offset:Qr}},[X,j,ne,H,k,i]),At=lt.scrollHeight,$e=lt.start,ce=lt.end,qe=lt.offset;Te.current.start=$e,Te.current.end=ce,E.useLayoutEffect(function(){var Ht=P.getRecord();if(Ht.size===1){var Gt=Array.from(Ht.keys())[0],er=Ht.get(Gt),Qr=H[$e];if(Qr&&er===void 0){var Hr=T(Qr);if(Hr===Gt){var vn=P.get(Gt),pn=vn-o;Re(function(Qn){return Qn+pn})}}}P.resetRecord()},[At]);var ct=E.useState({width:0,height:i}),Tt=Je(ct,2),He=Tt[0],Ge=Tt[1],Ee=function(Gt){Ge({width:Gt.offsetWidth,height:Gt.offsetHeight})},Et=E.useRef(),Yt=E.useRef(),$=E.useMemo(function(){return Gq(He.width,g)},[He.width,g]),Fe=E.useMemo(function(){return Gq(He.height,At)},[He.height,At]),je=At-i,ue=E.useRef(je);ue.current=je;function ie(Ht){var Gt=Ht;return Number.isNaN(ue.current)||(Gt=Math.min(Gt,ue.current)),Gt=Math.max(Gt,0),Gt}var Be=ne<=0,Xe=ne>=je,Oe=be<=0,ft=be>=g,wt=lEe(Be,Xe,Oe,ft),ot=function(){return{x:K?-be:be,y:ne}},it=E.useRef(ot()),vt=tA(function(Ht){if(C){var Gt=se(se({},ot()),Ht);(it.current.x!==Gt.x||it.current.y!==Gt.y)&&(C(Gt),it.current=Gt)}});function qt(Ht,Gt){var er=Ht;Gt?(Ko.flushSync(function(){Se(er)}),vt()):Re(er)}function Xt(Ht){var Gt=Ht.currentTarget.scrollTop;Gt!==ne&&Re(Gt),y?.(Ht),vt()}var Tr=function(Gt){var er=Gt,Qr=g?g-He.width:0;return er=Math.max(er,0),er=Math.min(er,Qr),er},Kr=tA(function(Ht,Gt){Gt?(Ko.flushSync(function(){Se(function(er){var Qr=er+(K?-Ht:Ht);return Tr(Qr)})}),vt()):Re(function(er){var Qr=er+Ht;return Qr})}),Vr=kUe(j,Be,Xe,Oe,ft,!!g,Kr),Pr=Je(Vr,2),mr=Pr[0],xr=Pr[1];zUe(j,L,function(Ht,Gt,er,Qr){var Hr=Qr;return wt(Ht,Gt,er)?!1:!Hr||!Hr._virtualHandled?(Hr&&(Hr._virtualHandled=!0),mr({preventDefault:function(){},deltaX:Ht?Gt:0,deltaY:Ht?0:Gt}),!0):!1}),LUe(X,L,function(Ht){Re(function(Gt){return Gt+Ht})}),Wa(function(){function Ht(er){var Qr=Be&&er.detail<0,Hr=Xe&&er.detail>0;j&&!Qr&&!Hr&&er.preventDefault()}var Gt=L.current;return Gt.addEventListener("wheel",mr,{passive:!1}),Gt.addEventListener("DOMMouseScroll",xr,{passive:!0}),Gt.addEventListener("MozMousePixelScroll",Ht,{passive:!1}),function(){Gt.removeEventListener("wheel",mr),Gt.removeEventListener("DOMMouseScroll",xr),Gt.removeEventListener("MozMousePixelScroll",Ht)}},[j,Be,Xe]),Wa(function(){if(g){var Ht=Tr(be);Se(Ht),vt({x:Ht})}},[He.width,g]);var Ir=function(){var Gt,er;(Gt=Et.current)===null||Gt===void 0||Gt.delayHidden(),(er=Yt.current)===null||er===void 0||er.delayHidden()},Fr=UUe(L,H,P,o,T,function(){return _(!0)},Re,Ir);E.useImperativeHandle(t,function(){return{nativeElement:J.current,getScrollInfo:ot,scrollTo:function(Gt){function er(Qr){return Qr&&Ar(Qr)==="object"&&("left"in Qr||"top"in Qr)}er(Gt)?(Gt.left!==void 0&&Se(Tr(Gt.left)),Fr(Gt.top)):Fr(Gt)}}}),Wa(function(){if(w){var Ht=H.slice($e,ce+1);w(Ht,H)}},[$e,ce,H]);var br=PUe(H,T,P,o),Sr=x?.({start:$e,end:ce,virtual:X,offsetX:be,offsetY:qe,rtl:K,getSize:br}),fr=FUe(H,$e,ce,g,be,N,u,we),Cr=null;i&&(Cr=se(te({},l?"height":"maxHeight",i),VUe),j&&(Cr.overflowY="hidden",g&&(Cr.overflowX="hidden"),Ue&&(Cr.pointerEvents="none")));var hr={};return K&&(hr.dir="rtl"),E.createElement("div",ge({ref:J,style:se(se({},c),{},{position:"relative"}),className:U},hr,b),E.createElement($c,{onResize:Ee},E.createElement(m,{className:"".concat(n,"-holder"),style:Cr,ref:L,onScroll:Xt,onMouseEnter:Ir},E.createElement(sEe,{prefixCls:n,height:At,offsetX:be,offsetY:qe,scrollWidth:g,onInnerResize:_,ref:V,innerProps:B,rtl:K,extra:Sr},fr))),X&&At>i&&E.createElement(Hq,{ref:Et,prefixCls:n,scrollOffset:ne,scrollRange:At,rtl:K,onScroll:qt,onStartMove:Ve,onStopMove:Ie,spinSize:Fe,containerSize:He.height,style:M?.verticalScrollBar,thumbStyle:M?.verticalScrollBarThumb,showScrollBar:R}),X&&g>He.width&&E.createElement(Hq,{ref:Yt,prefixCls:n,scrollOffset:be,scrollRange:g,rtl:K,onScroll:qt,onStartMove:Ve,onStopMove:Ie,spinSize:$,containerSize:He.width,horizontal:!0,style:M?.horizontalScrollBar,thumbStyle:M?.horizontalScrollBarThumb,showScrollBar:R}))}var x7=E.forwardRef(JUe);x7.displayName="List";function WUe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var cEe=E.createContext(null),XUe=["disabled","title","children","style","className"];function Kq(e){return typeof e=="string"||typeof e=="number"}var qUe=function(t,r){var n=_0e(),a=n.prefixCls,i=n.id,o=n.open,s=n.multiple,l=n.mode,c=n.searchValue,A=n.toggleOpen,u=n.notFoundContent,d=n.onPopupScroll,f=E.useContext(cEe),h=f.flattenOptions,g=f.onActiveValue,p=f.defaultActiveFirstOption,m=f.onSelect,y=f.menuItemSelectedIcon,C=f.rawValues,w=f.fieldNames,B=f.virtual,x=f.listHeight,M=f.listItemHeight,S="".concat(a,"-item"),R=am(function(){return h},[o,h],function(L,V){return V[0]&&L[1]!==V[1]}),b=E.useRef(null),T=function(V){V.preventDefault()},D=function(V){b.current&&b.current.scrollTo(typeof V=="number"?{index:V}:V)},F=function(V){for(var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,ee=R.length,ae=0;ae<ee;ae+=1){var ne=(V+ae*J+ee)%ee,fe=R[ne],he=fe.group,ye=fe.data;if(!he&&!ye.disabled)return ne}return-1},N=E.useState(function(){return F(0)}),_=Je(N,2),P=_[0],k=_[1],j=function(V){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;k(V);var ee={source:J?"keyboard":"mouse"},ae=R[V];if(!ae){g(null,-1,ee);return}g(ae.value,V,ee)};E.useEffect(function(){j(p!==!1?F(0):-1)},[R.length,c]);var Y=E.useCallback(function(L){return C.has(L)&&l!=="combobox"},[l,ir(C).toString(),C.size]);E.useEffect(function(){var L=setTimeout(function(){if(!s&&o&&C.size===1){var J=Array.from(C)[0],ee=R.findIndex(function(ae){var ne=ae.data;return ne.value===J});ee!==-1&&(j(ee),D(ee))}});if(o){var V;(V=b.current)===null||V===void 0||V.scrollTo(void 0)}return function(){return clearTimeout(L)}},[o,c]);var X=function(V){V!==void 0&&m(V,{selected:!C.has(V)}),s||A(!1)};if(E.useImperativeHandle(r,function(){return{onKeyDown:function(V){var J=V.which,ee=V.ctrlKey;switch(J){case cr.N:case cr.P:case cr.UP:case cr.DOWN:{var ae=0;if(J===cr.UP?ae=-1:J===cr.DOWN?ae=1:WUe()&&ee&&(J===cr.N?ae=1:J===cr.P&&(ae=-1)),ae!==0){var ne=F(P+ae,ae);D(ne),j(ne,!0)}break}case cr.ENTER:{var fe=R[P];fe&&!fe.data.disabled?X(fe.value):X(void 0),o&&V.preventDefault();break}case cr.ESC:A(!1),o&&V.stopPropagation()}},onKeyUp:function(){},scrollTo:function(V){D(V)}}}),R.length===0)return E.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(S,"-empty"),onMouseDown:T},u);var K=Object.keys(w).map(function(L){return w[L]}),U=function(V){return V.label},H=function(V){var J=R[V];if(!J)return null;var ee=J.data||{},ae=ee.value,ne=J.group,fe=Gf(ee,!0),he=U(J);return J?E.createElement("div",ge({"aria-label":typeof he=="string"&&!ne?he:null},fe,{key:V,role:ne?"presentation":"option",id:"".concat(i,"_list_").concat(V),"aria-selected":Y(ae)}),ae):null};return E.createElement(E.Fragment,null,E.createElement("div",{role:"listbox",id:"".concat(i,"_list"),style:{height:0,width:0,overflow:"hidden"}},H(P-1),H(P),H(P+1)),E.createElement(x7,{itemKey:"key",ref:b,data:R,height:x,itemHeight:M,fullHeight:!1,onMouseDown:T,onScroll:d,virtual:B},function(L,V){var J,ee=L.group,ae=L.groupOption,ne=L.data,fe=L.label,he=L.value,ye=ne.key;if(ee){var be,Se=(be=ne.title)!==null&&be!==void 0?be:Kq(fe)?fe.toString():void 0;return E.createElement("div",{className:dt(S,"".concat(S,"-group")),title:Se},fe!==void 0?fe:ye)}var ve=ne.disabled,de=ne.title;ne.children;var Ue=ne.style,at=ne.className,Ve=An(ne,XUe),Ie=ji(Ve,K),we=Y(he),Re="".concat(S,"-option"),Te=dt(S,Re,at,(J={},te(J,"".concat(Re,"-grouped"),ae),te(J,"".concat(Re,"-active"),P===V&&!ve),te(J,"".concat(Re,"-disabled"),ve),te(J,"".concat(Re,"-selected"),we),J)),Ke=U(L),mt=!y||typeof y=="function"||we,tt=typeof Ke=="number"?Ke:Ke||he,rt=Kq(tt)?tt.toString():void 0;return de!==void 0&&(rt=de),E.createElement("div",ge({},Gf(Ie),{"aria-selected":we,className:Te,title:rt,onMouseMove:function(){P===V||ve||j(V)},onClick:function(){ve||X(he)},style:Ue}),E.createElement("div",{className:"".concat(Re,"-content")},tt),E.isValidElement(y)||we,mt&&E.createElement(qR,{className:"".concat(S,"-option-state"),customizeIcon:y,customizeIconProps:{isSelected:we}},we?"✓":null))}))},AEe=E.forwardRef(qUe);AEe.displayName="OptionList";var ZUe=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],$Ue=["inputValue"];function eHe(e){return!e||Ar(e)!=="object"}var tHe=E.forwardRef(function(e,t){var r=e.id,n=e.mode,a=e.prefixCls,i=a===void 0?"rc-select":a,o=e.backfill,s=e.fieldNames,l=e.inputValue,c=e.searchValue,A=e.onSearch,u=e.autoClearSearchValue,d=u===void 0?!0:u,f=e.onSelect,h=e.onDeselect,g=e.dropdownMatchSelectWidth,p=g===void 0?!0:g,m=e.filterOption,y=e.filterSort,C=e.optionFilterProp,w=e.optionLabelProp,B=e.options,x=e.children,M=e.defaultActiveFirstOption,S=e.menuItemSelectedIcon,R=e.virtual,b=e.listHeight,T=b===void 0?200:b,D=e.listItemHeight,F=D===void 0?20:D,N=e.value,_=e.defaultValue,P=e.labelInValue,k=e.onChange,j=An(e,ZUe),Y=iEe(r),X=Rz(n),K=!!(!B&&x),U=E.useMemo(function(){return m===void 0&&n==="combobox"?!1:m},[m,n]),H=E.useMemo(function(){return nEe(s,K)},[JSON.stringify(s),K]),L=Ia("",{value:c!==void 0?c:l,postState:function(ft){return ft||""}}),V=Je(L,2),J=V[0],ee=V[1],ae=QUe(B,x,H,C,w),ne=ae.valueOptions,fe=ae.labelOptions,he=ae.options,ye=E.useCallback(function(Oe){var ft=z0e(Oe);return ft.map(function(wt){var ot,it,vt,qt,Xt;if(eHe(wt))ot=wt;else{var Tr;vt=wt.key,it=wt.label,ot=(Tr=wt.value)!==null&&Tr!==void 0?Tr:vt}var Kr=ne.get(ot);if(Kr){var Vr;it===void 0&&(it=Kr?.[w||H.label]),vt===void 0&&(vt=(Vr=Kr?.key)!==null&&Vr!==void 0?Vr:ot),qt=Kr?.disabled,Xt=Kr?.title}return{label:it,value:ot,key:vt,disabled:qt,title:Xt}})},[H,w,ne]),be=Ia(_,{value:N}),Se=Je(be,2),ve=Se[0],de=Se[1],Ue=E.useMemo(function(){var Oe,ft=ye(ve);return n==="combobox"&&!((Oe=ft[0])!==null&&Oe!==void 0&&Oe.value)?[]:ft},[ve,ye,n]),at=xUe(Ue,ne),Ve=Je(at,2),Ie=Ve[0],we=Ve[1],Re=E.useMemo(function(){if(!n&&Ie.length===1){var Oe=Ie[0];if(Oe.value===null&&(Oe.label===null||Oe.label===void 0))return[]}return Ie.map(function(ft){var wt;return se(se({},ft),{},{label:(wt=ft.label)!==null&&wt!==void 0?wt:ft.value})})},[n,Ie]),Te=E.useMemo(function(){return new Set(Ie.map(function(Oe){return Oe.value}))},[Ie]);E.useEffect(function(){if(n==="combobox"){var Oe,ft=(Oe=Ie[0])===null||Oe===void 0?void 0:Oe.value;ee(C7e(ft)?String(ft):"")}},[Ie]);var Ke=jq(function(Oe,ft){var wt,ot=ft??Oe;return wt={},te(wt,H.value,Oe),te(wt,H.label,ot),wt}),mt=E.useMemo(function(){if(n!=="tags")return he;var Oe=ir(he),ft=function(ot){return ne.has(ot)};return ir(Ie).sort(function(wt,ot){return wt.value<ot.value?-1:1}).forEach(function(wt){var ot=wt.value;ft(ot)||Oe.push(Ke(ot,wt.label))}),Oe},[Ke,he,ne,Ie,n]),tt=MUe(mt,H,J,U,C),rt=E.useMemo(function(){return n!=="tags"||!J||tt.some(function(Oe){return Oe[C||"value"]===J})?tt:[Ke(J)].concat(ir(tt))},[Ke,C,n,tt,J]),lt=E.useMemo(function(){return y?ir(rt).sort(function(Oe,ft){return y(Oe,ft)}):rt},[rt,y]),At=E.useMemo(function(){return yUe(lt,{fieldNames:H,childrenAsData:K})},[lt,H,K]),$e=function(ft){var wt=ye(ft);if(de(wt),k&&(wt.length!==Ie.length||wt.some(function(vt,qt){var Xt;return((Xt=Ie[qt])===null||Xt===void 0?void 0:Xt.value)!==vt?.value}))){var ot=P?wt:wt.map(function(vt){return vt.value}),it=wt.map(function(vt){return Sz(we(vt.value))});k(X?ot:ot[0],X?it:it[0])}},ce=E.useState(null),qe=Je(ce,2),ct=qe[0],Tt=qe[1],He=E.useState(0),Ge=Je(He,2),Ee=Ge[0],Et=Ge[1],Yt=M!==void 0?M:n!=="combobox",$=E.useCallback(function(Oe,ft){var wt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ot=wt.source,it=ot===void 0?"keyboard":ot;Et(ft),o&&n==="combobox"&&Oe!==null&&it==="keyboard"&&Tt(String(Oe))},[o,n]),Fe=function(ft,wt,ot){var it=function(){var Ir,Fr=we(ft);return[P?{label:Fr?.[H.label],value:ft,key:(Ir=Fr?.key)!==null&&Ir!==void 0?Ir:ft}:ft,Sz(Fr)]};if(wt&&f){var vt=it(),qt=Je(vt,2),Xt=qt[0],Tr=qt[1];f(Xt,Tr)}else if(!wt&&h&&ot!=="clear"){var Kr=it(),Vr=Je(Kr,2),Pr=Vr[0],mr=Vr[1];h(Pr,mr)}},je=jq(function(Oe,ft){var wt,ot=X?ft.selected:!0;ot?wt=X?[].concat(ir(Ie),[Oe]):[Oe]:wt=Ie.filter(function(it){return it.value!==Oe}),$e(wt),Fe(Oe,ot),n==="combobox"?Tt(""):(!Rz||d)&&(ee(""),Tt(""))}),ue=function(ft,wt){$e(ft);var ot=wt.type,it=wt.values;(ot==="remove"||ot==="clear")&&it.forEach(function(vt){Fe(vt.value,!1,ot)})},ie=function(ft,wt){if(ee(ft),Tt(null),wt.source==="submit"){var ot=(ft||"").trim();if(ot){var it=Array.from(new Set([].concat(ir(Te),[ot])));$e(it),Fe(ot,!0),ee("")}return}wt.source!=="blur"&&(n==="combobox"&&$e(ft),A?.(ft))},Be=function(ft){var wt=ft;n!=="tags"&&(wt=ft.map(function(it){var vt=fe.get(it);return vt?.value}).filter(function(it){return it!==void 0}));var ot=Array.from(new Set([].concat(ir(Te),ir(wt))));$e(ot),ot.forEach(function(it){Fe(it,!0)})},Xe=E.useMemo(function(){var Oe=R!==!1&&p!==!1;return se(se({},ae),{},{flattenOptions:At,onActiveValue:$,defaultActiveFirstOption:Yt,onSelect:je,menuItemSelectedIcon:S,rawValues:Te,fieldNames:H,virtual:Oe,listHeight:T,listItemHeight:F,childrenAsData:K})},[ae,At,$,Yt,je,S,Te,H,R,p,T,F,K]);return E.createElement(cEe.Provider,{value:Xe},E.createElement(aEe,ge({},j,{id:Y,prefixCls:i,ref:t,omitDomProps:$Ue,mode:n,displayValues:Re,onDisplayValuesChange:ue,searchValue:J,onSearch:ie,autoClearSearchValue:d,onSearchSplit:Be,dropdownMatchSelectWidth:p,OptionList:AEe,emptyOptions:!At.length,activeValue:ct,activeDescendantId:"".concat(Y,"_list_").concat(Ee)})))}),M7=tHe;M7.Option=B7;M7.OptGroup=w7;var rHe=function(){var t=E.useContext(an),r=t.getPrefixCls,n=r("empty-img-default");return E.createElement("svg",{className:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(24 31.67)"},E.createElement("ellipse",{className:"".concat(n,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),E.createElement("path",{className:"".concat(n,"-path-1"),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"}),E.createElement("path",{className:"".concat(n,"-path-2"),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",transform:"translate(13.56)"}),E.createElement("path",{className:"".concat(n,"-path-3"),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"}),E.createElement("path",{className:"".concat(n,"-path-4"),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"})),E.createElement("path",{className:"".concat(n,"-path-5"),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"}),E.createElement("g",{className:"".concat(n,"-g"),transform:"translate(149.65 15.383)"},E.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),E.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},nHe=function(){var t=E.useContext(an),r=t.getPrefixCls,n=r("empty-img-simple");return E.createElement("svg",{className:n,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},E.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},E.createElement("ellipse",{className:"".concat(n,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),E.createElement("g",{className:"".concat(n,"-g"),fillRule:"nonzero"},E.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"}),E.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",className:"".concat(n,"-path")}))))},aHe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},uEe=E.createElement(rHe,null),dEe=E.createElement(nHe,null),WA=function(t){var r=t.className,n=t.prefixCls,a=t.image,i=a===void 0?uEe:a,o=t.description,s=t.children,l=t.imageStyle,c=aHe(t,["className","prefixCls","image","description","children","imageStyle"]),A=E.useContext(an),u=A.getPrefixCls,d=A.direction;return E.createElement(Td,{componentName:"Empty"},function(f){var h=u("empty",n),g=typeof o<"u"?o:f.description,p=typeof g=="string"?g:"empty",m=null;return typeof i=="string"?m=E.createElement("img",{alt:p,src:i}):m=i,E.createElement("div",ge({className:dt(h,te(te({},"".concat(h,"-normal"),i===dEe),"".concat(h,"-rtl"),d==="rtl"),r)},c),E.createElement("div",{className:"".concat(h,"-image"),style:l},m),g&&E.createElement("div",{className:"".concat(h,"-description")},g),s&&E.createElement("div",{className:"".concat(h,"-footer")},s))})};WA.PRESENTED_IMAGE_DEFAULT=uEe;WA.PRESENTED_IMAGE_SIMPLE=dEe;var HQ=function(t){return E.createElement(Lg,null,function(r){var n=r.getPrefixCls,a=n("empty");switch(t){case"Table":case"List":return E.createElement(WA,{image:WA.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return E.createElement(WA,{image:WA.PRESENTED_IMAGE_SIMPLE,className:"".concat(a,"-small")});default:return E.createElement(WA,null)}})},uv="RC_FORM_INTERNAL_HOOKS",La=function(){Ea(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},xg=E.createContext({getFieldValue:La,getFieldsValue:La,getFieldError:La,getFieldWarning:La,getFieldsError:La,isFieldsTouched:La,isFieldTouched:La,isFieldValidating:La,isFieldsValidating:La,resetFields:La,setFields:La,setFieldValue:La,setFieldsValue:La,validateFields:La,submit:La,getInternalHooks:function(){return La(),{dispatch:La,initEntityValue:La,registerField:La,useSubscribe:La,setInitialValues:La,destroyForm:La,setCallbacks:La,registerWatch:La,getFields:La,setValidateMessages:La,setPreserve:La,getInitialValue:La}}}),WE=E.createContext(null);function Qz(e){return e==null?[]:Array.isArray(e)?e:[e]}function iHe(e){return e&&!!e._init}function dv(){return dv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dv.apply(this,arguments)}function oHe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,oB(e,t)}function Dz(e){return Dz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Dz(e)}function oB(e,t){return oB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,a){return n.__proto__=a,n},oB(e,t)}function sHe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function GS(e,t,r){return sHe()?GS=Reflect.construct.bind():GS=function(a,i,o){var s=[null];s.push.apply(s,i);var l=Function.bind.apply(a,s),c=new l;return o&&oB(c,o.prototype),c},GS.apply(null,arguments)}function lHe(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fz(e){var t=typeof Map=="function"?new Map:void 0;return Fz=function(n){if(n===null||!lHe(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,a)}function a(){return GS(n,arguments,Dz(this).constructor)}return a.prototype=Object.create(n.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),oB(a,n)},Fz(e)}var cHe=/%[sdj%]/g,AHe=function(){};function Nz(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function Ac(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var a=0,i=r.length;if(typeof e=="function")return e.apply(null,r);if(typeof e=="string"){var o=e.replace(cHe,function(s){if(s==="%%")return"%";if(a>=i)return s;switch(s){case"%s":return String(r[a++]);case"%d":return Number(r[a++]);case"%j":try{return JSON.stringify(r[a++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function uHe(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function So(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||uHe(t)&&typeof e=="string"&&!e)}function dHe(e,t,r){var n=[],a=0,i=e.length;function o(s){n.push.apply(n,s||[]),a++,a===i&&r(n)}e.forEach(function(s){t(s,o)})}function Vq(e,t,r){var n=0,a=e.length;function i(o){if(o&&o.length){r(o);return}var s=n;n=n+1,s<a?t(e[s],i):r([])}i([])}function fHe(e){var t=[];return Object.keys(e).forEach(function(r){t.push.apply(t,e[r]||[])}),t}var Jq=(function(e){oHe(t,e);function t(r,n){var a;return a=e.call(this,"Async Validation Error")||this,a.errors=r,a.fields=n,a}return t})(Fz(Error));function hHe(e,t,r,n,a){if(t.first){var i=new Promise(function(d,f){var h=function(m){return n(m),m.length?f(new Jq(m,Nz(m))):d(a)},g=fHe(e);Vq(g,r,h)});return i.catch(function(d){return d}),i}var o=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,c=0,A=[],u=new Promise(function(d,f){var h=function(p){if(A.push.apply(A,p),c++,c===l)return n(A),A.length?f(new Jq(A,Nz(A))):d(a)};s.length||(n(A),d(a)),s.forEach(function(g){var p=e[g];o.indexOf(g)!==-1?Vq(p,r,h):dHe(p,r,h)})});return u.catch(function(d){return d}),u}function gHe(e){return!!(e&&e.message!==void 0)}function pHe(e,t){for(var r=e,n=0;n<t.length;n++){if(r==null)return r;r=r[t[n]]}return r}function Wq(e,t){return function(r){var n;return e.fullFields?n=pHe(t,e.fullFields):n=t[r.field||e.fullField],gHe(r)?(r.field=r.field||e.fullField,r.fieldValue=n,r):{message:typeof r=="function"?r():r,fieldValue:n,field:r.field||e.fullField}}}function Xq(e,t){if(t){for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];typeof n=="object"&&typeof e[r]=="object"?e[r]=dv({},e[r],n):e[r]=n}}return e}var fEe=function(t,r,n,a,i,o){t.required&&(!n.hasOwnProperty(t.field)||So(r,o||t.type))&&a.push(Ac(i.messages.required,t.fullField))},vHe=function(t,r,n,a,i){(/^\s+$/.test(r)||r==="")&&a.push(Ac(i.messages.whitespace,t.fullField))},KM,mHe=(function(){if(KM)return KM;var e="[a-fA-F\\d:]",t=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},r="(?: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}",n="[a-fA-F\\d]{1,4}",a=(`
(?:
(?:`+n+":){7}(?:"+n+`|:)|                                    // 1:2:3:4:5:6:7::  1:2:3:4:5:6:7:8
(?:`+n+":){6}(?:"+r+"|:"+n+`|:)|                             // 1:2:3:4:5:6::    1:2:3:4:5:6::8   1:2:3:4:5:6::8  1:2:3:4:5:6::1.2.3.4
(?:`+n+":){5}(?::"+r+"|(?::"+n+`){1,2}|:)|                   // 1:2:3:4:5::      1:2:3:4:5::7:8   1:2:3:4:5::8    1:2:3:4:5::7:1.2.3.4
(?:`+n+":){4}(?:(?::"+n+"){0,1}:"+r+"|(?::"+n+`){1,3}|:)| // 1:2:3:4::        1:2:3:4::6:7:8   1:2:3:4::8      1:2:3:4::6:7:1.2.3.4
(?:`+n+":){3}(?:(?::"+n+"){0,2}:"+r+"|(?::"+n+`){1,4}|:)| // 1:2:3::          1:2:3::5:6:7:8   1:2:3::8        1:2:3::5:6:7:1.2.3.4
(?:`+n+":){2}(?:(?::"+n+"){0,3}:"+r+"|(?::"+n+`){1,5}|:)| // 1:2::            1:2::4:5:6:7:8   1:2::8          1:2::4:5:6:7:1.2.3.4
(?:`+n+":){1}(?:(?::"+n+"){0,4}:"+r+"|(?::"+n+`){1,6}|:)| // 1::              1::3:4:5:6:7:8   1::8            1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+n+"){0,5}:"+r+"|(?::"+n+`){1,7}|:))             // ::2:3:4:5:6:7:8  ::2:3:4:5:6:7:8  ::8             ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})?                                             // %eth0            %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+r+"$)|(?:^"+a+"$)"),o=new RegExp("^"+r+"$"),s=new RegExp("^"+a+"$"),l=function(w){return w&&w.exact?i:new RegExp("(?:"+t(w)+r+t(w)+")|(?:"+t(w)+a+t(w)+")","g")};l.v4=function(C){return C&&C.exact?o:new RegExp(""+t(C)+r+t(C),"g")},l.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+a+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",A="(?:\\S+(?::\\S*)?@)?",u=l.v4().source,d=l.v6().source,f="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",p="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+A+"(?:localhost|"+u+"|"+d+"|"+f+h+g+")"+p+m;return KM=new RegExp("(?:^"+y+"$)","i"),KM}),qq={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},ow={integer:function(t){return ow.number(t)&&parseInt(t,10)===t},float:function(t){return ow.number(t)&&!ow.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!ow.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(qq.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(mHe())},hex:function(t){return typeof t=="string"&&!!t.match(qq.hex)}},EHe=function(t,r,n,a,i){if(t.required&&r===void 0){fEe(t,r,n,a,i);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?ow[s](r)||a.push(Ac(i.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&a.push(Ac(i.messages.types[s],t.fullField,t.type))},yHe=function(t,r,n,a,i){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,A=r,u=null,d=typeof r=="number",f=typeof r=="string",h=Array.isArray(r);if(d?u="number":f?u="string":h&&(u="array"),!u)return!1;h&&(A=r.length),f&&(A=r.replace(c,"_").length),o?A!==t.len&&a.push(Ac(i.messages[u].len,t.fullField,t.len)):s&&!l&&A<t.min?a.push(Ac(i.messages[u].min,t.fullField,t.min)):l&&!s&&A>t.max?a.push(Ac(i.messages[u].max,t.fullField,t.max)):s&&l&&(A<t.min||A>t.max)&&a.push(Ac(i.messages[u].range,t.fullField,t.min,t.max))},t0="enum",CHe=function(t,r,n,a,i){t[t0]=Array.isArray(t[t0])?t[t0]:[],t[t0].indexOf(r)===-1&&a.push(Ac(i.messages[t0],t.fullField,t[t0].join(", ")))},wHe=function(t,r,n,a,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||a.push(Ac(i.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||a.push(Ac(i.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},ua={required:fEe,whitespace:vHe,type:EHe,range:yHe,enum:CHe,pattern:wHe},BHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r,"string")&&!t.required)return n();ua.required(t,r,a,o,i,"string"),So(r,"string")||(ua.type(t,r,a,o,i),ua.range(t,r,a,o,i),ua.pattern(t,r,a,o,i),t.whitespace===!0&&ua.whitespace(t,r,a,o,i))}n(o)},xHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i),r!==void 0&&ua.type(t,r,a,o,i)}n(o)},MHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),So(r)&&!t.required)return n();ua.required(t,r,a,o,i),r!==void 0&&(ua.type(t,r,a,o,i),ua.range(t,r,a,o,i))}n(o)},IHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i),r!==void 0&&ua.type(t,r,a,o,i)}n(o)},bHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i),So(r)||ua.type(t,r,a,o,i)}n(o)},SHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i),r!==void 0&&(ua.type(t,r,a,o,i),ua.range(t,r,a,o,i))}n(o)},RHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i),r!==void 0&&(ua.type(t,r,a,o,i),ua.range(t,r,a,o,i))}n(o)},THe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();ua.required(t,r,a,o,i,"array"),r!=null&&(ua.type(t,r,a,o,i),ua.range(t,r,a,o,i))}n(o)},QHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i),r!==void 0&&ua.type(t,r,a,o,i)}n(o)},DHe="enum",FHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i),r!==void 0&&ua[DHe](t,r,a,o,i)}n(o)},NHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r,"string")&&!t.required)return n();ua.required(t,r,a,o,i),So(r,"string")||ua.pattern(t,r,a,o,i)}n(o)},_He=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r,"date")&&!t.required)return n();if(ua.required(t,r,a,o,i),!So(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),ua.type(t,l,a,o,i),l&&ua.range(t,l.getTime(),a,o,i)}}n(o)},kHe=function(t,r,n,a,i){var o=[],s=Array.isArray(r)?"array":typeof r;ua.required(t,r,a,o,i,s),n(o)},K_=function(t,r,n,a,i){var o=t.type,s=[],l=t.required||!t.required&&a.hasOwnProperty(t.field);if(l){if(So(r,o)&&!t.required)return n();ua.required(t,r,a,s,i,o),So(r,o)||ua.type(t,r,a,s,i)}n(s)},PHe=function(t,r,n,a,i){var o=[],s=t.required||!t.required&&a.hasOwnProperty(t.field);if(s){if(So(r)&&!t.required)return n();ua.required(t,r,a,o,i)}n(o)},Qw={string:BHe,method:xHe,number:MHe,boolean:IHe,regexp:bHe,integer:SHe,float:RHe,array:THe,object:QHe,enum:FHe,pattern:NHe,date:_He,url:K_,hex:K_,email:K_,required:kHe,any:PHe};function _z(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var kz=_z(),fx=(function(){function e(r){this.rules=null,this._messages=kz,this.define(r)}var t=e.prototype;return t.define=function(n){var a=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(i){var o=n[i];a.rules[i]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=Xq(_z(),n)),this._messages},t.validate=function(n,a,i){var o=this;a===void 0&&(a={}),i===void 0&&(i=function(){});var s=n,l=a,c=i;if(typeof l=="function"&&(c=l,l={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,s),Promise.resolve(s);function A(g){var p=[],m={};function y(w){if(Array.isArray(w)){var B;p=(B=p).concat.apply(B,w)}else p.push(w)}for(var C=0;C<g.length;C++)y(g[C]);p.length?(m=Nz(p),c(p,m)):c(null,s)}if(l.messages){var u=this.messages();u===kz&&(u=_z()),Xq(u,l.messages),l.messages=u}else l.messages=this.messages();var d={},f=l.keys||Object.keys(this.rules);f.forEach(function(g){var p=o.rules[g],m=s[g];p.forEach(function(y){var C=y;typeof C.transform=="function"&&(s===n&&(s=dv({},s)),m=s[g]=C.transform(m)),typeof C=="function"?C={validator:C}:C=dv({},C),C.validator=o.getValidationMethod(C),C.validator&&(C.field=g,C.fullField=C.fullField||g,C.type=o.getType(C),d[g]=d[g]||[],d[g].push({rule:C,value:m,source:s,field:g}))})});var h={};return hHe(d,l,function(g,p){var m=g.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&g.value),m.field=g.field;function C(x,M){return dv({},M,{fullField:m.fullField+"."+x,fullFields:m.fullFields?[].concat(m.fullFields,[x]):[x]})}function w(x){x===void 0&&(x=[]);var M=Array.isArray(x)?x:[x];!l.suppressWarning&&M.length&&e.warning("async-validator:",M),M.length&&m.message!==void 0&&(M=[].concat(m.message));var S=M.map(Wq(m,s));if(l.first&&S.length)return h[m.field]=1,p(S);if(!y)p(S);else{if(m.required&&!g.value)return m.message!==void 0?S=[].concat(m.message).map(Wq(m,s)):l.error&&(S=[l.error(m,Ac(l.messages.required,m.field))]),p(S);var R={};m.defaultField&&Object.keys(g.value).map(function(D){R[D]=m.defaultField}),R=dv({},R,g.rule.fields);var b={};Object.keys(R).forEach(function(D){var F=R[D],N=Array.isArray(F)?F:[F];b[D]=N.map(C.bind(null,D))});var T=new e(b);T.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),T.validate(g.value,g.rule.options||l,function(D){var F=[];S&&S.length&&F.push.apply(F,S),D&&D.length&&F.push.apply(F,D),p(F.length?F:null)})}}var B;if(m.asyncValidator)B=m.asyncValidator(m,g.value,w,g.source,l);else if(m.validator){try{B=m.validator(m,g.value,w,g.source,l)}catch(x){console.error?.(x),l.suppressValidatorError||setTimeout(function(){throw x},0),w(x.message)}B===!0?w():B===!1?w(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):B instanceof Array?w(B):B instanceof Error&&w(B.message)}B&&B.then&&B.then(function(){return w()},function(x){return w(x)})},function(g){A(g)},s)},t.getType=function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Qw.hasOwnProperty(n.type))throw new Error(Ac("Unknown rule type %s",n.type));return n.type||"string"},t.getValidationMethod=function(n){if(typeof n.validator=="function")return n.validator;var a=Object.keys(n),i=a.indexOf("message");return i!==-1&&a.splice(i,1),a.length===1&&a[0]==="required"?Qw.required:Qw[this.getType(n)]||void 0},e})();fx.register=function(t,r){if(typeof r!="function")throw new Error("Cannot register a validator by type, validator is not a function");Qw[t]=r};fx.warning=AHe;fx.messages=kz;fx.validators=Qw;var tc="'${name}' is not a valid ${type}",hEe={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:tc,method:tc,array:tc,object:tc,number:tc,date:tc,boolean:tc,integer:tc,float:tc,regexp:tc,email:tc,url:tc,hex:tc},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}"}},Zq=fx;function OHe(e,t){return e.replace(/\$\{\w+\}/g,function(r){var n=r.slice(2,-1);return t[n]})}var $q="CODE_LOGIC_ERROR";function Pz(e,t,r,n,a){return Oz.apply(this,arguments)}function Oz(){return Oz=zg(Jo().mark(function e(t,r,n,a,i){var o,s,l,c,A,u,d,f,h;return Jo().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:return o=se({},n),delete o.ruleIndex,Zq.warning=function(){},o.validator&&(s=o.validator,o.validator=function(){try{return s.apply(void 0,arguments)}catch(m){return console.error(m),Promise.reject($q)}}),l=null,o&&o.type==="array"&&o.defaultField&&(l=o.defaultField,delete o.defaultField),c=new Zq(te({},t,[o])),A=oE(hEe,a.validateMessages),c.messages(A),u=[],p.prev=10,p.next=13,Promise.resolve(c.validate(te({},t,r),se({},a)));case 13:p.next=18;break;case 15:p.prev=15,p.t0=p.catch(10),p.t0.errors&&(u=p.t0.errors.map(function(m,y){var C=m.message,w=C===$q?A.default:C;return E.isValidElement(w)?E.cloneElement(w,{key:"error_".concat(y)}):w}));case 18:if(!(!u.length&&l)){p.next=23;break}return p.next=21,Promise.all(r.map(function(m,y){return Pz("".concat(t,".").concat(y),m,l,a,i)}));case 21:return d=p.sent,p.abrupt("return",d.reduce(function(m,y){return[].concat(ir(m),ir(y))},[]));case 23:return f=se(se({},n),{},{name:t,enum:(n.enum||[]).join(", ")},i),h=u.map(function(m){return typeof m=="string"?OHe(m,f):m}),p.abrupt("return",h);case 26:case"end":return p.stop()}},e,null,[[10,15]])})),Oz.apply(this,arguments)}function jHe(e,t,r,n,a,i){var o=e.join("."),s=r.map(function(A,u){var d=A.validator,f=se(se({},A),{},{ruleIndex:u});return d&&(f.validator=function(h,g,p){var m=!1,y=function(){for(var B=arguments.length,x=new Array(B),M=0;M<B;M++)x[M]=arguments[M];Promise.resolve().then(function(){Ea(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||p.apply(void 0,x)})},C=d(h,g,y);m=C&&typeof C.then=="function"&&typeof C.catch=="function",Ea(m,"`callback` is deprecated. Please return a promise instead."),m&&C.then(function(){p()}).catch(function(w){p(w||" ")})}),f}).sort(function(A,u){var d=A.warningOnly,f=A.ruleIndex,h=u.warningOnly,g=u.ruleIndex;return!!d==!!h?f-g:d?1:-1}),l;if(a===!0)l=new Promise((function(){var A=zg(Jo().mark(function u(d,f){var h,g,p;return Jo().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:h=0;case 1:if(!(h<s.length)){y.next=12;break}return g=s[h],y.next=5,Pz(o,t,g,n,i);case 5:if(p=y.sent,!p.length){y.next=9;break}return f([{errors:p,rule:g}]),y.abrupt("return");case 9:h+=1,y.next=1;break;case 12:d([]);case 13:case"end":return y.stop()}},u)}));return function(u,d){return A.apply(this,arguments)}})());else{var c=s.map(function(A){return Pz(o,t,A,n,i).then(function(u){return{errors:u,rule:A}})});l=(a?LHe(c):zHe(c)).then(function(A){return Promise.reject(A)})}return l.catch(function(A){return A}),l}function zHe(e){return jz.apply(this,arguments)}function jz(){return jz=zg(Jo().mark(function e(t){return Jo().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Promise.all(t).then(function(a){var i,o=(i=[]).concat.apply(i,ir(a));return o}));case 1:case"end":return n.stop()}},e)})),jz.apply(this,arguments)}function LHe(e){return zz.apply(this,arguments)}function zz(){return zz=zg(Jo().mark(function e(t){var r;return Jo().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return r=0,a.abrupt("return",new Promise(function(i){t.forEach(function(o){o.then(function(s){s.errors.length&&i([s]),r+=1,r===t.length&&i([])})})}));case 2:case"end":return a.stop()}},e)})),zz.apply(this,arguments)}function $i(e){return Qz(e)}function eZ(e,t){var r={};return t.forEach(function(n){var a=$A(e,n);r=KA(r,n,a)}),r}function yE(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(n){return gEe(t,n,r)})}function gEe(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!e||!t||!r&&e.length!==t.length?!1:t.every(function(n,a){return e[a]===n})}function YHe(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||Ar(e)!=="object"||Ar(t)!=="object")return!1;var r=Object.keys(e),n=Object.keys(t),a=new Set([].concat(r,n));return ir(a).every(function(i){var o=e[i],s=t[i];return typeof o=="function"&&typeof s=="function"?!0:o===s})}function UHe(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&Ar(t.target)==="object"&&e in t.target?t.target[e]:t}function tZ(e,t,r){var n=e.length;if(t<0||t>=n||r<0||r>=n)return e;var a=e[t],i=t-r;return i>0?[].concat(ir(e.slice(0,r)),[a],ir(e.slice(r,t)),ir(e.slice(t+1,n))):i<0?[].concat(ir(e.slice(0,t)),ir(e.slice(t+1,r+1)),[a],ir(e.slice(r+1,n))):e}var HHe=["name"],zc=[];function rZ(e,t,r,n,a,i){return typeof e=="function"?e(t,r,"source"in i?{source:i.source}:{}):n!==a}var I7=(function(e){fa(r,e);var t=pi(r);function r(n){var a;if(Vn(this,r),a=t.call(this,n),te(Bt(a),"state",{resetCount:0}),te(Bt(a),"cancelRegisterFunc",null),te(Bt(a),"mounted",!1),te(Bt(a),"touched",!1),te(Bt(a),"dirty",!1),te(Bt(a),"validatePromise",void 0),te(Bt(a),"prevValidating",void 0),te(Bt(a),"errors",zc),te(Bt(a),"warnings",zc),te(Bt(a),"cancelRegister",function(){var l=a.props,c=l.preserve,A=l.isListField,u=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(A,c,$i(u)),a.cancelRegisterFunc=null}),te(Bt(a),"getNamePath",function(){var l=a.props,c=l.name,A=l.fieldContext,u=A.prefixName,d=u===void 0?[]:u;return c!==void 0?[].concat(ir(d),ir(c)):[]}),te(Bt(a),"getRules",function(){var l=a.props,c=l.rules,A=c===void 0?[]:c,u=l.fieldContext;return A.map(function(d){return typeof d=="function"?d(u):d})}),te(Bt(a),"refresh",function(){a.mounted&&a.setState(function(l){var c=l.resetCount;return{resetCount:c+1}})}),te(Bt(a),"metaCache",null),te(Bt(a),"triggerMetaEvent",function(l){var c=a.props.onMetaChange;if(c){var A=se(se({},a.getMeta()),{},{destroy:l});JE(a.metaCache,A)||c(A),a.metaCache=A}else a.metaCache=null}),te(Bt(a),"onStoreChange",function(l,c,A){var u=a.props,d=u.shouldUpdate,f=u.dependencies,h=f===void 0?[]:f,g=u.onReset,p=A.store,m=a.getNamePath(),y=a.getValue(l),C=a.getValue(p),w=c&&yE(c,m);switch(A.type==="valueUpdate"&&A.source==="external"&&y!==C&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=zc,a.warnings=zc,a.triggerMetaEvent()),A.type){case"reset":if(!c||w){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=zc,a.warnings=zc,a.triggerMetaEvent(),g?.(),a.refresh();return}break;case"remove":{if(d){a.reRender();return}break}case"setField":{var B=A.data;if(w){"touched"in B&&(a.touched=B.touched),"validating"in B&&!("originRCField"in B)&&(a.validatePromise=B.validating?Promise.resolve([]):null),"errors"in B&&(a.errors=B.errors||zc),"warnings"in B&&(a.warnings=B.warnings||zc),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in B&&yE(c,m,!0)){a.reRender();return}if(d&&!m.length&&rZ(d,l,p,y,C,A)){a.reRender();return}break}case"dependenciesUpdate":{var x=h.map($i);if(x.some(function(M){return yE(A.relatedFields,M)})){a.reRender();return}break}default:if(w||(!h.length||m.length||d)&&rZ(d,l,p,y,C,A)){a.reRender();return}break}d===!0&&a.reRender()}),te(Bt(a),"validateRules",function(l){var c=a.getNamePath(),A=a.getValue(),u=l||{},d=u.triggerName,f=u.validateOnly,h=f===void 0?!1:f,g=Promise.resolve().then(zg(Jo().mark(function p(){var m,y,C,w,B,x,M;return Jo().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(m=a.props,y=m.validateFirst,C=y===void 0?!1:y,w=m.messageVariables,B=m.validateDebounce,x=a.getRules(),d&&(x=x.filter(function(b){return b}).filter(function(b){var T=b.validateTrigger;if(!T)return!0;var D=Qz(T);return D.includes(d)})),!(B&&d)){R.next=10;break}return R.next=8,new Promise(function(b){setTimeout(b,B)});case 8:if(a.validatePromise===g){R.next=10;break}return R.abrupt("return",[]);case 10:return M=jHe(c,A,x,l,C,w),M.catch(function(b){return b}).then(function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:zc;if(a.validatePromise===g){var T;a.validatePromise=null;var D=[],F=[];(T=b.forEach)===null||T===void 0||T.call(b,function(N){var _=N.rule.warningOnly,P=N.errors,k=P===void 0?zc:P;_?F.push.apply(F,ir(k)):D.push.apply(D,ir(k))}),a.errors=D,a.warnings=F,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",M);case 13:case"end":return R.stop()}},p)})));return h||(a.validatePromise=g,a.dirty=!0,a.errors=zc,a.warnings=zc,a.triggerMetaEvent(),a.reRender()),g}),te(Bt(a),"isFieldValidating",function(){return!!a.validatePromise}),te(Bt(a),"isFieldTouched",function(){return a.touched}),te(Bt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,c=l.getInternalHooks(uv),A=c.getInitialValue;return A(a.getNamePath())!==void 0}),te(Bt(a),"getErrors",function(){return a.errors}),te(Bt(a),"getWarnings",function(){return a.warnings}),te(Bt(a),"isListField",function(){return a.props.isListField}),te(Bt(a),"isList",function(){return a.props.isList}),te(Bt(a),"isPreserve",function(){return a.props.preserve}),te(Bt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),te(Bt(a),"getOnlyChild",function(l){if(typeof l=="function"){var c=a.getMeta();return se(se({},a.getOnlyChild(l(a.getControlled(),c,a.props.fieldContext))),{},{isFunction:!0})}var A=Vo(l);return A.length!==1||!E.isValidElement(A[0])?{child:A,isFunction:!1}:{child:A[0],isFunction:!1}}),te(Bt(a),"getValue",function(l){var c=a.props.fieldContext.getFieldsValue,A=a.getNamePath();return $A(l||c(!0),A)}),te(Bt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=a.props,A=c.trigger,u=c.validateTrigger,d=c.getValueFromEvent,f=c.normalize,h=c.valuePropName,g=c.getValueProps,p=c.fieldContext,m=u!==void 0?u:p.validateTrigger,y=a.getNamePath(),C=p.getInternalHooks,w=p.getFieldsValue,B=C(uv),x=B.dispatch,M=a.getValue(),S=g||function(D){return te({},h,D)},R=l[A],b=se(se({},l),S(M));b[A]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var D,F=arguments.length,N=new Array(F),_=0;_<F;_++)N[_]=arguments[_];d?D=d.apply(void 0,N):D=UHe.apply(void 0,[h].concat(N)),f&&(D=f(D,M,w(!0))),x({type:"updateValue",namePath:y,value:D}),R&&R.apply(void 0,N)};var T=Qz(m||[]);return T.forEach(function(D){var F=b[D];b[D]=function(){F&&F.apply(void 0,arguments);var N=a.props.rules;N&&N.length&&x({type:"validateField",namePath:y,triggerName:D})}}),b}),n.fieldContext){var i=n.fieldContext.getInternalHooks,o=i(uv),s=o.initEntityValue;s(Bt(a))}return a}return Jn(r,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,o=a.fieldContext;if(this.mounted=!0,o){var s=o.getInternalHooks,l=s(uv),c=l.registerField;this.cancelRegisterFunc=c(this)}i===!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 a=this.state.resetCount,i=this.props.children,o=this.getOnlyChild(i),s=o.child,l=o.isFunction,c;return l?c=s:E.isValidElement(s)?c=E.cloneElement(s,this.getControlled(s.props)):(Ea(!s,"`children` of Field is not validate ReactElement."),c=s),E.createElement(E.Fragment,{key:a},c)}}]),r})(E.Component);te(I7,"contextType",xg);te(I7,"defaultProps",{trigger:"onChange",valuePropName:"value"});function GQ(e){var t=e.name,r=An(e,HHe),n=E.useContext(xg),a=E.useContext(WE),i=t!==void 0?$i(t):void 0,o="keep";return r.isListField||(o="_".concat((i||[]).join("_"))),E.createElement(I7,ge({key:o,name:i,isListField:!!a},r,{fieldContext:n}))}function b7(e){var t=e.name,r=e.initialValue,n=e.children,a=e.rules,i=e.validateTrigger,o=e.isListField,s=E.useContext(xg),l=E.useContext(WE),c=E.useRef({keys:[],id:0}),A=c.current,u=E.useMemo(function(){var g=$i(s.prefixName)||[];return[].concat(ir(g),ir($i(t)))},[s.prefixName,t]),d=E.useMemo(function(){return se(se({},s),{},{prefixName:u})},[s,u]),f=E.useMemo(function(){return{getKey:function(p){var m=u.length,y=p[m];return[A.keys[y],p.slice(m+1)]}}},[u]);if(typeof n!="function")return Ea(!1,"Form.List only accepts function as children."),null;var h=function(p,m,y){var C=y.source;return C==="internal"?!1:p!==m};return E.createElement(WE.Provider,{value:f},E.createElement(xg.Provider,{value:d},E.createElement(GQ,{name:[],shouldUpdate:h,rules:a,validateTrigger:i,initialValue:r,isList:!0,isListField:o??!!l},function(g,p){var m=g.value,y=m===void 0?[]:m,C=g.onChange,w=s.getFieldValue,B=function(){var R=w(u||[]);return R||[]},x={add:function(R,b){var T=B();b>=0&&b<=T.length?(A.keys=[].concat(ir(A.keys.slice(0,b)),[A.id],ir(A.keys.slice(b))),C([].concat(ir(T.slice(0,b)),[R],ir(T.slice(b))))):(A.keys=[].concat(ir(A.keys),[A.id]),C([].concat(ir(T),[R]))),A.id+=1},remove:function(R){var b=B(),T=new Set(Array.isArray(R)?R:[R]);T.size<=0||(A.keys=A.keys.filter(function(D,F){return!T.has(F)}),C(b.filter(function(D,F){return!T.has(F)})))},move:function(R,b){if(R!==b){var T=B();R<0||R>=T.length||b<0||b>=T.length||(A.keys=tZ(A.keys,R,b),C(tZ(T,R,b)))}}},M=y||[];return Array.isArray(M)||(M=[]),n(M.map(function(S,R){var b=A.keys[R];return b===void 0&&(A.keys[R]=A.id,b=A.keys[R],A.id+=1),{name:R,key:b,isListField:!0}}),x,p)})))}function GHe(e){var t=!1,r=e.length,n=[];return e.length?new Promise(function(a,i){e.forEach(function(o,s){o.catch(function(l){return t=!0,l}).then(function(l){r-=1,n[s]=l,!(r>0)&&(t&&i(n),a(n))})})}):Promise.resolve([])}var pEe="__@field_split__";function V_(e){return e.map(function(t){return"".concat(Ar(t),":").concat(t)}).join(pEe)}var r0=(function(){function e(){Vn(this,e),te(this,"kvs",new Map)}return Jn(e,[{key:"set",value:function(r,n){this.kvs.set(V_(r),n)}},{key:"get",value:function(r){return this.kvs.get(V_(r))}},{key:"update",value:function(r,n){var a=this.get(r),i=n(a);i?this.set(r,i):this.delete(r)}},{key:"delete",value:function(r){this.kvs.delete(V_(r))}},{key:"map",value:function(r){return ir(this.kvs.entries()).map(function(n){var a=Je(n,2),i=a[0],o=a[1],s=i.split(pEe);return r({key:s.map(function(l){var c=l.match(/^([^:]*):(.*)$/),A=Je(c,3),u=A[1],d=A[2];return u==="number"?Number(d):d}),value:o})})}},{key:"toJSON",value:function(){var r={};return this.map(function(n){var a=n.key,i=n.value;return r[a.join(".")]=i,null}),r}}]),e})(),KHe=["name"],VHe=Jn(function e(t){var r=this;Vn(this,e),te(this,"formHooked",!1),te(this,"forceRootUpdate",void 0),te(this,"subscribable",!0),te(this,"store",{}),te(this,"fieldEntities",[]),te(this,"initialValues",{}),te(this,"callbacks",{}),te(this,"validateMessages",null),te(this,"preserve",null),te(this,"lastValidatePromise",null),te(this,"getForm",function(){return{getFieldValue:r.getFieldValue,getFieldsValue:r.getFieldsValue,getFieldError:r.getFieldError,getFieldWarning:r.getFieldWarning,getFieldsError:r.getFieldsError,isFieldsTouched:r.isFieldsTouched,isFieldTouched:r.isFieldTouched,isFieldValidating:r.isFieldValidating,isFieldsValidating:r.isFieldsValidating,resetFields:r.resetFields,setFields:r.setFields,setFieldValue:r.setFieldValue,setFieldsValue:r.setFieldsValue,validateFields:r.validateFields,submit:r.submit,_init:!0,getInternalHooks:r.getInternalHooks}}),te(this,"getInternalHooks",function(n){return n===uv?(r.formHooked=!0,{dispatch:r.dispatch,initEntityValue:r.initEntityValue,registerField:r.registerField,useSubscribe:r.useSubscribe,setInitialValues:r.setInitialValues,destroyForm:r.destroyForm,setCallbacks:r.setCallbacks,setValidateMessages:r.setValidateMessages,getFields:r.getFields,setPreserve:r.setPreserve,getInitialValue:r.getInitialValue,registerWatch:r.registerWatch}):(Ea(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),te(this,"useSubscribe",function(n){r.subscribable=n}),te(this,"prevWithoutPreserves",null),te(this,"setInitialValues",function(n,a){if(r.initialValues=n||{},a){var i,o=oE(n,r.store);(i=r.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;o=KA(o,l,$A(n,l))}),r.prevWithoutPreserves=null,r.updateStore(o)}}),te(this,"destroyForm",function(){var n=new r0;r.getFieldEntities(!0).forEach(function(a){r.isMergedPreserve(a.isPreserve())||n.set(a.getNamePath(),!0)}),r.prevWithoutPreserves=n}),te(this,"getInitialValue",function(n){var a=$A(r.initialValues,n);return n.length?oE(a):a}),te(this,"setCallbacks",function(n){r.callbacks=n}),te(this,"setValidateMessages",function(n){r.validateMessages=n}),te(this,"setPreserve",function(n){r.preserve=n}),te(this,"watchList",[]),te(this,"registerWatch",function(n){return r.watchList.push(n),function(){r.watchList=r.watchList.filter(function(a){return a!==n})}}),te(this,"notifyWatch",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(r.watchList.length){var a=r.getFieldsValue(),i=r.getFieldsValue(!0);r.watchList.forEach(function(o){o(a,i,n)})}}),te(this,"timeoutId",null),te(this,"warningUnhooked",function(){}),te(this,"updateStore",function(n){r.store=n}),te(this,"getFieldEntities",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return n?r.fieldEntities.filter(function(a){return a.getNamePath().length}):r.fieldEntities}),te(this,"getFieldsMap",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new r0;return r.getFieldEntities(n).forEach(function(i){var o=i.getNamePath();a.set(o,i)}),a}),te(this,"getFieldEntitiesForNamePathList",function(n){if(!n)return r.getFieldEntities(!0);var a=r.getFieldsMap(!0);return n.map(function(i){var o=$i(i);return a.get(o)||{INVALIDATE_NAME_PATH:$i(i)}})}),te(this,"getFieldsValue",function(n,a){r.warningUnhooked();var i,o,s;if(n===!0||Array.isArray(n)?(i=n,o=a):n&&Ar(n)==="object"&&(s=n.strict,o=n.filter),i===!0&&!o)return r.store;var l=r.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),c=[];return l.forEach(function(A){var u,d,f="INVALIDATE_NAME_PATH"in A?A.INVALIDATE_NAME_PATH:A.getNamePath();if(s){var h,g;if((h=(g=A).isList)!==null&&h!==void 0&&h.call(g))return}else if(!i&&(u=(d=A).isListField)!==null&&u!==void 0&&u.call(d))return;if(!o)c.push(f);else{var p="getMeta"in A?A.getMeta():null;o(p)&&c.push(f)}}),eZ(r.store,c.map($i))}),te(this,"getFieldValue",function(n){r.warningUnhooked();var a=$i(n);return $A(r.store,a)}),te(this,"getFieldsError",function(n){r.warningUnhooked();var a=r.getFieldEntitiesForNamePathList(n);return a.map(function(i,o){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:$i(n[o]),errors:[],warnings:[]}})}),te(this,"getFieldError",function(n){r.warningUnhooked();var a=$i(n),i=r.getFieldsError([a])[0];return i.errors}),te(this,"getFieldWarning",function(n){r.warningUnhooked();var a=$i(n),i=r.getFieldsError([a])[0];return i.warnings}),te(this,"isFieldsTouched",function(){r.warningUnhooked();for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];var o=a[0],s=a[1],l,c=!1;a.length===0?l=null:a.length===1?Array.isArray(o)?(l=o.map($i),c=!1):(l=null,c=o):(l=o.map($i),c=s);var A=r.getFieldEntities(!0),u=function(p){return p.isFieldTouched()};if(!l)return c?A.every(u):A.some(u);var d=new r0;l.forEach(function(g){d.set(g,[])}),A.forEach(function(g){var p=g.getNamePath();l.forEach(function(m){m.every(function(y,C){return p[C]===y})&&d.update(m,function(y){return[].concat(ir(y),[g])})})});var f=function(p){return p.some(u)},h=d.map(function(g){var p=g.value;return p});return c?h.every(f):h.some(f)}),te(this,"isFieldTouched",function(n){return r.warningUnhooked(),r.isFieldsTouched([n])}),te(this,"isFieldsValidating",function(n){r.warningUnhooked();var a=r.getFieldEntities();if(!n)return a.some(function(o){return o.isFieldValidating()});var i=n.map($i);return a.some(function(o){var s=o.getNamePath();return yE(i,s)&&o.isFieldValidating()})}),te(this,"isFieldValidating",function(n){return r.warningUnhooked(),r.isFieldsValidating([n])}),te(this,"resetWithFieldInitialValue",function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new r0,i=r.getFieldEntities(!0);i.forEach(function(l){var c=l.props.initialValue,A=l.getNamePath();if(c!==void 0){var u=a.get(A)||new Set;u.add({entity:l,value:c}),a.set(A,u)}});var o=function(c){c.forEach(function(A){var u=A.props.initialValue;if(u!==void 0){var d=A.getNamePath(),f=r.getInitialValue(d);if(f!==void 0)Ea(!1,"Form already set 'initialValues' with path '".concat(d.join("."),"'. Field can not overwrite it."));else{var h=a.get(d);if(h&&h.size>1)Ea(!1,"Multiple Field with path '".concat(d.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(h){var g=r.getFieldValue(d);(!n.skipExist||g===void 0)&&r.updateStore(KA(r.store,d,ir(h)[0].value))}}}})},s;n.entities?s=n.entities:n.namePathList?(s=[],n.namePathList.forEach(function(l){var c=a.get(l);if(c){var A;(A=s).push.apply(A,ir(ir(c).map(function(u){return u.entity})))}})):s=i,o(s)}),te(this,"resetFields",function(n){r.warningUnhooked();var a=r.store;if(!n){r.updateStore(oE(r.initialValues)),r.resetWithFieldInitialValue(),r.notifyObservers(a,null,{type:"reset"}),r.notifyWatch();return}var i=n.map($i);i.forEach(function(o){var s=r.getInitialValue(o);r.updateStore(KA(r.store,o,s))}),r.resetWithFieldInitialValue({namePathList:i}),r.notifyObservers(a,i,{type:"reset"}),r.notifyWatch(i)}),te(this,"setFields",function(n){r.warningUnhooked();var a=r.store,i=[];n.forEach(function(o){var s=o.name,l=An(o,KHe),c=$i(s);i.push(c),"value"in l&&r.updateStore(KA(r.store,c,l.value)),r.notifyObservers(a,[c],{type:"setField",data:o})}),r.notifyWatch(i)}),te(this,"getFields",function(){var n=r.getFieldEntities(!0),a=n.map(function(i){var o=i.getNamePath(),s=i.getMeta(),l=se(se({},s),{},{name:o,value:r.getFieldValue(o)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),te(this,"initEntityValue",function(n){var a=n.props.initialValue;if(a!==void 0){var i=n.getNamePath(),o=$A(r.store,i);o===void 0&&r.updateStore(KA(r.store,i,a))}}),te(this,"isMergedPreserve",function(n){var a=n!==void 0?n:r.preserve;return a??!0}),te(this,"registerField",function(n){r.fieldEntities.push(n);var a=n.getNamePath();if(r.notifyWatch([a]),n.props.initialValue!==void 0){var i=r.store;r.resetWithFieldInitialValue({entities:[n],skipExist:!0}),r.notifyObservers(i,[n.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.fieldEntities=r.fieldEntities.filter(function(u){return u!==n}),!r.isMergedPreserve(s)&&(!o||l.length>1)){var c=o?void 0:r.getInitialValue(a);if(a.length&&r.getFieldValue(a)!==c&&r.fieldEntities.every(function(u){return!gEe(u.getNamePath(),a)})){var A=r.store;r.updateStore(KA(A,a,c,!0)),r.notifyObservers(A,[a],{type:"remove"}),r.triggerDependenciesUpdate(A,a)}}r.notifyWatch([a])}}),te(this,"dispatch",function(n){switch(n.type){case"updateValue":{var a=n.namePath,i=n.value;r.updateValue(a,i);break}case"validateField":{var o=n.namePath,s=n.triggerName;r.validateFields([o],{triggerName:s});break}}}),te(this,"notifyObservers",function(n,a,i){if(r.subscribable){var o=se(se({},i),{},{store:r.getFieldsValue(!0)});r.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(n,a,o)})}else r.forceRootUpdate()}),te(this,"triggerDependenciesUpdate",function(n,a){var i=r.getDependencyChildrenFields(a);return i.length&&r.validateFields(i),r.notifyObservers(n,i,{type:"dependenciesUpdate",relatedFields:[a].concat(ir(i))}),i}),te(this,"updateValue",function(n,a){var i=$i(n),o=r.store;r.updateStore(KA(r.store,i,a)),r.notifyObservers(o,[i],{type:"valueUpdate",source:"internal"}),r.notifyWatch([i]);var s=r.triggerDependenciesUpdate(o,i),l=r.callbacks.onValuesChange;if(l){var c=eZ(r.store,[i]);l(c,r.getFieldsValue())}r.triggerOnFieldsChange([i].concat(ir(s)))}),te(this,"setFieldsValue",function(n){r.warningUnhooked();var a=r.store;if(n){var i=oE(r.store,n);r.updateStore(i)}r.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),r.notifyWatch()}),te(this,"setFieldValue",function(n,a){r.setFields([{name:n,value:a}])}),te(this,"getDependencyChildrenFields",function(n){var a=new Set,i=[],o=new r0;r.getFieldEntities().forEach(function(l){var c=l.props.dependencies;(c||[]).forEach(function(A){var u=$i(A);o.update(u,function(){var d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return d.add(l),d})})});var s=function l(c){var A=o.get(c)||new Set;A.forEach(function(u){if(!a.has(u)){a.add(u);var d=u.getNamePath();u.isFieldDirty()&&d.length&&(i.push(d),l(d))}})};return s(n),i}),te(this,"triggerOnFieldsChange",function(n,a){var i=r.callbacks.onFieldsChange;if(i){var o=r.getFields();if(a){var s=new r0;a.forEach(function(c){var A=c.name,u=c.errors;s.set(A,u)}),o.forEach(function(c){c.errors=s.get(c.name)||c.errors})}var l=o.filter(function(c){var A=c.name;return yE(n,A)});l.length&&i(l,o)}}),te(this,"validateFields",function(n,a){var i;r.warningUnhooked();var o,s;Array.isArray(n)||typeof n=="string"||typeof a=="string"?(o=n,s=a):s=n;var l=!!o,c=l?o.map($i):[],A=[],u=String(Date.now()),d=new Set,f=(i=s)===null||i===void 0?void 0:i.recursive;r.getFieldEntities(!0).forEach(function(m){if(l||c.push(m.getNamePath()),!(!m.props.rules||!m.props.rules.length)){var y=m.getNamePath();if(d.add(y.join(u)),!l||yE(c,y,f)){var C=m.validateRules(se({validateMessages:se(se({},hEe),r.validateMessages)},s));A.push(C.then(function(){return{name:y,errors:[],warnings:[]}}).catch(function(w){var B,x=[],M=[];return(B=w.forEach)===null||B===void 0||B.call(w,function(S){var R=S.rule.warningOnly,b=S.errors;R?M.push.apply(M,ir(b)):x.push.apply(x,ir(b))}),x.length?Promise.reject({name:y,errors:x,warnings:M}):{name:y,errors:x,warnings:M}}))}}});var h=GHe(A);r.lastValidatePromise=h,h.catch(function(m){return m}).then(function(m){var y=m.map(function(C){var w=C.name;return w});r.notifyObservers(r.store,y,{type:"validateFinish"}),r.triggerOnFieldsChange(y,m)});var g=h.then(function(){return r.lastValidatePromise===h?Promise.resolve(r.getFieldsValue(c)):Promise.reject([])}).catch(function(m){var y=m.filter(function(C){return C&&C.errors.length});return Promise.reject({values:r.getFieldsValue(c),errorFields:y,outOfDate:r.lastValidatePromise!==h})});g.catch(function(m){return m});var p=c.filter(function(m){return d.has(m.join(u))});return r.triggerOnFieldsChange(p),g}),te(this,"submit",function(){r.warningUnhooked(),r.validateFields().then(function(n){var a=r.callbacks.onFinish;if(a)try{a(n)}catch(i){console.error(i)}}).catch(function(n){var a=r.callbacks.onFinishFailed;a&&a(n)})}),this.forceRootUpdate=t});function KQ(e){var t=E.useRef(),r=E.useState({}),n=Je(r,2),a=n[1];if(!t.current)if(e)t.current=e;else{var i=function(){a({})},o=new VHe(i);t.current=o.getForm()}return[t.current]}var Lz=E.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),S7=function(t){var r=t.validateMessages,n=t.onFormChange,a=t.onFormFinish,i=t.children,o=E.useContext(Lz),s=E.useRef({});return E.createElement(Lz.Provider,{value:se(se({},o),{},{validateMessages:se(se({},o.validateMessages),r),triggerFormChange:function(c,A){n&&n(c,{changedFields:A,forms:s.current}),o.triggerFormChange(c,A)},triggerFormFinish:function(c,A){a&&a(c,{values:A,forms:s.current}),o.triggerFormFinish(c,A)},registerForm:function(c,A){c&&(s.current=se(se({},s.current),{},te({},c,A))),o.registerForm(c,A)},unregisterForm:function(c){var A=se({},s.current);delete A[c],s.current=A,o.unregisterForm(c)}})},i)},JHe=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],WHe=function(t,r){var n=t.name,a=t.initialValues,i=t.fields,o=t.form,s=t.preserve,l=t.children,c=t.component,A=c===void 0?"form":c,u=t.validateMessages,d=t.validateTrigger,f=d===void 0?"onChange":d,h=t.onValuesChange,g=t.onFieldsChange,p=t.onFinish,m=t.onFinishFailed,y=An(t,JHe),C=E.useContext(Lz),w=KQ(o),B=Je(w,1),x=B[0],M=x.getInternalHooks(uv),S=M.useSubscribe,R=M.setInitialValues,b=M.setCallbacks,T=M.setValidateMessages,D=M.setPreserve,F=M.destroyForm;E.useImperativeHandle(r,function(){return x}),E.useEffect(function(){return C.registerForm(n,x),function(){C.unregisterForm(n)}},[C,x,n]),T(se(se({},C.validateMessages),u)),b({onValuesChange:h,onFieldsChange:function(U){if(C.triggerFormChange(n,U),g){for(var H=arguments.length,L=new Array(H>1?H-1:0),V=1;V<H;V++)L[V-1]=arguments[V];g.apply(void 0,[U].concat(L))}},onFinish:function(U){C.triggerFormFinish(n,U),p&&p(U)},onFinishFailed:m}),D(s);var N=E.useRef(null);R(a,!N.current),N.current||(N.current=!0),E.useEffect(function(){return F},[]);var _,P=typeof l=="function";if(P){var k=x.getFieldsValue(!0);_=l(k,x)}else _=l;S(!P);var j=E.useRef();E.useEffect(function(){YHe(j.current||[],i||[])||x.setFields(i||[]),j.current=i},[i,x]);var Y=E.useMemo(function(){return se(se({},x),{},{validateTrigger:f})},[x,f]),X=E.createElement(WE.Provider,{value:null},E.createElement(xg.Provider,{value:Y},_));return A===!1?X:E.createElement(A,ge({},y,{onSubmit:function(U){U.preventDefault(),U.stopPropagation(),x.submit()},onReset:function(U){var H;U.preventDefault(),x.resetFields(),(H=y.onReset)===null||H===void 0||H.call(y,U)}}),X)};function nZ(e){try{return JSON.stringify(e)}catch{return Math.random()}}function R7(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],a=n===void 0?[]:n,i=t[1],o=i===void 0?{}:i,s=iHe(o)?{form:o}:o,l=s.form,c=E.useState(),A=Je(c,2),u=A[0],d=A[1],f=E.useMemo(function(){return nZ(u)},[u]),h=E.useRef(f);h.current=f;var g=E.useContext(xg),p=l||g,m=p&&p._init,y=$i(a),C=E.useRef(y);return C.current=y,E.useEffect(function(){if(m){var w=p.getFieldsValue,B=p.getInternalHooks,x=B(uv),M=x.registerWatch,S=M(function(b,T){var D=$A(s.preserve?T:b,C.current),F=nZ(D);h.current!==F&&(h.current=F,d(D))}),R=$A(s.preserve?w(!0):w(),C.current);return u!==R&&d(R),S}},[m]),u}var XHe=E.forwardRef(WHe),sm=XHe;sm.FormProvider=S7;sm.Field=GQ;sm.List=b7;sm.useForm=KQ;sm.useWatch=R7;const qHe=Object.freeze(Object.defineProperty({__proto__:null,Field:GQ,FieldContext:xg,FormProvider:S7,List:b7,ListContext:WE,default:sm,useForm:KQ,useWatch:R7},Symbol.toStringTag,{value:"Module"}));var Mg=E.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),vEe=E.createContext(null),mEe=function(t){var r=ji(t,["prefixCls"]);return E.createElement(S7,ge({},r))},T7=E.createContext({prefixCls:""}),fs=E.createContext({}),XE=function(t){var r=t.children,n=t.status,a=t.override,i=E.useContext(fs),o=E.useMemo(function(){var s=ge({},i);return a&&delete s.isFormItemInput,n&&(delete s.status,delete s.hasFeedback,delete s.feedbackIcon),s},[n,a,i]);return E.createElement(fs.Provider,{value:o},r)},Wo=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r},ZHe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r},J_=function(){return{height:0,opacity:0}},aZ=function(t){var r=t.scrollHeight;return{height:r,opacity:1}},$He=function(t){return{height:t?t.offsetHeight:0}},W_=function(t,r){return r?.deadline===!0||r.propertyName==="height"},sB={motionName:"ant-motion-collapse",onAppearStart:J_,onEnterStart:J_,onAppearActive:aZ,onEnterActive:aZ,onLeaveStart:$He,onLeaveActive:J_,onAppearEnd:W_,onEnterEnd:W_,onLeaveEnd:W_,motionDeadline:500};Wo("bottomLeft","bottomRight","topLeft","topRight");var EEe=function(t){return t!==void 0&&(t==="topLeft"||t==="topRight")?"slide-down":"slide-up"},rA=function(t,r,n){return n!==void 0?n:"".concat(t,"-").concat(r)};Wo("warning","error","");function kl(e,t,r){return dt(te(te(te(te(te({},"".concat(e,"-status-success"),t==="success"),"".concat(e,"-status-warning"),t==="warning"),"".concat(e,"-status-error"),t==="error"),"".concat(e,"-status-validating"),t==="validating"),"".concat(e,"-has-feedback"),r))}var Zf=function(t,r){return r||t};function yEe(e){var t=e.suffixIcon,r=e.clearIcon,n=e.menuItemSelectedIcon,a=e.removeIcon,i=e.loading,o=e.multiple,s=e.hasFeedback,l=e.prefixCls,c=e.showArrow,A=e.feedbackIcon,u=r??E.createElement(fu,null),d=function(y){return E.createElement(E.Fragment,null,c!==!1&&y,s&&A)},f=null;if(t!==void 0)f=d(t);else if(i)f=d(E.createElement(Cg,{spin:!0}));else{var h="".concat(l,"-suffix");f=function(y){var C=y.open,w=y.showSearch;return d(C&&w?E.createElement(Xf,{className:h}):E.createElement(VB,{className:h}))}}var g=null;n!==void 0?g=n:o?g=E.createElement(lA,null):g=null;var p=null;return a!==void 0?p=a:p=E.createElement(Go,null),{clearIcon:u,suffixIcon:f,itemIcon:g,removeIcon:p}}var CEe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},VQ=E.createContext(null),$f=function(t,r){var n=E.useContext(VQ),a=E.useMemo(function(){if(!n)return"";var i=n.compactDirection,o=n.isFirstItem,s=n.isLastItem,l=i==="vertical"?"-vertical-":"-";return dt(te(te(te(te({},"".concat(t,"-compact").concat(l,"item"),!0),"".concat(t,"-compact").concat(l,"first-item"),o),"".concat(t,"-compact").concat(l,"last-item"),s),"".concat(t,"-compact").concat(l,"item-rtl"),r==="rtl"))},[t,r,n]);return{compactSize:n?.compactSize,compactDirection:n?.compactDirection,compactItemClassnames:a}},jv=function(t){var r=t.children;return E.createElement(VQ.Provider,{value:null},r)},e9e=function(t){var r=t.children,n=CEe(t,["children"]);return E.createElement(VQ.Provider,{value:n},r)},t9e=function(t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=t.size,o=i===void 0?"middle":i,s=t.direction,l=t.block,c=t.prefixCls,A=t.className,u=t.children,d=CEe(t,["size","direction","block","prefixCls","className","children"]),f=n("space-compact",c),h=dt(f,te(te(te({},"".concat(f,"-rtl"),a==="rtl"),"".concat(f,"-block"),l),"".concat(f,"-vertical"),s==="vertical"),A),g=E.useContext(VQ),p=Vo(u),m=E.useMemo(function(){return p.map(function(y,C){var w=y&&y.key||"".concat(f,"-item-").concat(C);return E.createElement(e9e,{key:w,compactSize:o,compactDirection:s,isFirstItem:C===0&&(!g||g?.isFirstItem),isLastItem:C===p.length-1&&(!g||g?.isLastItem)},y)})},[o,p,g]);return p.length===0?null:E.createElement("div",ge({className:h},d),m)},r9e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},wEe="SECRET_COMBOBOX_MODE_DO_NOT_USE",n9e=function(t,r){var n=t.prefixCls,a=t.bordered,i=a===void 0?!0:a,o=t.className,s=t.getPopupContainer,l=t.dropdownClassName,c=t.popupClassName,A=t.listHeight,u=A===void 0?256:A,d=t.placement,f=t.listItemHeight,h=f===void 0?32:f,g=t.size,p=t.disabled,m=t.notFoundContent,y=t.status,C=t.showArrow,w=r9e(t,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","popupClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),B=E.useContext(an),x=B.getPopupContainer,M=B.getPrefixCls,S=B.renderEmpty,R=B.direction,b=B.virtual,T=B.dropdownMatchSelectWidth,D=E.useContext(ds),F=M("select",n),N=M(),_=$f(F,R),P=_.compactSize,k=_.compactItemClassnames,j=E.useMemo(function(){var Ie=w.mode;if(Ie!=="combobox")return Ie===wEe?"combobox":Ie},[w.mode]),Y=j==="multiple"||j==="tags",X=C!==void 0?C:w.loading||!(Y||j==="combobox"),K=E.useContext(fs),U=K.status,H=K.hasFeedback,L=K.isFormItemInput,V=K.feedbackIcon,J=Zf(U,y),ee;m!==void 0?ee=m:j==="combobox"?ee=null:ee=(S||HQ)("Select");var ae=yEe(ge(ge({},w),{multiple:Y,hasFeedback:H,feedbackIcon:V,showArrow:X,prefixCls:F})),ne=ae.suffixIcon,fe=ae.itemIcon,he=ae.removeIcon,ye=ae.clearIcon,be=ji(w,["suffixIcon","itemIcon"]),Se=dt(c||l,te({},"".concat(F,"-dropdown-").concat(R),R==="rtl")),ve=P||g||D,de=E.useContext(Ol),Ue=p??de,at=dt(te(te(te(te(te({},"".concat(F,"-lg"),ve==="large"),"".concat(F,"-sm"),ve==="small"),"".concat(F,"-rtl"),R==="rtl"),"".concat(F,"-borderless"),!i),"".concat(F,"-in-form-item"),L),kl(F,J,H),k,o),Ve=function(){return d!==void 0?d:R==="rtl"?"bottomRight":"bottomLeft"};return E.createElement(M7,ge({ref:r,virtual:b,dropdownMatchSelectWidth:T},be,{transitionName:rA(N,EEe(d),w.transitionName),listHeight:u,listItemHeight:h,mode:j,prefixCls:F,placement:Ve(),direction:R,inputIcon:ne,menuItemSelectedIcon:fe,removeIcon:he,clearIcon:ye,notFoundContent:ee,className:at,getPopupContainer:s||x,dropdownClassName:Se,showArrow:H||C,disabled:Ue}))},sn=E.forwardRef(n9e);sn.SECRET_COMBOBOX_MODE_DO_NOT_USE=wEe;sn.Option=B7;sn.OptGroup=w7;function BEe(){var e=E.useReducer(function(n){return n+1},0),t=Je(e,2),r=t[1];return r}var $R=["xxl","xl","lg","md","sm","xs"],VM={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},bp=new Map,X_=-1,JM={},eT={matchHandlers:{},dispatch:function(t){return JM=t,bp.forEach(function(r){return r(JM)}),bp.size>=1},subscribe:function(t){return bp.size||this.register(),X_+=1,bp.set(X_,t),t(JM),X_},unsubscribe:function(t){bp.delete(t),bp.size||this.unregister()},unregister:function(){var t=this;Object.keys(VM).forEach(function(r){var n=VM[r],a=t.matchHandlers[n];a?.mql.removeListener(a?.listener)}),bp.clear()},register:function(){var t=this;Object.keys(VM).forEach(function(r){var n=VM[r],a=function(s){var l=s.matches;t.dispatch(ge(ge({},JM),te({},r,l)))},i=window.matchMedia(n);i.addListener(a),t.matchHandlers[n]={mql:i,listener:a},a(i)})}};function Q7(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,t=E.useRef({}),r=BEe();return E.useEffect(function(){var n=eT.subscribe(function(a){t.current=a,e&&r()});return function(){return eT.unsubscribe(n)}},[]),t.current}var Yz=function(t){return t?typeof t=="function"?t():t:null},Lc={adjustX:1,adjustY:1},Yc=[0,0],xEe={left:{points:["cr","cl"],overflow:Lc,offset:[-4,0],targetOffset:Yc},right:{points:["cl","cr"],overflow:Lc,offset:[4,0],targetOffset:Yc},top:{points:["bc","tc"],overflow:Lc,offset:[0,-4],targetOffset:Yc},bottom:{points:["tc","bc"],overflow:Lc,offset:[0,4],targetOffset:Yc},topLeft:{points:["bl","tl"],overflow:Lc,offset:[0,-4],targetOffset:Yc},leftTop:{points:["tr","tl"],overflow:Lc,offset:[-4,0],targetOffset:Yc},topRight:{points:["br","tr"],overflow:Lc,offset:[0,-4],targetOffset:Yc},rightTop:{points:["tl","tr"],overflow:Lc,offset:[4,0],targetOffset:Yc},bottomRight:{points:["tr","br"],overflow:Lc,offset:[0,4],targetOffset:Yc},rightBottom:{points:["bl","br"],overflow:Lc,offset:[4,0],targetOffset:Yc},bottomLeft:{points:["tl","bl"],overflow:Lc,offset:[0,4],targetOffset:Yc},leftBottom:{points:["br","bl"],overflow:Lc,offset:[-4,0],targetOffset:Yc}};function a9e(e){var t=e.showArrow,r=e.arrowContent,n=e.children,a=e.prefixCls,i=e.id,o=e.overlayInnerStyle,s=e.className,l=e.style;return E.createElement("div",{className:dt("".concat(a,"-content"),s),style:l},t!==!1&&E.createElement("div",{className:"".concat(a,"-arrow"),key:"arrow"},r),E.createElement("div",{className:"".concat(a,"-inner"),id:i,role:"tooltip",style:o},typeof n=="function"?n():n))}var i9e=function(t,r){var n=t.overlayClassName,a=t.trigger,i=a===void 0?["hover"]:a,o=t.mouseEnterDelay,s=o===void 0?0:o,l=t.mouseLeaveDelay,c=l===void 0?.1:l,A=t.overlayStyle,u=t.prefixCls,d=u===void 0?"rc-tooltip":u,f=t.children,h=t.onVisibleChange,g=t.afterVisibleChange,p=t.transitionName,m=t.animation,y=t.motion,C=t.placement,w=C===void 0?"right":C,B=t.align,x=B===void 0?{}:B,M=t.destroyTooltipOnHide,S=M===void 0?!1:M,R=t.defaultVisible,b=t.getTooltipContainer,T=t.overlayInnerStyle,D=t.arrowContent,F=t.overlay,N=t.id,_=t.showArrow,P=An(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),k=E.useRef(null);E.useImperativeHandle(r,function(){return k.current});var j=se({},P);"visible"in t&&(j.popupVisible=t.visible);var Y=function(){return E.createElement(a9e,{showArrow:_,arrowContent:D,key:"content",prefixCls:d,id:N,overlayInnerStyle:T},F)},X=!1,K=!1;if(typeof S=="boolean")X=S;else if(S&&Ar(S)==="object"){var U=S.keepParent;X=U===!0,K=U===!1}return E.createElement(dx,ge({popupClassName:n,prefixCls:d,popup:Y,action:i,builtinPlacements:xEe,popupPlacement:w,ref:k,popupAlign:x,getPopupContainer:b,onPopupVisibleChange:h,afterPopupVisibleChange:g,popupTransitionName:p,popupAnimation:m,popupMotion:y,defaultPopupVisible:R,destroyPopupOnHide:X,autoDestroy:K,mouseLeaveDelay:c,popupStyle:A,mouseEnterDelay:s},j),f)};const o9e=E.forwardRef(i9e);var s9e=Wo("success","processing","error","default","warning"),D7=Wo("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime"),l9e={adjustX:1,adjustY:1},iZ={adjustX:0,adjustY:0},c9e=[0,0];function oZ(e){return typeof e=="boolean"?e?l9e:iZ:ge(ge({},iZ),e)}function MEe(e){var t=e.arrowWidth,r=t===void 0?4:t,n=e.horizontalArrowShift,a=n===void 0?16:n,i=e.verticalArrowShift,o=i===void 0?8:i,s=e.autoAdjustOverflow,l=e.arrowPointAtCenter,c={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+r),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(o+r)]},topRight:{points:["br","tc"],offset:[a+r,-4]},rightTop:{points:["tl","cr"],offset:[4,-(o+r)]},bottomRight:{points:["tr","bc"],offset:[a+r,4]},rightBottom:{points:["bl","cr"],offset:[4,o+r]},bottomLeft:{points:["tl","bc"],offset:[-(a+r),4]},leftBottom:{points:["br","cl"],offset:[-4,o+r]}};return Object.keys(c).forEach(function(A){c[A]=l?ge(ge({},c[A]),{overflow:oZ(s),targetOffset:c9e}):ge(ge({},xEe[A]),{overflow:oZ(s)}),c[A].ignoreShake=!0}),c}var A9e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u9e=function(t,r){var n={},a=ge({},t);return r.forEach(function(i){t&&i in t&&(n[i]=t[i],delete a[i])}),{picked:n,omitted:a}},sZ=new RegExp("^(".concat(D7.join("|"),")(-inverse)?$"));function d9e(e,t){var r=e.type;if((r.__ANT_BUTTON===!0||e.type==="button")&&e.props.disabled||r.__ANT_SWITCH===!0&&(e.props.disabled||e.props.loading)||r.__ANT_RADIO===!0&&e.props.disabled){var n=u9e(e.props.style,["position","left","right","top","bottom","float","display","zIndex"]),a=n.picked,i=n.omitted,o=ge(ge({display:"inline-block"},a),{cursor:"not-allowed",width:e.props.block?"100%":void 0}),s=ge(ge({},i),{pointerEvents:"none"}),l=fi(e,{style:s,className:null});return E.createElement("span",{style:o,className:dt(e.props.className,"".concat(t,"-disabled-compatible-wrapper"))},l)}return e}var Mi=E.forwardRef(function(e,t){var r=E.useContext(an),n=r.getPopupContainer,a=r.getPrefixCls,i=r.direction,o=Ia(!1,{value:e.open!==void 0?e.open:e.visible,defaultValue:e.defaultOpen!==void 0?e.defaultOpen:e.defaultVisible}),s=Je(o,2),l=s[0],c=s[1],A=function(){var L=e.title,V=e.overlay;return!L&&!V&&L!==0},u=function(L){var V,J;c(A()?!1:L),A()||((V=e.onOpenChange)===null||V===void 0||V.call(e,L),(J=e.onVisibleChange)===null||J===void 0||J.call(e,L))},d=function(){var L=e.builtinPlacements,V=e.arrowPointAtCenter,J=V===void 0?!1:V,ee=e.autoAdjustOverflow,ae=ee===void 0?!0:ee;return L||MEe({arrowPointAtCenter:J,autoAdjustOverflow:ae})},f=function(L,V){var J=d(),ee=Object.keys(J).find(function(fe){var he,ye;return J[fe].points[0]===((he=V.points)===null||he===void 0?void 0:he[0])&&J[fe].points[1]===((ye=V.points)===null||ye===void 0?void 0:ye[1])});if(ee){var ae=L.getBoundingClientRect(),ne={top:"50%",left:"50%"};/top|Bottom/.test(ee)?ne.top="".concat(ae.height-V.offset[1],"px"):/Top|bottom/.test(ee)&&(ne.top="".concat(-V.offset[1],"px")),/left|Right/.test(ee)?ne.left="".concat(ae.width-V.offset[0],"px"):/right|Left/.test(ee)&&(ne.left="".concat(-V.offset[0],"px")),L.style.transformOrigin="".concat(ne.left," ").concat(ne.top)}},h=function(){var L=e.title,V=e.overlay;return L===0?L:V||L||""},g=e.getPopupContainer,p=e.placement,m=p===void 0?"top":p,y=e.mouseEnterDelay,C=y===void 0?.1:y,w=e.mouseLeaveDelay,B=w===void 0?.1:w,x=A9e(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay"]),M=e.prefixCls,S=e.openClassName,R=e.getTooltipContainer,b=e.overlayClassName,T=e.color,D=e.overlayInnerStyle,F=e.children,N=a("tooltip",M),_=a(),P=l;!("open"in e)&&!("visible"in e)&&A()&&(P=!1);var k=d9e(gc(F)&&!D0e(F)?F:E.createElement("span",null,F),N),j=k.props,Y=!j.className||typeof j.className=="string"?dt(j.className,te({},S||"".concat(N,"-open"),!0)):j.className,X=dt(b,te(te({},"".concat(N,"-rtl"),i==="rtl"),"".concat(N,"-").concat(T),T&&sZ.test(T))),K=D,U={};return T&&!sZ.test(T)&&(K=ge(ge({},D),{background:T}),U={"--antd-arrow-background-color":T}),E.createElement(o9e,ge({},x,{placement:m,mouseEnterDelay:C,mouseLeaveDelay:B,prefixCls:N,overlayClassName:X,getTooltipContainer:g||R||n,ref:t,builtinPlacements:d(),overlay:h(),visible:P,onVisibleChange:u,onPopupAlign:f,overlayInnerStyle:K,arrowContent:E.createElement("span",{className:"".concat(N,"-arrow-content"),style:U}),motion:{motionName:rA(_,"zoom-big-fast",e.transitionName),motionDeadline:1e3}}),P?fi(k,{className:Y}):k)}),f9e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},h9e=function(t){var r=t.title,n=t.content,a=t.prefixCls;return E.createElement(E.Fragment,null,r&&E.createElement("div",{className:"".concat(a,"-title")},Yz(r)),E.createElement("div",{className:"".concat(a,"-inner-content")},Yz(n)))},JQ=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,a=e.content,i=e._overlay,o=e.placement,s=o===void 0?"top":o,l=e.trigger,c=l===void 0?"hover":l,A=e.mouseEnterDelay,u=A===void 0?.1:A,d=e.mouseLeaveDelay,f=d===void 0?.1:d,h=e.overlayStyle,g=h===void 0?{}:h,p=f9e(e,["prefixCls","title","content","_overlay","placement","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle"]),m=E.useContext(an),y=m.getPrefixCls,C=y("popover",r),w=y(),B=E.useMemo(function(){return i||(!n&&!a?null:E.createElement(h9e,{prefixCls:C,title:n,content:a}))},[i,n,a,C]);return E.createElement(Mi,ge({placement:s,trigger:c,mouseEnterDelay:u,mouseLeaveDelay:f,overlayStyle:g},p,{prefixCls:C,ref:t,overlay:B,transitionName:rA(w,"zoom-big",p.transitionName)}))});function sw(e){return D7.includes(e)}var g9e=function(t){var r=t.className,n=t.prefixCls,a=t.style,i=t.color,o=t.children,s=t.text,l=t.placement,c=l===void 0?"end":l,A=E.useContext(an),u=A.getPrefixCls,d=A.direction,f=u("ribbon",n),h=sw(i),g=dt(f,"".concat(f,"-placement-").concat(c),te(te({},"".concat(f,"-rtl"),d==="rtl"),"".concat(f,"-color-").concat(i),h),r),p={},m={};return i&&!h&&(p.background=i,m.color=i),E.createElement("div",{className:"".concat(f,"-wrapper")},o,E.createElement("div",{className:g,style:ge(ge({},p),a)},E.createElement("span",{className:"".concat(f,"-text")},s),E.createElement("div",{className:"".concat(f,"-corner"),style:m})))};function lZ(e){var t=e.prefixCls,r=e.value,n=e.current,a=e.offset,i=a===void 0?0:a,o;return i&&(o={position:"absolute",top:"".concat(i,"00%"),left:0}),E.createElement("span",{style:o,className:dt("".concat(t,"-only-unit"),{current:n})},r)}function p9e(e,t,r){for(var n=e,a=0;(n+10)%10!==t;)n+=r,a+=r;return a}function v9e(e){var t=e.prefixCls,r=e.count,n=e.value,a=Number(n),i=Math.abs(r),o=E.useState(a),s=Je(o,2),l=s[0],c=s[1],A=E.useState(i),u=Je(A,2),d=u[0],f=u[1],h=function(){c(a),f(i)};E.useEffect(function(){var x=setTimeout(function(){h()},1e3);return function(){clearTimeout(x)}},[a]);var g,p;if(l===a||Number.isNaN(a)||Number.isNaN(l))g=[E.createElement(lZ,ge({},e,{key:a,current:!0}))],p={transition:"none"};else{g=[];for(var m=a+10,y=[],C=a;C<=m;C+=1)y.push(C);var w=y.findIndex(function(x){return x%10===l});g=y.map(function(x,M){var S=x%10;return E.createElement(lZ,ge({},e,{key:x,value:S,offset:M-w,current:M===w}))});var B=d<i?1:-1;p={transform:"translateY(".concat(-p9e(l,a,B),"00%)")}}return E.createElement("span",{className:"".concat(t,"-only"),style:p,onTransitionEnd:h},g)}var m9e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},E9e=function(t){var r=t.prefixCls,n=t.count,a=t.className,i=t.motionClassName,o=t.style,s=t.title,l=t.show,c=t.component,A=c===void 0?"sup":c,u=t.children,d=m9e(t,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),f=E.useContext(an),h=f.getPrefixCls,g=h("scroll-number",r),p=ge(ge({},d),{"data-show":l,style:o,className:dt(g,a,i),title:s}),m=n;if(n&&Number(n)%1===0){var y=String(n).split("");m=y.map(function(C,w){return E.createElement(v9e,{prefixCls:g,count:Number(n),value:C,key:y.length-w})})}return o&&o.borderColor&&(p.style=ge(ge({},o),{boxShadow:"0 0 0 1px ".concat(o.borderColor," inset")})),u?fi(u,function(C){return{className:dt("".concat(g,"-custom-component"),C?.className,i)}}):E.createElement(A,p,m)},y9e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Bv=function(t){var r=t.prefixCls,n=t.scrollNumberPrefixCls,a=t.children,i=t.status,o=t.text,s=t.color,l=t.count,c=l===void 0?null:l,A=t.overflowCount,u=A===void 0?99:A,d=t.dot,f=d===void 0?!1:d,h=t.size,g=h===void 0?"default":h,p=t.title,m=t.offset,y=t.style,C=t.className,w=t.showZero,B=w===void 0?!1:w,x=y9e(t,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),M=E.useContext(an),S=M.getPrefixCls,R=M.direction,b=S("badge",r),T=c>u?"".concat(u,"+"):c,D=T==="0"||T===0,F=c===null||D&&!B,N=(i!=null||s!=null)&&F,_=f&&!D,P=_?"":T,k=E.useMemo(function(){var he=P==null||P==="";return(he||D&&!B)&&!_},[P,D,B,_]),j=E.useRef(c);k||(j.current=c);var Y=j.current,X=E.useRef(P);k||(X.current=P);var K=X.current,U=E.useRef(_);k||(U.current=_);var H=E.useMemo(function(){if(!m)return ge({},y);var he={marginTop:m[1]};return R==="rtl"?he.left=parseInt(m[0],10):he.right=-parseInt(m[0],10),ge(ge({},he),y)},[R,m,y]),L=p??(typeof Y=="string"||typeof Y=="number"?Y:void 0),V=k||!o?null:E.createElement("span",{className:"".concat(b,"-status-text")},o),J=!Y||Ar(Y)!=="object"?void 0:fi(Y,function(he){return{style:ge(ge({},H),he.style)}}),ee=dt(te(te(te({},"".concat(b,"-status-dot"),N),"".concat(b,"-status-").concat(i),!!i),"".concat(b,"-status-").concat(s),sw(s))),ae={};s&&!sw(s)&&(ae.background=s);var ne=dt(b,te(te(te({},"".concat(b,"-status"),N),"".concat(b,"-not-a-wrapper"),!a),"".concat(b,"-rtl"),R==="rtl"),C);if(!a&&N){var fe=H.color;return E.createElement("span",ge({},x,{className:ne,style:H}),E.createElement("span",{className:ee,style:ae}),o&&E.createElement("span",{style:{color:fe},className:"".concat(b,"-status-text")},o))}return E.createElement("span",ge({},x,{className:ne}),a,E.createElement(us,{visible:!k,motionName:"".concat(b,"-zoom"),motionAppear:!1,motionDeadline:1e3},function(he){var ye=he.className,be=S("scroll-number",n),Se=U.current,ve=dt(te(te(te(te(te(te({},"".concat(b,"-dot"),Se),"".concat(b,"-count"),!Se),"".concat(b,"-count-sm"),g==="small"),"".concat(b,"-multiple-words"),!Se&&K&&K.toString().length>1),"".concat(b,"-status-").concat(i),!!i),"".concat(b,"-status-").concat(s),sw(s))),de=ge({},H);return s&&!sw(s)&&(de=de||{},de.background=s),E.createElement(E9e,{prefixCls:be,show:!k,motionClassName:ye,className:ve,count:K,title:L,style:de,key:"scrollNumber"},J)}),V)};Bv.Ribbon=g9e;var IEe=E.createContext(null);function F7(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function bEe(e){var t=E.useContext(IEe);return F7(t,e)}var C9e=["children","locked"],ou=E.createContext(null);function w9e(e,t){var r=se({},e);return Object.keys(t).forEach(function(n){var a=t[n];a!==void 0&&(r[n]=a)}),r}function lB(e){var t=e.children,r=e.locked,n=An(e,C9e),a=E.useContext(ou),i=am(function(){return w9e(a,n)},[a,n],function(o,s){return!r&&(o[0]!==s[0]||!JE(o[1],s[1],!0))});return E.createElement(ou.Provider,{value:i},t)}var B9e=[],SEe=E.createContext(null);function WQ(){return E.useContext(SEe)}var REe=E.createContext(B9e);function My(e){var t=E.useContext(REe);return E.useMemo(function(){return e!==void 0?[].concat(ir(t),[e]):t},[t,e])}var TEe=E.createContext(null),N7=E.createContext({});function cZ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(UQ(e)){var r=e.nodeName.toLowerCase(),n=["input","select","textarea","button"].includes(r)||e.isContentEditable||r==="a"&&!!e.getAttribute("href"),a=e.getAttribute("tabindex"),i=Number(a),o=null;return a&&!Number.isNaN(i)?o=i:n&&o===null&&(o=0),n&&e.disabled&&(o=null),o!==null&&(o>=0||t&&o<0)}return!1}function QEe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=ir(e.querySelectorAll("*")).filter(function(n){return cZ(n,t)});return cZ(e,t)&&r.unshift(e),r}var Uz=cr.LEFT,Hz=cr.RIGHT,Gz=cr.UP,KS=cr.DOWN,VS=cr.ENTER,DEe=cr.ESC,Q1=cr.HOME,D1=cr.END,AZ=[Gz,KS,Uz,Hz];function x9e(e,t,r,n){var a,i,o,s,l="prev",c="next",A="children",u="parent";if(e==="inline"&&n===VS)return{inlineTrigger:!0};var d=(a={},te(a,Gz,l),te(a,KS,c),a),f=(i={},te(i,Uz,r?c:l),te(i,Hz,r?l:c),te(i,KS,A),te(i,VS,A),i),h=(o={},te(o,Gz,l),te(o,KS,c),te(o,VS,A),te(o,DEe,u),te(o,Uz,r?A:u),te(o,Hz,r?u:A),o),g={inline:d,horizontal:f,vertical:h,inlineSub:d,horizontalSub:h,verticalSub:h},p=(s=g["".concat(e).concat(t?"":"Sub")])===null||s===void 0?void 0:s[n];switch(p){case l:return{offset:-1,sibling:!0};case c:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case A:return{offset:1,sibling:!1};default:return null}}function M9e(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function I9e(e,t){for(var r=e||document.activeElement;r;){if(t.has(r))return r;r=r.parentElement}return null}function FEe(e,t){var r=QEe(e,!0);return r.filter(function(n){return t.has(n)})}function uZ(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var a=FEe(e,t),i=a.length,o=a.findIndex(function(s){return r===s});return n<0?o===-1?o=i-1:o-=1:n>0&&(o+=1),o=(o+i)%i,a[o]}function b9e(e,t,r,n,a,i,o,s,l,c){var A=E.useRef(),u=E.useRef();u.current=t;var d=function(){ta.cancel(A.current)};return E.useEffect(function(){return function(){d()}},[]),function(f){var h=f.which;if([].concat(AZ,[VS,DEe,Q1,D1]).includes(h)){var g,p,m,y=function(){g=new Set,p=new Map,m=new Map;var _=i();return _.forEach(function(P){var k=document.querySelector("[data-menu-id='".concat(F7(n,P),"']"));k&&(g.add(k),m.set(k,P),p.set(P,k))}),g};y();var C=p.get(t),w=I9e(C,g),B=m.get(w),x=x9e(e,o(B,!0).length===1,r,h);if(!x&&h!==Q1&&h!==D1)return;(AZ.includes(h)||[Q1,D1].includes(h))&&f.preventDefault();var M=function(_){if(_){var P=_,k=_.querySelector("a");k!=null&&k.getAttribute("href")&&(P=k);var j=m.get(_);s(j),d(),A.current=ta(function(){u.current===j&&P.focus()})}};if([Q1,D1].includes(h)||x.sibling||!w){var S;!w||e==="inline"?S=a.current:S=M9e(w);var R,b=FEe(S,g);h===Q1?R=b[0]:h===D1?R=b[b.length-1]:R=uZ(S,g,w,x.offset),M(R)}else if(x.inlineTrigger)l(B);else if(x.offset>0)l(B,!0),d(),A.current=ta(function(){y();var N=w.getAttribute("aria-controls"),_=document.getElementById(N),P=uZ(_,g);M(P)},5);else if(x.offset<0){var T=o(B,!0),D=T[T.length-2],F=p.get(D);l(D,!1),M(F)}}c?.(f)}}function S9e(e){Promise.resolve().then(e)}var _7="__RC_UTIL_PATH_SPLIT__",dZ=function(t){return t.join(_7)},R9e=function(t){return t.split(_7)},Kz="rc-menu-more";function T9e(){var e=E.useState({}),t=Je(e,2),r=t[1],n=E.useRef(new Map),a=E.useRef(new Map),i=E.useState([]),o=Je(i,2),s=o[0],l=o[1],c=E.useRef(0),A=E.useRef(!1),u=function(){A.current||r({})},d=E.useCallback(function(C,w){var B=dZ(w);a.current.set(B,C),n.current.set(C,B),c.current+=1;var x=c.current;S9e(function(){x===c.current&&u()})},[]),f=E.useCallback(function(C,w){var B=dZ(w);a.current.delete(B),n.current.delete(C)},[]),h=E.useCallback(function(C){l(C)},[]),g=E.useCallback(function(C,w){var B=n.current.get(C)||"",x=R9e(B);return w&&s.includes(x[0])&&x.unshift(Kz),x},[s]),p=E.useCallback(function(C,w){return C.some(function(B){var x=g(B,!0);return x.includes(w)})},[g]),m=function(){var w=ir(n.current.keys());return s.length&&w.push(Kz),w},y=E.useCallback(function(C){var w="".concat(n.current.get(C)).concat(_7),B=new Set;return ir(a.current.keys()).forEach(function(x){x.startsWith(w)&&B.add(a.current.get(x))}),B},[]);return E.useEffect(function(){return function(){A.current=!0}},[]),{registerPath:d,unregisterPath:f,refreshOverflowKeys:h,isSubPathKey:p,getKeyPath:g,getKeys:m,getSubPathKeys:y}}function _0(e){var t=E.useRef(e);t.current=e;var r=E.useCallback(function(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return(n=t.current)===null||n===void 0?void 0:n.call.apply(n,[t].concat(i))},[]);return e?r:void 0}var Q9e=Math.random().toFixed(5).toString().slice(2),fZ=0;function D9e(e){var t=Ia(e,{value:e}),r=Je(t,2),n=r[0],a=r[1];return E.useEffect(function(){fZ+=1;var i="".concat(Q9e,"-").concat(fZ);a("rc-menu-uuid-".concat(i))},[]),n}function NEe(e,t,r,n){var a=E.useContext(ou),i=a.activeKey,o=a.onActive,s=a.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(c){r?.({key:e,domEvent:c}),o(e)},l.onMouseLeave=function(c){n?.({key:e,domEvent:c}),s(e)}),l}function _Ee(e){var t=E.useContext(ou),r=t.mode,n=t.rtl,a=t.inlineIndent;if(r!=="inline")return null;var i=e;return n?{paddingRight:i*a}:{paddingLeft:i*a}}function kEe(e){var t=e.icon,r=e.props,n=e.children,a;return typeof t=="function"?a=E.createElement(t,se({},r)):a=t,a||n||null}var F9e=["item"];function tT(e){var t=e.item,r=An(e,F9e);return Object.defineProperty(r,"item",{get:function(){return Ea(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),r}var N9e=["title","attribute","elementRef"],_9e=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],k9e=["active"],P9e=(function(e){fa(r,e);var t=pi(r);function r(){return Vn(this,r),t.apply(this,arguments)}return Jn(r,[{key:"render",value:function(){var a=this.props,i=a.title,o=a.attribute,s=a.elementRef,l=An(a,N9e),c=ji(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return Ea(!o,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),E.createElement(vd.Item,ge({},o,{title:typeof i=="string"?i:void 0},c,{ref:s}))}}]),r})(E.Component),O9e=E.forwardRef(function(e,t){var r,n=e.style,a=e.className,i=e.eventKey;e.warnKey;var o=e.disabled,s=e.itemIcon,l=e.children,c=e.role,A=e.onMouseEnter,u=e.onMouseLeave,d=e.onClick,f=e.onKeyDown,h=e.onFocus,g=An(e,_9e),p=bEe(i),m=E.useContext(ou),y=m.prefixCls,C=m.onItemClick,w=m.disabled,B=m.overflowDisabled,x=m.itemIcon,M=m.selectedKeys,S=m.onActive,R=E.useContext(N7),b=R._internalRenderMenuItem,T="".concat(y,"-item"),D=E.useRef(),F=E.useRef(),N=w||o,_=cx(t,F),P=My(i),k=function(fe){return{key:i,keyPath:ir(P).reverse(),item:D.current,domEvent:fe}},j=s||x,Y=NEe(i,N,A,u),X=Y.active,K=An(Y,k9e),U=M.includes(i),H=_Ee(P.length),L=function(fe){if(!N){var he=k(fe);d?.(tT(he)),C(he)}},V=function(fe){if(f?.(fe),fe.which===cr.ENTER){var he=k(fe);d?.(tT(he)),C(he)}},J=function(fe){S(i),h?.(fe)},ee={};e.role==="option"&&(ee["aria-selected"]=U);var ae=E.createElement(P9e,ge({ref:D,elementRef:_,role:c===null?"none":c||"menuitem",tabIndex:o?null:-1,"data-menu-id":B&&p?null:p},g,K,ee,{component:"li","aria-disabled":o,style:se(se({},H),n),className:dt(T,(r={},te(r,"".concat(T,"-active"),X),te(r,"".concat(T,"-selected"),U),te(r,"".concat(T,"-disabled"),N),r),a),onClick:L,onKeyDown:V,onFocus:J}),l,E.createElement(kEe,{props:se(se({},e),{},{isSelected:U}),icon:j}));return b&&(ae=b(ae,e,{selected:U})),ae});function j9e(e,t){var r=e.eventKey,n=WQ(),a=My(r);return E.useEffect(function(){if(n)return n.registerPath(r,a),function(){n.unregisterPath(r,a)}},[a]),n?null:E.createElement(O9e,ge({},e,{ref:t}))}const hx=E.forwardRef(j9e);var z9e=["className","children"],L9e=function(t,r){var n=t.className,a=t.children,i=An(t,z9e),o=E.useContext(ou),s=o.prefixCls,l=o.mode,c=o.rtl;return E.createElement("ul",ge({className:dt(s,c&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),n),role:"menu"},i,{"data-menu-list":!0,ref:r}),a)},k7=E.forwardRef(L9e);k7.displayName="SubMenuList";var Y9e=["label","children","key","type"];function P7(e,t){return Vo(e).map(function(r,n){if(E.isValidElement(r)){var a,i,o=r.key,s=(a=(i=r.props)===null||i===void 0?void 0:i.eventKey)!==null&&a!==void 0?a:o,l=s==null;l&&(s="tmp_key-".concat([].concat(ir(t),[n]).join("-")));var c={key:s,eventKey:s};return E.cloneElement(r,c)}return r})}function Vz(e){return(e||[]).map(function(t,r){if(t&&Ar(t)==="object"){var n=t,a=n.label,i=n.children,o=n.key,s=n.type,l=An(n,Y9e),c=o??"tmp-".concat(r);return i||s==="group"?s==="group"?E.createElement(qQ,ge({key:c},l,{title:a}),Vz(i)):E.createElement(XQ,ge({key:c},l,{title:a}),Vz(i)):s==="divider"?E.createElement(O7,ge({key:c},l)):E.createElement(hx,ge({key:c},l),a)}return null}).filter(function(t){return t})}function U9e(e,t,r){var n=e;return t&&(n=Vz(t)),P7(n,r)}var lg={adjustX:1,adjustY:1},H9e={topLeft:{points:["bl","tl"],overflow:lg,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:lg,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:lg,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:lg,offset:[4,0]}},G9e={topLeft:{points:["bl","tl"],overflow:lg,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:lg,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:lg,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:lg,offset:[4,0]}};function PEe(e,t,r){if(t)return t;if(r)return r[e]||r.other}var K9e={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function V9e(e){var t=e.prefixCls,r=e.visible,n=e.children,a=e.popup,i=e.popupClassName,o=e.popupOffset,s=e.disabled,l=e.mode,c=e.onVisibleChange,A=E.useContext(ou),u=A.getPopupContainer,d=A.rtl,f=A.subMenuOpenDelay,h=A.subMenuCloseDelay,g=A.builtinPlacements,p=A.triggerSubMenuAction,m=A.forceSubMenuRender,y=A.rootClassName,C=A.motion,w=A.defaultMotions,B=E.useState(!1),x=Je(B,2),M=x[0],S=x[1],R=se(d?se({},G9e):se({},H9e),g),b=K9e[l],T=PEe(l,C,w),D=E.useRef(T);l!=="inline"&&(D.current=T);var F=se(se({},D.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=E.useRef();return E.useEffect(function(){return N.current=ta(function(){S(r)}),function(){ta.cancel(N.current)}},[r]),E.createElement(dx,{prefixCls:t,popupClassName:dt("".concat(t,"-popup"),te({},"".concat(t,"-rtl"),d),i,y),stretch:l==="horizontal"?"minWidth":null,getPopupContainer:u,builtinPlacements:R,popupPlacement:b,popupVisible:M,popup:a,popupAlign:o&&{offset:o},action:s?[]:[p],mouseEnterDelay:f,mouseLeaveDelay:h,onPopupVisibleChange:c,forceRender:m,popupMotion:F},n)}function J9e(e){var t=e.id,r=e.open,n=e.keyPath,a=e.children,i="inline",o=E.useContext(ou),s=o.prefixCls,l=o.forceSubMenuRender,c=o.motion,A=o.defaultMotions,u=o.mode,d=E.useRef(!1);d.current=u===i;var f=E.useState(!d.current),h=Je(f,2),g=h[0],p=h[1],m=d.current?r:!1;E.useEffect(function(){d.current&&p(!1)},[u]);var y=se({},PEe(i,c,A));n.length>1&&(y.motionAppear=!1);var C=y.onVisibleChanged;return y.onVisibleChanged=function(w){return!d.current&&!w&&p(!0),C?.(w)},g?null:E.createElement(lB,{mode:i,locked:!d.current},E.createElement(us,ge({visible:m},y,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(w){var B=w.className,x=w.style;return E.createElement(k7,{id:t,className:B,style:x},a)}))}var W9e=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],X9e=["active"],q9e=function(t){var r,n=t.style,a=t.className,i=t.title,o=t.eventKey;t.warnKey;var s=t.disabled,l=t.internalPopupClose,c=t.children,A=t.itemIcon,u=t.expandIcon,d=t.popupClassName,f=t.popupOffset,h=t.onClick,g=t.onMouseEnter,p=t.onMouseLeave,m=t.onTitleClick,y=t.onTitleMouseEnter,C=t.onTitleMouseLeave,w=An(t,W9e),B=bEe(o),x=E.useContext(ou),M=x.prefixCls,S=x.mode,R=x.openKeys,b=x.disabled,T=x.overflowDisabled,D=x.activeKey,F=x.selectedKeys,N=x.itemIcon,_=x.expandIcon,P=x.onItemClick,k=x.onOpenChange,j=x.onActive,Y=E.useContext(N7),X=Y._internalRenderSubMenuItem,K=E.useContext(TEe),U=K.isSubPathKey,H=My(),L="".concat(M,"-submenu"),V=b||s,J=E.useRef(),ee=E.useRef(),ae=A||N,ne=u||_,fe=R.includes(o),he=!T&&fe,ye=U(F,o),be=NEe(o,V,y,C),Se=be.active,ve=An(be,X9e),de=E.useState(!1),Ue=Je(de,2),at=Ue[0],Ve=Ue[1],Ie=function(He){V||Ve(He)},we=function(He){Ie(!0),g?.({key:o,domEvent:He})},Re=function(He){Ie(!1),p?.({key:o,domEvent:He})},Te=E.useMemo(function(){return Se||(S!=="inline"?at||U([D],o):!1)},[S,Se,D,at,o,U]),Ke=_Ee(H.length),mt=function(He){V||(m?.({key:o,domEvent:He}),S==="inline"&&k(o,!fe))},tt=_0(function(Tt){h?.(tT(Tt)),P(Tt)}),rt=function(He){S!=="inline"&&k(o,He)},lt=function(){j(o)},At=B&&"".concat(B,"-popup"),$e=E.createElement("div",ge({role:"menuitem",style:Ke,className:"".concat(L,"-title"),tabIndex:V?null:-1,ref:J,title:typeof i=="string"?i:null,"data-menu-id":T&&B?null:B,"aria-expanded":he,"aria-haspopup":!0,"aria-controls":At,"aria-disabled":V,onClick:mt,onFocus:lt},ve),i,E.createElement(kEe,{icon:S!=="horizontal"?ne:null,props:se(se({},t),{},{isOpen:he,isSubMenu:!0})},E.createElement("i",{className:"".concat(L,"-arrow")}))),ce=E.useRef(S);if(S!=="inline"&&H.length>1?ce.current="vertical":ce.current=S,!T){var qe=ce.current;$e=E.createElement(V9e,{mode:qe,prefixCls:L,visible:!l&&he&&S!=="inline",popupClassName:d,popupOffset:f,popup:E.createElement(lB,{mode:qe==="horizontal"?"vertical":qe},E.createElement(k7,{id:At,ref:ee},c)),disabled:V,onVisibleChange:rt},$e)}var ct=E.createElement(vd.Item,ge({role:"none"},w,{component:"li",style:n,className:dt(L,"".concat(L,"-").concat(S),a,(r={},te(r,"".concat(L,"-open"),he),te(r,"".concat(L,"-active"),Te),te(r,"".concat(L,"-selected"),ye),te(r,"".concat(L,"-disabled"),V),r)),onMouseEnter:we,onMouseLeave:Re}),$e,!T&&E.createElement(J9e,{id:At,open:he,keyPath:H},c));return X&&(ct=X(ct,t,{selected:ye,active:Te,open:he,disabled:V})),E.createElement(lB,{onItemClick:tt,mode:S==="horizontal"?"vertical":S,itemIcon:ae,expandIcon:ne},ct)};function XQ(e){var t=e.eventKey,r=e.children,n=My(t),a=P7(r,n),i=WQ();E.useEffect(function(){if(i)return i.registerPath(t,n),function(){i.unregisterPath(t,n)}},[n]);var o;return i?o=a:o=E.createElement(q9e,e,a),E.createElement(REe.Provider,{value:n},o)}var Z9e=["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"],n0=[],$9e=E.forwardRef(function(e,t){var r,n,a=e,i=a.prefixCls,o=i===void 0?"rc-menu":i,s=a.rootClassName,l=a.style,c=a.className,A=a.tabIndex,u=A===void 0?0:A,d=a.items,f=a.children,h=a.direction,g=a.id,p=a.mode,m=p===void 0?"vertical":p,y=a.inlineCollapsed,C=a.disabled,w=a.disabledOverflow,B=a.subMenuOpenDelay,x=B===void 0?.1:B,M=a.subMenuCloseDelay,S=M===void 0?.1:M,R=a.forceSubMenuRender,b=a.defaultOpenKeys,T=a.openKeys,D=a.activeKey,F=a.defaultActiveFirst,N=a.selectable,_=N===void 0?!0:N,P=a.multiple,k=P===void 0?!1:P,j=a.defaultSelectedKeys,Y=a.selectedKeys,X=a.onSelect,K=a.onDeselect,U=a.inlineIndent,H=U===void 0?24:U,L=a.motion,V=a.defaultMotions,J=a.triggerSubMenuAction,ee=J===void 0?"hover":J,ae=a.builtinPlacements,ne=a.itemIcon,fe=a.expandIcon,he=a.overflowedIndicator,ye=he===void 0?"...":he,be=a.overflowedIndicatorPopupClassName,Se=a.getPopupContainer,ve=a.onClick,de=a.onOpenChange,Ue=a.onKeyDown;a.openAnimation,a.openTransitionName;var at=a._internalRenderMenuItem,Ve=a._internalRenderSubMenuItem,Ie=An(a,Z9e),we=E.useMemo(function(){return U9e(f,d,n0)},[f,d]),Re=E.useState(!1),Te=Je(Re,2),Ke=Te[0],mt=Te[1],tt=E.useRef(),rt=D9e(g),lt=h==="rtl",At=Ia(b,{value:T,postState:function(et){return et||n0}}),$e=Je(At,2),ce=$e[0],qe=$e[1],ct=function(et){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function Ot(){qe(et),de?.(et)}Ct?Ko.flushSync(Ot):Ot()},Tt=E.useState(ce),He=Je(Tt,2),Ge=He[0],Ee=He[1],Et=E.useRef(!1),Yt=E.useMemo(function(){return(m==="inline"||m==="vertical")&&y?["vertical",y]:[m,!1]},[m,y]),$=Je(Yt,2),Fe=$[0],je=$[1],ue=Fe==="inline",ie=E.useState(Fe),Be=Je(ie,2),Xe=Be[0],Oe=Be[1],ft=E.useState(je),wt=Je(ft,2),ot=wt[0],it=wt[1];E.useEffect(function(){Oe(Fe),it(je),Et.current&&(ue?qe(Ge):ct(n0))},[Fe,je]);var vt=E.useState(0),qt=Je(vt,2),Xt=qt[0],Tr=qt[1],Kr=Xt>=we.length-1||Xe!=="horizontal"||w;E.useEffect(function(){ue&&Ee(ce)},[ce]),E.useEffect(function(){return Et.current=!0,function(){Et.current=!1}},[]);var Vr=T9e(),Pr=Vr.registerPath,mr=Vr.unregisterPath,xr=Vr.refreshOverflowKeys,Ir=Vr.isSubPathKey,Fr=Vr.getKeyPath,br=Vr.getKeys,Sr=Vr.getSubPathKeys,fr=E.useMemo(function(){return{registerPath:Pr,unregisterPath:mr}},[Pr,mr]),Cr=E.useMemo(function(){return{isSubPathKey:Ir}},[Ir]);E.useEffect(function(){xr(Kr?n0:we.slice(Xt+1).map(function(Ye){return Ye.key}))},[Xt,Kr]);var hr=Ia(D||F&&((r=we[0])===null||r===void 0?void 0:r.key),{value:D}),Ht=Je(hr,2),Gt=Ht[0],er=Ht[1],Qr=_0(function(Ye){er(Ye)}),Hr=_0(function(){er(void 0)});E.useImperativeHandle(t,function(){return{list:tt.current,focus:function(et){var Ct,Ot=Gt??((Ct=we.find(function(Nr){return!Nr.props.disabled}))===null||Ct===void 0?void 0:Ct.key);if(Ot){var Ut,Jt,ar;(Ut=tt.current)===null||Ut===void 0||(Jt=Ut.querySelector("li[data-menu-id='".concat(F7(rt,Ot),"']")))===null||Jt===void 0||(ar=Jt.focus)===null||ar===void 0||ar.call(Jt,et)}}}});var vn=Ia(j||[],{value:Y,postState:function(et){return Array.isArray(et)?et:et==null?n0:[et]}}),pn=Je(vn,2),Qn=pn[0],pt=pn[1],Ze=function(et){if(_){var Ct=et.key,Ot=Qn.includes(Ct),Ut;k?Ot?Ut=Qn.filter(function(ar){return ar!==Ct}):Ut=[].concat(ir(Qn),[Ct]):Ut=[Ct],pt(Ut);var Jt=se(se({},et),{},{selectedKeys:Ut});Ot?K?.(Jt):X?.(Jt)}!k&&ce.length&&Xe!=="inline"&&ct(n0)},bt=_0(function(Ye){ve?.(tT(Ye)),Ze(Ye)}),kt=_0(function(Ye,et){var Ct=ce.filter(function(Ut){return Ut!==Ye});if(et)Ct.push(Ye);else if(Xe!=="inline"){var Ot=Sr(Ye);Ct=Ct.filter(function(Ut){return!Ot.has(Ut)})}JE(ce,Ct,!0)||ct(Ct,!0)}),Wt=_0(Se),St=function(et,Ct){var Ot=Ct??!ce.includes(et);kt(et,Ot)},pe=b9e(Xe,Gt,lt,rt,tt,br,Fr,er,St,Ue);E.useEffect(function(){mt(!0)},[]);var ke=E.useMemo(function(){return{_internalRenderMenuItem:at,_internalRenderSubMenuItem:Ve}},[at,Ve]),Me=Xe!=="horizontal"||w?we:we.map(function(Ye,et){return E.createElement(lB,{key:Ye.key,overflowDisabled:et>Xt},Ye)}),ze=E.createElement(vd,ge({id:g,ref:tt,prefixCls:"".concat(o,"-overflow"),component:"ul",itemComponent:hx,className:dt(o,"".concat(o,"-root"),"".concat(o,"-").concat(Xe),c,(n={},te(n,"".concat(o,"-inline-collapsed"),ot),te(n,"".concat(o,"-rtl"),lt),n),s),dir:h,style:l,role:"menu",tabIndex:u,data:Me,renderRawItem:function(et){return et},renderRawRest:function(et){var Ct=et.length,Ot=Ct?we.slice(-Ct):null;return E.createElement(XQ,{eventKey:Kz,title:ye,disabled:Kr,internalPopupClose:Ct===0,popupClassName:be},Ot)},maxCount:Xe!=="horizontal"||w?vd.INVALIDATE:vd.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(et){Tr(et)},onKeyDown:pe},Ie));return E.createElement(N7.Provider,{value:ke},E.createElement(IEe.Provider,{value:rt},E.createElement(lB,{prefixCls:o,rootClassName:s,mode:Xe,openKeys:ce,rtl:lt,disabled:C,motion:Ke?L:null,defaultMotions:Ke?V:null,activeKey:Gt,onActive:Qr,onInactive:Hr,selectedKeys:Qn,inlineIndent:H,subMenuOpenDelay:x,subMenuCloseDelay:S,forceSubMenuRender:R,builtinPlacements:ae,triggerSubMenuAction:ee,getPopupContainer:Wt,itemIcon:ne,expandIcon:fe,onItemClick:bt,onOpenChange:kt},E.createElement(TEe.Provider,{value:Cr},ze),E.createElement("div",{style:{display:"none"},"aria-hidden":!0},E.createElement(SEe.Provider,{value:fr},we)))))}),eGe=["className","title","eventKey","children"],tGe=["children"],rGe=function(t){var r=t.className,n=t.title;t.eventKey;var a=t.children,i=An(t,eGe),o=E.useContext(ou),s=o.prefixCls,l="".concat(s,"-item-group");return E.createElement("li",ge({role:"presentation"},i,{onClick:function(A){return A.stopPropagation()},className:dt(l,r)}),E.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof n=="string"?n:void 0},n),E.createElement("ul",{role:"group",className:"".concat(l,"-list")},a))};function qQ(e){var t=e.children,r=An(e,tGe),n=My(r.eventKey),a=P7(t,n),i=WQ();return i?a:E.createElement(rGe,ji(r,["warnKey"]),a)}function O7(e){var t=e.className,r=e.style,n=E.useContext(ou),a=n.prefixCls,i=WQ();return i?null:E.createElement("li",{className:dt("".concat(a,"-item-divider"),t),style:r})}var Iy=$9e;Iy.Item=hx;Iy.SubMenu=XQ;Iy.ItemGroup=qQ;Iy.Divider=O7;var OEe=E.createContext({}),nGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},jEe=function(t){var r=t.prefixCls,n=t.className,a=t.dashed,i=nGe(t,["prefixCls","className","dashed"]),o=E.useContext(an),s=o.getPrefixCls,l=s("menu",r),c=dt(te({},"".concat(l,"-item-divider-dashed"),!!a),n);return E.createElement(O7,ge({className:c},i))},rT=E.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});function aGe(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var iGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},j7=(function(e){fa(t,e);function t(){var r;return Vn(this,t),r=aGe(this,t,arguments),r.renderItem=function(n){var a=n.siderCollapsed,i,o=r.context,s=o.prefixCls,l=o.firstLevel,c=o.inlineCollapsed,A=o.direction,u=o.disableMenuItemTitleTooltip,d=r.props,f=d.className,h=d.children,g=r.props,p=g.title,m=g.icon,y=g.danger,C=iGe(g,["title","icon","danger"]),w=p;typeof p>"u"?w=l?h:"":p===!1&&(w="");var B={title:w};!a&&!c&&(B.title=null,B.open=!1);var x=Vo(h).length,M=E.createElement(hx,ge({},C,{className:dt(te(te({},"".concat(s,"-item-danger"),y),"".concat(s,"-item-only-child"),(m?x+1:x)===1),f),title:typeof p=="string"?p:void 0}),fi(m,{className:dt(gc(m)?(i=m.props)===null||i===void 0?void 0:i.className:"","".concat(s,"-item-icon"))}),r.renderItemChildren(c));return u||(M=E.createElement(Mi,ge({},B,{placement:A==="rtl"?"left":"right",overlayClassName:"".concat(s,"-inline-collapsed-tooltip")}),M)),M},r}return Jn(t,[{key:"renderItemChildren",value:function(n){var a=this.context,i=a.prefixCls,o=a.firstLevel,s=this.props,l=s.icon,c=s.children,A=E.createElement("span",{className:"".concat(i,"-title-content")},c);return(!l||gc(c)&&c.type==="span")&&c&&n&&o&&typeof c=="string"?E.createElement("div",{className:"".concat(i,"-inline-collapsed-noicon")},c.charAt(0)):A}},{key:"render",value:function(){return E.createElement(OEe.Consumer,null,this.renderItem)}}]),t})(E.Component);j7.contextType=rT;function zEe(e){var t,r=e.popupClassName,n=e.icon,a=e.title,i=e.theme,o=E.useContext(rT),s=o.prefixCls,l=o.inlineCollapsed,c=o.antdMenuTheme,A=My(),u;if(!n)u=l&&!A.length&&a&&typeof a=="string"?E.createElement("div",{className:"".concat(s,"-inline-collapsed-noicon")},a.charAt(0)):E.createElement("span",{className:"".concat(s,"-title-content")},a);else{var d=gc(a)&&a.type==="span";u=E.createElement(E.Fragment,null,fi(n,{className:dt(gc(n)?(t=n.props)===null||t===void 0?void 0:t.className:"","".concat(s,"-item-icon"))}),d?a:E.createElement("span",{className:"".concat(s,"-title-content")},a))}var f=E.useMemo(function(){return ge(ge({},o),{firstLevel:!1})},[o]);return E.createElement(rT.Provider,{value:f},E.createElement(XQ,ge({},ji(e,["icon"]),{title:u,popupClassName:dt(s,"".concat(s,"-").concat(i||c),r)})))}var oGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Jz(e){return(e||[]).map(function(t,r){if(t&&Ar(t)==="object"){var n=t,a=n.label,i=n.children,o=n.key,s=n.type,l=oGe(n,["label","children","key","type"]),c=o??"tmp-".concat(r);return i||s==="group"?s==="group"?E.createElement(qQ,ge({key:c},l,{title:a}),Jz(i)):E.createElement(zEe,ge({key:c},l,{title:a}),Jz(i)):s==="divider"?E.createElement(jEe,ge({key:c},l)):E.createElement(j7,ge({key:c},l),a)}return null}).filter(function(t){return t})}function sGe(e){return E.useMemo(function(){return e&&Jz(e)},[e])}var lGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},nT=E.createContext(null),LEe=function(t){var r=t.children,n=lGe(t,["children"]),a=E.useContext(nT),i=E.useMemo(function(){return ge(ge({},a),n)},[a,n.prefixCls,n.mode,n.selectable]);return E.createElement(nT.Provider,{value:i},r)};function cGe(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var AGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},uGe=E.forwardRef(function(e,t){var r,n=E.useContext(nT)||{},a=E.useContext(an),i=a.getPrefixCls,o=a.getPopupContainer,s=a.direction,l=i(),c=e.prefixCls,A=e.className,u=e.theme,d=u===void 0?"light":u,f=e.expandIcon,h=e._internalDisableMenuItemTitleTooltip,g=e.inlineCollapsed,p=e.siderCollapsed,m=e.items,y=e.children,C=e.mode,w=e.selectable,B=e.onClick,x=AGe(e,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),M=ji(x,["collapsedWidth"]),S=sGe(m)||y;(r=n.validator)===null||r===void 0||r.call(n,{mode:C});var R=tA(function(){var j;B?.apply(void 0,arguments),(j=n?.onClick)===null||j===void 0||j.call(n)}),b=n.mode||C,T=w??n.selectable,D=E.useMemo(function(){return p!==void 0?p:g},[g,p]),F={horizontal:{motionName:"".concat(l,"-slide-up")},inline:sB,other:{motionName:"".concat(l,"-zoom-big")}},N=i("menu",c||n.prefixCls),_=dt("".concat(N,"-").concat(d),A),P;typeof f=="function"?P=f:P=fi(f||n.expandIcon,{className:"".concat(N,"-submenu-expand-icon")});var k=E.useMemo(function(){return{prefixCls:N,inlineCollapsed:D||!1,antdMenuTheme:d,direction:s,firstLevel:!0,disableMenuItemTitleTooltip:h}},[N,D,d,s,h]);return E.createElement(nT.Provider,{value:null},E.createElement(rT.Provider,{value:k},E.createElement(Iy,ge({getPopupContainer:o,overflowedIndicator:E.createElement(SY,null),overflowedIndicatorPopupClassName:"".concat(N,"-").concat(d),mode:b,selectable:T,onClick:R},M,{inlineCollapsed:D,className:_,prefixCls:N,direction:s,defaultMotions:F,expandIcon:P,ref:t}),S)))}),xd=(function(e){fa(t,e);function t(){var r;return Vn(this,t),r=cGe(this,t,arguments),r.focus=function(n){var a;(a=r.menu)===null||a===void 0||a.focus(n)},r}return Jn(t,[{key:"render",value:function(){var n=this;return E.createElement(OEe.Consumer,null,function(a){return E.createElement(uGe,ge({ref:function(o){n.menu=o}},n.props,a))})}}]),t})(E.Component);xd.Divider=jEe;xd.Item=j7;xd.SubMenu=zEe;xd.ItemGroup=qQ;var a0={adjustX:1,adjustY:1},i0=[0,0],dGe={topLeft:{points:["bl","tl"],overflow:a0,offset:[0,-4],targetOffset:i0},topCenter:{points:["bc","tc"],overflow:a0,offset:[0,-4],targetOffset:i0},topRight:{points:["br","tr"],overflow:a0,offset:[0,-4],targetOffset:i0},bottomLeft:{points:["tl","bl"],overflow:a0,offset:[0,4],targetOffset:i0},bottomCenter:{points:["tc","bc"],overflow:a0,offset:[0,4],targetOffset:i0},bottomRight:{points:["tr","br"],overflow:a0,offset:[0,4],targetOffset:i0}},fGe=cr.ESC,hGe=cr.TAB;function gGe(e){var t=e.visible,r=e.setTriggerVisible,n=e.triggerRef,a=e.onVisibleChange,i=e.autoFocus,o=E.useRef(!1),s=function(){if(t&&n.current){var u,d,f,h;(u=n.current)===null||u===void 0||(d=u.triggerRef)===null||d===void 0||(f=d.current)===null||f===void 0||(h=f.focus)===null||h===void 0||h.call(f),r(!1),typeof a=="function"&&a(!1)}},l=function(){var u,d,f,h,g=QEe((u=n.current)===null||u===void 0||(d=u.popupRef)===null||d===void 0||(f=d.current)===null||f===void 0||(h=f.getElement)===null||h===void 0?void 0:h.call(f)),p=g[0];return p?.focus?(p.focus(),o.current=!0,!0):!1},c=function(u){switch(u.keyCode){case fGe:s();break;case hGe:{var d=!1;o.current||(d=l()),d?u.preventDefault():s();break}}};E.useEffect(function(){return t?(window.addEventListener("keydown",c),i&&ta(l,3),function(){window.removeEventListener("keydown",c),o.current=!1}):function(){o.current=!1}},[t])}var pGe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function vGe(e,t){var r=e.arrow,n=r===void 0?!1:r,a=e.prefixCls,i=a===void 0?"rc-dropdown":a,o=e.transitionName,s=e.animation,l=e.align,c=e.placement,A=c===void 0?"bottomLeft":c,u=e.placements,d=u===void 0?dGe:u,f=e.getPopupContainer,h=e.showAction,g=e.hideAction,p=e.overlayClassName,m=e.overlayStyle,y=e.visible,C=e.trigger,w=C===void 0?["hover"]:C,B=e.autoFocus,x=An(e,pGe),M=E.useState(),S=Je(M,2),R=S[0],b=S[1],T="visible"in e?y:R,D=E.useRef(null);E.useImperativeHandle(t,function(){return D.current}),gGe({visible:T,setTriggerVisible:b,triggerRef:D,onVisibleChange:e.onVisibleChange,autoFocus:B});var F=function(){var H=e.overlay,L;return typeof H=="function"?L=H():L=H,L},N=function(H){var L=e.onOverlayClick;b(!1),L&&L(H)},_=function(H){var L=e.onVisibleChange;b(H),typeof L=="function"&&L(H)},P=function(){var H=F();return E.createElement(E.Fragment,null,n&&E.createElement("div",{className:"".concat(i,"-arrow")}),H)},k=function(){var H=e.overlay;return typeof H=="function"?P:P()},j=function(){var H=e.minOverlayWidthMatchTrigger,L=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?H:!L},Y=function(){var H=e.openClassName;return H!==void 0?H:"".concat(i,"-open")},X=function(){var H=e.children,L=H.props?H.props:{},V=dt(L.className,Y());return T&&H?E.cloneElement(H,{className:V}):H},K=g;return!K&&w.indexOf("contextMenu")!==-1&&(K=["click"]),E.createElement(dx,se(se({builtinPlacements:d},x),{},{prefixCls:i,ref:D,popupClassName:dt(p,te({},"".concat(i,"-show-arrow"),n)),popupStyle:m,action:w,showAction:h,hideAction:K||[],popupPlacement:A,popupAlign:l,popupTransitionName:o,popupAnimation:s,popupVisible:T,stretch:j()?"minWidth":"",popup:k(),onPopupVisibleChange:_,onPopupClick:N,getPopupContainer:f}),X())}const YEe=E.forwardRef(vGe);var mGe=0,CE={};function aT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,r=mGe++,n=t;function a(){n-=1,n<=0?(e(),delete CE[r]):CE[r]=ta(a)}return CE[r]=ta(a),r}aT.cancel=function(t){t!==void 0&&(ta.cancel(CE[t]),delete CE[t])};aT.ids=CE;function EGe(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var q_;function hZ(e){return!e||e.offsetParent===null||e.hidden}function yGe(e){return e instanceof Document?e.body:Array.from(e.childNodes).find(function(t){return t?.nodeType===Node.ELEMENT_NODE})}function CGe(e){var t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}var ZQ=(function(e){fa(t,e);function t(){var r;return Vn(this,t),r=EGe(this,t,arguments),r.containerRef=E.createRef(),r.animationStart=!1,r.destroyed=!1,r.onClick=function(n,a){var i,o,s=r.props,l=s.insertExtraNode,c=s.disabled;if(!(c||!n||hZ(n)||n.className.includes("-leave"))){r.extraNode=document.createElement("div");var A=Bt(r),u=A.extraNode,d=r.context.getPrefixCls;u.className="".concat(d(""),"-click-animating-node");var f=r.getAttributeName();if(n.setAttribute(f,"true"),a&&a!=="#fff"&&a!=="#ffffff"&&a!=="rgb(255, 255, 255)"&&a!=="rgba(255, 255, 255, 1)"&&CGe(a)&&!/rgba\((?:\d*, ){3}0\)/.test(a)&&a!=="transparent"){u.style.borderColor=a;var h=((i=n.getRootNode)===null||i===void 0?void 0:i.call(n))||n.ownerDocument,g=(o=yGe(h))!==null&&o!==void 0?o:h;q_=UB(`
      [`.concat(d(""),"-click-animating-without-extra-node='true']::after, .").concat(d(""),`-click-animating-node {
        --antd-wave-shadow-color: `).concat(a,`;
      }`),"antd-wave",{csp:r.csp,attachTo:g})}l&&n.appendChild(u),["transition","animation"].forEach(function(p){n.addEventListener("".concat(p,"start"),r.onTransitionStart),n.addEventListener("".concat(p,"end"),r.onTransitionEnd)})}},r.onTransitionStart=function(n){if(!r.destroyed){var a=r.containerRef.current;!n||n.target!==a||r.animationStart||r.resetEffect(a)}},r.onTransitionEnd=function(n){!n||n.animationName!=="fadeEffect"||r.resetEffect(n.target)},r.bindAnimationEvent=function(n){if(!(!n||!n.getAttribute||n.getAttribute("disabled")||n.className.includes("disabled"))){var a=function(o){if(!(o.target.tagName==="INPUT"||hZ(o.target))){r.resetEffect(n);var s=getComputedStyle(n).getPropertyValue("border-top-color")||getComputedStyle(n).getPropertyValue("border-color")||getComputedStyle(n).getPropertyValue("background-color");r.clickWaveTimeoutId=window.setTimeout(function(){return r.onClick(n,s)},0),aT.cancel(r.animationStartId),r.animationStart=!0,r.animationStartId=aT(function(){r.animationStart=!1},10)}};return n.addEventListener("click",a,!0),{cancel:function(){n.removeEventListener("click",a,!0)}}}},r.renderWave=function(n){var a=n.csp,i=r.props.children;if(r.csp=a,!E.isValidElement(i))return i;var o=r.containerRef;return im(i)&&(o=Ec(i.ref,r.containerRef)),fi(i,{ref:o})},r}return Jn(t,[{key:"componentDidMount",value:function(){this.destroyed=!1;var n=this.containerRef.current;!n||n.nodeType!==1||(this.instance=this.bindAnimationEvent(n))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var n=this.context.getPrefixCls,a=this.props.insertExtraNode;return a?"".concat(n(""),"-click-animating"):"".concat(n(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(n){var a=this;if(!(!n||n===this.extraNode||!(n instanceof Element))){var i=this.props.insertExtraNode,o=this.getAttributeName();n.setAttribute(o,"false"),q_&&(q_.innerHTML=""),i&&this.extraNode&&n.contains(this.extraNode)&&n.removeChild(this.extraNode),["transition","animation"].forEach(function(s){n.removeEventListener("".concat(s,"start"),a.onTransitionStart),n.removeEventListener("".concat(s,"end"),a.onTransitionEnd)})}}},{key:"render",value:function(){return E.createElement(Lg,null,this.renderWave)}}]),t})(E.Component);ZQ.contextType=an;var wGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},UEe=E.createContext(void 0),BGe=function(t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.size,s=t.className,l=wGe(t,["prefixCls","size","className"]),c=n("btn-group",i),A="";switch(o){case"large":A="lg";break;case"small":A="sm";break}var u=dt(c,te(te({},"".concat(c,"-").concat(A),A),"".concat(c,"-rtl"),a==="rtl"),s);return E.createElement(UEe.Provider,{value:o},E.createElement("div",ge({},l,{className:u})))},Z_=function(){return{width:0,opacity:0,transform:"scale(0)"}},$_=function(t){return{width:t.scrollWidth,opacity:1,transform:"scale(1)"}},xGe=function(t){var r=t.prefixCls,n=t.loading,a=t.existIcon,i=!!n;return a?le.createElement("span",{className:"".concat(r,"-loading-icon")},le.createElement(Cg,null)):le.createElement(us,{visible:i,motionName:"".concat(r,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:Z_,onAppearActive:$_,onEnterStart:Z_,onEnterActive:$_,onLeaveStart:$_,onLeaveActive:Z_},function(o,s){var l=o.className,c=o.style;return le.createElement("span",{className:"".concat(r,"-loading-icon"),style:c,ref:s},le.createElement(Cg,{className:l}))})},MGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},gZ=/^[\u4e00-\u9fa5]{2}$/,Wz=gZ.test.bind(gZ);function IGe(e){return typeof e=="string"}function e8(e){return e==="text"||e==="link"}function bGe(e,t){if(e!=null){var r=t?" ":"";return typeof e!="string"&&typeof e!="number"&&IGe(e.type)&&Wz(e.props.children)?fi(e,{children:e.props.children.split("").join(r)}):typeof e=="string"?Wz(e)?E.createElement("span",null,e.split("").join(r)):E.createElement("span",null,e):D0e(e)?E.createElement("span",null,e):e}}function SGe(e,t){var r=!1,n=[];return E.Children.forEach(e,function(a){var i=Ar(a),o=i==="string"||i==="number";if(r&&o){var s=n.length-1,l=n[s];n[s]="".concat(l).concat(a)}else n.push(a);r=o}),E.Children.map(n,function(a){return bGe(a,t)})}Wo("default","primary","ghost","dashed","link","text");Wo("default","circle","round");Wo("submit","button","reset");function z7(e){return e==="danger"?{danger:!0}:{type:e}}var RGe=function(t,r){var n,a=t.loading,i=a===void 0?!1:a,o=t.prefixCls,s=t.type,l=s===void 0?"default":s,c=t.danger,A=t.shape,u=A===void 0?"default":A,d=t.size,f=t.disabled,h=t.className,g=t.children,p=t.icon,m=t.ghost,y=m===void 0?!1:m,C=t.block,w=C===void 0?!1:C,B=t.htmlType,x=B===void 0?"button":B,M=MGe(t,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),S=E.useContext(ds),R=E.useContext(Ol),b=f??R,T=E.useContext(UEe),D=E.useState(!!i),F=Je(D,2),N=F[0],_=F[1],P=E.useState(!1),k=Je(P,2),j=k[0],Y=k[1],X=E.useContext(an),K=X.getPrefixCls,U=X.autoInsertSpaceInButton,H=X.direction,L=r||E.createRef(),V=function(){return E.Children.count(g)===1&&!p&&!e8(l)},J=function(){if(!(!L||!L.current||U===!1)){var Ke=L.current.textContent;V()&&Wz(Ke)?j||Y(!0):j&&Y(!1)}},ee=typeof i=="boolean"?i:i?.delay||!0;E.useEffect(function(){var Te=null;return typeof ee=="number"?Te=window.setTimeout(function(){Te=null,_(ee)},ee):_(ee),function(){Te&&(window.clearTimeout(Te),Te=null)}},[ee]),E.useEffect(J,[L]);var ae=function(Ke){var mt=t.onClick;if(N||b){Ke.preventDefault();return}mt?.(Ke)},ne=K("btn",o),fe=U!==!1,he=$f(ne,H),ye=he.compactSize,be=he.compactItemClassnames,Se={large:"lg",small:"sm",middle:void 0},ve=ye||T||d||S,de=ve&&Se[ve]||"",Ue=N?"loading":p,at=ji(M,["navigate"]),Ve=dt(ne,(n={},te(te(te(te(te(te(te(te(te(te(n,"".concat(ne,"-").concat(u),u!=="default"&&u),"".concat(ne,"-").concat(l),l),"".concat(ne,"-").concat(de),de),"".concat(ne,"-icon-only"),!g&&g!==0&&!!Ue),"".concat(ne,"-background-ghost"),y&&!e8(l)),"".concat(ne,"-loading"),N),"".concat(ne,"-two-chinese-chars"),j&&fe&&!N),"".concat(ne,"-block"),w),"".concat(ne,"-dangerous"),!!c),"".concat(ne,"-rtl"),H==="rtl"),te(n,"".concat(ne,"-disabled"),at.href!==void 0&&b)),be,h),Ie=p&&!N?p:E.createElement(xGe,{existIcon:!!p,prefixCls:ne,loading:!!N}),we=g||g===0?SGe(g,V()&&fe):null;if(at.href!==void 0)return E.createElement("a",ge({},at,{className:Ve,onClick:ae,ref:L}),Ie,we);var Re=E.createElement("button",ge({},M,{type:x,className:Ve,onClick:ae,disabled:b,ref:L}),Ie,we);return e8(l)?Re:E.createElement(ZQ,{disabled:!!N},Re)},yt=E.forwardRef(RGe);yt.Group=BGe;yt.__ANT_BUTTON=!0;var HEe=function(t){if(_s()&&window.document.documentElement){var r=Array.isArray(t)?t:[t],n=window.document.documentElement;return r.some(function(a){return a in n.style})}return!1},TGe=function(t,r){if(!HEe(t))return!1;var n=document.createElement("div"),a=n.style[t];return n.style[t]=r,n.style[t]!==a};function Xz(e,t){return!Array.isArray(e)&&t!==void 0?TGe(e,t):HEe(e)}var GEe=function(){return _s()&&window.document.documentElement},WM,QGe=function(){if(!GEe())return!1;if(WM!==void 0)return WM;var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),WM=t.scrollHeight===1,document.body.removeChild(t),WM};const KEe=(function(){var e=E.useState(!1),t=Je(e,2),r=t[0],n=t[1];return E.useEffect(function(){n(QGe())},[]),r});function DGe(e){var t=e.className,r=e.direction,n=e.index,a=e.marginDirection,i=e.children,o=e.split,s=e.wrap,l=E.useContext(VEe),c=l.horizontalSize,A=l.verticalSize,u=l.latestIndex,d=l.supportFlexGap,f={};return d||(r==="vertical"?n<u&&(f={marginBottom:c/(o?2:1)}):f=ge(ge({},n<u&&te({},a,c/(o?2:1))),s&&{paddingBottom:A})),i==null?null:E.createElement(E.Fragment,null,E.createElement("div",{className:t,style:f},i),n<u&&o&&E.createElement("span",{className:"".concat(t,"-split"),style:f},o))}var FGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},VEe=E.createContext({latestIndex:0,horizontalSize:0,verticalSize:0,supportFlexGap:!1}),NGe={small:8,middle:16,large:24};function _Ge(e){return typeof e=="string"?NGe[e]:e||0}var kGe=function(t){var r=E.useContext(an),n=r.getPrefixCls,a=r.space,i=r.direction,o=t.size,s=o===void 0?a?.size||"small":o,l=t.align,c=t.className,A=t.children,u=t.direction,d=u===void 0?"horizontal":u,f=t.prefixCls,h=t.split,g=t.style,p=t.wrap,m=p===void 0?!1:p,y=FGe(t,["size","align","className","children","direction","prefixCls","split","style","wrap"]),C=KEe(),w=E.useMemo(function(){return(Array.isArray(s)?s:[s,s]).map(function(j){return _Ge(j)})},[s]),B=Je(w,2),x=B[0],M=B[1],S=Vo(A,{keepEmpty:!0}),R=l===void 0&&d==="horizontal"?"center":l,b=n("space",f),T=dt(b,"".concat(b,"-").concat(d),te(te({},"".concat(b,"-rtl"),i==="rtl"),"".concat(b,"-align-").concat(R),R),c),D="".concat(b,"-item"),F=i==="rtl"?"marginLeft":"marginRight",N=0,_=S.map(function(j,Y){j!=null&&(N=Y);var X=j&&j.key||"".concat(D,"-").concat(Y);return E.createElement(DGe,{className:D,key:X,direction:d,index:Y,marginDirection:F,split:h,wrap:m},j)}),P=E.useMemo(function(){return{horizontalSize:x,verticalSize:M,latestIndex:N,supportFlexGap:C}},[x,M,N,C]);if(S.length===0)return null;var k={};return m&&(k.flexWrap="wrap",C||(k.marginBottom=-M)),C&&(k.columnGap=x,k.rowGap=M),E.createElement("div",ge({className:T,style:ge(ge({},k),g)},y),E.createElement(VEe.Provider,{value:P},_))},JEe=kGe;JEe.Compact=t9e;var PGe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},WEe=function(t){var r=E.useContext(an),n=r.getPopupContainer,a=r.getPrefixCls,i=r.direction,o=t.prefixCls,s=t.type,l=s===void 0?"default":s,c=t.danger,A=t.disabled,u=t.loading,d=t.onClick,f=t.htmlType,h=t.children,g=t.className,p=t.menu,m=t.arrow,y=t.autoFocus,C=t.overlay,w=t.trigger,B=t.align,x=t.visible,M=t.open,S=t.onVisibleChange,R=t.onOpenChange,b=t.placement,T=t.getPopupContainer,D=t.href,F=t.icon,N=F===void 0?E.createElement(SY,null):F,_=t.title,P=t.buttonsRender,k=P===void 0?function(de){return de}:P,j=t.mouseEnterDelay,Y=t.mouseLeaveDelay,X=t.overlayClassName,K=t.overlayStyle,U=t.destroyPopupOnHide,H=PGe(t,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","visible","open","onVisibleChange","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),L=a("dropdown-button",o),V={menu:p,arrow:m,autoFocus:y,align:B,disabled:A,trigger:A?[]:w,onOpenChange:R||S,getPopupContainer:T||n,mouseEnterDelay:j,mouseLeaveDelay:Y,overlayClassName:X,overlayStyle:K,destroyPopupOnHide:U},J=$f(L,i),ee=J.compactSize,ae=J.compactItemClassnames,ne=dt(L,ae,g);"overlay"in t&&(V.overlay=C),"open"in t?V.open=M:"visible"in t&&(V.open=x),"placement"in t?V.placement=b:V.placement=i==="rtl"?"bottomLeft":"bottomRight";var fe=E.createElement(yt,{type:l,danger:c,disabled:A,loading:u,onClick:d,htmlType:f,href:D,title:_},h),he=E.createElement(yt,{type:l,danger:c,icon:N}),ye=k([fe,he]),be=Je(ye,2),Se=be[0],ve=be[1];return E.createElement(JEe.Compact,ge({className:ne,size:ee,block:!0},H),Se,E.createElement(Yg,ge({},V),ve))};WEe.__ANT_BUTTON=!0;Wo("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom");var Yg=function(t){var r=E.useContext(an),n=r.getPopupContainer,a=r.getPrefixCls,i=r.direction,o=function(){var J=a(),ee=t.placement,ae=ee===void 0?"":ee,ne=t.transitionName;return ne!==void 0?ne:ae.includes("top")?"".concat(J,"-slide-down"):"".concat(J,"-slide-up")},s=function(){var J=t.placement;if(!J)return i==="rtl"?"bottomRight":"bottomLeft";if(J.includes("Center")){var ee=J.slice(0,J.indexOf("Center"));return ee}return J},l=t.menu,c=t.arrow,A=t.prefixCls,u=t.children,d=t.trigger,f=t.disabled,h=t.dropdownRender,g=t.getPopupContainer,p=t.overlayClassName,m=t.visible,y=t.open,C=t.onVisibleChange,w=t.onOpenChange,B=t.mouseEnterDelay,x=B===void 0?.15:B,M=t.mouseLeaveDelay,S=M===void 0?.1:M,R=t.autoAdjustOverflow,b=R===void 0?!0:R,T=a("dropdown",A),D=E.Children.only(u),F=fi(D,{className:dt("".concat(T,"-trigger"),te({},"".concat(T,"-rtl"),i==="rtl"),D.props.className),disabled:f}),N=f?[]:d,_;N&&N.includes("contextMenu")&&(_=!0);var P=Ia(!1,{value:y!==void 0?y:m}),k=Je(P,2),j=k[0],Y=k[1],X=tA(function(V){C?.(V),w?.(V),Y(V)}),K=dt(p,te({},"".concat(T,"-rtl"),i==="rtl")),U=MEe({arrowPointAtCenter:Ar(c)==="object"&&c.pointAtCenter,autoAdjustOverflow:b}),H=E.useCallback(function(){Y(!1)},[]),L=function(){var J=t.overlay,ee;return l?.items?ee=E.createElement(xd,ge({},l)):typeof J=="function"?ee=J():ee=J,h&&(ee=h(ee)),ee=E.Children.only(typeof ee=="string"?E.createElement("span",null,ee):ee),E.createElement(LEe,{prefixCls:"".concat(T,"-menu"),expandIcon:E.createElement("span",{className:"".concat(T,"-menu-submenu-arrow")},E.createElement(tB,{className:"".concat(T,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:H,validator:function(ne){ne.mode}},E.createElement(jv,null,ee))};return E.createElement(YEe,ge({alignPoint:_},t,{mouseEnterDelay:x,mouseLeaveDelay:S,visible:j,builtinPlacements:U,arrow:!!c,overlayClassName:K,prefixCls:T,getPopupContainer:g||n,transitionName:o(),trigger:N,overlay:L,placement:s(),onVisibleChange:X}),F)};Yg.Button=WEe;//! moment.js
//! version : 2.30.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var XEe;function Jr(){return XEe.apply(null,arguments)}function OGe(e){XEe=e}function su(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function xv(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ba(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L7(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ba(e,t))return!1;return!0}function bl(e){return e===void 0}function Kf(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function gx(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function qEe(e,t){var r=[],n,a=e.length;for(n=0;n<a;++n)r.push(t(e[n],n));return r}function cg(e,t){for(var r in t)ba(t,r)&&(e[r]=t[r]);return ba(t,"toString")&&(e.toString=t.toString),ba(t,"valueOf")&&(e.valueOf=t.valueOf),e}function Qd(e,t,r,n){return yye(e,t,r,n,!0).utc()}function jGe(){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 ea(e){return e._pf==null&&(e._pf=jGe()),e._pf}var qz;Array.prototype.some?qz=Array.prototype.some:qz=function(e){var t=Object(this),r=t.length>>>0,n;for(n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1};function Y7(e){var t=null,r=!1,n=e._d&&!isNaN(e._d.getTime());if(n&&(t=ea(e),r=qz.call(t.parsedDateParts,function(a){return a!=null}),n=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(n=n&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=n;else return n;return e._isValid}function $Q(e){var t=Qd(NaN);return e!=null?cg(ea(t),e):ea(t).userInvalidated=!0,t}var pZ=Jr.momentProperties=[],t8=!1;function U7(e,t){var r,n,a,i=pZ.length;if(bl(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),bl(t._i)||(e._i=t._i),bl(t._f)||(e._f=t._f),bl(t._l)||(e._l=t._l),bl(t._strict)||(e._strict=t._strict),bl(t._tzm)||(e._tzm=t._tzm),bl(t._isUTC)||(e._isUTC=t._isUTC),bl(t._offset)||(e._offset=t._offset),bl(t._pf)||(e._pf=ea(t)),bl(t._locale)||(e._locale=t._locale),i>0)for(r=0;r<i;r++)n=pZ[r],a=t[n],bl(a)||(e[n]=a);return e}function px(e){U7(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),t8===!1&&(t8=!0,Jr.updateOffset(this),t8=!1)}function lu(e){return e instanceof px||e!=null&&e._isAMomentObject!=null}function ZEe(e){Jr.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function uA(e,t){var r=!0;return cg(function(){if(Jr.deprecationHandler!=null&&Jr.deprecationHandler(null,e),r){var n=[],a,i,o,s=arguments.length;for(i=0;i<s;i++){if(a="",typeof arguments[i]=="object"){a+=`
[`+i+"] ";for(o in arguments[0])ba(arguments[0],o)&&(a+=o+": "+arguments[0][o]+", ");a=a.slice(0,-2)}else a=arguments[i];n.push(a)}ZEe(e+`
Arguments: `+Array.prototype.slice.call(n).join("")+`
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var vZ={};function $Ee(e,t){Jr.deprecationHandler!=null&&Jr.deprecationHandler(e,t),vZ[e]||(ZEe(t),vZ[e]=!0)}Jr.suppressDeprecationWarnings=!1;Jr.deprecationHandler=null;function Dd(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function zGe(e){var t,r;for(r in e)ba(e,r)&&(t=e[r],Dd(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Zz(e,t){var r=cg({},e),n;for(n in t)ba(t,n)&&(xv(e[n])&&xv(t[n])?(r[n]={},cg(r[n],e[n]),cg(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)ba(e,n)&&!ba(t,n)&&xv(e[n])&&(r[n]=cg({},r[n]));return r}function H7(e){e!=null&&this.set(e)}var $z;Object.keys?$z=Object.keys:$z=function(e){var t,r=[];for(t in e)ba(e,t)&&r.push(t);return r};var LGe={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function YGe(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return Dd(n)?n.call(t,r):n}function Md(e,t,r){var n=""+Math.abs(e),a=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var G7=/(\[[^\[]*\])|(\\)?([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,XM=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,r8={},wE={};function yn(e,t,r,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),e&&(wE[e]=a),t&&(wE[t[0]]=function(){return Md(a.apply(this,arguments),t[1],t[2])}),r&&(wE[r]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function UGe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function HGe(e){var t=e.match(G7),r,n;for(r=0,n=t.length;r<n;r++)wE[t[r]]?t[r]=wE[t[r]]:t[r]=UGe(t[r]);return function(a){var i="",o;for(o=0;o<n;o++)i+=Dd(t[o])?t[o].call(a,e):t[o];return i}}function JS(e,t){return e.isValid()?(t=eye(t,e.localeData()),r8[t]=r8[t]||HGe(t),r8[t](e)):e.localeData().invalidDate()}function eye(e,t){var r=5;function n(a){return t.longDateFormat(a)||a}for(XM.lastIndex=0;r>=0&&XM.test(e);)e=e.replace(XM,n),XM.lastIndex=0,r-=1;return e}var GGe={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 KGe(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(G7).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var VGe="Invalid date";function JGe(){return this._invalidDate}var WGe="%d",XGe=/\d{1,2}/;function qGe(e){return this._ordinal.replace("%d",e)}var ZGe={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 $Ge(e,t,r,n){var a=this._relativeTime[r];return Dd(a)?a(e,t,r,n):a.replace(/%d/i,e)}function eKe(e,t){var r=this._relativeTime[e>0?"future":"past"];return Dd(r)?r(t):r.replace(/%s/i,t)}var mZ={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 dA(e){return typeof e=="string"?mZ[e]||mZ[e.toLowerCase()]:void 0}function K7(e){var t={},r,n;for(n in e)ba(e,n)&&(r=dA(n),r&&(t[r]=e[n]));return t}var tKe={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 rKe(e){var t=[],r;for(r in e)ba(e,r)&&t.push({unit:r,priority:tKe[r]});return t.sort(function(n,a){return n.priority-a.priority}),t}var tye=/\d/,yc=/\d\d/,rye=/\d{3}/,V7=/\d{4}/,e4=/[+-]?\d{6}/,vi=/\d\d?/,nye=/\d\d\d\d?/,aye=/\d\d\d\d\d\d?/,t4=/\d{1,3}/,J7=/\d{1,4}/,r4=/[+-]?\d{1,6}/,by=/\d+/,n4=/[+-]?\d+/,nKe=/Z|[+-]\d\d:?\d\d/gi,a4=/Z|[+-]\d\d(?::?\d\d)?/gi,aKe=/[+-]?\d+(\.\d{1,3})?/,vx=/[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,Sy=/^[1-9]\d?/,W7=/^([1-9]\d|\d)/,iT;iT={};function nn(e,t,r){iT[e]=Dd(t)?t:function(n,a){return n&&r?r:t}}function iKe(e,t){return ba(iT,e)?iT[e](t._strict,t._locale):new RegExp(oKe(e))}function oKe(e){return Lf(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,a,i){return r||n||a||i}))}function Lf(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Xc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function da(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=Xc(t)),r}var e6={};function Ua(e,t){var r,n=t,a;for(typeof e=="string"&&(e=[e]),Kf(t)&&(n=function(i,o){o[t]=da(i)}),a=e.length,r=0;r<a;r++)e6[e[r]]=n}function mx(e,t){Ua(e,function(r,n,a,i){a._w=a._w||{},t(r,a._w,a,i)})}function sKe(e,t,r){t!=null&&ba(e6,e)&&e6[e](t,r._a,r,e)}function i4(e){return e%4===0&&e%100!==0||e%400===0}var Ns=0,Qf=1,dd=2,Io=3,eu=4,Df=5,fv=6,lKe=7,cKe=8;yn("Y",0,0,function(){var e=this.year();return e<=9999?Md(e,4):"+"+e});yn(0,["YY",2],0,function(){return this.year()%100});yn(0,["YYYY",4],0,"year");yn(0,["YYYYY",5],0,"year");yn(0,["YYYYYY",6,!0],0,"year");nn("Y",n4);nn("YY",vi,yc);nn("YYYY",J7,V7);nn("YYYYY",r4,e4);nn("YYYYYY",r4,e4);Ua(["YYYYY","YYYYYY"],Ns);Ua("YYYY",function(e,t){t[Ns]=e.length===2?Jr.parseTwoDigitYear(e):da(e)});Ua("YY",function(e,t){t[Ns]=Jr.parseTwoDigitYear(e)});Ua("Y",function(e,t){t[Ns]=parseInt(e,10)});function Dw(e){return i4(e)?366:365}Jr.parseTwoDigitYear=function(e){return da(e)+(da(e)>68?1900:2e3)};var iye=Ry("FullYear",!0);function AKe(){return i4(this.year())}function Ry(e,t){return function(r){return r!=null?(oye(this,e,r),Jr.updateOffset(this,t),this):cB(this,e)}}function cB(e,t){if(!e.isValid())return NaN;var r=e._d,n=e._isUTC;switch(t){case"Milliseconds":return n?r.getUTCMilliseconds():r.getMilliseconds();case"Seconds":return n?r.getUTCSeconds():r.getSeconds();case"Minutes":return n?r.getUTCMinutes():r.getMinutes();case"Hours":return n?r.getUTCHours():r.getHours();case"Date":return n?r.getUTCDate():r.getDate();case"Day":return n?r.getUTCDay():r.getDay();case"Month":return n?r.getUTCMonth():r.getMonth();case"FullYear":return n?r.getUTCFullYear():r.getFullYear();default:return NaN}}function oye(e,t,r){var n,a,i,o,s;if(!(!e.isValid()||isNaN(r))){switch(n=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?n.setUTCMilliseconds(r):n.setMilliseconds(r));case"Seconds":return void(a?n.setUTCSeconds(r):n.setSeconds(r));case"Minutes":return void(a?n.setUTCMinutes(r):n.setMinutes(r));case"Hours":return void(a?n.setUTCHours(r):n.setHours(r));case"Date":return void(a?n.setUTCDate(r):n.setDate(r));case"FullYear":break;default:return}i=r,o=e.month(),s=e.date(),s=s===29&&o===1&&!i4(i)?28:s,a?n.setUTCFullYear(i,o,s):n.setFullYear(i,o,s)}}function uKe(e){return e=dA(e),Dd(this[e])?this[e]():this}function dKe(e,t){if(typeof e=="object"){e=K7(e);var r=rKe(e),n,a=r.length;for(n=0;n<a;n++)this[r[n].unit](e[r[n].unit])}else if(e=dA(e),Dd(this[e]))return this[e](t);return this}function fKe(e,t){return(e%t+t)%t}var eo;Array.prototype.indexOf?eo=Array.prototype.indexOf:eo=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function X7(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=fKe(t,12);return e+=(t-r)/12,r===1?i4(e)?29:28:31-r%7%2}yn("M",["MM",2],"Mo",function(){return this.month()+1});yn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});yn("MMMM",0,0,function(e){return this.localeData().months(this,e)});nn("M",vi,Sy);nn("MM",vi,yc);nn("MMM",function(e,t){return t.monthsShortRegex(e)});nn("MMMM",function(e,t){return t.monthsRegex(e)});Ua(["M","MM"],function(e,t){t[Qf]=da(e)-1});Ua(["MMM","MMMM"],function(e,t,r,n){var a=r._locale.monthsParse(e,n,r._strict);a!=null?t[Qf]=a:ea(r).invalidMonth=e});var hKe="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),sye="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),lye=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,gKe=vx,pKe=vx;function vKe(e,t){return e?su(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||lye).test(t)?"format":"standalone"][e.month()]:su(this._months)?this._months:this._months.standalone}function mKe(e,t){return e?su(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[lye.test(t)?"format":"standalone"][e.month()]:su(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function EKe(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=Qd([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(a=eo.call(this._shortMonthsParse,o),a!==-1?a:null):(a=eo.call(this._longMonthsParse,o),a!==-1?a:null):t==="MMM"?(a=eo.call(this._shortMonthsParse,o),a!==-1?a:(a=eo.call(this._longMonthsParse,o),a!==-1?a:null)):(a=eo.call(this._longMonthsParse,o),a!==-1?a:(a=eo.call(this._shortMonthsParse,o),a!==-1?a:null))}function yKe(e,t,r){var n,a,i;if(this._monthsParseExact)return EKe.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(a=Qd([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function cye(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=da(t);else if(t=e.localeData().monthsParse(t),!Kf(t))return e}var r=t,n=e.date();return n=n<29?n:Math.min(n,X7(e.year(),r)),e._isUTC?e._d.setUTCMonth(r,n):e._d.setMonth(r,n),e}function Aye(e){return e!=null?(cye(this,e),Jr.updateOffset(this,!0),this):cB(this,"Month")}function CKe(){return X7(this.year(),this.month())}function wKe(e){return this._monthsParseExact?(ba(this,"_monthsRegex")||uye.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(ba(this,"_monthsShortRegex")||(this._monthsShortRegex=gKe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function BKe(e){return this._monthsParseExact?(ba(this,"_monthsRegex")||uye.call(this),e?this._monthsStrictRegex:this._monthsRegex):(ba(this,"_monthsRegex")||(this._monthsRegex=pKe),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function uye(){function e(l,c){return c.length-l.length}var t=[],r=[],n=[],a,i,o,s;for(a=0;a<12;a++)i=Qd([2e3,a]),o=Lf(this.monthsShort(i,"")),s=Lf(this.months(i,"")),t.push(o),r.push(s),n.push(s),n.push(o);t.sort(e),r.sort(e),n.sort(e),this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function xKe(e,t,r,n,a,i,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,r,n,a,i,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,r,n,a,i,o),s}function AB(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function oT(e,t,r){var n=7+t-r,a=(7+AB(e,0,n).getUTCDay()-t)%7;return-a+n-1}function dye(e,t,r,n,a){var i=(7+r-n)%7,o=oT(e,n,a),s=1+7*(t-1)+i+o,l,c;return s<=0?(l=e-1,c=Dw(l)+s):s>Dw(e)?(l=e+1,c=s-Dw(e)):(l=e,c=s),{year:l,dayOfYear:c}}function uB(e,t,r){var n=oT(e.year(),t,r),a=Math.floor((e.dayOfYear()-n-1)/7)+1,i,o;return a<1?(o=e.year()-1,i=a+Yf(o,t,r)):a>Yf(e.year(),t,r)?(i=a-Yf(e.year(),t,r),o=e.year()+1):(o=e.year(),i=a),{week:i,year:o}}function Yf(e,t,r){var n=oT(e,t,r),a=oT(e+1,t,r);return(Dw(e)-n+a)/7}yn("w",["ww",2],"wo","week");yn("W",["WW",2],"Wo","isoWeek");nn("w",vi,Sy);nn("ww",vi,yc);nn("W",vi,Sy);nn("WW",vi,yc);mx(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=da(e)});function MKe(e){return uB(e,this._week.dow,this._week.doy).week}var IKe={dow:0,doy:6};function bKe(){return this._week.dow}function SKe(){return this._week.doy}function RKe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function TKe(e){var t=uB(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}yn("d",0,"do","day");yn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});yn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});yn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});yn("e",0,0,"weekday");yn("E",0,0,"isoWeekday");nn("d",vi);nn("e",vi);nn("E",vi);nn("dd",function(e,t){return t.weekdaysMinRegex(e)});nn("ddd",function(e,t){return t.weekdaysShortRegex(e)});nn("dddd",function(e,t){return t.weekdaysRegex(e)});mx(["dd","ddd","dddd"],function(e,t,r,n){var a=r._locale.weekdaysParse(e,n,r._strict);a!=null?t.d=a:ea(r).invalidWeekday=e});mx(["d","e","E"],function(e,t,r,n){t[n]=da(e)});function QKe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function DKe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function q7(e,t){return e.slice(t,7).concat(e.slice(0,t))}var FKe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fye="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),NKe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),_Ke=vx,kKe=vx,PKe=vx;function OKe(e,t){var r=su(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?q7(r,this._week.dow):e?r[e.day()]:r}function jKe(e){return e===!0?q7(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function zKe(e){return e===!0?q7(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function LKe(e,t,r){var n,a,i,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=Qd([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(a=eo.call(this._weekdaysParse,o),a!==-1?a:null):t==="ddd"?(a=eo.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=eo.call(this._minWeekdaysParse,o),a!==-1?a:null):t==="dddd"?(a=eo.call(this._weekdaysParse,o),a!==-1||(a=eo.call(this._shortWeekdaysParse,o),a!==-1)?a:(a=eo.call(this._minWeekdaysParse,o),a!==-1?a:null)):t==="ddd"?(a=eo.call(this._shortWeekdaysParse,o),a!==-1||(a=eo.call(this._weekdaysParse,o),a!==-1)?a:(a=eo.call(this._minWeekdaysParse,o),a!==-1?a:null)):(a=eo.call(this._minWeekdaysParse,o),a!==-1||(a=eo.call(this._weekdaysParse,o),a!==-1)?a:(a=eo.call(this._shortWeekdaysParse,o),a!==-1?a:null))}function YKe(e,t,r){var n,a,i;if(this._weekdaysParseExact)return LKe.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=Qd([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function UKe(e){if(!this.isValid())return e!=null?this:NaN;var t=cB(this,"Day");return e!=null?(e=QKe(e,this.localeData()),this.add(e-t,"d")):t}function HKe(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function GKe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=DKe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function KKe(e){return this._weekdaysParseExact?(ba(this,"_weekdaysRegex")||Z7.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ba(this,"_weekdaysRegex")||(this._weekdaysRegex=_Ke),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function VKe(e){return this._weekdaysParseExact?(ba(this,"_weekdaysRegex")||Z7.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ba(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=kKe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function JKe(e){return this._weekdaysParseExact?(ba(this,"_weekdaysRegex")||Z7.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ba(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=PKe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Z7(){function e(A,u){return u.length-A.length}var t=[],r=[],n=[],a=[],i,o,s,l,c;for(i=0;i<7;i++)o=Qd([2e3,1]).day(i),s=Lf(this.weekdaysMin(o,"")),l=Lf(this.weekdaysShort(o,"")),c=Lf(this.weekdays(o,"")),t.push(s),r.push(l),n.push(c),a.push(s),a.push(l),a.push(c);t.sort(e),r.sort(e),n.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function $7(){return this.hours()%12||12}function WKe(){return this.hours()||24}yn("H",["HH",2],0,"hour");yn("h",["hh",2],0,$7);yn("k",["kk",2],0,WKe);yn("hmm",0,0,function(){return""+$7.apply(this)+Md(this.minutes(),2)});yn("hmmss",0,0,function(){return""+$7.apply(this)+Md(this.minutes(),2)+Md(this.seconds(),2)});yn("Hmm",0,0,function(){return""+this.hours()+Md(this.minutes(),2)});yn("Hmmss",0,0,function(){return""+this.hours()+Md(this.minutes(),2)+Md(this.seconds(),2)});function hye(e,t){yn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}hye("a",!0);hye("A",!1);function gye(e,t){return t._meridiemParse}nn("a",gye);nn("A",gye);nn("H",vi,W7);nn("h",vi,Sy);nn("k",vi,Sy);nn("HH",vi,yc);nn("hh",vi,yc);nn("kk",vi,yc);nn("hmm",nye);nn("hmmss",aye);nn("Hmm",nye);nn("Hmmss",aye);Ua(["H","HH"],Io);Ua(["k","kk"],function(e,t,r){var n=da(e);t[Io]=n===24?0:n});Ua(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});Ua(["h","hh"],function(e,t,r){t[Io]=da(e),ea(r).bigHour=!0});Ua("hmm",function(e,t,r){var n=e.length-2;t[Io]=da(e.substr(0,n)),t[eu]=da(e.substr(n)),ea(r).bigHour=!0});Ua("hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[Io]=da(e.substr(0,n)),t[eu]=da(e.substr(n,2)),t[Df]=da(e.substr(a)),ea(r).bigHour=!0});Ua("Hmm",function(e,t,r){var n=e.length-2;t[Io]=da(e.substr(0,n)),t[eu]=da(e.substr(n))});Ua("Hmmss",function(e,t,r){var n=e.length-4,a=e.length-2;t[Io]=da(e.substr(0,n)),t[eu]=da(e.substr(n,2)),t[Df]=da(e.substr(a))});function XKe(e){return(e+"").toLowerCase().charAt(0)==="p"}var qKe=/[ap]\.?m?\.?/i,ZKe=Ry("Hours",!0);function $Ke(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var pye={calendar:LGe,longDateFormat:GGe,invalidDate:VGe,ordinal:WGe,dayOfMonthOrdinalParse:XGe,relativeTime:ZGe,months:hKe,monthsShort:sye,week:IKe,weekdays:FKe,weekdaysMin:NKe,weekdaysShort:fye,meridiemParse:qKe},Ci={},F1={},dB;function eVe(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function EZ(e){return e&&e.toLowerCase().replace("_","-")}function tVe(e){for(var t=0,r,n,a,i;t<e.length;){for(i=EZ(e[t]).split("-"),r=i.length,n=EZ(e[t+1]),n=n?n.split("-"):null;r>0;){if(a=o4(i.slice(0,r).join("-")),a)return a;if(n&&n.length>=r&&eVe(i,n)>=r-1)break;r--}t++}return dB}function rVe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function o4(e){var t=null,r;if(Ci[e]===void 0&&typeof module<"u"&&module&&module.exports&&rVe(e))try{t=dB._abbr,r=require,r("./locale/"+e),vg(t)}catch{Ci[e]=null}return Ci[e]}function vg(e,t){var r;return e&&(bl(t)?r=eh(e):r=eU(e,t),r?dB=r:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),dB._abbr}function eU(e,t){if(t!==null){var r,n=pye;if(t.abbr=e,Ci[e]!=null)$Ee("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."),n=Ci[e]._config;else if(t.parentLocale!=null)if(Ci[t.parentLocale]!=null)n=Ci[t.parentLocale]._config;else if(r=o4(t.parentLocale),r!=null)n=r._config;else return F1[t.parentLocale]||(F1[t.parentLocale]=[]),F1[t.parentLocale].push({name:e,config:t}),null;return Ci[e]=new H7(Zz(n,t)),F1[e]&&F1[e].forEach(function(a){eU(a.name,a.config)}),vg(e),Ci[e]}else return delete Ci[e],null}function nVe(e,t){if(t!=null){var r,n,a=pye;Ci[e]!=null&&Ci[e].parentLocale!=null?Ci[e].set(Zz(Ci[e]._config,t)):(n=o4(e),n!=null&&(a=n._config),t=Zz(a,t),n==null&&(t.abbr=e),r=new H7(t),r.parentLocale=Ci[e],Ci[e]=r),vg(e)}else Ci[e]!=null&&(Ci[e].parentLocale!=null?(Ci[e]=Ci[e].parentLocale,e===vg()&&vg(e)):Ci[e]!=null&&delete Ci[e]);return Ci[e]}function eh(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return dB;if(!su(e)){if(t=o4(e),t)return t;e=[e]}return tVe(e)}function aVe(){return $z(Ci)}function tU(e){var t,r=e._a;return r&&ea(e).overflow===-2&&(t=r[Qf]<0||r[Qf]>11?Qf:r[dd]<1||r[dd]>X7(r[Ns],r[Qf])?dd:r[Io]<0||r[Io]>24||r[Io]===24&&(r[eu]!==0||r[Df]!==0||r[fv]!==0)?Io:r[eu]<0||r[eu]>59?eu:r[Df]<0||r[Df]>59?Df:r[fv]<0||r[fv]>999?fv:-1,ea(e)._overflowDayOfYear&&(t<Ns||t>dd)&&(t=dd),ea(e)._overflowWeeks&&t===-1&&(t=lKe),ea(e)._overflowWeekday&&t===-1&&(t=cKe),ea(e).overflow=t),e}var iVe=/^\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)?)?$/,oVe=/^\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)?)?$/,sVe=/Z|[+-]\d\d(?::?\d\d)?/,qM=[["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]],n8=[["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/]],lVe=/^\/?Date\((-?\d+)/i,cVe=/^(?:(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}))$/,AVe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function vye(e){var t,r,n=e._i,a=iVe.exec(n)||oVe.exec(n),i,o,s,l,c=qM.length,A=n8.length;if(a){for(ea(e).iso=!0,t=0,r=c;t<r;t++)if(qM[t][1].exec(a[1])){o=qM[t][0],i=qM[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(a[3]){for(t=0,r=A;t<r;t++)if(n8[t][1].exec(a[3])){s=(a[2]||" ")+n8[t][0];break}if(s==null){e._isValid=!1;return}}if(!i&&s!=null){e._isValid=!1;return}if(a[4])if(sVe.exec(a[4]))l="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(l||""),nU(e)}else e._isValid=!1}function uVe(e,t,r,n,a,i){var o=[dVe(e),sye.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(a,10)];return i&&o.push(parseInt(i,10)),o}function dVe(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function fVe(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function hVe(e,t,r){if(e){var n=fye.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(n!==a)return ea(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function gVe(e,t,r){if(e)return AVe[e];if(t)return 0;var n=parseInt(r,10),a=n%100,i=(n-a)/100;return i*60+a}function mye(e){var t=cVe.exec(fVe(e._i)),r;if(t){if(r=uVe(t[4],t[3],t[2],t[5],t[6],t[7]),!hVe(t[1],r,e))return;e._a=r,e._tzm=gVe(t[8],t[9],t[10]),e._d=AB.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),ea(e).rfc2822=!0}else e._isValid=!1}function pVe(e){var t=lVe.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(vye(e),e._isValid===!1)delete e._isValid;else return;if(mye(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Jr.createFromInputFallback(e)}Jr.createFromInputFallback=uA("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function k0(e,t,r){return e??t??r}function vVe(e){var t=new Date(Jr.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function rU(e){var t,r,n=[],a,i,o;if(!e._d){for(a=vVe(e),e._w&&e._a[dd]==null&&e._a[Qf]==null&&mVe(e),e._dayOfYear!=null&&(o=k0(e._a[Ns],a[Ns]),(e._dayOfYear>Dw(o)||e._dayOfYear===0)&&(ea(e)._overflowDayOfYear=!0),r=AB(o,0,e._dayOfYear),e._a[Qf]=r.getUTCMonth(),e._a[dd]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=a[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Io]===24&&e._a[eu]===0&&e._a[Df]===0&&e._a[fv]===0&&(e._nextDay=!0,e._a[Io]=0),e._d=(e._useUTC?AB:xKe).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Io]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==i&&(ea(e).weekdayMismatch=!0)}}function mVe(e){var t,r,n,a,i,o,s,l,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,o=4,r=k0(t.GG,e._a[Ns],uB(hi(),1,4).year),n=k0(t.W,1),a=k0(t.E,1),(a<1||a>7)&&(l=!0)):(i=e._locale._week.dow,o=e._locale._week.doy,c=uB(hi(),i,o),r=k0(t.gg,e._a[Ns],c.year),n=k0(t.w,c.week),t.d!=null?(a=t.d,(a<0||a>6)&&(l=!0)):t.e!=null?(a=t.e+i,(t.e<0||t.e>6)&&(l=!0)):a=i),n<1||n>Yf(r,i,o)?ea(e)._overflowWeeks=!0:l!=null?ea(e)._overflowWeekday=!0:(s=dye(r,n,a,i,o),e._a[Ns]=s.year,e._dayOfYear=s.dayOfYear)}Jr.ISO_8601=function(){};Jr.RFC_2822=function(){};function nU(e){if(e._f===Jr.ISO_8601){vye(e);return}if(e._f===Jr.RFC_2822){mye(e);return}e._a=[],ea(e).empty=!0;var t=""+e._i,r,n,a,i,o,s=t.length,l=0,c,A;for(a=eye(e._f,e._locale).match(G7)||[],A=a.length,r=0;r<A;r++)i=a[r],n=(t.match(iKe(i,e))||[])[0],n&&(o=t.substr(0,t.indexOf(n)),o.length>0&&ea(e).unusedInput.push(o),t=t.slice(t.indexOf(n)+n.length),l+=n.length),wE[i]?(n?ea(e).empty=!1:ea(e).unusedTokens.push(i),sKe(i,n,e)):e._strict&&!n&&ea(e).unusedTokens.push(i);ea(e).charsLeftOver=s-l,t.length>0&&ea(e).unusedInput.push(t),e._a[Io]<=12&&ea(e).bigHour===!0&&e._a[Io]>0&&(ea(e).bigHour=void 0),ea(e).parsedDateParts=e._a.slice(0),ea(e).meridiem=e._meridiem,e._a[Io]=EVe(e._locale,e._a[Io],e._meridiem),c=ea(e).era,c!==null&&(e._a[Ns]=e._locale.erasConvertYear(c,e._a[Ns])),rU(e),tU(e)}function EVe(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function yVe(e){var t,r,n,a,i,o,s=!1,l=e._f.length;if(l===0){ea(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<l;a++)i=0,o=!1,t=U7({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],nU(t),Y7(t)&&(o=!0),i+=ea(t).charsLeftOver,i+=ea(t).unusedTokens.length*10,ea(t).score=i,s?i<n&&(n=i,r=t):(n==null||i<n||o)&&(n=i,r=t,o&&(s=!0));cg(e,r||t)}function CVe(e){if(!e._d){var t=K7(e._i),r=t.day===void 0?t.date:t.day;e._a=qEe([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),rU(e)}}function wVe(e){var t=new px(tU(Eye(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Eye(e){var t=e._i,r=e._f;return e._locale=e._locale||eh(e._l),t===null||r===void 0&&t===""?$Q({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),lu(t)?new px(tU(t)):(gx(t)?e._d=t:su(r)?yVe(e):r?nU(e):BVe(e),Y7(e)||(e._d=null),e))}function BVe(e){var t=e._i;bl(t)?e._d=new Date(Jr.now()):gx(t)?e._d=new Date(t.valueOf()):typeof t=="string"?pVe(e):su(t)?(e._a=qEe(t.slice(0),function(r){return parseInt(r,10)}),rU(e)):xv(t)?CVe(e):Kf(t)?e._d=new Date(t):Jr.createFromInputFallback(e)}function yye(e,t,r,n,a){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(xv(e)&&L7(e)||su(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=a,i._l=r,i._i=e,i._f=t,i._strict=n,wVe(i)}function hi(e,t,r,n){return yye(e,t,r,n,!1)}var xVe=uA("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=hi.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:$Q()}),MVe=uA("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=hi.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:$Q()});function Cye(e,t){var r,n;if(t.length===1&&su(t[0])&&(t=t[0]),!t.length)return hi();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function IVe(){var e=[].slice.call(arguments,0);return Cye("isBefore",e)}function bVe(){var e=[].slice.call(arguments,0);return Cye("isAfter",e)}var SVe=function(){return Date.now?Date.now():+new Date},N1=["year","quarter","month","week","day","hour","minute","second","millisecond"];function RVe(e){var t,r=!1,n,a=N1.length;for(t in e)if(ba(e,t)&&!(eo.call(N1,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<a;++n)if(e[N1[n]]){if(r)return!1;parseFloat(e[N1[n]])!==da(e[N1[n]])&&(r=!0)}return!0}function TVe(){return this._isValid}function QVe(){return gu(NaN)}function s4(e){var t=K7(e),r=t.year||0,n=t.quarter||0,a=t.month||0,i=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,l=t.minute||0,c=t.second||0,A=t.millisecond||0;this._isValid=RVe(t),this._milliseconds=+A+c*1e3+l*6e4+s*1e3*60*60,this._days=+o+i*7,this._months=+a+n*3+r*12,this._data={},this._locale=eh(),this._bubble()}function WS(e){return e instanceof s4}function t6(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function DVe(e,t,r){var n=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),i=0,o;for(o=0;o<n;o++)da(e[o])!==da(t[o])&&i++;return i+a}function wye(e,t){yn(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+Md(~~(r/60),2)+t+Md(~~r%60,2)})}wye("Z",":");wye("ZZ","");nn("Z",a4);nn("ZZ",a4);Ua(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=aU(a4,e)});var FVe=/([\+\-]|\d\d)/gi;function aU(e,t){var r=(t||"").match(e),n,a,i;return r===null?null:(n=r[r.length-1]||[],a=(n+"").match(FVe)||["-",0,0],i=+(a[1]*60)+da(a[2]),i===0?0:a[0]==="+"?i:-i)}function iU(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(lu(e)||gx(e)?e.valueOf():hi(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),Jr.updateOffset(r,!1),r):hi(e).local()}function r6(e){return-Math.round(e._d.getTimezoneOffset())}Jr.updateOffset=function(){};function NVe(e,t,r){var n=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=aU(a4,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(a=r6(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),n!==e&&(!t||this._changeInProgress?Mye(this,gu(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Jr.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:r6(this)}function _Ve(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function kVe(e){return this.utcOffset(0,e)}function PVe(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(r6(this),"m")),this}function OVe(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=aU(nKe,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function jVe(e){return this.isValid()?(e=e?hi(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function zVe(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function LVe(){if(!bl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return U7(e,this),e=Eye(e),e._a?(t=e._isUTC?Qd(e._a):hi(e._a),this._isDSTShifted=this.isValid()&&DVe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function YVe(){return this.isValid()?!this._isUTC:!1}function UVe(){return this.isValid()?this._isUTC:!1}function Bye(){return this.isValid()?this._isUTC&&this._offset===0:!1}var HVe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,GVe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function gu(e,t){var r=e,n=null,a,i,o;return WS(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:Kf(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=HVe.exec(e))?(a=n[1]==="-"?-1:1,r={y:0,d:da(n[dd])*a,h:da(n[Io])*a,m:da(n[eu])*a,s:da(n[Df])*a,ms:da(t6(n[fv]*1e3))*a}):(n=GVe.exec(e))?(a=n[1]==="-"?-1:1,r={y:Sp(n[2],a),M:Sp(n[3],a),w:Sp(n[4],a),d:Sp(n[5],a),h:Sp(n[6],a),m:Sp(n[7],a),s:Sp(n[8],a)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(o=KVe(hi(r.from),hi(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),i=new s4(r),WS(e)&&ba(e,"_locale")&&(i._locale=e._locale),WS(e)&&ba(e,"_isValid")&&(i._isValid=e._isValid),i}gu.fn=s4.prototype;gu.invalid=QVe;function Sp(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function yZ(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function KVe(e,t){var r;return e.isValid()&&t.isValid()?(t=iU(t,e),e.isBefore(t)?r=yZ(e,t):(r=yZ(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function xye(e,t){return function(r,n){var a,i;return n!==null&&!isNaN(+n)&&($Ee(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),a=gu(r,n),Mye(this,a,e),this}}function Mye(e,t,r,n){var a=t._milliseconds,i=t6(t._days),o=t6(t._months);e.isValid()&&(n=n??!0,o&&cye(e,cB(e,"Month")+o*r),i&&oye(e,"Date",cB(e,"Date")+i*r),a&&e._d.setTime(e._d.valueOf()+a*r),n&&Jr.updateOffset(e,i||o))}var VVe=xye(1,"add"),JVe=xye(-1,"subtract");function Iye(e){return typeof e=="string"||e instanceof String}function WVe(e){return lu(e)||gx(e)||Iye(e)||Kf(e)||qVe(e)||XVe(e)||e===null||e===void 0}function XVe(e){var t=xv(e)&&!L7(e),r=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,i,o=n.length;for(a=0;a<o;a+=1)i=n[a],r=r||ba(e,i);return t&&r}function qVe(e){var t=su(e),r=!1;return t&&(r=e.filter(function(n){return!Kf(n)&&Iye(e)}).length===0),t&&r}function ZVe(e){var t=xv(e)&&!L7(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,i;for(a=0;a<n.length;a+=1)i=n[a],r=r||ba(e,i);return t&&r}function $Ve(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function eJe(e,t){arguments.length===1&&(arguments[0]?WVe(arguments[0])?(e=arguments[0],t=void 0):ZVe(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||hi(),n=iU(r,this).startOf("day"),a=Jr.calendarFormat(this,n)||"sameElse",i=t&&(Dd(t[a])?t[a].call(this,r):t[a]);return this.format(i||this.localeData().calendar(a,this,hi(r)))}function tJe(){return new px(this)}function rJe(e,t){var r=lu(e)?e:hi(e);return this.isValid()&&r.isValid()?(t=dA(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function nJe(e,t){var r=lu(e)?e:hi(e);return this.isValid()&&r.isValid()?(t=dA(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function aJe(e,t,r,n){var a=lu(e)?e:hi(e),i=lu(t)?t:hi(t);return this.isValid()&&a.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(a,r):!this.isBefore(a,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function iJe(e,t){var r=lu(e)?e:hi(e),n;return this.isValid()&&r.isValid()?(t=dA(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function oJe(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function sJe(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function lJe(e,t,r){var n,a,i;if(!this.isValid())return NaN;if(n=iU(e,this),!n.isValid())return NaN;switch(a=(n.utcOffset()-this.utcOffset())*6e4,t=dA(t),t){case"year":i=XS(this,n)/12;break;case"month":i=XS(this,n);break;case"quarter":i=XS(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-a)/864e5;break;case"week":i=(this-n-a)/6048e5;break;default:i=this-n}return r?i:Xc(i)}function XS(e,t){if(e.date()<t.date())return-XS(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),a,i;return t-n<0?(a=e.clone().add(r-1,"months"),i=(t-n)/(n-a)):(a=e.clone().add(r+1,"months"),i=(t-n)/(a-n)),-(r+i)||0}Jr.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Jr.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function cJe(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function AJe(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?JS(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Dd(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",JS(r,"Z")):JS(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function uJe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,a,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+a+i)}function dJe(e){e||(e=this.isUtc()?Jr.defaultFormatUtc:Jr.defaultFormat);var t=JS(this,e);return this.localeData().postformat(t)}function fJe(e,t){return this.isValid()&&(lu(e)&&e.isValid()||hi(e).isValid())?gu({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function hJe(e){return this.from(hi(),e)}function gJe(e,t){return this.isValid()&&(lu(e)&&e.isValid()||hi(e).isValid())?gu({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function pJe(e){return this.to(hi(),e)}function bye(e){var t;return e===void 0?this._locale._abbr:(t=eh(e),t!=null&&(this._locale=t),this)}var Sye=uA("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Rye(){return this._locale}var sT=1e3,BE=60*sT,lT=60*BE,Tye=(365*400+97)*24*lT;function xE(e,t){return(e%t+t)%t}function Qye(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-Tye:new Date(e,t,r).valueOf()}function Dye(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-Tye:Date.UTC(e,t,r)}function vJe(e){var t,r;if(e=dA(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Dye:Qye,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=xE(t+(this._isUTC?0:this.utcOffset()*BE),lT);break;case"minute":t=this._d.valueOf(),t-=xE(t,BE);break;case"second":t=this._d.valueOf(),t-=xE(t,sT);break}return this._d.setTime(t),Jr.updateOffset(this,!0),this}function mJe(e){var t,r;if(e=dA(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Dye:Qye,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=lT-xE(t+(this._isUTC?0:this.utcOffset()*BE),lT)-1;break;case"minute":t=this._d.valueOf(),t+=BE-xE(t,BE)-1;break;case"second":t=this._d.valueOf(),t+=sT-xE(t,sT)-1;break}return this._d.setTime(t),Jr.updateOffset(this,!0),this}function EJe(){return this._d.valueOf()-(this._offset||0)*6e4}function yJe(){return Math.floor(this.valueOf()/1e3)}function CJe(){return new Date(this.valueOf())}function wJe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function BJe(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xJe(){return this.isValid()?this.toISOString():null}function MJe(){return Y7(this)}function IJe(){return cg({},ea(this))}function bJe(){return ea(this).overflow}function SJe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}yn("N",0,0,"eraAbbr");yn("NN",0,0,"eraAbbr");yn("NNN",0,0,"eraAbbr");yn("NNNN",0,0,"eraName");yn("NNNNN",0,0,"eraNarrow");yn("y",["y",1],"yo","eraYear");yn("y",["yy",2],0,"eraYear");yn("y",["yyy",3],0,"eraYear");yn("y",["yyyy",4],0,"eraYear");nn("N",oU);nn("NN",oU);nn("NNN",oU);nn("NNNN",jJe);nn("NNNNN",zJe);Ua(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var a=r._locale.erasParse(e,n,r._strict);a?ea(r).era=a:ea(r).invalidEra=e});nn("y",by);nn("yy",by);nn("yyy",by);nn("yyyy",by);nn("yo",LJe);Ua(["y","yy","yyy","yyyy"],Ns);Ua(["yo"],function(e,t,r,n){var a;r._locale._eraYearOrdinalRegex&&(a=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[Ns]=r._locale.eraYearOrdinalParse(e,a):t[Ns]=parseInt(e,10)});function RJe(e,t){var r,n,a,i=this._eras||eh("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":a=Jr(i[r].since).startOf("day"),i[r].since=a.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":a=Jr(i[r].until).startOf("day").valueOf(),i[r].until=a.valueOf();break}}return i}function TJe(e,t,r){var n,a,i=this.eras(),o,s,l;for(e=e.toUpperCase(),n=0,a=i.length;n<a;++n)if(o=i[n].name.toUpperCase(),s=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(s===e)return i[n];break;case"NNNN":if(o===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([o,s,l].indexOf(e)>=0)return i[n]}function QJe(e,t){var r=e.since<=e.until?1:-1;return t===void 0?Jr(e.since).year():Jr(e.since).year()+(t-e.offset)*r}function DJe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function FJe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function NJe(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function _Je(){var e,t,r,n,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(r=a[e].since<=a[e].until?1:-1,n=this.clone().startOf("day").valueOf(),a[e].since<=n&&n<=a[e].until||a[e].until<=n&&n<=a[e].since)return(this.year()-Jr(a[e].since).year())*r+a[e].offset;return this.year()}function kJe(e){return ba(this,"_erasNameRegex")||sU.call(this),e?this._erasNameRegex:this._erasRegex}function PJe(e){return ba(this,"_erasAbbrRegex")||sU.call(this),e?this._erasAbbrRegex:this._erasRegex}function OJe(e){return ba(this,"_erasNarrowRegex")||sU.call(this),e?this._erasNarrowRegex:this._erasRegex}function oU(e,t){return t.erasAbbrRegex(e)}function jJe(e,t){return t.erasNameRegex(e)}function zJe(e,t){return t.erasNarrowRegex(e)}function LJe(e,t){return t._eraYearOrdinalRegex||by}function sU(){var e=[],t=[],r=[],n=[],a,i,o,s,l,c=this.eras();for(a=0,i=c.length;a<i;++a)o=Lf(c[a].name),s=Lf(c[a].abbr),l=Lf(c[a].narrow),t.push(o),e.push(s),r.push(l),n.push(o),n.push(s),n.push(l);this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}yn(0,["gg",2],0,function(){return this.weekYear()%100});yn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function l4(e,t){yn(0,[e,e.length],0,t)}l4("gggg","weekYear");l4("ggggg","weekYear");l4("GGGG","isoWeekYear");l4("GGGGG","isoWeekYear");nn("G",n4);nn("g",n4);nn("GG",vi,yc);nn("gg",vi,yc);nn("GGGG",J7,V7);nn("gggg",J7,V7);nn("GGGGG",r4,e4);nn("ggggg",r4,e4);mx(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=da(e)});mx(["gg","GG"],function(e,t,r,n){t[n]=Jr.parseTwoDigitYear(e)});function YJe(e){return Fye.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function UJe(e){return Fye.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function HJe(){return Yf(this.year(),1,4)}function GJe(){return Yf(this.isoWeekYear(),1,4)}function KJe(){var e=this.localeData()._week;return Yf(this.year(),e.dow,e.doy)}function VJe(){var e=this.localeData()._week;return Yf(this.weekYear(),e.dow,e.doy)}function Fye(e,t,r,n,a){var i;return e==null?uB(this,n,a).year:(i=Yf(e,n,a),t>i&&(t=i),JJe.call(this,e,t,r,n,a))}function JJe(e,t,r,n,a){var i=dye(e,t,r,n,a),o=AB(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}yn("Q",0,"Qo","quarter");nn("Q",tye);Ua("Q",function(e,t){t[Qf]=(da(e)-1)*3});function WJe(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}yn("D",["DD",2],"Do","date");nn("D",vi,Sy);nn("DD",vi,yc);nn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ua(["D","DD"],dd);Ua("Do",function(e,t){t[dd]=da(e.match(vi)[0])});var Nye=Ry("Date",!0);yn("DDD",["DDDD",3],"DDDo","dayOfYear");nn("DDD",t4);nn("DDDD",rye);Ua(["DDD","DDDD"],function(e,t,r){r._dayOfYear=da(e)});function XJe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}yn("m",["mm",2],0,"minute");nn("m",vi,W7);nn("mm",vi,yc);Ua(["m","mm"],eu);var qJe=Ry("Minutes",!1);yn("s",["ss",2],0,"second");nn("s",vi,W7);nn("ss",vi,yc);Ua(["s","ss"],Df);var ZJe=Ry("Seconds",!1);yn("S",0,0,function(){return~~(this.millisecond()/100)});yn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});yn(0,["SSS",3],0,"millisecond");yn(0,["SSSS",4],0,function(){return this.millisecond()*10});yn(0,["SSSSS",5],0,function(){return this.millisecond()*100});yn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});yn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});yn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});yn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});nn("S",t4,tye);nn("SS",t4,yc);nn("SSS",t4,rye);var Ag,_ye;for(Ag="SSSS";Ag.length<=9;Ag+="S")nn(Ag,by);function $Je(e,t){t[fv]=da(("0."+e)*1e3)}for(Ag="S";Ag.length<=9;Ag+="S")Ua(Ag,$Je);_ye=Ry("Milliseconds",!1);yn("z",0,0,"zoneAbbr");yn("zz",0,0,"zoneName");function eWe(){return this._isUTC?"UTC":""}function tWe(){return this._isUTC?"Coordinated Universal Time":""}var _r=px.prototype;_r.add=VVe;_r.calendar=eJe;_r.clone=tJe;_r.diff=lJe;_r.endOf=mJe;_r.format=dJe;_r.from=fJe;_r.fromNow=hJe;_r.to=gJe;_r.toNow=pJe;_r.get=uKe;_r.invalidAt=bJe;_r.isAfter=rJe;_r.isBefore=nJe;_r.isBetween=aJe;_r.isSame=iJe;_r.isSameOrAfter=oJe;_r.isSameOrBefore=sJe;_r.isValid=MJe;_r.lang=Sye;_r.locale=bye;_r.localeData=Rye;_r.max=MVe;_r.min=xVe;_r.parsingFlags=IJe;_r.set=dKe;_r.startOf=vJe;_r.subtract=JVe;_r.toArray=wJe;_r.toObject=BJe;_r.toDate=CJe;_r.toISOString=AJe;_r.inspect=uJe;typeof Symbol<"u"&&Symbol.for!=null&&(_r[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});_r.toJSON=xJe;_r.toString=cJe;_r.unix=yJe;_r.valueOf=EJe;_r.creationData=SJe;_r.eraName=DJe;_r.eraNarrow=FJe;_r.eraAbbr=NJe;_r.eraYear=_Je;_r.year=iye;_r.isLeapYear=AKe;_r.weekYear=YJe;_r.isoWeekYear=UJe;_r.quarter=_r.quarters=WJe;_r.month=Aye;_r.daysInMonth=CKe;_r.week=_r.weeks=RKe;_r.isoWeek=_r.isoWeeks=TKe;_r.weeksInYear=KJe;_r.weeksInWeekYear=VJe;_r.isoWeeksInYear=HJe;_r.isoWeeksInISOWeekYear=GJe;_r.date=Nye;_r.day=_r.days=UKe;_r.weekday=HKe;_r.isoWeekday=GKe;_r.dayOfYear=XJe;_r.hour=_r.hours=ZKe;_r.minute=_r.minutes=qJe;_r.second=_r.seconds=ZJe;_r.millisecond=_r.milliseconds=_ye;_r.utcOffset=NVe;_r.utc=kVe;_r.local=PVe;_r.parseZone=OVe;_r.hasAlignedHourOffset=jVe;_r.isDST=zVe;_r.isLocal=YVe;_r.isUtcOffset=UVe;_r.isUtc=Bye;_r.isUTC=Bye;_r.zoneAbbr=eWe;_r.zoneName=tWe;_r.dates=uA("dates accessor is deprecated. Use date instead.",Nye);_r.months=uA("months accessor is deprecated. Use month instead",Aye);_r.years=uA("years accessor is deprecated. Use year instead",iye);_r.zone=uA("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",_Ve);_r.isDSTShifted=uA("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",LVe);function rWe(e){return hi(e*1e3)}function nWe(){return hi.apply(null,arguments).parseZone()}function kye(e){return e}var Ra=H7.prototype;Ra.calendar=YGe;Ra.longDateFormat=KGe;Ra.invalidDate=JGe;Ra.ordinal=qGe;Ra.preparse=kye;Ra.postformat=kye;Ra.relativeTime=$Ge;Ra.pastFuture=eKe;Ra.set=zGe;Ra.eras=RJe;Ra.erasParse=TJe;Ra.erasConvertYear=QJe;Ra.erasAbbrRegex=PJe;Ra.erasNameRegex=kJe;Ra.erasNarrowRegex=OJe;Ra.months=vKe;Ra.monthsShort=mKe;Ra.monthsParse=yKe;Ra.monthsRegex=BKe;Ra.monthsShortRegex=wKe;Ra.week=MKe;Ra.firstDayOfYear=SKe;Ra.firstDayOfWeek=bKe;Ra.weekdays=OKe;Ra.weekdaysMin=zKe;Ra.weekdaysShort=jKe;Ra.weekdaysParse=YKe;Ra.weekdaysRegex=KKe;Ra.weekdaysShortRegex=VKe;Ra.weekdaysMinRegex=JKe;Ra.isPM=XKe;Ra.meridiem=$Ke;function cT(e,t,r,n){var a=eh(),i=Qd().set(n,t);return a[r](i,e)}function Pye(e,t,r){if(Kf(e)&&(t=e,e=void 0),e=e||"",t!=null)return cT(e,t,r,"month");var n,a=[];for(n=0;n<12;n++)a[n]=cT(e,n,r,"month");return a}function lU(e,t,r,n){typeof e=="boolean"?(Kf(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,Kf(t)&&(r=t,t=void 0),t=t||"");var a=eh(),i=e?a._week.dow:0,o,s=[];if(r!=null)return cT(t,(r+i)%7,n,"day");for(o=0;o<7;o++)s[o]=cT(t,(o+i)%7,n,"day");return s}function aWe(e,t){return Pye(e,t,"months")}function iWe(e,t){return Pye(e,t,"monthsShort")}function oWe(e,t,r){return lU(e,t,r,"weekdays")}function sWe(e,t,r){return lU(e,t,r,"weekdaysShort")}function lWe(e,t,r){return lU(e,t,r,"weekdaysMin")}vg("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,r=da(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});Jr.lang=uA("moment.lang is deprecated. Use moment.locale instead.",vg);Jr.langData=uA("moment.langData is deprecated. Use moment.localeData instead.",eh);var uf=Math.abs;function cWe(){var e=this._data;return this._milliseconds=uf(this._milliseconds),this._days=uf(this._days),this._months=uf(this._months),e.milliseconds=uf(e.milliseconds),e.seconds=uf(e.seconds),e.minutes=uf(e.minutes),e.hours=uf(e.hours),e.months=uf(e.months),e.years=uf(e.years),this}function Oye(e,t,r,n){var a=gu(t,r);return e._milliseconds+=n*a._milliseconds,e._days+=n*a._days,e._months+=n*a._months,e._bubble()}function AWe(e,t){return Oye(this,e,t,1)}function uWe(e,t){return Oye(this,e,t,-1)}function CZ(e){return e<0?Math.floor(e):Math.ceil(e)}function dWe(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,a,i,o,s,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=CZ(n6(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,a=Xc(e/1e3),n.seconds=a%60,i=Xc(a/60),n.minutes=i%60,o=Xc(i/60),n.hours=o%24,t+=Xc(o/24),l=Xc(jye(t)),r+=l,t-=CZ(n6(l)),s=Xc(r/12),r%=12,n.days=t,n.months=r,n.years=s,this}function jye(e){return e*4800/146097}function n6(e){return e*146097/4800}function fWe(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=dA(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+jye(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(n6(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function th(e){return function(){return this.as(e)}}var zye=th("ms"),hWe=th("s"),gWe=th("m"),pWe=th("h"),vWe=th("d"),mWe=th("w"),EWe=th("M"),yWe=th("Q"),CWe=th("y"),wWe=zye;function BWe(){return gu(this)}function xWe(e){return e=dA(e),this.isValid()?this[e+"s"]():NaN}function lm(e){return function(){return this.isValid()?this._data[e]:NaN}}var MWe=lm("milliseconds"),IWe=lm("seconds"),bWe=lm("minutes"),SWe=lm("hours"),RWe=lm("days"),TWe=lm("months"),QWe=lm("years");function DWe(){return Xc(this.days()/7)}var Mf=Math.round,cE={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function FWe(e,t,r,n,a){return a.relativeTime(t||1,!!r,e,n)}function NWe(e,t,r,n){var a=gu(e).abs(),i=Mf(a.as("s")),o=Mf(a.as("m")),s=Mf(a.as("h")),l=Mf(a.as("d")),c=Mf(a.as("M")),A=Mf(a.as("w")),u=Mf(a.as("y")),d=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||o<=1&&["m"]||o<r.m&&["mm",o]||s<=1&&["h"]||s<r.h&&["hh",s]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(d=d||A<=1&&["w"]||A<r.w&&["ww",A]),d=d||c<=1&&["M"]||c<r.M&&["MM",c]||u<=1&&["y"]||["yy",u],d[2]=t,d[3]=+e>0,d[4]=n,FWe.apply(null,d)}function _We(e){return e===void 0?Mf:typeof e=="function"?(Mf=e,!0):!1}function kWe(e,t){return cE[e]===void 0?!1:t===void 0?cE[e]:(cE[e]=t,e==="s"&&(cE.ss=t-1),!0)}function PWe(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=cE,a,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},cE,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),a=this.localeData(),i=NWe(this,!r,n,a),r&&(i=a.pastFuture(+this,i)),a.postformat(i)}var a8=Math.abs;function o0(e){return(e>0)-(e<0)||+e}function c4(){if(!this.isValid())return this.localeData().invalidDate();var e=a8(this._milliseconds)/1e3,t=a8(this._days),r=a8(this._months),n,a,i,o,s=this.asSeconds(),l,c,A,u;return s?(n=Xc(e/60),a=Xc(n/60),e%=60,n%=60,i=Xc(r/12),r%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",c=o0(this._months)!==o0(s)?"-":"",A=o0(this._days)!==o0(s)?"-":"",u=o0(this._milliseconds)!==o0(s)?"-":"",l+"P"+(i?c+i+"Y":"")+(r?c+r+"M":"")+(t?A+t+"D":"")+(a||n||e?"T":"")+(a?u+a+"H":"")+(n?u+n+"M":"")+(e?u+o+"S":"")):"P0D"}var Ca=s4.prototype;Ca.isValid=TVe;Ca.abs=cWe;Ca.add=AWe;Ca.subtract=uWe;Ca.as=fWe;Ca.asMilliseconds=zye;Ca.asSeconds=hWe;Ca.asMinutes=gWe;Ca.asHours=pWe;Ca.asDays=vWe;Ca.asWeeks=mWe;Ca.asMonths=EWe;Ca.asQuarters=yWe;Ca.asYears=CWe;Ca.valueOf=wWe;Ca._bubble=dWe;Ca.clone=BWe;Ca.get=xWe;Ca.milliseconds=MWe;Ca.seconds=IWe;Ca.minutes=bWe;Ca.hours=SWe;Ca.days=RWe;Ca.weeks=DWe;Ca.months=TWe;Ca.years=QWe;Ca.humanize=PWe;Ca.toISOString=c4;Ca.toString=c4;Ca.toJSON=c4;Ca.locale=bye;Ca.localeData=Rye;Ca.toIsoString=uA("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",c4);Ca.lang=Sye;yn("X",0,0,"unix");yn("x",0,0,"valueOf");nn("x",n4);nn("X",aKe);Ua("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});Ua("x",function(e,t,r){r._d=new Date(da(e))});//! moment.js
Jr.version="2.30.1";OGe(hi);Jr.fn=_r;Jr.min=IVe;Jr.max=bVe;Jr.now=SVe;Jr.utc=Qd;Jr.unix=rWe;Jr.months=aWe;Jr.isDate=gx;Jr.locale=vg;Jr.invalid=$Q;Jr.duration=gu;Jr.isMoment=lu;Jr.weekdays=oWe;Jr.parseZone=nWe;Jr.localeData=eh;Jr.isDuration=WS;Jr.monthsShort=iWe;Jr.weekdaysMin=lWe;Jr.defineLocale=eU;Jr.updateLocale=nVe;Jr.locales=aVe;Jr.weekdaysShort=sWe;Jr.normalizeUnits=dA;Jr.relativeTimeRounding=_We;Jr.relativeTimeThreshold=kWe;Jr.calendarFormat=$Ve;Jr.prototype=_r;Jr.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"};var OWe={getNow:function(){return Jr()},getFixedDate:function(t){return Jr(t,"YYYY-MM-DD")},getEndDate:function(t){var r=t.clone();return r.endOf("month")},getWeekDay:function(t){var r=t.clone().locale("en_US");return r.weekday()+r.localeData().firstDayOfWeek()},getYear:function(t){return t.year()},getMonth:function(t){return t.month()},getDate:function(t){return t.date()},getHour:function(t){return t.hour()},getMinute:function(t){return t.minute()},getSecond:function(t){return t.second()},addYear:function(t,r){var n=t.clone();return n.add(r,"year")},addMonth:function(t,r){var n=t.clone();return n.add(r,"month")},addDate:function(t,r){var n=t.clone();return n.add(r,"day")},setYear:function(t,r){var n=t.clone();return n.year(r)},setMonth:function(t,r){var n=t.clone();return n.month(r)},setDate:function(t,r){var n=t.clone();return n.date(r)},setHour:function(t,r){var n=t.clone();return n.hour(r)},setMinute:function(t,r){var n=t.clone();return n.minute(r)},setSecond:function(t,r){var n=t.clone();return n.second(r)},isAfter:function(t,r){return t.isAfter(r)},isValidate:function(t){return t.isValid()},locale:{getWeekFirstDay:function(t){var r=Jr().locale(t);return r.localeData().firstDayOfWeek()},getWeekFirstDate:function(t,r){var n=r.clone(),a=n.locale(t);return a.weekday(0)},getWeek:function(t,r){var n=r.clone(),a=n.locale(t);return a.week()},getShortWeekDays:function(t){var r=Jr().locale(t);return r.localeData().weekdaysMin()},getShortMonths:function(t){var r=Jr().locale(t);return r.localeData().monthsShort()},format:function(t,r,n){var a=r.clone(),i=a.locale(t);return i.format(n)},parse:function(t,r,n){for(var a=[],i=0;i<n.length;i+=1){var o=n[i],s=r;if(o.includes("wo")||o.includes("Wo")){o=o.replace(/wo/g,"w").replace(/Wo/g,"W");var l=o.match(/[-YyMmDdHhSsWwGg]+/g),c=s.match(/[-\d]+/g);l&&c?(o=l.join(""),s=c.join("")):a.push(o.replace(/o/g,""))}var A=Jr(s,o,t,!0);if(A.isValid())return A}for(var u=0;u<a.length;u+=1){var d=Jr(r,a[u],t,!1);if(d.isValid())return Ohe(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),d}return null}}},i8,wZ;function jWe(){if(wZ)return i8;wZ=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return i8=t,i8}var o8,BZ;function zWe(){if(BZ)return o8;BZ=1;var e=jWe(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return o8=r,o8}var s8,xZ;function Lye(){if(xZ)return s8;xZ=1;var e=zWe(),t=mc(),r=HB(),n=NaN,a=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var A=typeof c.valueOf=="function"?c.valueOf():c;c=t(A)?A+"":A}if(typeof c!="string")return c===0?c:+c;c=e(c);var u=i.test(c);return u||o.test(c)?s(c.slice(2),u?2:8):a.test(c)?n:+c}return s8=l,s8}var l8,MZ;function LWe(){if(MZ)return l8;MZ=1;var e=Lye(),t=1/0,r=17976931348623157e292;function n(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var i=a<0?-1:1;return i*r}return a===a?a:0}return l8=n,l8}var c8,IZ;function YWe(){if(IZ)return c8;IZ=1;var e=LWe();function t(r){var n=e(r),a=n%1;return n===n?a?n-a:n:0}return c8=t,c8}var pc=E.createContext({}),ZM={visibility:"hidden"};function Ty(e){var t=e.prefixCls,r=e.prevIcon,n=r===void 0?"‹":r,a=e.nextIcon,i=a===void 0?"›":a,o=e.superPrevIcon,s=o===void 0?"«":o,l=e.superNextIcon,c=l===void 0?"»":l,A=e.onSuperPrev,u=e.onSuperNext,d=e.onPrev,f=e.onNext,h=e.children,g=E.useContext(pc),p=g.hideNextBtn,m=g.hidePrevBtn;return E.createElement("div",{className:t},A&&E.createElement("button",{type:"button",onClick:A,tabIndex:-1,className:"".concat(t,"-super-prev-btn"),style:m?ZM:{}},s),d&&E.createElement("button",{type:"button",onClick:d,tabIndex:-1,className:"".concat(t,"-prev-btn"),style:m?ZM:{}},n),E.createElement("div",{className:"".concat(t,"-view")},h),f&&E.createElement("button",{type:"button",onClick:f,tabIndex:-1,className:"".concat(t,"-next-btn"),style:p?ZM:{}},i),u&&E.createElement("button",{type:"button",onClick:u,tabIndex:-1,className:"".concat(t,"-super-next-btn"),style:p?ZM:{}},c))}function UWe(e){var t=e.prefixCls,r=e.generateConfig,n=e.viewDate,a=e.onPrevDecades,i=e.onNextDecades,o=E.useContext(pc),s=o.hideHeader;if(s)return null;var l="".concat(t,"-header"),c=r.getYear(n),A=Math.floor(c/Ff)*Ff,u=A+Ff-1;return E.createElement(Ty,ge({},e,{prefixCls:l,onSuperPrev:a,onSuperNext:i}),A,"-",u)}function Yye(e,t,r,n,a){var i=e.setHour(t,r);return i=e.setMinute(i,n),i=e.setSecond(i,a),i}function Uye(e,t,r){if(!r)return t;var n=t;return n=e.setHour(n,e.getHour(r)),n=e.setMinute(n,e.getMinute(r)),n=e.setSecond(n,e.getSecond(r)),n}function HWe(e,t,r,n,a,i){var o=Math.floor(e/n)*n;if(o<e)return[o,60-a,60-i];var s=Math.floor(t/a)*a;if(s<t)return[o,s,60-i];var l=Math.floor(r/i)*i;return[o,s,l]}function GWe(e,t){var r=e.getYear(t),n=e.getMonth(t)+1,a=e.getEndDate(e.getFixedDate("".concat(r,"-").concat(n,"-01"))),i=e.getDate(a),o=n<10?"0".concat(n):"".concat(n);return"".concat(r,"-").concat(o,"-").concat(i)}function Ex(e){for(var t=e.prefixCls,r=e.disabledDate,n=e.onSelect,a=e.picker,i=e.rowNum,o=e.colNum,s=e.prefixColumn,l=e.rowClassName,c=e.baseDate,A=e.getCellClassName,u=e.getCellText,d=e.getCellNode,f=e.getCellDate,h=e.generateConfig,g=e.titleCell,p=e.headerCells,m=E.useContext(pc),y=m.onDateMouseEnter,C=m.onDateMouseLeave,w=m.mode,B="".concat(t,"-cell"),x=[],M=0;M<i;M+=1){for(var S=[],R=void 0,b=function(){var F,N=M*o+T,_=f(c,N),P=s6({cellDate:_,mode:w,disabledDate:r,generateConfig:h});T===0&&(R=_,s&&S.push(s(R)));var k=g&&g(_);S.push(E.createElement("td",{key:T,title:k,className:dt(B,se((F={},te(F,"".concat(B,"-disabled"),P),te(F,"".concat(B,"-start"),u(_)===1||a==="year"&&Number(k)%10===0),te(F,"".concat(B,"-end"),k===GWe(h,_)||a==="year"&&Number(k)%10===9),F),A(_))),onClick:function(){P||n(_)},onMouseEnter:function(){!P&&y&&y(_)},onMouseLeave:function(){!P&&C&&C(_)}},d?d(_):E.createElement("div",{className:"".concat(B,"-inner")},u(_))))},T=0;T<o;T+=1)b();x.push(E.createElement("tr",{key:M,className:l&&l(R)},S))}return E.createElement("div",{className:"".concat(t,"-body")},E.createElement("table",{className:"".concat(t,"-content")},p&&E.createElement("thead",null,E.createElement("tr",null,p)),E.createElement("tbody",null,x)))}var a6=3,bZ=4;function KWe(e){var t=XA-1,r=e.prefixCls,n=e.viewDate,a=e.generateConfig,i="".concat(r,"-cell"),o=a.getYear(n),s=Math.floor(o/XA)*XA,l=Math.floor(o/Ff)*Ff,c=l+Ff-1,A=a.setYear(n,l-Math.ceil((a6*bZ*XA-Ff)/2)),u=function(f){var h,g=a.getYear(f),p=g+t;return h={},te(h,"".concat(i,"-in-view"),l<=g&&p<=c),te(h,"".concat(i,"-selected"),g===s),h};return E.createElement(Ex,ge({},e,{rowNum:bZ,colNum:a6,baseDate:A,getCellText:function(f){var h=a.getYear(f);return"".concat(h,"-").concat(h+t)},getCellClassName:u,getCellDate:function(f,h){return a.addYear(f,h*XA)}}))}var $M=new Map;function VWe(e,t){var r;function n(){UQ(e)?t():r=ta(function(){n()})}return n(),function(){ta.cancel(r)}}function i6(e,t,r){if($M.get(e)&&cancelAnimationFrame($M.get(e)),r<=0){$M.set(e,requestAnimationFrame(function(){e.scrollTop=t}));return}var n=t-e.scrollTop,a=n/r*10;$M.set(e,requestAnimationFrame(function(){e.scrollTop+=a,e.scrollTop!==t&&i6(e,t,r-10)}))}function Qy(e,t){var r=t.onLeftRight,n=t.onCtrlLeftRight,a=t.onUpDown,i=t.onPageUpDown,o=t.onEnter,s=e.which,l=e.ctrlKey,c=e.metaKey;switch(s){case cr.LEFT:if(l||c){if(n)return n(-1),!0}else if(r)return r(-1),!0;break;case cr.RIGHT:if(l||c){if(n)return n(1),!0}else if(r)return r(1),!0;break;case cr.UP:if(a)return a(-1),!0;break;case cr.DOWN:if(a)return a(1),!0;break;case cr.PAGE_UP:if(i)return i(-1),!0;break;case cr.PAGE_DOWN:if(i)return i(1),!0;break;case cr.ENTER:if(o)return o(),!0;break}return!1}function Hye(e,t,r,n){var a=e;if(!a)switch(t){case"time":a=n?"hh:mm:ss a":"HH:mm:ss";break;case"week":a="gggg-wo";break;case"month":a="YYYY-MM";break;case"quarter":a="YYYY-[Q]Q";break;case"year":a="YYYY";break;default:a=r?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return a}function Gye(e,t,r){var n=e==="time"?8:10,a=typeof t=="function"?t(r.getNow()).length:t.length;return Math.max(n,a)+2}var _1=null,eI=new Set;function JWe(e){return!_1&&typeof window<"u"&&window.addEventListener&&(_1=function(r){ir(eI).forEach(function(n){n(r)})},window.addEventListener("mousedown",_1)),eI.add(e),function(){eI.delete(e),eI.size===0&&(window.removeEventListener("mousedown",_1),_1=null)}}function WWe(e){var t=e.target;if(e.composed&&t.shadowRoot){var r;return((r=e.composedPath)===null||r===void 0?void 0:r.call(e)[0])||t}return t}var XWe=function(t){return t==="month"||t==="date"?"year":t},qWe=function(t){return t==="date"?"month":t},ZWe=function(t){return t==="month"||t==="date"?"quarter":t},$We=function(t){return t==="date"?"week":t},eXe={year:XWe,month:qWe,quarter:ZWe,week:$We,time:null,date:null};function Kye(e,t){return e.some(function(r){return r&&r.contains(t)})}var XA=10,Ff=XA*10;function tXe(e){var t=e.prefixCls,r=e.onViewDateChange,n=e.generateConfig,a=e.viewDate,i=e.operationRef,o=e.onSelect,s=e.onPanelChange,l="".concat(t,"-decade-panel");i.current={onKeyDown:function(d){return Qy(d,{onLeftRight:function(h){o(n.addYear(a,h*XA),"key")},onCtrlLeftRight:function(h){o(n.addYear(a,h*Ff),"key")},onUpDown:function(h){o(n.addYear(a,h*XA*a6),"key")},onEnter:function(){s("year",a)}})}};var c=function(d){var f=n.addYear(a,d*Ff);r(f),s(null,f)},A=function(d){o(d,"mouse"),s("year",d)};return E.createElement("div",{className:l},E.createElement(UWe,ge({},e,{prefixCls:t,onPrevDecades:function(){c(-1)},onNextDecades:function(){c(1)}})),E.createElement(KWe,ge({},e,{prefixCls:t,onSelect:A})))}var Fw=7;function cm(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function rXe(e,t,r){var n=cm(t,r);if(typeof n=="boolean")return n;var a=Math.floor(e.getYear(t)/10),i=Math.floor(e.getYear(r)/10);return a===i}function yx(e,t,r){var n=cm(t,r);return typeof n=="boolean"?n:e.getYear(t)===e.getYear(r)}function o6(e,t){var r=Math.floor(e.getMonth(t)/3);return r+1}function Vye(e,t,r){var n=cm(t,r);return typeof n=="boolean"?n:yx(e,t,r)&&o6(e,t)===o6(e,r)}function cU(e,t,r){var n=cm(t,r);return typeof n=="boolean"?n:yx(e,t,r)&&e.getMonth(t)===e.getMonth(r)}function Nf(e,t,r){var n=cm(t,r);return typeof n=="boolean"?n:e.getYear(t)===e.getYear(r)&&e.getMonth(t)===e.getMonth(r)&&e.getDate(t)===e.getDate(r)}function nXe(e,t,r){var n=cm(t,r);return typeof n=="boolean"?n:e.getHour(t)===e.getHour(r)&&e.getMinute(t)===e.getMinute(r)&&e.getSecond(t)===e.getSecond(r)}function Jye(e,t,r,n){var a=cm(r,n);return typeof a=="boolean"?a:yx(e,r,n)&&e.locale.getWeek(t,r)===e.locale.getWeek(t,n)}function qE(e,t,r){return Nf(e,t,r)&&nXe(e,t,r)}function tI(e,t,r,n){return!t||!r||!n?!1:!Nf(e,t,n)&&!Nf(e,r,n)&&e.isAfter(n,t)&&e.isAfter(r,n)}function aXe(e,t,r){var n=t.locale.getWeekFirstDay(e),a=t.setDate(r,1),i=t.getWeekDay(a),o=t.addDate(a,n-i);return t.getMonth(o)===t.getMonth(r)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function Nw(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return r.addYear(e,n*10);case"quarter":case"month":return r.addYear(e,n);default:return r.addMonth(e,n)}}function ss(e,t){var r=t.generateConfig,n=t.locale,a=t.format;return typeof a=="function"?a(e):r.locale.format(n.locale,e,a)}function Wye(e,t){var r=t.generateConfig,n=t.locale,a=t.formatList;return!e||typeof a[0]=="function"?null:r.locale.parse(n.locale,e,a)}function s6(e){var t=e.cellDate,r=e.mode,n=e.disabledDate,a=e.generateConfig;if(!n)return!1;var i=function(h,g,p){for(var m=g;m<=p;){var y=void 0;switch(h){case"date":{if(y=a.setDate(t,m),!n(y))return!1;break}case"month":{if(y=a.setMonth(t,m),!s6({cellDate:y,mode:"month",generateConfig:a,disabledDate:n}))return!1;break}case"year":{if(y=a.setYear(t,m),!s6({cellDate:y,mode:"year",generateConfig:a,disabledDate:n}))return!1;break}}m+=1}return!0};switch(r){case"date":case"week":return n(t);case"month":{var o=1,s=a.getDate(a.getEndDate(t));return i("date",o,s)}case"quarter":{var l=Math.floor(a.getMonth(t)/3)*3,c=l+2;return i("month",l,c)}case"year":return i("month",0,11);case"decade":{var A=a.getYear(t),u=Math.floor(A/XA)*XA,d=u+XA-1;return i("year",u,d)}}}function iXe(e){var t=E.useContext(pc),r=t.hideHeader;if(r)return null;var n=e.prefixCls,a=e.generateConfig,i=e.locale,o=e.value,s=e.format,l="".concat(n,"-header");return E.createElement(Ty,{prefixCls:l},o?ss(o,{locale:i,format:s,generateConfig:a}):" ")}function oXe(e){var t=e.value,r=e.generateConfig,n=e.disabledMinutes,a=e.disabledSeconds,i=e.minutes,o=e.seconds,s=e.use12Hours,l=function(A,u,d,f){var h=t||r.getNow(),g=Math.max(0,u),p=Math.max(0,d),m=Math.max(0,f),y=n&&n(g);if(y?.includes(p)){var C=i.find(function(x){return!y.includes(x.value)});if(C)p=C.value;else return null}var w=a&&a(g,p);if(w?.includes(m)){var B=o.find(function(x){return!w.includes(x.value)});if(B)m=B.value;else return null}return h=Yye(r,h,!s||!A?g:g+12,p,m),h};return l}function Xye(e,t){for(var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);n.length<t;)n="".concat(r).concat(e);return n}var sXe=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r};function qye(e){return e==null?[]:Array.isArray(e)?e:[e]}function Zye(e){var t={};return Object.keys(e).forEach(function(r){(r.substr(0,5)==="data-"||r.substr(0,5)==="aria-"||r==="role"||r==="name")&&r.substr(0,7)!=="data-__"&&(t[r]=e[r])}),t}function Aa(e,t){return e?e[t]:null}function Vc(e,t,r){var n=[Aa(e,0),Aa(e,1)];return n[r]=typeof t=="function"?t(n[r]):t,!n[0]&&!n[1]?null:n}function rI(e){var t=e.prefixCls,r=e.units,n=e.onSelect,a=e.value,i=e.active,o=e.hideDisabledOptions,s="".concat(t,"-cell"),l=E.useContext(pc),c=l.open,A=E.useRef(null),u=E.useRef(new Map),d=E.useRef();return E.useLayoutEffect(function(){var f=u.current.get(a);f&&c!==!1&&i6(A.current,f.offsetTop,120)},[a]),E.useLayoutEffect(function(){if(c){var f=u.current.get(a);f&&(d.current=VWe(f,function(){i6(A.current,f.offsetTop,0)}))}return function(){var h;(h=d.current)===null||h===void 0||h.call(d)}},[c]),E.createElement("ul",{className:dt("".concat(t,"-column"),te({},"".concat(t,"-column-active"),i)),ref:A,style:{position:"relative"}},r.map(function(f){var h;return o&&f.disabled?null:E.createElement("li",{key:f.value,ref:function(p){u.current.set(f.value,p)},className:dt(s,(h={},te(h,"".concat(s,"-disabled"),f.disabled),te(h,"".concat(s,"-selected"),a===f.value),h)),onClick:function(){f.disabled||n(f.value)}},E.createElement("div",{className:"".concat(s,"-inner")},f.label))}))}function lXe(e,t){if(e.length!==t.length)return!0;for(var r=0;r<e.length;r+=1)if(e[r].disabled!==t[r].disabled)return!0;return!1}function A8(e,t,r,n){for(var a=[],i=r>=1?r|0:1,o=e;o<=t;o+=i)a.push({label:Xye(o,2),value:o,disabled:(n||[]).includes(o)});return a}function cXe(e){var t=e.generateConfig,r=e.prefixCls,n=e.operationRef,a=e.activeColumnIndex,i=e.value,o=e.showHour,s=e.showMinute,l=e.showSecond,c=e.use12Hours,A=e.hourStep,u=A===void 0?1:A,d=e.minuteStep,f=d===void 0?1:d,h=e.secondStep,g=h===void 0?1:h,p=e.disabledHours,m=e.disabledMinutes,y=e.disabledSeconds,C=e.disabledTime,w=e.hideDisabledOptions,B=e.onSelect,x=[],M="".concat(r,"-content"),S="".concat(r,"-time-panel"),R,b=i?t.getHour(i):-1,T=b,D=i?t.getMinute(i):-1,F=i?t.getSecond(i):-1,N=t.getNow(),_=E.useMemo(function(){if(C){var ye=C(N);return[ye.disabledHours,ye.disabledMinutes,ye.disabledSeconds]}return[p,m,y]},[p,m,y,C,N]),P=Je(_,3),k=P[0],j=P[1],Y=P[2],X=A8(0,23,u,k&&k()),K=am(function(){return X},X,lXe);c&&(R=T>=12,T%=12);var U=E.useMemo(function(){if(!c)return[!1,!1];var ye=[!0,!0];return K.forEach(function(be){var Se=be.disabled,ve=be.value;Se||(ve>=12?ye[1]=!1:ye[0]=!1)}),ye},[c,K]),H=Je(U,2),L=H[0],V=H[1],J=E.useMemo(function(){return c?K.filter(R?function(ye){return ye.value>=12}:function(ye){return ye.value<12}).map(function(ye){var be=ye.value%12,Se=be===0?"12":Xye(be,2);return se(se({},ye),{},{label:Se,value:be})}):K},[c,R,K]),ee=A8(0,59,f,j&&j(b)),ae=A8(0,59,g,Y&&Y(b,D)),ne=oXe({value:i,generateConfig:t,disabledMinutes:j,disabledSeconds:Y,minutes:ee,seconds:ae,use12Hours:c});n.current={onUpDown:function(be){var Se=x[a];if(Se)for(var ve=Se.units.findIndex(function(Ve){return Ve.value===Se.value}),de=Se.units.length,Ue=1;Ue<de;Ue+=1){var at=Se.units[(ve+be*Ue+de)%de];if(at.disabled!==!0){Se.onSelect(at.value);break}}}};function fe(ye,be,Se,ve,de){ye!==!1&&x.push({node:E.cloneElement(be,{prefixCls:S,value:Se,active:a===x.length,onSelect:de,units:ve,hideDisabledOptions:w}),onSelect:de,value:Se,units:ve})}fe(o,E.createElement(rI,{key:"hour"}),T,J,function(ye){B(ne(R,ye,D,F),"mouse")}),fe(s,E.createElement(rI,{key:"minute"}),D,ee,function(ye){B(ne(R,T,ye,F),"mouse")}),fe(l,E.createElement(rI,{key:"second"}),F,ae,function(ye){B(ne(R,T,D,ye),"mouse")});var he=-1;return typeof R=="boolean"&&(he=R?1:0),fe(c===!0,E.createElement(rI,{key:"12hours"}),he,[{label:"AM",value:0,disabled:L},{label:"PM",value:1,disabled:V}],function(ye){B(ne(!!ye,T,D,F),"mouse")}),E.createElement("div",{className:M},x.map(function(ye){var be=ye.node;return be}))}var AXe=function(t){return t.filter(function(r){return r!==!1}).length};function $ye(e){var t=e.generateConfig,r=e.format,n=r===void 0?"HH:mm:ss":r,a=e.prefixCls,i=e.active,o=e.operationRef,s=e.showHour,l=e.showMinute,c=e.showSecond,A=e.use12Hours,u=A===void 0?!1:A,d=e.onSelect,f=e.value,h="".concat(a,"-time-panel"),g=E.useRef(),p=E.useState(-1),m=Je(p,2),y=m[0],C=m[1],w=AXe([s,l,c,u]);return o.current={onKeyDown:function(x){return Qy(x,{onLeftRight:function(S){C((y+S+w)%w)},onUpDown:function(S){y===-1?C(0):g.current&&g.current.onUpDown(S)},onEnter:function(){d(f||t.getNow(),"key"),C(-1)}})},onBlur:function(){C(-1)}},E.createElement("div",{className:dt(h,te({},"".concat(h,"-active"),i))},E.createElement(iXe,ge({},e,{format:n,prefixCls:a})),E.createElement(cXe,ge({},e,{prefixCls:a,activeColumnIndex:y,operationRef:g})))}var Dy=E.createContext({});function A4(e){var t=e.cellPrefixCls,r=e.generateConfig,n=e.rangedValue,a=e.hoverRangedValue,i=e.isInView,o=e.isSameCell,s=e.offsetCell,l=e.today,c=e.value;function A(u){var d,f=s(u,-1),h=s(u,1),g=Aa(n,0),p=Aa(n,1),m=Aa(a,0),y=Aa(a,1),C=tI(r,m,y,u);function w(b){return o(g,b)}function B(b){return o(p,b)}var x=o(m,u),M=o(y,u),S=(C||M)&&(!i(f)||B(f)),R=(C||x)&&(!i(h)||w(h));return d={},te(d,"".concat(t,"-in-view"),i(u)),te(d,"".concat(t,"-in-range"),tI(r,g,p,u)),te(d,"".concat(t,"-range-start"),w(u)),te(d,"".concat(t,"-range-end"),B(u)),te(d,"".concat(t,"-range-start-single"),w(u)&&!p),te(d,"".concat(t,"-range-end-single"),B(u)&&!g),te(d,"".concat(t,"-range-start-near-hover"),w(u)&&(o(f,m)||tI(r,m,y,f))),te(d,"".concat(t,"-range-end-near-hover"),B(u)&&(o(h,y)||tI(r,m,y,h))),te(d,"".concat(t,"-range-hover"),C),te(d,"".concat(t,"-range-hover-start"),x),te(d,"".concat(t,"-range-hover-end"),M),te(d,"".concat(t,"-range-hover-edge-start"),S),te(d,"".concat(t,"-range-hover-edge-end"),R),te(d,"".concat(t,"-range-hover-edge-start-near-range"),S&&o(f,p)),te(d,"".concat(t,"-range-hover-edge-end-near-range"),R&&o(h,g)),te(d,"".concat(t,"-today"),o(l,u)),te(d,"".concat(t,"-selected"),o(c,u)),d}return A}function uXe(e){var t=e.prefixCls,r=e.generateConfig,n=e.prefixColumn,a=e.locale,i=e.rowCount,o=e.viewDate,s=e.value,l=e.dateRender,c=E.useContext(Dy),A=c.rangedValue,u=c.hoverRangedValue,d=aXe(a.locale,r,o),f="".concat(t,"-cell"),h=r.locale.getWeekFirstDay(a.locale),g=r.getNow(),p=[],m=a.shortWeekDays||(r.locale.getShortWeekDays?r.locale.getShortWeekDays(a.locale):[]);n&&p.push(E.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var y=0;y<Fw;y+=1)p.push(E.createElement("th",{key:y},m[(y+h)%Fw]));var C=A4({cellPrefixCls:f,today:g,value:s,generateConfig:r,rangedValue:n?null:A,hoverRangedValue:n?null:u,isSameCell:function(x,M){return Nf(r,x,M)},isInView:function(x){return cU(r,x,o)},offsetCell:function(x,M){return r.addDate(x,M)}}),w=l?function(B){return l(B,g)}:void 0;return E.createElement(Ex,ge({},e,{rowNum:i,colNum:Fw,baseDate:d,getCellNode:w,getCellText:r.getDate,getCellClassName:C,getCellDate:r.addDate,titleCell:function(x){return ss(x,{locale:a,format:"YYYY-MM-DD",generateConfig:r})},headerCells:p}))}function dXe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.viewDate,i=e.onNextMonth,o=e.onPrevMonth,s=e.onNextYear,l=e.onPrevYear,c=e.onYearClick,A=e.onMonthClick,u=E.useContext(pc),d=u.hideHeader;if(d)return null;var f="".concat(t,"-header"),h=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),g=r.getMonth(a),p=E.createElement("button",{type:"button",key:"year",onClick:c,tabIndex:-1,className:"".concat(t,"-year-btn")},ss(a,{locale:n,format:n.yearFormat,generateConfig:r})),m=E.createElement("button",{type:"button",key:"month",onClick:A,tabIndex:-1,className:"".concat(t,"-month-btn")},n.monthFormat?ss(a,{locale:n,format:n.monthFormat,generateConfig:r}):h[g]),y=n.monthBeforeYear?[m,p]:[p,m];return E.createElement(Ty,ge({},e,{prefixCls:f,onSuperPrev:l,onPrev:o,onNext:i,onSuperNext:s}),y)}var fXe=6;function AU(e){var t=e.prefixCls,r=e.panelName,n=r===void 0?"date":r,a=e.keyboardConfig,i=e.active,o=e.operationRef,s=e.generateConfig,l=e.value,c=e.viewDate,A=e.onViewDateChange,u=e.onPanelChange,d=e.onSelect,f="".concat(t,"-").concat(n,"-panel");o.current={onKeyDown:function(m){return Qy(m,se({onLeftRight:function(C){d(s.addDate(l||c,C),"key")},onCtrlLeftRight:function(C){d(s.addYear(l||c,C),"key")},onUpDown:function(C){d(s.addDate(l||c,C*Fw),"key")},onPageUpDown:function(C){d(s.addMonth(l||c,C),"key")}},a))}};var h=function(m){var y=s.addYear(c,m);A(y),u(null,y)},g=function(m){var y=s.addMonth(c,m);A(y),u(null,y)};return E.createElement("div",{className:dt(f,te({},"".concat(f,"-active"),i))},E.createElement(dXe,ge({},e,{prefixCls:t,value:l,viewDate:c,onPrevYear:function(){h(-1)},onNextYear:function(){h(1)},onPrevMonth:function(){g(-1)},onNextMonth:function(){g(1)},onMonthClick:function(){u("month",c)},onYearClick:function(){u("year",c)}})),E.createElement(uXe,ge({},e,{onSelect:function(m){return d(m,"mouse")},prefixCls:t,value:l,viewDate:c,rowCount:fXe})))}var SZ=sXe("date","time");function hXe(e){var t=e.prefixCls,r=e.operationRef,n=e.generateConfig,a=e.value,i=e.defaultValue,o=e.disabledTime,s=e.showTime,l=e.onSelect,c="".concat(t,"-datetime-panel"),A=E.useState(null),u=Je(A,2),d=u[0],f=u[1],h=E.useRef({}),g=E.useRef({}),p=Ar(s)==="object"?se({},s):{};function m(B){var x=SZ.indexOf(d)+B,M=SZ[x]||null;return M}var y=function(x){g.current.onBlur&&g.current.onBlur(x),f(null)};r.current={onKeyDown:function(x){if(x.which===cr.TAB){var M=m(x.shiftKey?-1:1);return f(M),M&&x.preventDefault(),!0}if(d){var S=d==="date"?h:g;return S.current&&S.current.onKeyDown&&S.current.onKeyDown(x),!0}return[cr.LEFT,cr.RIGHT,cr.UP,cr.DOWN].includes(x.which)?(f("date"),!0):!1},onBlur:y,onClose:y};var C=function(x,M){var S=x;M==="date"&&!a&&p.defaultValue?(S=n.setHour(S,n.getHour(p.defaultValue)),S=n.setMinute(S,n.getMinute(p.defaultValue)),S=n.setSecond(S,n.getSecond(p.defaultValue))):M==="time"&&!a&&i&&(S=n.setYear(S,n.getYear(i)),S=n.setMonth(S,n.getMonth(i)),S=n.setDate(S,n.getDate(i))),l&&l(S,"mouse")},w=o?o(a||null):{};return E.createElement("div",{className:dt(c,te({},"".concat(c,"-active"),d))},E.createElement(AU,ge({},e,{operationRef:h,active:d==="date",onSelect:function(x){C(Uye(n,x,!a&&Ar(s)==="object"?s.defaultValue:null),"date")}})),E.createElement($ye,ge({},e,{format:void 0},p,w,{disabledTime:null,defaultValue:void 0,operationRef:g,active:d==="time",onSelect:function(x){C(x,"time")}})))}function gXe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.value,i="".concat(t,"-cell"),o=function(A){return E.createElement("td",{key:"week",className:dt(i,"".concat(i,"-week"))},r.locale.getWeek(n.locale,A))},s="".concat(t,"-week-panel-row"),l=function(A){return dt(s,te({},"".concat(s,"-selected"),Jye(r,n.locale,a,A)))};return E.createElement(AU,ge({},e,{panelName:"week",prefixColumn:o,rowClassName:l,keyboardConfig:{onLeftRight:null}}))}function pXe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.viewDate,i=e.onNextYear,o=e.onPrevYear,s=e.onYearClick,l=E.useContext(pc),c=l.hideHeader;if(c)return null;var A="".concat(t,"-header");return E.createElement(Ty,ge({},e,{prefixCls:A,onSuperPrev:o,onSuperNext:i}),E.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},ss(a,{locale:n,format:n.yearFormat,generateConfig:r})))}var uU=3,vXe=4;function mXe(e){var t=e.prefixCls,r=e.locale,n=e.value,a=e.viewDate,i=e.generateConfig,o=e.monthCellRender,s=E.useContext(Dy),l=s.rangedValue,c=s.hoverRangedValue,A="".concat(t,"-cell"),u=A4({cellPrefixCls:A,value:n,generateConfig:i,rangedValue:l,hoverRangedValue:c,isSameCell:function(p,m){return cU(i,p,m)},isInView:function(){return!0},offsetCell:function(p,m){return i.addMonth(p,m)}}),d=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),f=i.setMonth(a,0),h=o?function(g){return o(g,r)}:void 0;return E.createElement(Ex,ge({},e,{rowNum:vXe,colNum:uU,baseDate:f,getCellNode:h,getCellText:function(p){return r.monthFormat?ss(p,{locale:r,format:r.monthFormat,generateConfig:i}):d[i.getMonth(p)]},getCellClassName:u,getCellDate:i.addMonth,titleCell:function(p){return ss(p,{locale:r,format:"YYYY-MM",generateConfig:i})}}))}function EXe(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,a=e.generateConfig,i=e.value,o=e.viewDate,s=e.onPanelChange,l=e.onSelect,c="".concat(t,"-month-panel");r.current={onKeyDown:function(d){return Qy(d,{onLeftRight:function(h){l(a.addMonth(i||o,h),"key")},onCtrlLeftRight:function(h){l(a.addYear(i||o,h),"key")},onUpDown:function(h){l(a.addMonth(i||o,h*uU),"key")},onEnter:function(){s("date",i||o)}})}};var A=function(d){var f=a.addYear(o,d);n(f),s(null,f)};return E.createElement("div",{className:c},E.createElement(pXe,ge({},e,{prefixCls:t,onPrevYear:function(){A(-1)},onNextYear:function(){A(1)},onYearClick:function(){s("year",o)}})),E.createElement(mXe,ge({},e,{prefixCls:t,onSelect:function(d){l(d,"mouse"),s("date",d)}})))}function yXe(e){var t=e.prefixCls,r=e.generateConfig,n=e.locale,a=e.viewDate,i=e.onNextYear,o=e.onPrevYear,s=e.onYearClick,l=E.useContext(pc),c=l.hideHeader;if(c)return null;var A="".concat(t,"-header");return E.createElement(Ty,ge({},e,{prefixCls:A,onSuperPrev:o,onSuperNext:i}),E.createElement("button",{type:"button",onClick:s,className:"".concat(t,"-year-btn")},ss(a,{locale:n,format:n.yearFormat,generateConfig:r})))}var CXe=4,wXe=1;function BXe(e){var t=e.prefixCls,r=e.locale,n=e.value,a=e.viewDate,i=e.generateConfig,o=E.useContext(Dy),s=o.rangedValue,l=o.hoverRangedValue,c="".concat(t,"-cell"),A=A4({cellPrefixCls:c,value:n,generateConfig:i,rangedValue:s,hoverRangedValue:l,isSameCell:function(f,h){return Vye(i,f,h)},isInView:function(){return!0},offsetCell:function(f,h){return i.addMonth(f,h*3)}}),u=i.setDate(i.setMonth(a,0),1);return E.createElement(Ex,ge({},e,{rowNum:wXe,colNum:CXe,baseDate:u,getCellText:function(f){return ss(f,{locale:r,format:r.quarterFormat||"[Q]Q",generateConfig:i})},getCellClassName:A,getCellDate:function(f,h){return i.addMonth(f,h*3)},titleCell:function(f){return ss(f,{locale:r,format:"YYYY-[Q]Q",generateConfig:i})}}))}function xXe(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,a=e.generateConfig,i=e.value,o=e.viewDate,s=e.onPanelChange,l=e.onSelect,c="".concat(t,"-quarter-panel");r.current={onKeyDown:function(d){return Qy(d,{onLeftRight:function(h){l(a.addMonth(i||o,h*3),"key")},onCtrlLeftRight:function(h){l(a.addYear(i||o,h),"key")},onUpDown:function(h){l(a.addYear(i||o,h),"key")}})}};var A=function(d){var f=a.addYear(o,d);n(f),s(null,f)};return E.createElement("div",{className:c},E.createElement(yXe,ge({},e,{prefixCls:t,onPrevYear:function(){A(-1)},onNextYear:function(){A(1)},onYearClick:function(){s("year",o)}})),E.createElement(BXe,ge({},e,{prefixCls:t,onSelect:function(d){l(d,"mouse")}})))}function MXe(e){var t=e.prefixCls,r=e.generateConfig,n=e.viewDate,a=e.onPrevDecade,i=e.onNextDecade,o=e.onDecadeClick,s=E.useContext(pc),l=s.hideHeader;if(l)return null;var c="".concat(t,"-header"),A=r.getYear(n),u=Math.floor(A/ug)*ug,d=u+ug-1;return E.createElement(Ty,ge({},e,{prefixCls:c,onSuperPrev:a,onSuperNext:i}),E.createElement("button",{type:"button",onClick:o,className:"".concat(t,"-decade-btn")},u,"-",d))}var l6=3,RZ=4;function IXe(e){var t=e.prefixCls,r=e.value,n=e.viewDate,a=e.locale,i=e.generateConfig,o=E.useContext(Dy),s=o.rangedValue,l=o.hoverRangedValue,c="".concat(t,"-cell"),A=i.getYear(n),u=Math.floor(A/ug)*ug,d=u+ug-1,f=i.setYear(n,u-Math.ceil((l6*RZ-ug)/2)),h=function(m){var y=i.getYear(m);return u<=y&&y<=d},g=A4({cellPrefixCls:c,value:r,generateConfig:i,rangedValue:s,hoverRangedValue:l,isSameCell:function(m,y){return yx(i,m,y)},isInView:h,offsetCell:function(m,y){return i.addYear(m,y)}});return E.createElement(Ex,ge({},e,{rowNum:RZ,colNum:l6,baseDate:f,getCellText:i.getYear,getCellClassName:g,getCellDate:i.addYear,titleCell:function(m){return ss(m,{locale:a,format:"YYYY",generateConfig:i})}}))}var ug=10;function bXe(e){var t=e.prefixCls,r=e.operationRef,n=e.onViewDateChange,a=e.generateConfig,i=e.value,o=e.viewDate,s=e.sourceMode,l=e.onSelect,c=e.onPanelChange,A="".concat(t,"-year-panel");r.current={onKeyDown:function(f){return Qy(f,{onLeftRight:function(g){l(a.addYear(i||o,g),"key")},onCtrlLeftRight:function(g){l(a.addYear(i||o,g*ug),"key")},onUpDown:function(g){l(a.addYear(i||o,g*l6),"key")},onEnter:function(){c(s==="date"?"date":"month",i||o)}})}};var u=function(f){var h=a.addYear(o,f*10);n(h),c(null,h)};return E.createElement("div",{className:A},E.createElement(MXe,ge({},e,{prefixCls:t,onPrevDecade:function(){u(-1)},onNextDecade:function(){u(1)},onDecadeClick:function(){c("decade",o)}})),E.createElement(IXe,ge({},e,{prefixCls:t,onSelect:function(f){c(s==="date"?"date":"month",f),l(f,"mouse")}})))}function e1e(e,t,r){return r?E.createElement("div",{className:"".concat(e,"-footer-extra")},r(t)):null}function t1e(e){var t=e.prefixCls,r=e.rangeList,n=r===void 0?[]:r,a=e.components,i=a===void 0?{}:a,o=e.needConfirmButton,s=e.onNow,l=e.onOk,c=e.okDisabled,A=e.showNow,u=e.locale,d,f;if(n.length){var h=i.rangeItem||"span";d=E.createElement(E.Fragment,null,n.map(function(p){var m=p.label,y=p.onClick,C=p.onMouseEnter,w=p.onMouseLeave;return E.createElement("li",{key:m,className:"".concat(t,"-preset")},E.createElement(h,{onClick:y,onMouseEnter:C,onMouseLeave:w},m))}))}if(o){var g=i.button||"button";s&&!d&&A!==!1&&(d=E.createElement("li",{className:"".concat(t,"-now")},E.createElement("a",{className:"".concat(t,"-now-btn"),onClick:s},u.now))),f=o&&E.createElement("li",{className:"".concat(t,"-ok")},E.createElement(g,{disabled:c,onClick:l},u.ok))}return!d&&!f?null:E.createElement("ul",{className:"".concat(t,"-ranges")},d,f)}var SXe=["date","month"];function r1e(e){var t,r=e.prefixCls,n=r===void 0?"rc-picker":r,a=e.className,i=e.style,o=e.locale,s=e.generateConfig,l=e.value,c=e.defaultValue,A=e.pickerValue,u=e.defaultPickerValue,d=e.disabledDate,f=e.mode,h=e.picker,g=h===void 0?"date":h,p=e.tabIndex,m=p===void 0?0:p,y=e.showNow,C=e.showTime,w=e.showToday,B=e.renderExtraFooter,x=e.hideHeader,M=e.onSelect,S=e.onChange,R=e.onPanelChange,b=e.onMouseDown,T=e.onPickerValueChange,D=e.onOk,F=e.components,N=e.direction,_=e.hourStep,P=_===void 0?1:_,k=e.minuteStep,j=k===void 0?1:k,Y=e.secondStep,X=Y===void 0?1:Y,K=g==="date"&&!!C||g==="time",U=24%P===0,H=60%j===0,L=60%X===0,V=E.useContext(pc),J=V.operationRef,ee=V.panelRef,ae=V.onSelect,ne=V.hideRanges,fe=V.defaultOpenValue,he=E.useContext(Dy),ye=he.inRange,be=he.panelPosition,Se=he.rangedValue,ve=he.hoverRangedValue,de=E.useRef({}),Ue=E.useRef(!0),at=Ia(null,{value:l,defaultValue:c,postState:function(it){return!it&&fe&&g==="time"?fe:it}}),Ve=Je(at,2),Ie=Ve[0],we=Ve[1],Re=Ia(null,{value:A,defaultValue:u||Ie,postState:function(it){var vt=s.getNow();if(!it)return vt;if(!Ie&&C){var qt=Ar(C)==="object"?C.defaultValue:c;return Uye(s,Array.isArray(it)?it[0]:it,qt||vt)}return Array.isArray(it)?it[0]:it}}),Te=Je(Re,2),Ke=Te[0],mt=Te[1],tt=function(it){mt(it),T&&T(it)},rt=function(it){var vt=eXe[g];return vt?vt(it):it},lt=Ia(function(){return g==="time"?"time":rt("date")},{value:f}),At=Je(lt,2),$e=At[0],ce=At[1];E.useEffect(function(){ce(g)},[g]);var qe=E.useState(function(){return $e}),ct=Je(qe,2),Tt=ct[0],He=ct[1],Ge=function(it,vt){var qt=rt(it||$e);He($e),ce(qt),R&&($e!==qt||qE(s,Ke,Ke))&&R(vt,qt)},Ee=function(it,vt){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;($e===g||qt)&&(we(it),M&&M(it),ae&&ae(it,vt),S&&!qE(s,it,Ie)&&!d?.(it)&&S(it))},Et=function(it){if(SXe.includes($e)){var vt,qt,Xt=$e==="date";switch(it===cr.PAGE_UP||it===cr.PAGE_DOWN?qt=Xt?s.addMonth:s.addYear:qt=Xt?s.addDate:s.addMonth,it){case cr.LEFT:case cr.PAGE_UP:vt=qt(Ke,-1);break;case cr.RIGHT:case cr.PAGE_DOWN:vt=qt(Ke,1);break;case cr.UP:case cr.DOWN:vt=qt(Ke,Number("".concat(it===cr.UP?"-":"").concat(Xt?Fw:uU)));break}if(vt)return!d?.(vt)}return!0},Yt=function(it){if(de.current&&de.current.onKeyDown){var vt=!0,qt=it.which;if([cr.LEFT,cr.RIGHT,cr.UP,cr.DOWN,cr.PAGE_UP,cr.PAGE_DOWN,cr.ENTER].includes(qt)&&(it.preventDefault(),qt!==cr.ENTER&&m===0&&(vt=Et(qt))),vt)return de.current.onKeyDown(it)}return Ea(!1,"Panel not correct handle keyDown event. Please help to fire issue about this."),!1},$=function(it){de.current&&de.current.onBlur&&de.current.onBlur(it)};J&&be!=="right"&&(J.current={onKeyDown:Yt,onClose:function(){de.current&&de.current.onClose&&de.current.onClose()}}),E.useEffect(function(){l&&!Ue.current&&mt(l)},[l]),E.useEffect(function(){Ue.current=!1},[]);var Fe,je=se(se({},e),{},{operationRef:de,prefixCls:n,viewDate:Ke,value:Ie,onViewDateChange:tt,sourceMode:Tt,onPanelChange:Ge,disabledDate:d});switch(delete je.onChange,delete je.onSelect,$e){case"decade":Fe=E.createElement(tXe,ge({},je,{onSelect:function(it,vt){tt(it),Ee(it,vt)}}));break;case"year":Fe=E.createElement(bXe,ge({},je,{onSelect:function(it,vt){tt(it),Ee(it,vt)}}));break;case"month":Fe=E.createElement(EXe,ge({},je,{onSelect:function(it,vt){tt(it),Ee(it,vt)}}));break;case"quarter":Fe=E.createElement(xXe,ge({},je,{onSelect:function(it,vt){tt(it),Ee(it,vt)}}));break;case"week":Fe=E.createElement(gXe,ge({},je,{onSelect:function(it,vt){tt(it),Ee(it,vt)}}));break;case"time":delete je.showTime,Fe=E.createElement($ye,ge({},je,Ar(C)==="object"?C:null,{onSelect:function(it,vt){tt(it),Ee(it,vt)}}));break;default:C?Fe=E.createElement(hXe,ge({},je,{onSelect:function(it,vt){tt(it),Ee(it,vt)}})):Fe=E.createElement(AU,ge({},je,{onSelect:function(it,vt){tt(it),Ee(it,vt)}}))}var ue,ie,Be=function(){var it=s.getNow(),vt=HWe(s.getHour(it),s.getMinute(it),s.getSecond(it),U?P:1,H?j:1,L?X:1),qt=Yye(s,it,vt[0],vt[1],vt[2]);Ee(qt,"submit")};ne||(ue=e1e(n,$e,B),ie=t1e({prefixCls:n,components:F,needConfirmButton:K,okDisabled:!Ie||d&&d(Ie),locale:o,showNow:y,onNow:K&&Be,onOk:function(){Ie&&(Ee(Ie,"submit",!0),D&&D(Ie))}}));var Xe;if(w&&$e==="date"&&g==="date"&&!C){var Oe=s.getNow(),ft="".concat(n,"-today-btn"),wt=d&&d(Oe);Xe=E.createElement("a",{className:dt(ft,wt&&"".concat(ft,"-disabled")),"aria-disabled":wt,onClick:function(){wt||Ee(Oe,"mouse",!0)}},o.today)}return E.createElement(pc.Provider,{value:se(se({},V),{},{mode:$e,hideHeader:"hideHeader"in e?x:V.hideHeader,hidePrevBtn:ye&&be==="right",hideNextBtn:ye&&be==="left"})},E.createElement("div",{tabIndex:m,className:dt("".concat(n,"-panel"),a,(t={},te(t,"".concat(n,"-panel-has-range"),Se&&Se[0]&&Se[1]),te(t,"".concat(n,"-panel-has-range-hover"),ve&&ve[0]&&ve[1]),te(t,"".concat(n,"-panel-rtl"),N==="rtl"),t)),style:i,onKeyDown:Yt,onBlur:$,onMouseDown:b,ref:ee},Fe,ue||ie||Xe?E.createElement("div",{className:"".concat(n,"-footer")},ue,ie,Xe):null))}var RXe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function n1e(e){var t,r=e.prefixCls,n=e.popupElement,a=e.popupStyle,i=e.visible,o=e.dropdownClassName,s=e.dropdownAlign,l=e.transitionName,c=e.getPopupContainer,A=e.children,u=e.range,d=e.popupPlacement,f=e.direction,h="".concat(r,"-dropdown"),g=function(){return d!==void 0?d:f==="rtl"?"bottomRight":"bottomLeft"};return E.createElement(dx,{showAction:[],hideAction:[],popupPlacement:g(),builtinPlacements:RXe,prefixCls:h,popupTransitionName:l,popup:n,popupAlign:s,popupVisible:i,popupClassName:dt(o,(t={},te(t,"".concat(h,"-range"),u),te(t,"".concat(h,"-rtl"),f==="rtl"),t)),popupStyle:a,getPopupContainer:c},A)}function c6(e){var t=e.open,r=e.value,n=e.isClickOutside,a=e.triggerOpen,i=e.forwardKeyDown,o=e.onKeyDown,s=e.blurToCancel,l=e.onSubmit,c=e.onCancel,A=e.onFocus,u=e.onBlur,d=e.currentFocusedKey,f=e.key,h=f===void 0?"start":f,g=E.useState(!1),p=Je(g,2),m=p[0],y=p[1],C=E.useState(!1),w=Je(C,2),B=w[0],x=w[1],M=E.useRef(),S=E.useRef(!1),R=E.useRef(!1),b=E.useRef(!1),T={onMouseDown:function(){y(!0),a(!0)},onKeyDown:function(F){var N=function(){b.current=!0};if(o(F,N),!b.current){switch(F.which){case cr.ENTER:{t?l()!==!1&&y(!0):a(!0),F.preventDefault();return}case cr.TAB:{m&&t&&!F.shiftKey?(y(!1),F.preventDefault()):!m&&t&&!i(F)&&F.shiftKey&&(y(!0),F.preventDefault());return}case cr.ESC:{y(!0),c();return}}!t&&![cr.SHIFT].includes(F.which)?a(!0):m||i(F)}},onFocus:function(F){y(!0),x(!0),d&&(d.current=h),clearTimeout(M.current),A&&A(F)},onBlur:function(F){if(S.current||!n(document.activeElement)){S.current=!1;return}s?setTimeout(function(){for(var N=document,_=N.activeElement;_&&_.shadowRoot;)_=_.shadowRoot.activeElement;n(_)&&c()},0):t&&(a(!1),R.current&&l()),x(!1),d?(d.current="",M.current=setTimeout(function(){d.current||u?.(F)},100)):u?.(F)}};return E.useEffect(function(){R.current=!1},[t]),E.useEffect(function(){R.current=!0},[r]),E.useEffect(function(){return JWe(function(D){var F=WWe(D),N=n(F);t?N?(!B||N)&&a(!1):(S.current=!0,requestAnimationFrame(function(){S.current=!1})):B&&!N&&(S.current=!0)})}),E.useEffect(function(){return function(){return clearTimeout(M.current)}},[]),[T,{focused:B,typing:m}]}function A6(e){var t=e.valueTexts,r=e.onTextChange,n=E.useState(""),a=Je(n,2),i=a[0],o=a[1],s=E.useRef([]);s.current=t;function l(A){o(A),r(A)}function c(){o(s.current[0])}return E.useEffect(function(){t.every(function(A){return A!==i})&&c()},[t.join("||")]),[i,l,c]}function AT(e,t){var r=t.formatList,n=t.generateConfig,a=t.locale;return am(function(){if(!e)return[[""],""];for(var i="",o=[],s=0;s<r.length;s+=1){var l=r[s],c=ss(e,{generateConfig:n,locale:a,format:l});o.push(c),s===0&&(i=c)}return[o,i]},[e,r,a],function(i,o){return!qE(n,i[0],o[0])||!JE(i[1],o[1],!0)||!JE(i[2],o[2],!0)})}function u6(e,t){var r=t.formatList,n=t.generateConfig,a=t.locale,i=E.useState(null),o=Je(i,2),s=o[0],l=o[1],c=E.useRef(null);function A(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(c.current),m){l(p);return}c.current=requestAnimationFrame(function(){l(p)})}var u=AT(s,{formatList:r,generateConfig:n,locale:a}),d=Je(u,2),f=d[1];function h(p){A(p)}function g(){var p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;A(null,p)}return E.useEffect(function(){g(!0)},[e]),E.useEffect(function(){return function(){return cancelAnimationFrame(c.current)}},[]),[f,h,g]}function TXe(e){var t,r=e.prefixCls,n=r===void 0?"rc-picker":r,a=e.id,i=e.tabIndex,o=e.style,s=e.className,l=e.dropdownClassName,c=e.dropdownAlign,A=e.popupStyle,u=e.transitionName,d=e.generateConfig,f=e.locale,h=e.inputReadOnly,g=e.allowClear,p=e.autoFocus,m=e.showTime,y=e.picker,C=y===void 0?"date":y,w=e.format,B=e.use12Hours,x=e.value,M=e.defaultValue,S=e.open,R=e.defaultOpen,b=e.defaultOpenValue,T=e.suffixIcon,D=e.clearIcon,F=e.disabled,N=e.disabledDate,_=e.placeholder,P=e.getPopupContainer,k=e.pickerRef,j=e.panelRender,Y=e.onChange,X=e.onOpenChange,K=e.onFocus,U=e.onBlur,H=e.onMouseDown,L=e.onMouseUp,V=e.onMouseEnter,J=e.onMouseLeave,ee=e.onContextMenu,ae=e.onClick,ne=e.onKeyDown,fe=e.onSelect,he=e.direction,ye=e.autoComplete,be=ye===void 0?"off":ye,Se=e.inputRender,ve=E.useRef(null),de=C==="date"&&!!m||C==="time",Ue=qye(Hye(w,C,m,B)),at=E.useRef(null),Ve=E.useRef(null),Ie=E.useRef(null),we=Ia(null,{value:x,defaultValue:M}),Re=Je(we,2),Te=Re[0],Ke=Re[1],mt=E.useState(Te),tt=Je(mt,2),rt=tt[0],lt=tt[1],At=E.useRef(null),$e=Ia(!1,{value:S,defaultValue:R,postState:function(Ht){return F?!1:Ht},onChange:function(Ht){X&&X(Ht),!Ht&&At.current&&At.current.onClose&&At.current.onClose()}}),ce=Je($e,2),qe=ce[0],ct=ce[1],Tt=AT(rt,{formatList:Ue,generateConfig:d,locale:f}),He=Je(Tt,2),Ge=He[0],Ee=He[1],Et=A6({valueTexts:Ge,onTextChange:function(Ht){var Gt=Wye(Ht,{locale:f,formatList:Ue,generateConfig:d});Gt&&(!N||!N(Gt))&&lt(Gt)}}),Yt=Je(Et,3),$=Yt[0],Fe=Yt[1],je=Yt[2],ue=function(Ht){lt(Ht),Ke(Ht),Y&&!qE(d,Te,Ht)&&Y(Ht,Ht?ss(Ht,{generateConfig:d,locale:f,format:Ue[0]}):"")},ie=function(Ht){F&&Ht||ct(Ht)},Be=function(Ht){return qe&&At.current&&At.current.onKeyDown?At.current.onKeyDown(Ht):(Ea(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Xe=function(){for(var Ht=arguments.length,Gt=new Array(Ht),er=0;er<Ht;er++)Gt[er]=arguments[er];ae?.apply(void 0,Gt),ve.current&&(ve.current.focus(),ie(!0))},Oe=c6({blurToCancel:de,open:qe,value:$,triggerOpen:ie,forwardKeyDown:Be,isClickOutside:function(Ht){return!Kye([at.current,Ve.current,Ie.current],Ht)},onSubmit:function(){return!rt||N&&N(rt)?!1:(ue(rt),ie(!1),je(),!0)},onCancel:function(){ie(!1),lt(Te),je()},onKeyDown:function(Ht,Gt){ne?.(Ht,Gt)},onFocus:K,onBlur:U}),ft=Je(Oe,2),wt=ft[0],ot=ft[1],it=ot.focused,vt=ot.typing;E.useEffect(function(){qe||(lt(Te),!Ge.length||Ge[0]===""?Fe(""):Ee!==$&&je())},[qe,Ge]),E.useEffect(function(){qe||je()},[C]),E.useEffect(function(){lt(Te)},[Te]),k&&(k.current={focus:function(){ve.current&&ve.current.focus()},blur:function(){ve.current&&ve.current.blur()}});var qt=u6($,{formatList:Ue,generateConfig:d,locale:f}),Xt=Je(qt,3),Tr=Xt[0],Kr=Xt[1],Vr=Xt[2],Pr=se(se({},e),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null}),mr=E.createElement(r1e,ge({},Pr,{generateConfig:d,className:dt(te({},"".concat(n,"-panel-focused"),!vt)),value:rt,locale:f,tabIndex:-1,onSelect:function(Ht){fe?.(Ht),lt(Ht)},direction:he,onPanelChange:function(Ht,Gt){var er=e.onPanelChange;Vr(!0),er?.(Ht,Gt)}}));j&&(mr=j(mr));var xr=E.createElement("div",{className:"".concat(n,"-panel-container"),onMouseDown:function(Ht){Ht.preventDefault()}},mr),Ir;T&&(Ir=E.createElement("span",{className:"".concat(n,"-suffix")},T));var Fr;g&&Te&&!F&&(Fr=E.createElement("span",{onMouseDown:function(Ht){Ht.preventDefault(),Ht.stopPropagation()},onMouseUp:function(Ht){Ht.preventDefault(),Ht.stopPropagation(),ue(null),ie(!1)},className:"".concat(n,"-clear"),role:"button"},D||E.createElement("span",{className:"".concat(n,"-clear-btn")})));var br=se(se(se({id:a,tabIndex:i,disabled:F,readOnly:h||typeof Ue[0]=="function"||!vt,value:Tr||$,onChange:function(Ht){Fe(Ht.target.value)},autoFocus:p,placeholder:_,ref:ve,title:$},wt),{},{size:Gye(C,Ue[0],d)},Zye(e)),{},{autoComplete:be}),Sr=Se?Se(br):E.createElement("input",br),fr=function(Ht,Gt){(Gt==="submit"||Gt!=="key"&&!de)&&(ue(Ht),ie(!1))},Cr=he==="rtl"?"bottomRight":"bottomLeft";return E.createElement(pc.Provider,{value:{operationRef:At,hideHeader:C==="time",panelRef:at,onSelect:fr,open:qe,defaultOpenValue:b,onDateMouseEnter:Kr,onDateMouseLeave:Vr}},E.createElement(n1e,{visible:qe,popupElement:xr,popupStyle:A,prefixCls:n,dropdownClassName:l,dropdownAlign:c,getPopupContainer:P,transitionName:u,popupPlacement:Cr,direction:he},E.createElement("div",{ref:Ie,className:dt(n,s,(t={},te(t,"".concat(n,"-disabled"),F),te(t,"".concat(n,"-focused"),it),te(t,"".concat(n,"-rtl"),he==="rtl"),t)),style:o,onMouseDown:H,onMouseUp:L,onMouseEnter:V,onMouseLeave:J,onContextMenu:ee,onClick:Xe},E.createElement("div",{className:dt("".concat(n,"-input"),te({},"".concat(n,"-input-placeholder"),!!Tr)),ref:Ve},Sr,Ir,Fr))))}var QXe=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.pickerRef=E.createRef(),n.focus=function(){n.pickerRef.current&&n.pickerRef.current.focus()},n.blur=function(){n.pickerRef.current&&n.pickerRef.current.blur()},n}return Jn(r,[{key:"render",value:function(){return E.createElement(TXe,ge({},this.props,{pickerRef:this.pickerRef}))}}]),r})(E.Component);function DXe(e,t,r){var n=e.picker,a=e.locale,i=e.selectedValue,o=e.disabledDate,s=e.disabled,l=e.generateConfig,c=Aa(i,0),A=Aa(i,1);function u(p){return l.locale.getWeekFirstDate(a.locale,p)}function d(p){var m=l.getYear(p),y=l.getMonth(p);return m*100+y}function f(p){var m=l.getYear(p),y=o6(l,p);return m*10+y}var h=E.useCallback(function(p){if(o&&o(p))return!0;if(s[1]&&A)return!Nf(l,p,A)&&l.isAfter(p,A);if(t&&A)switch(n){case"quarter":return f(p)>f(A);case"month":return d(p)>d(A);case"week":return u(p)>u(A);default:return!Nf(l,p,A)&&l.isAfter(p,A)}return!1},[o,s[1],A,t]),g=E.useCallback(function(p){if(o&&o(p))return!0;if(s[0]&&c)return!Nf(l,p,A)&&l.isAfter(c,p);if(r&&c)switch(n){case"quarter":return f(p)<f(c);case"month":return d(p)<d(c);case"week":return u(p)<u(c);default:return!Nf(l,p,c)&&l.isAfter(c,p)}return!1},[o,s[0],c,r]);return[h,g]}function FXe(e,t,r,n){var a=Nw(e,r,n,1);function i(o){return o(e,t)?"same":o(a,t)?"closing":"far"}switch(r){case"year":return i(function(o,s){return rXe(n,o,s)});case"quarter":case"month":return i(function(o,s){return yx(n,o,s)});default:return i(function(o,s){return cU(n,o,s)})}}function NXe(e,t,r,n){var a=Aa(e,0),i=Aa(e,1);if(t===0)return a;if(a&&i){var o=FXe(a,i,r,n);switch(o){case"same":return a;case"closing":return a;default:return Nw(i,r,n,-1)}}return a}function _Xe(e){var t=e.values,r=e.picker,n=e.defaultDates,a=e.generateConfig,i=E.useState(function(){return[Aa(n,0),Aa(n,1)]}),o=Je(i,2),s=o[0],l=o[1],c=E.useState(null),A=Je(c,2),u=A[0],d=A[1],f=Aa(t,0),h=Aa(t,1);function g(m){return s[m]?s[m]:Aa(u,m)||NXe(t,m,r,a)||f||h||a.getNow()}function p(m,y){if(m){var C=Vc(u,m,y);l(Vc(s,null,y)||[null,null]);var w=(y+1)%2;Aa(t,w)||(C=Vc(C,m,w)),d(C)}else(f||h)&&d(null)}return[g,p]}function TZ(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function QZ(e,t,r,n){return!!(e||n&&n[t]||r[(t+1)%2])}function kXe(e){var t,r,n,a=e.prefixCls,i=a===void 0?"rc-picker":a,o=e.id,s=e.style,l=e.className,c=e.popupStyle,A=e.dropdownClassName,u=e.transitionName,d=e.dropdownAlign,f=e.getPopupContainer,h=e.generateConfig,g=e.locale,p=e.placeholder,m=e.autoFocus,y=e.disabled,C=e.format,w=e.picker,B=w===void 0?"date":w,x=e.showTime,M=e.use12Hours,S=e.separator,R=S===void 0?"~":S,b=e.value,T=e.defaultValue,D=e.defaultPickerValue,F=e.open,N=e.defaultOpen,_=e.disabledDate,P=e.disabledTime,k=e.dateRender,j=e.panelRender,Y=e.ranges,X=e.allowEmpty,K=e.allowClear,U=e.suffixIcon,H=e.clearIcon,L=e.pickerRef,V=e.inputReadOnly,J=e.mode,ee=e.renderExtraFooter,ae=e.onChange,ne=e.onOpenChange,fe=e.onPanelChange,he=e.onCalendarChange,ye=e.onFocus,be=e.onBlur,Se=e.onMouseDown,ve=e.onMouseUp,de=e.onMouseEnter,Ue=e.onMouseLeave,at=e.onClick,Ve=e.onOk,Ie=e.onKeyDown,we=e.components,Re=e.order,Te=e.direction,Ke=e.activePickerIndex,mt=e.autoComplete,tt=mt===void 0?"off":mt,rt=B==="date"&&!!x||B==="time",lt=E.useRef({}),At=E.useRef(null),$e=E.useRef(null),ce=E.useRef(null),qe=E.useRef(null),ct=E.useRef(null),Tt=E.useRef(null),He=E.useRef(null),Ge=E.useRef(null),Ee=qye(Hye(C,B,x,M)),Et=Ia(0,{value:Ke}),Yt=Je(Et,2),$=Yt[0],Fe=Yt[1],je=E.useRef(null),ue=E.useMemo(function(){return Array.isArray(y)?y:[y||!1,y||!1]},[y]),ie=Ia(null,{value:b,defaultValue:T,postState:function(me){return B==="time"&&!Re?me:TZ(me,h)}}),Be=Je(ie,2),Xe=Be[0],Oe=Be[1],ft=_Xe({values:Xe,picker:B,defaultDates:D,generateConfig:h}),wt=Je(ft,2),ot=wt[0],it=wt[1],vt=Ia(Xe,{postState:function(me){var Le=me;if(ue[0]&&ue[1])return Le;for(var gt=0;gt<2;gt+=1)ue[gt]&&!Le&&!Aa(Le,gt)&&!Aa(X,gt)&&(Le=Vc(Le,h.getNow(),gt));return Le}}),qt=Je(vt,2),Xt=qt[0],Tr=qt[1],Kr=Ia([B,B],{value:J}),Vr=Je(Kr,2),Pr=Vr[0],mr=Vr[1];E.useEffect(function(){mr([B,B])},[B]);var xr=function(me,Le){mr(me),fe&&fe(Le,me)},Ir=DXe({picker:B,selectedValue:Xt,locale:g,disabled:ue,disabledDate:_,generateConfig:h},lt.current[1],lt.current[0]),Fr=Je(Ir,2),br=Fr[0],Sr=Fr[1],fr=Ia(!1,{value:F,defaultValue:N,postState:function(me){return ue[$]?!1:me},onChange:function(me){ne&&ne(me),!me&&je.current&&je.current.onClose&&je.current.onClose()}}),Cr=Je(fr,2),hr=Cr[0],Ht=Cr[1],Gt=hr&&$===0,er=hr&&$===1,Qr=E.useState(0),Hr=Je(Qr,2),vn=Hr[0],pn=Hr[1];E.useEffect(function(){!hr&&At.current&&pn(At.current.offsetWidth)},[hr]);var Qn=E.useRef();function pt(q,me){if(q)clearTimeout(Qn.current),lt.current[me]=!0,Fe(me),Ht(q),hr||it(null,me);else if($===me){Ht(q);var Le=lt.current;Qn.current=setTimeout(function(){Le===lt.current&&(lt.current={})})}}function Ze(q){pt(!0,q),setTimeout(function(){var me=[Tt,He][q];me.current&&me.current.focus()},0)}function bt(q,me){var Le=q,gt=Aa(Le,0),Qt=Aa(Le,1);gt&&Qt&&h.isAfter(gt,Qt)&&(B==="week"&&!Jye(h,g.locale,gt,Qt)||B==="quarter"&&!Vye(h,gt,Qt)||B!=="week"&&B!=="quarter"&&B!=="time"&&!Nf(h,gt,Qt)?(me===0?(Le=[gt,null],Qt=null):(gt=null,Le=[null,Qt]),lt.current=te({},me,!0)):(B!=="time"||Re!==!1)&&(Le=TZ(Le,h))),Tr(Le);var $t=Le&&Le[0]?ss(Le[0],{generateConfig:h,locale:g,format:Ee[0]}):"",gr=Le&&Le[1]?ss(Le[1],{generateConfig:h,locale:g,format:Ee[0]}):"";if(he){var Or={range:me===0?"start":"end"};he(Le,[$t,gr],Or)}var tn=QZ(gt,0,ue,X),mn=QZ(Qt,1,ue,X),Bn=Le===null||tn&&mn;Bn&&(Oe(Le),ae&&(!qE(h,Aa(Xe,0),gt)||!qE(h,Aa(Xe,1),Qt))&&ae(Le,[$t,gr]));var xn=null;me===0&&!ue[1]?xn=1:me===1&&!ue[0]&&(xn=0),xn!==null&&xn!==$&&(!lt.current[xn]||!Aa(Le,xn))&&Aa(Le,me)?Ze(xn):pt(!1,me)}var kt=function(me){return hr&&je.current&&je.current.onKeyDown?je.current.onKeyDown(me):(Ea(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Wt={formatList:Ee,generateConfig:h,locale:g},St=AT(Aa(Xt,0),Wt),pe=Je(St,2),ke=pe[0],Me=pe[1],ze=AT(Aa(Xt,1),Wt),Ye=Je(ze,2),et=Ye[0],Ct=Ye[1],Ot=function(me,Le){var gt=Wye(me,{locale:g,formatList:Ee,generateConfig:h}),Qt=Le===0?br:Sr;gt&&!Qt(gt)&&(Tr(Vc(Xt,gt,Le)),it(gt,Le))},Ut=A6({valueTexts:ke,onTextChange:function(me){return Ot(me,0)}}),Jt=Je(Ut,3),ar=Jt[0],Nr=Jt[1],rn=Jt[2],dn=A6({valueTexts:et,onTextChange:function(me){return Ot(me,1)}}),kr=Je(dn,3),Wr=kr[0],Rr=kr[1],Gn=kr[2],Wn=E.useState(null),Cn=Je(Wn,2),qa=Cn[0],wa=Cn[1],ht=E.useState(null),Pt=Je(ht,2),Ft=Pt[0],or=Pt[1],Zr=u6(ar,{formatList:Ee,generateConfig:h,locale:g}),lr=Je(Zr,3),$n=lr[0],pa=lr[1],ha=lr[2],In=u6(Wr,{formatList:Ee,generateConfig:h,locale:g}),Oa=Je(In,3),bi=Oa[0],ri=Oa[1],Za=Oa[2],Xi=function(me){or(Vc(Xt,me,$)),$===0?pa(me):ri(me)},po=function(){or(Vc(Xt,null,$)),$===0?ha():Za()},ni=function(me,Le){return{blurToCancel:rt,forwardKeyDown:kt,onBlur:be,isClickOutside:function(Qt){return!Kye([$e.current,ce.current,qe.current,At.current],Qt)},onFocus:function(Qt){Fe(me),ye&&ye(Qt)},triggerOpen:function(Qt){pt(Qt,me)},onSubmit:function(){if(!Xt||_&&_(Xt[me]))return!1;bt(Xt,me),Le()},onCancel:function(){pt(!1,me),Tr(Xe),Le()}}},zi=E.useRef(""),Qo=c6(se(se({},ni(0,rn)),{},{open:Gt,value:ar,currentFocusedKey:zi,key:"start",onKeyDown:function(me,Le){Ie?.(me,Le)}})),so=Je(Qo,2),gs=so[0],bu=so[1],gA=bu.focused,Ud=bu.typing,sh=c6(se(se({},ni(1,Gn)),{},{open:er,value:Wr,currentFocusedKey:zi,key:"end",onKeyDown:function(me,Le){Ie?.(me,Le)}})),xc=Je(sh,2),lh=xc[0],Os=xc[1],ps=Os.focused,Su=Os.typing,vo=function(me){at&&at(me),!hr&&!Tt.current.contains(me.target)&&!He.current.contains(me.target)&&(ue[0]?ue[1]||Ze(1):Ze(0))},qo=function(me){Se&&Se(me),hr&&(gA||ps)&&!Tt.current.contains(me.target)&&!He.current.contains(me.target)&&me.preventDefault()},Mc=Xe&&Xe[0]?ss(Xe[0],{locale:g,format:"YYYYMMDDHHmmss",generateConfig:h}):"",Ic=Xe&&Xe[1]?ss(Xe[1],{locale:g,format:"YYYYMMDDHHmmss",generateConfig:h}):"";E.useEffect(function(){hr||(Tr(Xe),!ke.length||ke[0]===""?Nr(""):Me!==ar&&rn(),!et.length||et[0]===""?Rr(""):Ct!==Wr&&Gn())},[hr,ke,et]),E.useEffect(function(){Tr(Xe)},[Mc,Ic]),L&&(L.current={focus:function(){Tt.current&&Tt.current.focus()},blur:function(){Tt.current&&Tt.current.blur(),He.current&&He.current.blur()}});var Ru=Object.keys(Y||{}),Wl=Ru.map(function(q){var me=Y[q],Le=typeof me=="function"?me():me;return{label:q,onClick:function(){bt(Le,null),pt(!1,$)},onMouseEnter:function(){wa(Le)},onMouseLeave:function(){wa(null)}}});function Tu(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Le=null;hr&&Ft&&Ft[0]&&Ft[1]&&h.isAfter(Ft[1],Ft[0])&&(Le=Ft);var gt=x;if(x&&Ar(x)==="object"&&x.defaultValue){var Qt=x.defaultValue;gt=se(se({},x),{},{defaultValue:Aa(Qt,$)||void 0})}var $t=null;return k&&($t=function(Or,tn){return k(Or,tn,{range:$?"end":"start"})}),E.createElement(Dy.Provider,{value:{inRange:!0,panelPosition:q,rangedValue:qa||Xt,hoverRangedValue:Le}},E.createElement(r1e,ge({},e,me,{dateRender:$t,showTime:gt,mode:Pr[$],generateConfig:h,style:void 0,direction:Te,disabledDate:$===0?br:Sr,disabledTime:function(Or){return P?P(Or,$===0?"start":"end"):!1},className:dt(te({},"".concat(i,"-panel-focused"),$===0?!Ud:!Su)),value:Aa(Xt,$),locale:g,tabIndex:-1,onPanelChange:function(Or,tn){$===0&&ha(!0),$===1&&Za(!0),xr(Vc(Pr,tn,$),Vc(Xt,Or,$));var mn=Or;q==="right"&&Pr[$]===tn&&(mn=Nw(mn,tn,h,-1)),it(mn,$)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:$===0?Aa(Xt,1):Aa(Xt,0)})))}var ja=0,js=0;if($&&ce.current&&ct.current&&$e.current){ja=ce.current.offsetWidth+ct.current.offsetWidth;var Qu=Ge.current.offsetLeft>ja?Ge.current.offsetLeft-ja:Ge.current.offsetLeft;$e.current.offsetWidth&&Ge.current.offsetWidth&&ja>$e.current.offsetWidth-Ge.current.offsetWidth-(Te==="rtl"?0:Qu)&&(js=ja)}var dl=Te==="rtl"?{right:ja}:{left:ja};function Hd(){var q,me=e1e(i,Pr[$],ee),Le=t1e({prefixCls:i,components:we,needConfirmButton:rt,okDisabled:!Aa(Xt,$)||_&&_(Xt[$]),locale:g,rangeList:Wl,onOk:function(){Aa(Xt,$)&&(bt(Xt,$),Ve&&Ve(Xt))}});if(B!=="time"&&!x){var gt=ot($),Qt=Nw(gt,B,h),$t=Pr[$],gr=$t===B,Or=Tu(gr?"left":!1,{pickerValue:gt,onPickerValueChange:function(xn){it(xn,$)}}),tn=Tu("right",{pickerValue:Qt,onPickerValueChange:function(xn){it(Nw(xn,B,h,-1),$)}});Te==="rtl"?q=E.createElement(E.Fragment,null,tn,gr&&Or):q=E.createElement(E.Fragment,null,Or,gr&&tn)}else q=Tu();var mn=E.createElement(E.Fragment,null,E.createElement("div",{className:"".concat(i,"-panels")},q),(me||Le)&&E.createElement("div",{className:"".concat(i,"-footer")},me,Le));return j&&(mn=j(mn)),E.createElement("div",{className:"".concat(i,"-panel-container"),style:{marginLeft:js},ref:$e,onMouseDown:function(xn){xn.preventDefault()}},mn)}var pA=E.createElement("div",{className:dt("".concat(i,"-range-wrapper"),"".concat(i,"-").concat(B,"-range-wrapper")),style:{minWidth:vn}},E.createElement("div",{ref:Ge,className:"".concat(i,"-range-arrow"),style:dl}),Hd()),vA;U&&(vA=E.createElement("span",{className:"".concat(i,"-suffix")},U));var bc;K&&(Aa(Xe,0)&&!ue[0]||Aa(Xe,1)&&!ue[1])&&(bc=E.createElement("span",{onMouseDown:function(me){me.preventDefault(),me.stopPropagation()},onMouseUp:function(me){me.preventDefault(),me.stopPropagation();var Le=Xe;ue[0]||(Le=Vc(Le,null,0)),ue[1]||(Le=Vc(Le,null,1)),bt(Le,null),pt(!1,$)},className:"".concat(i,"-clear")},H||E.createElement("span",{className:"".concat(i,"-clear-btn")})));var fl={size:Gye(B,Ee[0],h)},hl=0,mA=0;ce.current&&qe.current&&ct.current&&($===0?mA=ce.current.offsetWidth:(hl=ja,mA=qe.current.offsetWidth));var Sc=Te==="rtl"?{right:hl}:{left:hl},Gd=function(me,Le){var gt=Vc(Xt,me,$);Le==="submit"||Le!=="key"&&!rt?(bt(gt,$),$===0?ha():Za()):Tr(gt)};return E.createElement(pc.Provider,{value:{operationRef:je,hideHeader:B==="time",onDateMouseEnter:Xi,onDateMouseLeave:po,hideRanges:!0,onSelect:Gd,open:hr}},E.createElement(n1e,{visible:hr,popupElement:pA,popupStyle:c,prefixCls:i,dropdownClassName:A,dropdownAlign:d,getPopupContainer:f,transitionName:u,range:!0,direction:Te},E.createElement("div",ge({ref:At,className:dt(i,"".concat(i,"-range"),l,(t={},te(t,"".concat(i,"-disabled"),ue[0]&&ue[1]),te(t,"".concat(i,"-focused"),$===0?gA:ps),te(t,"".concat(i,"-rtl"),Te==="rtl"),t)),style:s,onClick:vo,onMouseEnter:de,onMouseLeave:Ue,onMouseDown:qo,onMouseUp:ve},Zye(e)),E.createElement("div",{className:dt("".concat(i,"-input"),(r={},te(r,"".concat(i,"-input-active"),$===0),te(r,"".concat(i,"-input-placeholder"),!!$n),r)),ref:ce},E.createElement("input",ge({id:o,disabled:ue[0],readOnly:V||typeof Ee[0]=="function"||!Ud,value:$n||ar,onChange:function(me){Nr(me.target.value)},autoFocus:m,placeholder:Aa(p,0)||"",ref:Tt},gs,fl,{autoComplete:tt}))),E.createElement("div",{className:"".concat(i,"-range-separator"),ref:ct},R),E.createElement("div",{className:dt("".concat(i,"-input"),(n={},te(n,"".concat(i,"-input-active"),$===1),te(n,"".concat(i,"-input-placeholder"),!!bi),n)),ref:qe},E.createElement("input",ge({disabled:ue[1],readOnly:V||typeof Ee[0]=="function"||!Su,value:bi||Wr,onChange:function(me){Rr(me.target.value)},placeholder:Aa(p,1)||"",ref:He},lh,fl,{autoComplete:tt}))),E.createElement("div",{className:"".concat(i,"-active-bar"),style:se(se({},Sc),{},{width:mA,position:"absolute"})}),vA,bc)))}var PXe=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.pickerRef=E.createRef(),n.focus=function(){n.pickerRef.current&&n.pickerRef.current.focus()},n.blur=function(){n.pickerRef.current&&n.pickerRef.current.blur()},n}return Jn(r,[{key:"render",value:function(){return E.createElement(kXe,ge({},this.props,{pickerRef:this.pickerRef}))}}]),r})(E.Component),a1e=E.createContext(null),OXe=a1e.Provider,i1e=E.createContext(null),jXe=i1e.Provider,zXe=["prefixCls","className","style","checked","disabled","defaultChecked","type","onChange"],uT=E.forwardRef(function(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-checkbox":n,i=e.className,o=e.style,s=e.checked,l=e.disabled,c=e.defaultChecked,A=c===void 0?!1:c,u=e.type,d=u===void 0?"checkbox":u,f=e.onChange,h=An(e,zXe),g=E.useRef(null),p=Ia(A,{value:s}),m=Je(p,2),y=m[0],C=m[1];E.useImperativeHandle(t,function(){return{focus:function(){var M;(M=g.current)===null||M===void 0||M.focus()},blur:function(){var M;(M=g.current)===null||M===void 0||M.blur()},input:g.current}});var w=dt(a,i,(r={},te(r,"".concat(a,"-checked"),y),te(r,"".concat(a,"-disabled"),l),r)),B=function(M){l||("checked"in e||C(M.target.checked),f?.({target:se(se({},e),{},{type:d,checked:M.target.checked}),stopPropagation:function(){M.stopPropagation()},preventDefault:function(){M.preventDefault()},nativeEvent:M.nativeEvent}))};return E.createElement("span",{className:w,style:o},E.createElement("input",ge({},h,{className:"".concat(a,"-input"),ref:g,onChange:B,disabled:l,checked:!!y,type:d})),E.createElement("span",{className:"".concat(a,"-inner")}))});const LXe=Object.freeze(Object.defineProperty({__proto__:null,Checkbox:uT,default:uT},Symbol.toStringTag,{value:"Module"}));var YXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},UXe=function(t,r){var n,a,i=E.useContext(a1e),o=E.useContext(i1e),s=E.useContext(an),l=s.getPrefixCls,c=s.direction,A=E.useRef(),u=Ec(r,A),d=E.useContext(fs),f=d.isFormItemInput,h=function(b){var T,D;(T=t.onChange)===null||T===void 0||T.call(t,b),(D=i?.onChange)===null||D===void 0||D.call(i,b)},g=t.prefixCls,p=t.className,m=t.children,y=t.style,C=YXe(t,["prefixCls","className","children","style"]),w=l("radio",g),B=(i?.optionType||o)==="button"?"".concat(w,"-button"):w,x=ge({},C),M=E.useContext(Ol);i&&(x.name=i.name,x.onChange=h,x.checked=t.value===i.value,x.disabled=(n=x.disabled)!==null&&n!==void 0?n:i.disabled),x.disabled=(a=x.disabled)!==null&&a!==void 0?a:M;var S=dt("".concat(B,"-wrapper"),te(te(te(te({},"".concat(B,"-wrapper-checked"),x.checked),"".concat(B,"-wrapper-disabled"),x.disabled),"".concat(B,"-wrapper-rtl"),c==="rtl"),"".concat(B,"-wrapper-in-form-item"),f),p);return E.createElement("label",{className:S,style:y,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave},E.createElement(uT,ge({},x,{type:"radio",prefixCls:B,ref:u})),m!==void 0?E.createElement("span",null,m):null)},dT=E.forwardRef(UXe),HXe=E.forwardRef(function(e,t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=E.useContext(ds),o=Ia(e.defaultValue,{value:e.value}),s=Je(o,2),l=s[0],c=s[1],A=function(P){var k=l,j=P.target.value;"value"in e||c(j);var Y=e.onChange;Y&&j!==k&&Y(P)},u=e.prefixCls,d=e.className,f=d===void 0?"":d,h=e.options,g=e.buttonStyle,p=g===void 0?"outline":g,m=e.disabled,y=e.children,C=e.size,w=e.style,B=e.id,x=e.onMouseEnter,M=e.onMouseLeave,S=e.onFocus,R=e.onBlur,b=n("radio",u),T="".concat(b,"-group"),D=y;h&&h.length>0&&(D=h.map(function(_){return typeof _=="string"||typeof _=="number"?E.createElement(dT,{key:_.toString(),prefixCls:b,disabled:m,value:_,checked:l===_},_):E.createElement(dT,{key:"radio-group-value-options-".concat(_.value),prefixCls:b,disabled:_.disabled||m,value:_.value,checked:l===_.value,style:_.style},_.label)}));var F=C||i,N=dt(T,"".concat(T,"-").concat(p),te(te({},"".concat(T,"-").concat(F),F),"".concat(T,"-rtl"),a==="rtl"),f);return E.createElement("div",ge({},Q0e(e),{className:N,style:w,onMouseEnter:x,onMouseLeave:M,onFocus:S,onBlur:R,id:B,ref:t}),E.createElement(OXe,{value:{onChange:A,value:l,disabled:e.disabled,name:e.name,optionType:e.optionType}},D))});const GXe=E.memo(HXe);var KXe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},VXe=function(t,r){var n=E.useContext(an),a=n.getPrefixCls,i=t.prefixCls,o=KXe(t,["prefixCls"]),s=a("radio",i);return E.createElement(jXe,{value:"button"},E.createElement(dT,ge({prefixCls:s},o,{type:"radio",ref:r})))};const JXe=E.forwardRef(VXe);var mg=dT;mg.Button=JXe;mg.Group=GXe;mg.__ANT_RADIO=!0;const u4=E.createContext(null);var o1e=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.id,o=e.active,s=e.tabKey,l=e.children;return E.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:o?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!o,style:a,className:dt(r,o&&"".concat(r,"-active"),n),ref:t},l)}),WXe=["key","forceRender","style","className"];function XXe(e){var t=e.id,r=e.activeKey,n=e.animated,a=e.tabPosition,i=e.destroyInactiveTabPane,o=E.useContext(u4),s=o.prefixCls,l=o.tabs,c=n.tabPane,A="".concat(s,"-tabpane");return E.createElement("div",{className:dt("".concat(s,"-content-holder"))},E.createElement("div",{className:dt("".concat(s,"-content"),"".concat(s,"-content-").concat(a),te({},"".concat(s,"-content-animated"),c))},l.map(function(u){var d=u.key,f=u.forceRender,h=u.style,g=u.className,p=An(u,WXe),m=d===r;return E.createElement(us,ge({key:d,visible:m,forceRender:f,removeOnLeave:!!i,leavedClassName:"".concat(A,"-hidden")},n.tabPaneMotion),function(y,C){var w=y.style,B=y.className;return E.createElement(o1e,ge({},p,{prefixCls:A,id:t,tabKey:d,animated:c,active:m,style:se(se({},h),w),className:dt(g,B),ref:C}))})})))}var DZ={width:0,height:0,left:0,top:0};function qXe(e,t,r){return E.useMemo(function(){for(var n,a=new Map,i=t.get((n=e[0])===null||n===void 0?void 0:n.key)||DZ,o=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,c=t.get(l);if(!c){var A;c=t.get((A=e[s-1])===null||A===void 0?void 0:A.key)||DZ}var u=a.get(l)||se({},c);u.right=o-u.left-u.width,a.set(l,u)}return a},[e.map(function(n){return n.key}).join("_"),t,r])}function FZ(e,t){var r=E.useRef(e),n=E.useState({}),a=Je(n,2),i=a[1];function o(s){var l=typeof s=="function"?s(r.current):s;l!==r.current&&t(l,r.current),r.current=l,i({})}return[r.current,o]}var ZXe=.1,NZ=.01,qS=20,_Z=Math.pow(.995,qS);function $Xe(e,t){var r=E.useState(),n=Je(r,2),a=n[0],i=n[1],o=E.useState(0),s=Je(o,2),l=s[0],c=s[1],A=E.useState(0),u=Je(A,2),d=u[0],f=u[1],h=E.useState(),g=Je(h,2),p=g[0],m=g[1],y=E.useRef();function C(R){var b=R.touches[0],T=b.screenX,D=b.screenY;i({x:T,y:D}),window.clearInterval(y.current)}function w(R){if(a){R.preventDefault();var b=R.touches[0],T=b.screenX,D=b.screenY;i({x:T,y:D});var F=T-a.x,N=D-a.y;t(F,N);var _=Date.now();c(_),f(_-l),m({x:F,y:N})}}function B(){if(a&&(i(null),m(null),p)){var R=p.x/d,b=p.y/d,T=Math.abs(R),D=Math.abs(b);if(Math.max(T,D)<ZXe)return;var F=R,N=b;y.current=window.setInterval(function(){if(Math.abs(F)<NZ&&Math.abs(N)<NZ){window.clearInterval(y.current);return}F*=_Z,N*=_Z,t(F*qS,N*qS)},qS)}}var x=E.useRef();function M(R){var b=R.deltaX,T=R.deltaY,D=0,F=Math.abs(b),N=Math.abs(T);F===N?D=x.current==="x"?b:T:F>N?(D=b,x.current="x"):(D=T,x.current="y"),t(-D,-D)&&R.preventDefault()}var S=E.useRef(null);S.current={onTouchStart:C,onTouchMove:w,onTouchEnd:B,onWheel:M},E.useEffect(function(){function R(F){S.current.onTouchStart(F)}function b(F){S.current.onTouchMove(F)}function T(F){S.current.onTouchEnd(F)}function D(F){S.current.onWheel(F)}return document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",T,{passive:!1}),e.current.addEventListener("touchstart",R,{passive:!1}),e.current.addEventListener("wheel",D),function(){document.removeEventListener("touchmove",b),document.removeEventListener("touchend",T)}},[])}function s1e(e){var t=E.useState(0),r=Je(t,2),n=r[0],a=r[1],i=E.useRef(0),o=E.useRef();return o.current=e,mE(function(){var s;(s=o.current)===null||s===void 0||s.call(o)},[n]),function(){i.current===n&&(i.current+=1,a(i.current))}}function eqe(e){var t=E.useRef([]),r=E.useState({}),n=Je(r,2),a=n[1],i=E.useRef(typeof e=="function"?e():e),o=s1e(function(){var l=i.current;t.current.forEach(function(c){l=c(l)}),t.current=[],i.current=l,a({})});function s(l){t.current.push(l),o()}return[i.current,s]}var kZ={width:0,height:0,left:0,top:0,right:0};function tqe(e,t,r,n,a,i,o){var s=o.tabs,l=o.tabPosition,c=o.rtl,A,u,d;return["top","bottom"].includes(l)?(A="width",u=c?"right":"left",d=Math.abs(r)):(A="height",u="top",d=-r),E.useMemo(function(){if(!s.length)return[0,0];for(var f=s.length,h=f,g=0;g<f;g+=1){var p=e.get(s[g].key)||kZ;if(p[u]+p[A]>d+t){h=g-1;break}}for(var m=0,y=f-1;y>=0;y-=1){var C=e.get(s[y].key)||kZ;if(C[u]<d){m=y+1;break}}return[m,h]},[e,t,n,a,i,d,l,s.map(function(f){return f.key}).join("_"),c])}function PZ(e){var t;return e instanceof Map?(t={},e.forEach(function(r,n){t[n]=r})):t=e,JSON.stringify(t)}var rqe="TABS_DQ";function l1e(e){return String(e).replace(/"/g,rqe)}function nqe(e,t){var r=e.prefixCls,n=e.editable,a=e.locale,i=e.style;return!n||n.showAdd===!1?null:E.createElement("button",{ref:t,type:"button",className:"".concat(r,"-nav-add"),style:i,"aria-label":a?.addAriaLabel||"Add tab",onClick:function(s){n.onEdit("add",{event:s})}},n.addIcon||"+")}const c1e=E.forwardRef(nqe);var OZ=E.forwardRef(function(e,t){var r=e.position,n=e.prefixCls,a=e.extra;if(!a)return null;var i,o={};return Ar(a)==="object"&&!E.isValidElement(a)?o=a:o.right=a,r==="right"&&(i=o.right),r==="left"&&(i=o.left),i?E.createElement("div",{className:"".concat(n,"-extra-content"),ref:t},i):null});function aqe(e,t){var r=e.prefixCls,n=e.id,a=e.tabs,i=e.locale,o=e.mobile,s=e.moreIcon,l=s===void 0?"More":s,c=e.moreTransitionName,A=e.style,u=e.className,d=e.editable,f=e.tabBarGutter,h=e.rtl,g=e.removeAriaLabel,p=e.onTabClick,m=e.getPopupContainer,y=e.popupClassName,C=E.useState(!1),w=Je(C,2),B=w[0],x=w[1],M=E.useState(null),S=Je(M,2),R=S[0],b=S[1],T="".concat(n,"-more-popup"),D="".concat(r,"-dropdown"),F=R!==null?"".concat(T,"-").concat(R):null,N=i?.dropdownAriaLabel;function _(U,H){U.preventDefault(),U.stopPropagation(),d.onEdit("remove",{key:H,event:U})}var P=E.createElement(Iy,{onClick:function(H){var L=H.key,V=H.domEvent;p(L,V),x(!1)},prefixCls:"".concat(D,"-menu"),id:T,tabIndex:-1,role:"listbox","aria-activedescendant":F,selectedKeys:[R],"aria-label":N!==void 0?N:"expanded dropdown"},a.map(function(U){var H=d&&U.closable!==!1&&!U.disabled;return E.createElement(hx,{key:U.key,id:"".concat(T,"-").concat(U.key),role:"option","aria-controls":n&&"".concat(n,"-panel-").concat(U.key),disabled:U.disabled},E.createElement("span",null,U.label),H&&E.createElement("button",{type:"button","aria-label":g||"remove",tabIndex:0,className:"".concat(D,"-menu-item-remove"),onClick:function(V){V.stopPropagation(),_(V,U.key)}},U.closeIcon||d.removeIcon||"×"))}));function k(U){for(var H=a.filter(function(ae){return!ae.disabled}),L=H.findIndex(function(ae){return ae.key===R})||0,V=H.length,J=0;J<V;J+=1){L=(L+U+V)%V;var ee=H[L];if(!ee.disabled){b(ee.key);return}}}function j(U){var H=U.which;if(!B){[cr.DOWN,cr.SPACE,cr.ENTER].includes(H)&&(x(!0),U.preventDefault());return}switch(H){case cr.UP:k(-1),U.preventDefault();break;case cr.DOWN:k(1),U.preventDefault();break;case cr.ESC:x(!1);break;case cr.SPACE:case cr.ENTER:R!==null&&p(R,U);break}}E.useEffect(function(){var U=document.getElementById(F);U&&U.scrollIntoView&&U.scrollIntoView(!1)},[R]),E.useEffect(function(){B||b(null)},[B]);var Y=te({},h?"marginRight":"marginLeft",f);a.length||(Y.visibility="hidden",Y.order=1);var X=dt(te({},"".concat(D,"-rtl"),h)),K=o?null:E.createElement(YEe,{prefixCls:D,overlay:P,trigger:["hover"],visible:a.length?B:!1,transitionName:c,onVisibleChange:x,overlayClassName:dt(X,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:m},E.createElement("button",{type:"button",className:"".concat(r,"-nav-more"),style:Y,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":T,id:"".concat(n,"-more"),"aria-expanded":B,onKeyDown:j},l));return E.createElement("div",{className:dt("".concat(r,"-nav-operations"),u),style:A,ref:t},K,E.createElement(c1e,{prefixCls:r,locale:i,editable:d}))}const iqe=E.memo(E.forwardRef(aqe),function(e,t){return t.tabMoving});function oqe(e){var t,r=e.prefixCls,n=e.id,a=e.active,i=e.tab,o=i.key,s=i.label,l=i.disabled,c=i.closeIcon,A=e.closable,u=e.renderWrapper,d=e.removeAriaLabel,f=e.editable,h=e.onClick,g=e.onFocus,p=e.style,m="".concat(r,"-tab"),y=f&&A!==!1&&!l;function C(x){l||h(x)}function w(x){x.preventDefault(),x.stopPropagation(),f.onEdit("remove",{key:o,event:x})}var B=E.createElement("div",{key:o,"data-node-key":l1e(o),className:dt(m,(t={},te(t,"".concat(m,"-with-remove"),y),te(t,"".concat(m,"-active"),a),te(t,"".concat(m,"-disabled"),l),t)),style:p,onClick:C},E.createElement("div",{role:"tab","aria-selected":a,id:n&&"".concat(n,"-tab-").concat(o),className:"".concat(m,"-btn"),"aria-controls":n&&"".concat(n,"-panel-").concat(o),"aria-disabled":l,tabIndex:l?null:0,onClick:function(M){M.stopPropagation(),C(M)},onKeyDown:function(M){[cr.SPACE,cr.ENTER].includes(M.which)&&(M.preventDefault(),C(M))},onFocus:g},s),y&&E.createElement("button",{type:"button","aria-label":d||"remove",tabIndex:0,className:"".concat(m,"-remove"),onClick:function(M){M.stopPropagation(),w(M)}},c||f.removeIcon||"×"));return u?u(B):B}var s0=function(t){var r=t.current||{},n=r.offsetWidth,a=n===void 0?0:n,i=r.offsetHeight,o=i===void 0?0:i;return[a,o]},nI=function(t,r){return t[r?0:1]};function sqe(e,t){var r,n=E.useContext(u4),a=n.prefixCls,i=n.tabs,o=e.className,s=e.style,l=e.id,c=e.animated,A=e.activeKey,u=e.rtl,d=e.extra,f=e.editable,h=e.locale,g=e.tabPosition,p=e.tabBarGutter,m=e.children,y=e.onTabClick,C=e.onTabScroll,w=E.useRef(),B=E.useRef(),x=E.useRef(),M=E.useRef(),S=E.useRef(),R=E.useRef(),b=E.useRef(),T=g==="top"||g==="bottom",D=FZ(0,function(br,Sr){T&&C&&C({direction:br>Sr?"left":"right"})}),F=Je(D,2),N=F[0],_=F[1],P=FZ(0,function(br,Sr){!T&&C&&C({direction:br>Sr?"top":"bottom"})}),k=Je(P,2),j=k[0],Y=k[1],X=E.useState([0,0]),K=Je(X,2),U=K[0],H=K[1],L=E.useState([0,0]),V=Je(L,2),J=V[0],ee=V[1],ae=E.useState([0,0]),ne=Je(ae,2),fe=ne[0],he=ne[1],ye=E.useState([0,0]),be=Je(ye,2),Se=be[0],ve=be[1],de=eqe(new Map),Ue=Je(de,2),at=Ue[0],Ve=Ue[1],Ie=qXe(i,at,J[0]),we=nI(U,T),Re=nI(J,T),Te=nI(fe,T),Ke=nI(Se,T),mt=we<Re+Te,tt=mt?we-Ke:we-Te,rt="".concat(a,"-nav-operations-hidden"),lt=0,At=0;T&&u?(lt=0,At=Math.max(0,Re-tt)):(lt=Math.min(0,tt-Re),At=0);function $e(br){return br<lt?lt:br>At?At:br}var ce=E.useRef(),qe=E.useState(),ct=Je(qe,2),Tt=ct[0],He=ct[1];function Ge(){He(Date.now())}function Ee(){window.clearTimeout(ce.current)}$Xe(M,function(br,Sr){function fr(Cr,hr){Cr(function(Ht){var Gt=$e(Ht+hr);return Gt})}return mt?(T?fr(_,br):fr(Y,Sr),Ee(),Ge(),!0):!1}),E.useEffect(function(){return Ee(),Tt&&(ce.current=window.setTimeout(function(){He(0)},100)),Ee},[Tt]);var Et=tqe(Ie,tt,T?N:j,Re,Te,Ke,se(se({},e),{},{tabs:i})),Yt=Je(Et,2),$=Yt[0],Fe=Yt[1],je=tA(function(){var br=arguments.length>0&&arguments[0]!==void 0?arguments[0]:A,Sr=Ie.get(br)||{width:0,height:0,left:0,right:0,top:0};if(T){var fr=N;u?Sr.right<N?fr=Sr.right:Sr.right+Sr.width>N+tt&&(fr=Sr.right+Sr.width-tt):Sr.left<-N?fr=-Sr.left:Sr.left+Sr.width>-N+tt&&(fr=-(Sr.left+Sr.width-tt)),Y(0),_($e(fr))}else{var Cr=j;Sr.top<-j?Cr=-Sr.top:Sr.top+Sr.height>-j+tt&&(Cr=-(Sr.top+Sr.height-tt)),_(0),Y($e(Cr))}}),ue={};g==="top"||g==="bottom"?ue[u?"marginRight":"marginLeft"]=p:ue.marginTop=p;var ie=i.map(function(br,Sr){var fr=br.key;return E.createElement(oqe,{id:l,prefixCls:a,key:fr,tab:br,style:Sr===0?void 0:ue,closable:br.closable,editable:f,active:fr===A,renderWrapper:m,removeAriaLabel:h?.removeAriaLabel,onClick:function(hr){y(fr,hr)},onFocus:function(){je(fr),Ge(),M.current&&(u||(M.current.scrollLeft=0),M.current.scrollTop=0)}})}),Be=function(){return Ve(function(){var Sr=new Map;return i.forEach(function(fr){var Cr,hr=fr.key,Ht=(Cr=S.current)===null||Cr===void 0?void 0:Cr.querySelector('[data-node-key="'.concat(l1e(hr),'"]'));Ht&&Sr.set(hr,{width:Ht.offsetWidth,height:Ht.offsetHeight,left:Ht.offsetLeft,top:Ht.offsetTop})}),Sr})};E.useEffect(function(){Be()},[i.map(function(br){return br.key}).join("_")]);var Xe=s1e(function(){var br=s0(w),Sr=s0(B),fr=s0(x);H([br[0]-Sr[0]-fr[0],br[1]-Sr[1]-fr[1]]);var Cr=s0(b);he(Cr);var hr=s0(R);ve(hr);var Ht=s0(S);ee([Ht[0]-Cr[0],Ht[1]-Cr[1]]),Be()}),Oe=i.slice(0,$),ft=i.slice(Fe+1),wt=[].concat(ir(Oe),ir(ft)),ot=E.useState(),it=Je(ot,2),vt=it[0],qt=it[1],Xt=Ie.get(A),Tr=E.useRef();function Kr(){ta.cancel(Tr.current)}E.useEffect(function(){var br={};return Xt&&(T?(u?br.right=Xt.right:br.left=Xt.left,br.width=Xt.width):(br.top=Xt.top,br.height=Xt.height)),Kr(),Tr.current=ta(function(){qt(br)}),Kr},[Xt,T,u]),E.useEffect(function(){je()},[A,lt,At,PZ(Xt),PZ(Ie),T]),E.useEffect(function(){Xe()},[u]);var Vr=!!wt.length,Pr="".concat(a,"-nav-wrap"),mr,xr,Ir,Fr;return T?u?(xr=N>0,mr=N!==At):(mr=N<0,xr=N!==lt):(Ir=j<0,Fr=j!==lt),E.createElement($c,{onResize:Xe},E.createElement("div",{ref:cx(t,w),role:"tablist",className:dt("".concat(a,"-nav"),o),style:s,onKeyDown:function(){Ge()}},E.createElement(OZ,{ref:B,position:"left",extra:d,prefixCls:a}),E.createElement("div",{className:dt(Pr,(r={},te(r,"".concat(Pr,"-ping-left"),mr),te(r,"".concat(Pr,"-ping-right"),xr),te(r,"".concat(Pr,"-ping-top"),Ir),te(r,"".concat(Pr,"-ping-bottom"),Fr),r)),ref:M},E.createElement($c,{onResize:Xe},E.createElement("div",{ref:S,className:"".concat(a,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(j,"px)"),transition:Tt?"none":void 0}},ie,E.createElement(c1e,{ref:b,prefixCls:a,locale:h,editable:f,style:se(se({},ie.length===0?void 0:ue),{},{visibility:Vr?"hidden":null})}),E.createElement("div",{className:dt("".concat(a,"-ink-bar"),te({},"".concat(a,"-ink-bar-animated"),c.inkBar)),style:vt})))),E.createElement(iqe,ge({},e,{removeAriaLabel:h?.removeAriaLabel,ref:R,prefixCls:a,tabs:wt,className:!Vr&&rt,tabMoving:!!Tt})),E.createElement(OZ,{ref:x,position:"right",extra:d,prefixCls:a})))}const jZ=E.forwardRef(sqe);var lqe=["renderTabBar"],cqe=["label","key"];function Aqe(e){var t=e.renderTabBar,r=An(e,lqe),n=E.useContext(u4),a=n.tabs;if(t){var i=se(se({},r),{},{panes:a.map(function(o){var s=o.label,l=o.key,c=An(o,cqe);return E.createElement(o1e,ge({tab:s,key:l,tabKey:l},c))})});return t(i,jZ)}return E.createElement(jZ,r)}function uqe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=se({inkBar:!0},Ar(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var dqe=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName"],zZ=0;function fqe(e,t){var r,n=e.id,a=e.prefixCls,i=a===void 0?"rc-tabs":a,o=e.className,s=e.items,l=e.direction,c=e.activeKey,A=e.defaultActiveKey,u=e.editable,d=e.animated,f=e.tabPosition,h=f===void 0?"top":f,g=e.tabBarGutter,p=e.tabBarStyle,m=e.tabBarExtraContent,y=e.locale,C=e.moreIcon,w=e.moreTransitionName,B=e.destroyInactiveTabPane,x=e.renderTabBar,M=e.onChange,S=e.onTabClick,R=e.onTabScroll,b=e.getPopupContainer,T=e.popupClassName,D=An(e,dqe),F=E.useMemo(function(){return(s||[]).filter(function(de){return de&&Ar(de)==="object"&&"key"in de})},[s]),N=l==="rtl",_=uqe(d),P=E.useState(!1),k=Je(P,2),j=k[0],Y=k[1];E.useEffect(function(){Y(LQ())},[]);var X=Ia(function(){var de;return(de=F[0])===null||de===void 0?void 0:de.key},{value:c,defaultValue:A}),K=Je(X,2),U=K[0],H=K[1],L=E.useState(function(){return F.findIndex(function(de){return de.key===U})}),V=Je(L,2),J=V[0],ee=V[1];E.useEffect(function(){var de=F.findIndex(function(at){return at.key===U});if(de===-1){var Ue;de=Math.max(0,Math.min(J,F.length-1)),H((Ue=F[de])===null||Ue===void 0?void 0:Ue.key)}ee(de)},[F.map(function(de){return de.key}).join("_"),U,J]);var ae=Ia(null,{value:n}),ne=Je(ae,2),fe=ne[0],he=ne[1];E.useEffect(function(){n||(he("rc-tabs-".concat(zZ)),zZ+=1)},[]);function ye(de,Ue){S?.(de,Ue);var at=de!==U;H(de),at&&M?.(de)}var be={id:fe,activeKey:U,animated:_,tabPosition:h,rtl:N,mobile:j},Se,ve=se(se({},be),{},{editable:u,locale:y,moreIcon:C,moreTransitionName:w,tabBarGutter:g,onTabClick:ye,onTabScroll:R,extra:m,style:p,panes:null,getPopupContainer:b,popupClassName:T});return E.createElement(u4.Provider,{value:{tabs:F,prefixCls:i}},E.createElement("div",ge({ref:t,id:n,className:dt(i,"".concat(i,"-").concat(h),(r={},te(r,"".concat(i,"-mobile"),j),te(r,"".concat(i,"-editable"),u),te(r,"".concat(i,"-rtl"),N),r),o)},D),Se,E.createElement(Aqe,ge({},ve,{renderTabBar:x})),E.createElement(XXe,ge({destroyInactiveTabPane:B},be,{animated:_}))))}var hqe=E.forwardRef(fqe),gqe={motionAppear:!1,motionEnter:!0,motionLeave:!0};function pqe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},r;return t===!1?r={inkBar:!1,tabPane:!1}:t===!0?r={inkBar:!0,tabPane:!0}:r=ge({inkBar:!0},Ar(t)==="object"?t:{}),r.tabPane&&(r.tabPaneMotion=ge(ge({},gqe),{motionName:rA(e,"switch")})),r}var vqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function mqe(e){return e.filter(function(t){return t})}function Eqe(e,t){if(e)return e;var r=Vo(t).map(function(n){if(E.isValidElement(n)){var a=n.key,i=n.props,o=i||{},s=o.tab,l=vqe(o,["tab"]),c=ge(ge({key:String(a)},l),{label:s});return c}return null});return mqe(r)}var yqe=function(){return null},Cqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Oi(e){var t=e.type,r=e.className,n=e.size,a=e.onEdit,i=e.hideAdd,o=e.centered,s=e.addIcon,l=e.children,c=e.items,A=e.animated,u=Cqe(e,["type","className","size","onEdit","hideAdd","centered","addIcon","children","items","animated"]),d=u.prefixCls,f=u.moreIcon,h=f===void 0?E.createElement(SY,null):f,g=E.useContext(an),p=g.getPrefixCls,m=g.direction,y=g.getPopupContainer,C=p("tabs",d),w;t==="editable-card"&&(w={onEdit:function(R,b){var T=b.key,D=b.event;a?.(R==="add"?D:T,R)},removeIcon:E.createElement(Go,null),addIcon:s||E.createElement(GNe,null),showAdd:i!==!0});var B=p(),x=Eqe(c,l),M=pqe(C,A);return E.createElement(ds.Consumer,null,function(S){var R=n!==void 0?n:S;return E.createElement(hqe,ge({direction:m,getPopupContainer:y,moreTransitionName:"".concat(B,"-slide-up")},u,{items:x,className:dt(te(te(te(te({},"".concat(C,"-").concat(R),R),"".concat(C,"-card"),["card","editable-card"].includes(t)),"".concat(C,"-editable-card"),t==="editable-card"),"".concat(C,"-centered"),o),r),editable:w,moreIcon:h,prefixCls:C,animated:M}))})}Oi.TabPane=yqe;var wqe={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};function Bqe(e,t,r){var n=r||{},a=n.noTrailing,i=a===void 0?!1:a,o=n.noLeading,s=o===void 0?!1:o,l=n.debounceMode,c=l===void 0?void 0:l,A,u=!1,d=0;function f(){A&&clearTimeout(A)}function h(p){var m=p||{},y=m.upcomingOnly,C=y===void 0?!1:y;f(),u=!C}function g(){for(var p=arguments.length,m=new Array(p),y=0;y<p;y++)m[y]=arguments[y];var C=this,w=Date.now()-d;if(u)return;function B(){d=Date.now(),t.apply(C,m)}function x(){A=void 0}!s&&c&&!A&&B(),f(),c===void 0&&w>e?s?(d=Date.now(),i||(A=setTimeout(c?x:B,e))):B():i!==!0&&(A=setTimeout(c?x:B,c===void 0?e-w:e))}return g.cancel=h,g}function xqe(e,t,r){var n={},a=n.atBegin,i=a===void 0?!1:a;return Bqe(e,t,{debounceMode:i!==!1})}function d6(e,t,r){return Math.max(t,Math.min(e,r))}var ME=function(t){var r=["onTouchStart","onTouchMove","onWheel"];r.includes(t._reactName)||t.preventDefault()},fT=function(t){for(var r=[],n=A1e(t),a=u1e(t),i=n;i<a;i++)t.lazyLoadedList.indexOf(i)<0&&r.push(i);return r},A1e=function(t){return t.currentSlide-Mqe(t)},u1e=function(t){return t.currentSlide+Iqe(t)},Mqe=function(t){return t.centerMode?Math.floor(t.slidesToShow/2)+(parseInt(t.centerPadding)>0?1:0):0},Iqe=function(t){return t.centerMode?Math.floor((t.slidesToShow-1)/2)+1+(parseInt(t.centerPadding)>0?1:0):t.slidesToShow},f6=function(t){return t&&t.offsetWidth||0},dU=function(t){return t&&t.offsetHeight||0},d1e=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n,a,i,o;return n=t.startX-t.curX,a=t.startY-t.curY,i=Math.atan2(a,n),o=Math.round(i*180/Math.PI),o<0&&(o=360-Math.abs(o)),o<=45&&o>=0||o<=360&&o>=315?"left":o>=135&&o<=225?"right":r===!0?o>=35&&o<=135?"up":"down":"vertical"},d4=function(t){var r=!0;return t.infinite||(t.centerMode&&t.currentSlide>=t.slideCount-1||t.slideCount<=t.slidesToShow||t.currentSlide>=t.slideCount-t.slidesToShow)&&(r=!1),r},u8=function(t,r){var n={};return r.forEach(function(a){return n[a]=t[a]}),n},bqe=function(t){var r=le.Children.count(t.children),n=t.listRef,a=Math.ceil(f6(n)),i=t.trackRef&&t.trackRef.node,o=Math.ceil(f6(i)),s;if(t.vertical)s=a;else{var l=t.centerMode&&parseInt(t.centerPadding)*2;typeof t.centerPadding=="string"&&t.centerPadding.slice(-1)==="%"&&(l*=a/100),s=Math.ceil((a-l)/t.slidesToShow)}var c=n&&dU(n.querySelector('[data-index="0"]')),A=c*t.slidesToShow,u=t.currentSlide===void 0?t.initialSlide:t.currentSlide;t.rtl&&t.currentSlide===void 0&&(u=r-1-t.initialSlide);var d=t.lazyLoadedList||[],f=fT(se(se({},t),{},{currentSlide:u,lazyLoadedList:d}));d=d.concat(f);var h={slideCount:r,slideWidth:s,listWidth:a,trackWidth:o,currentSlide:u,slideHeight:c,listHeight:A,lazyLoadedList:d};return t.autoplaying===null&&t.autoplay&&(h.autoplaying="playing"),h},Sqe=function(t){var r=t.waitForAnimate,n=t.animating,a=t.fade,i=t.infinite,o=t.index,s=t.slideCount,l=t.lazyLoad,c=t.currentSlide,A=t.centerMode,u=t.slidesToScroll,d=t.slidesToShow,f=t.useCSS,h=t.lazyLoadedList;if(r&&n)return{};var g=o,p,m,y,C={},w={},B=i?o:d6(o,0,s-1);if(a){if(!i&&(o<0||o>=s))return{};o<0?g=o+s:o>=s&&(g=o-s),l&&h.indexOf(g)<0&&(h=h.concat(g)),C={animating:!0,currentSlide:g,lazyLoadedList:h,targetSlide:g},w={animating:!1,targetSlide:g}}else p=g,g<0?(p=g+s,i?s%u!==0&&(p=s-s%u):p=0):!d4(t)&&g>c?g=p=c:A&&g>=s?(g=i?s:s-1,p=i?0:s-1):g>=s&&(p=g-s,i?s%u!==0&&(p=0):p=s-d),!i&&g+d>=s&&(p=s-d),m=hB(se(se({},t),{},{slideIndex:g})),y=hB(se(se({},t),{},{slideIndex:p})),i||(m===y&&(g=p),m=y),l&&(h=h.concat(fT(se(se({},t),{},{currentSlide:g})))),f?(C={animating:!0,currentSlide:p,trackStyle:f1e(se(se({},t),{},{left:m})),lazyLoadedList:h,targetSlide:B},w={animating:!1,currentSlide:p,trackStyle:fB(se(se({},t),{},{left:y})),swipeLeft:null,targetSlide:B}):C={currentSlide:p,trackStyle:fB(se(se({},t),{},{left:y})),lazyLoadedList:h,targetSlide:B};return{state:C,nextState:w}},Rqe=function(t,r){var n,a,i,o,s,l=t.slidesToScroll,c=t.slidesToShow,A=t.slideCount,u=t.currentSlide,d=t.targetSlide,f=t.lazyLoad,h=t.infinite;if(o=A%l!==0,n=o?0:(A-u)%l,r.message==="previous")i=n===0?l:c-n,s=u-i,f&&!h&&(a=u-i,s=a===-1?A-1:a),h||(s=d-l);else if(r.message==="next")i=n===0?l:n,s=u+i,f&&!h&&(s=(u+l)%A+n),h||(s=d+l);else if(r.message==="dots")s=r.index*r.slidesToScroll;else if(r.message==="children"){if(s=r.index,h){var g=kqe(se(se({},t),{},{targetSlide:s}));s>r.currentSlide&&g==="left"?s=s-A:s<r.currentSlide&&g==="right"&&(s=s+A)}}else r.message==="index"&&(s=Number(r.index));return s},Tqe=function(t,r,n){return t.target.tagName.match("TEXTAREA|INPUT|SELECT")||!r?"":t.keyCode===37?n?"next":"previous":t.keyCode===39?n?"previous":"next":""},Qqe=function(t,r,n){return t.target.tagName==="IMG"&&ME(t),!r||!n&&t.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:t.touches?t.touches[0].pageX:t.clientX,startY:t.touches?t.touches[0].pageY:t.clientY,curX:t.touches?t.touches[0].pageX:t.clientX,curY:t.touches?t.touches[0].pageY:t.clientY}}},Dqe=function(t,r){var n=r.scrolling,a=r.animating,i=r.vertical,o=r.swipeToSlide,s=r.verticalSwiping,l=r.rtl,c=r.currentSlide,A=r.edgeFriction,u=r.edgeDragged,d=r.onEdge,f=r.swiped,h=r.swiping,g=r.slideCount,p=r.slidesToScroll,m=r.infinite,y=r.touchObject,C=r.swipeEvent,w=r.listHeight,B=r.listWidth;if(!n){if(a)return ME(t);i&&o&&s&&ME(t);var x,M={},S=hB(r);y.curX=t.touches?t.touches[0].pageX:t.clientX,y.curY=t.touches?t.touches[0].pageY:t.clientY,y.swipeLength=Math.round(Math.sqrt(Math.pow(y.curX-y.startX,2)));var R=Math.round(Math.sqrt(Math.pow(y.curY-y.startY,2)));if(!s&&!h&&R>10)return{scrolling:!0};s&&(y.swipeLength=R);var b=(l?-1:1)*(y.curX>y.startX?1:-1);s&&(b=y.curY>y.startY?1:-1);var T=Math.ceil(g/p),D=d1e(r.touchObject,s),F=y.swipeLength;return m||(c===0&&(D==="right"||D==="down")||c+1>=T&&(D==="left"||D==="up")||!d4(r)&&(D==="left"||D==="up"))&&(F=y.swipeLength*A,u===!1&&d&&(d(D),M.edgeDragged=!0)),!f&&C&&(C(D),M.swiped=!0),i?x=S+F*(w/B)*b:l?x=S-F*b:x=S+F*b,s&&(x=S+F*b),M=se(se({},M),{},{touchObject:y,swipeLeft:x,trackStyle:fB(se(se({},r),{},{left:x}))}),Math.abs(y.curX-y.startX)<Math.abs(y.curY-y.startY)*.8||y.swipeLength>10&&(M.swiping=!0,ME(t)),M}},Fqe=function(t,r){var n=r.dragging,a=r.swipe,i=r.touchObject,o=r.listWidth,s=r.touchThreshold,l=r.verticalSwiping,c=r.listHeight,A=r.swipeToSlide,u=r.scrolling,d=r.onSwipe,f=r.targetSlide,h=r.currentSlide,g=r.infinite;if(!n)return a&&ME(t),{};var p=l?c/s:o/s,m=d1e(i,l),y={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u||!i.swipeLength)return y;if(i.swipeLength>p){ME(t),d&&d(m);var C,w,B=g?h:f;switch(m){case"left":case"up":w=B+YZ(r),C=A?LZ(r,w):w,y.currentDirection=0;break;case"right":case"down":w=B-YZ(r),C=A?LZ(r,w):w,y.currentDirection=1;break;default:C=B}y.triggerSlideHandler=C}else{var x=hB(r);y.trackStyle=f1e(se(se({},r),{},{left:x}))}return y},Nqe=function(t){for(var r=t.infinite?t.slideCount*2:t.slideCount,n=t.infinite?t.slidesToShow*-1:0,a=t.infinite?t.slidesToShow*-1:0,i=[];n<r;)i.push(n),n=a+t.slidesToScroll,a+=Math.min(t.slidesToScroll,t.slidesToShow);return i},LZ=function(t,r){var n=Nqe(t),a=0;if(r>n[n.length-1])r=n[n.length-1];else for(var i in n){if(r<n[i]){r=a;break}a=n[i]}return r},YZ=function(t){var r=t.centerMode?t.slideWidth*Math.floor(t.slidesToShow/2):0;if(t.swipeToSlide){var n,a=t.listRef,i=a.querySelectorAll&&a.querySelectorAll(".slick-slide")||[];if(Array.from(i).every(function(l){if(t.vertical){if(l.offsetTop+dU(l)/2>t.swipeLeft*-1)return n=l,!1}else if(l.offsetLeft-r+f6(l)/2>t.swipeLeft*-1)return n=l,!1;return!0}),!n)return 0;var o=t.rtl===!0?t.slideCount-t.currentSlide:t.currentSlide,s=Math.abs(n.dataset.index-o)||1;return s}else return t.slidesToScroll},fU=function(t,r){return r.reduce(function(n,a){return n&&t.hasOwnProperty(a)},!0)?null:console.error("Keys Missing:",t)},fB=function(t){fU(t,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var r,n,a=t.slideCount+2*t.slidesToShow;t.vertical?n=a*t.slideHeight:r=_qe(t)*t.slideWidth;var i={opacity:1,transition:"",WebkitTransition:""};if(t.useTransform){var o=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",s=t.vertical?"translate3d(0px, "+t.left+"px, 0px)":"translate3d("+t.left+"px, 0px, 0px)",l=t.vertical?"translateY("+t.left+"px)":"translateX("+t.left+"px)";i=se(se({},i),{},{WebkitTransform:o,transform:s,msTransform:l})}else t.vertical?i.top=t.left:i.left=t.left;return t.fade&&(i={opacity:1}),r&&(i.width=r),n&&(i.height=n),window&&!window.addEventListener&&window.attachEvent&&(t.vertical?i.marginTop=t.left+"px":i.marginLeft=t.left+"px"),i},f1e=function(t){fU(t,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var r=fB(t);return t.useTransform?(r.WebkitTransition="-webkit-transform "+t.speed+"ms "+t.cssEase,r.transition="transform "+t.speed+"ms "+t.cssEase):t.vertical?r.transition="top "+t.speed+"ms "+t.cssEase:r.transition="left "+t.speed+"ms "+t.cssEase,r},hB=function(t){if(t.unslick)return 0;fU(t,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var r=t.slideIndex,n=t.trackRef,a=t.infinite,i=t.centerMode,o=t.slideCount,s=t.slidesToShow,l=t.slidesToScroll,c=t.slideWidth,A=t.listWidth,u=t.variableWidth,d=t.slideHeight,f=t.fade,h=t.vertical,g=0,p,m,y=0;if(f||t.slideCount===1)return 0;var C=0;if(a?(C=-_f(t),o%l!==0&&r+l>o&&(C=-(r>o?s-(r-o):o%l)),i&&(C+=parseInt(s/2))):(o%l!==0&&r+l>o&&(C=s-o%l),i&&(C=parseInt(s/2))),g=C*c,y=C*d,h?p=r*d*-1+y:p=r*c*-1+g,u===!0){var w,B=n&&n.node;if(w=r+_f(t),m=B&&B.childNodes[w],p=m?m.offsetLeft*-1:0,i===!0){w=a?r+_f(t):r,m=B&&B.children[w],p=0;for(var x=0;x<w;x++)p-=B&&B.children[x]&&B.children[x].offsetWidth;p-=parseInt(t.centerPadding),p+=m&&(A-m.offsetWidth)/2}}return p},_f=function(t){return t.unslick||!t.infinite?0:t.variableWidth?t.slideCount:t.slidesToShow+(t.centerMode?1:0)},ZS=function(t){return t.unslick||!t.infinite?0:t.slideCount},_qe=function(t){return t.slideCount===1?1:_f(t)+t.slideCount+ZS(t)},kqe=function(t){return t.targetSlide>t.currentSlide?t.targetSlide>t.currentSlide+Pqe(t)?"left":"right":t.targetSlide<t.currentSlide-Oqe(t)?"right":"left"},Pqe=function(t){var r=t.slidesToShow,n=t.centerMode,a=t.rtl,i=t.centerPadding;if(n){var o=(r-1)/2+1;return parseInt(i)>0&&(o+=1),a&&r%2===0&&(o+=1),o}return a?0:r-1},Oqe=function(t){var r=t.slidesToShow,n=t.centerMode,a=t.rtl,i=t.centerPadding;if(n){var o=(r-1)/2+1;return parseInt(i)>0&&(o+=1),!a&&r%2===0&&(o+=1),o}return a?r-1:0},UZ=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)},d8=function(t){var r,n,a,i,o;t.rtl?o=t.slideCount-1-t.index:o=t.index,a=o<0||o>=t.slideCount,t.centerMode?(i=Math.floor(t.slidesToShow/2),n=(o-t.currentSlide)%t.slideCount===0,o>t.currentSlide-i-1&&o<=t.currentSlide+i&&(r=!0)):r=t.currentSlide<=o&&o<t.currentSlide+t.slidesToShow;var s;t.targetSlide<0?s=t.targetSlide+t.slideCount:t.targetSlide>=t.slideCount?s=t.targetSlide-t.slideCount:s=t.targetSlide;var l=o===s;return{"slick-slide":!0,"slick-active":r,"slick-center":n,"slick-cloned":a,"slick-current":l}},jqe=function(t){var r={};return(t.variableWidth===void 0||t.variableWidth===!1)&&(r.width=t.slideWidth),t.fade&&(r.position="relative",t.vertical&&t.slideHeight?r.top=-t.index*parseInt(t.slideHeight):r.left=-t.index*parseInt(t.slideWidth),r.opacity=t.currentSlide===t.index?1:0,t.useCSS&&(r.transition="opacity "+t.speed+"ms "+t.cssEase+", visibility "+t.speed+"ms "+t.cssEase)),r},f8=function(t,r){return t.key+"-"+r},zqe=function(t){var r,n=[],a=[],i=[],o=le.Children.count(t.children),s=A1e(t),l=u1e(t);return le.Children.forEach(t.children,function(c,A){var u,d={message:"children",index:A,slidesToScroll:t.slidesToScroll,currentSlide:t.currentSlide};!t.lazyLoad||t.lazyLoad&&t.lazyLoadedList.indexOf(A)>=0?u=c:u=le.createElement("div",null);var f=jqe(se(se({},t),{},{index:A})),h=u.props.className||"",g=d8(se(se({},t),{},{index:A}));if(n.push(le.cloneElement(u,{key:"original"+f8(u,A),"data-index":A,className:dt(g,h),tabIndex:"-1","aria-hidden":!g["slick-active"],style:se(se({outline:"none"},u.props.style||{}),f),onClick:function(y){u.props&&u.props.onClick&&u.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(d)}})),t.infinite&&t.fade===!1){var p=o-A;p<=_f(t)&&o!==t.slidesToShow&&(r=-p,r>=s&&(u=c),g=d8(se(se({},t),{},{index:r})),a.push(le.cloneElement(u,{key:"precloned"+f8(u,r),"data-index":r,tabIndex:"-1",className:dt(g,h),"aria-hidden":!g["slick-active"],style:se(se({},u.props.style||{}),f),onClick:function(y){u.props&&u.props.onClick&&u.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(d)}}))),o!==t.slidesToShow&&(r=o+A,r<l&&(u=c),g=d8(se(se({},t),{},{index:r})),i.push(le.cloneElement(u,{key:"postcloned"+f8(u,r),"data-index":r,tabIndex:"-1",className:dt(g,h),"aria-hidden":!g["slick-active"],style:se(se({},u.props.style||{}),f),onClick:function(y){u.props&&u.props.onClick&&u.props.onClick(y),t.focusOnSelect&&t.focusOnSelect(d)}})))}}),t.rtl?a.concat(n,i).reverse():a.concat(n,i)},Lqe=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),te(Bt(n),"node",null),te(Bt(n),"handleRef",function(s){n.node=s}),n}return Jn(r,[{key:"render",value:function(){var a=zqe(this.props),i=this.props,o=i.onMouseEnter,s=i.onMouseOver,l=i.onMouseLeave,c={onMouseEnter:o,onMouseOver:s,onMouseLeave:l};return le.createElement("div",ge({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},c),a)}}]),r})(le.PureComponent),Yqe=function(t){var r;return t.infinite?r=Math.ceil(t.slideCount/t.slidesToScroll):r=Math.ceil((t.slideCount-t.slidesToShow)/t.slidesToScroll)+1,r},Uqe=(function(e){fa(r,e);var t=pi(r);function r(){return Vn(this,r),t.apply(this,arguments)}return Jn(r,[{key:"clickHandler",value:function(a,i){i.preventDefault(),this.props.clickHandler(a)}},{key:"render",value:function(){for(var a=this.props,i=a.onMouseEnter,o=a.onMouseOver,s=a.onMouseLeave,l=a.infinite,c=a.slidesToScroll,A=a.slidesToShow,u=a.slideCount,d=a.currentSlide,f=Yqe({slideCount:u,slidesToScroll:c,slidesToShow:A,infinite:l}),h={onMouseEnter:i,onMouseOver:o,onMouseLeave:s},g=[],p=0;p<f;p++){var m=(p+1)*c-1,y=l?m:d6(m,0,u-1),C=y-(c-1),w=l?C:d6(C,0,u-1),B=dt({"slick-active":l?d>=w&&d<=y:d===w}),x={message:"dots",index:p,slidesToScroll:c,currentSlide:d},M=this.clickHandler.bind(this,x);g=g.concat(le.createElement("li",{key:p,className:B},le.cloneElement(this.props.customPaging(p),{onClick:M})))}return le.cloneElement(this.props.appendDots(g),se({className:this.props.dotsClass},h))}}]),r})(le.PureComponent),Hqe=(function(e){fa(r,e);var t=pi(r);function r(){return Vn(this,r),t.apply(this,arguments)}return Jn(r,[{key:"clickHandler",value:function(a,i){i&&i.preventDefault(),this.props.clickHandler(a,i)}},{key:"render",value:function(){var a={"slick-arrow":!0,"slick-prev":!0},i=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(a["slick-disabled"]=!0,i=null);var o={key:"0","data-role":"none",className:dt(a),style:{display:"block"},onClick:i},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.prevArrow?l=le.cloneElement(this.props.prevArrow,se(se({},o),s)):l=le.createElement("button",ge({key:"0",type:"button"},o)," ","Previous"),l}}]),r})(le.PureComponent),Gqe=(function(e){fa(r,e);var t=pi(r);function r(){return Vn(this,r),t.apply(this,arguments)}return Jn(r,[{key:"clickHandler",value:function(a,i){i&&i.preventDefault(),this.props.clickHandler(a,i)}},{key:"render",value:function(){var a={"slick-arrow":!0,"slick-next":!0},i=this.clickHandler.bind(this,{message:"next"});d4(this.props)||(a["slick-disabled"]=!0,i=null);var o={key:"1","data-role":"none",className:dt(a),style:{display:"block"},onClick:i},s={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},l;return this.props.nextArrow?l=le.cloneElement(this.props.nextArrow,se(se({},o),s)):l=le.createElement("button",ge({key:"1",type:"button"},o)," ","Next"),l}}]),r})(le.PureComponent),Kqe=["animating"],Vqe=(function(e){fa(r,e);var t=pi(r);function r(n){var a;Vn(this,r),a=t.call(this,n),te(Bt(a),"listRefHandler",function(o){return a.list=o}),te(Bt(a),"trackRefHandler",function(o){return a.track=o}),te(Bt(a),"adaptHeight",function(){if(a.props.adaptiveHeight&&a.list){var o=a.list.querySelector('[data-index="'.concat(a.state.currentSlide,'"]'));a.list.style.height=dU(o)+"px"}}),te(Bt(a),"componentDidMount",function(){if(a.props.onInit&&a.props.onInit(),a.props.lazyLoad){var o=fT(se(se({},a.props),a.state));o.length>0&&(a.setState(function(l){return{lazyLoadedList:l.lazyLoadedList.concat(o)}}),a.props.onLazyLoad&&a.props.onLazyLoad(o))}var s=se({listRef:a.list,trackRef:a.track},a.props);a.updateState(s,!0,function(){a.adaptHeight(),a.props.autoplay&&a.autoPlay("playing")}),a.props.lazyLoad==="progressive"&&(a.lazyLoadTimer=setInterval(a.progressiveLazyLoad,1e3)),a.ro=new o7(function(){a.state.animating?(a.onWindowResized(!1),a.callbackTimers.push(setTimeout(function(){return a.onWindowResized()},a.props.speed))):a.onWindowResized()}),a.ro.observe(a.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(l){l.onfocus=a.props.pauseOnFocus?a.onSlideFocus:null,l.onblur=a.props.pauseOnFocus?a.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",a.onWindowResized):window.attachEvent("onresize",a.onWindowResized)}),te(Bt(a),"componentWillUnmount",function(){a.animationEndCallback&&clearTimeout(a.animationEndCallback),a.lazyLoadTimer&&clearInterval(a.lazyLoadTimer),a.callbackTimers.length&&(a.callbackTimers.forEach(function(o){return clearTimeout(o)}),a.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",a.onWindowResized):window.detachEvent("onresize",a.onWindowResized),a.autoplayTimer&&clearInterval(a.autoplayTimer),a.ro.disconnect()}),te(Bt(a),"componentDidUpdate",function(o){if(a.checkImagesLoad(),a.props.onReInit&&a.props.onReInit(),a.props.lazyLoad){var s=fT(se(se({},a.props),a.state));s.length>0&&(a.setState(function(A){return{lazyLoadedList:A.lazyLoadedList.concat(s)}}),a.props.onLazyLoad&&a.props.onLazyLoad(s))}a.adaptHeight();var l=se(se({listRef:a.list,trackRef:a.track},a.props),a.state),c=a.didPropsChange(o);c&&a.updateState(l,c,function(){a.state.currentSlide>=le.Children.count(a.props.children)&&a.changeSlide({message:"index",index:le.Children.count(a.props.children)-a.props.slidesToShow,currentSlide:a.state.currentSlide}),(o.autoplay!==a.props.autoplay||o.autoplaySpeed!==a.props.autoplaySpeed)&&(!o.autoplay&&a.props.autoplay?a.autoPlay("playing"):a.props.autoplay?a.autoPlay("update"):a.pause("paused"))})}),te(Bt(a),"onWindowResized",function(o){a.debouncedResize&&a.debouncedResize.cancel(),a.debouncedResize=xqe(50,function(){return a.resizeWindow(o)}),a.debouncedResize()}),te(Bt(a),"resizeWindow",function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,s=!!(a.track&&a.track.node);if(s){var l=se(se({listRef:a.list,trackRef:a.track},a.props),a.state);a.updateState(l,o,function(){a.props.autoplay?a.autoPlay("update"):a.pause("paused")}),a.setState({animating:!1}),clearTimeout(a.animationEndCallback),delete a.animationEndCallback}}),te(Bt(a),"updateState",function(o,s,l){var c=bqe(o);o=se(se(se({},o),c),{},{slideIndex:c.currentSlide});var A=hB(o);o=se(se({},o),{},{left:A});var u=fB(o);(s||le.Children.count(a.props.children)!==le.Children.count(o.children))&&(c.trackStyle=u),a.setState(c,l)}),te(Bt(a),"ssrInit",function(){if(a.props.variableWidth){var o=0,s=0,l=[],c=_f(se(se(se({},a.props),a.state),{},{slideCount:a.props.children.length})),A=ZS(se(se(se({},a.props),a.state),{},{slideCount:a.props.children.length}));a.props.children.forEach(function(M){l.push(M.props.style.width),o+=M.props.style.width});for(var u=0;u<c;u++)s+=l[l.length-1-u],o+=l[l.length-1-u];for(var d=0;d<A;d++)o+=l[d];for(var f=0;f<a.state.currentSlide;f++)s+=l[f];var h={width:o+"px",left:-s+"px"};if(a.props.centerMode){var g="".concat(l[a.state.currentSlide],"px");h.left="calc(".concat(h.left," + (100% - ").concat(g,") / 2 ) ")}return{trackStyle:h}}var p=le.Children.count(a.props.children),m=se(se(se({},a.props),a.state),{},{slideCount:p}),y=_f(m)+ZS(m)+p,C=100/a.props.slidesToShow*y,w=100/y,B=-w*(_f(m)+a.state.currentSlide)*C/100;a.props.centerMode&&(B+=(100-w*C/100)/2);var x={width:C+"%",left:B+"%"};return{slideWidth:w+"%",trackStyle:x}}),te(Bt(a),"checkImagesLoad",function(){var o=a.list&&a.list.querySelectorAll&&a.list.querySelectorAll(".slick-slide img")||[],s=o.length,l=0;Array.prototype.forEach.call(o,function(c){var A=function(){return++l&&l>=s&&a.onWindowResized()};if(!c.onclick)c.onclick=function(){return c.parentNode.focus()};else{var u=c.onclick;c.onclick=function(d){u(d),c.parentNode.focus()}}c.onload||(a.props.lazyLoad?c.onload=function(){a.adaptHeight(),a.callbackTimers.push(setTimeout(a.onWindowResized,a.props.speed))}:(c.onload=A,c.onerror=function(){A(),a.props.onLazyLoadError&&a.props.onLazyLoadError()}))})}),te(Bt(a),"progressiveLazyLoad",function(){for(var o=[],s=se(se({},a.props),a.state),l=a.state.currentSlide;l<a.state.slideCount+ZS(s);l++)if(a.state.lazyLoadedList.indexOf(l)<0){o.push(l);break}for(var c=a.state.currentSlide-1;c>=-_f(s);c--)if(a.state.lazyLoadedList.indexOf(c)<0){o.push(c);break}o.length>0?(a.setState(function(A){return{lazyLoadedList:A.lazyLoadedList.concat(o)}}),a.props.onLazyLoad&&a.props.onLazyLoad(o)):a.lazyLoadTimer&&(clearInterval(a.lazyLoadTimer),delete a.lazyLoadTimer)}),te(Bt(a),"slideHandler",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=a.props,c=l.asNavFor,A=l.beforeChange,u=l.onLazyLoad,d=l.speed,f=l.afterChange,h=a.state.currentSlide,g=Sqe(se(se(se({index:o},a.props),a.state),{},{trackRef:a.track,useCSS:a.props.useCSS&&!s})),p=g.state,m=g.nextState;if(p){A&&A(h,p.currentSlide);var y=p.lazyLoadedList.filter(function(C){return a.state.lazyLoadedList.indexOf(C)<0});u&&y.length>0&&u(y),!a.props.waitForAnimate&&a.animationEndCallback&&(clearTimeout(a.animationEndCallback),f&&f(h),delete a.animationEndCallback),a.setState(p,function(){c&&a.asNavForIndex!==o&&(a.asNavForIndex=o,c.innerSlider.slideHandler(o)),m&&(a.animationEndCallback=setTimeout(function(){var C=m.animating,w=An(m,Kqe);a.setState(w,function(){a.callbackTimers.push(setTimeout(function(){return a.setState({animating:C})},10)),f&&f(p.currentSlide),delete a.animationEndCallback})},d))})}}),te(Bt(a),"changeSlide",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,l=se(se({},a.props),a.state),c=Rqe(l,o);if(!(c!==0&&!c)&&(s===!0?a.slideHandler(c,s):a.slideHandler(c),a.props.autoplay&&a.autoPlay("update"),a.props.focusOnSelect)){var A=a.list.querySelectorAll(".slick-current");A[0]&&A[0].focus()}}),te(Bt(a),"clickHandler",function(o){a.clickable===!1&&(o.stopPropagation(),o.preventDefault()),a.clickable=!0}),te(Bt(a),"keyHandler",function(o){var s=Tqe(o,a.props.accessibility,a.props.rtl);s!==""&&a.changeSlide({message:s})}),te(Bt(a),"selectHandler",function(o){a.changeSlide(o)}),te(Bt(a),"disableBodyScroll",function(){var o=function(l){l=l||window.event,l.preventDefault&&l.preventDefault(),l.returnValue=!1};window.ontouchmove=o}),te(Bt(a),"enableBodyScroll",function(){window.ontouchmove=null}),te(Bt(a),"swipeStart",function(o){a.props.verticalSwiping&&a.disableBodyScroll();var s=Qqe(o,a.props.swipe,a.props.draggable);s!==""&&a.setState(s)}),te(Bt(a),"swipeMove",function(o){var s=Dqe(o,se(se(se({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));s&&(s.swiping&&(a.clickable=!1),a.setState(s))}),te(Bt(a),"swipeEnd",function(o){var s=Fqe(o,se(se(se({},a.props),a.state),{},{trackRef:a.track,listRef:a.list,slideIndex:a.state.currentSlide}));if(s){var l=s.triggerSlideHandler;delete s.triggerSlideHandler,a.setState(s),l!==void 0&&(a.slideHandler(l),a.props.verticalSwiping&&a.enableBodyScroll())}}),te(Bt(a),"touchEnd",function(o){a.swipeEnd(o),a.clickable=!0}),te(Bt(a),"slickPrev",function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"previous"})},0))}),te(Bt(a),"slickNext",function(){a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"next"})},0))}),te(Bt(a),"slickGoTo",function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(o=Number(o),isNaN(o))return"";a.callbackTimers.push(setTimeout(function(){return a.changeSlide({message:"index",index:o,currentSlide:a.state.currentSlide},s)},0))}),te(Bt(a),"play",function(){var o;if(a.props.rtl)o=a.state.currentSlide-a.props.slidesToScroll;else if(d4(se(se({},a.props),a.state)))o=a.state.currentSlide+a.props.slidesToScroll;else return!1;a.slideHandler(o)}),te(Bt(a),"autoPlay",function(o){a.autoplayTimer&&clearInterval(a.autoplayTimer);var s=a.state.autoplaying;if(o==="update"){if(s==="hovered"||s==="focused"||s==="paused")return}else if(o==="leave"){if(s==="paused"||s==="focused")return}else if(o==="blur"&&(s==="paused"||s==="hovered"))return;a.autoplayTimer=setInterval(a.play,a.props.autoplaySpeed+50),a.setState({autoplaying:"playing"})}),te(Bt(a),"pause",function(o){a.autoplayTimer&&(clearInterval(a.autoplayTimer),a.autoplayTimer=null);var s=a.state.autoplaying;o==="paused"?a.setState({autoplaying:"paused"}):o==="focused"?(s==="hovered"||s==="playing")&&a.setState({autoplaying:"focused"}):s==="playing"&&a.setState({autoplaying:"hovered"})}),te(Bt(a),"onDotsOver",function(){return a.props.autoplay&&a.pause("hovered")}),te(Bt(a),"onDotsLeave",function(){return a.props.autoplay&&a.state.autoplaying==="hovered"&&a.autoPlay("leave")}),te(Bt(a),"onTrackOver",function(){return a.props.autoplay&&a.pause("hovered")}),te(Bt(a),"onTrackLeave",function(){return a.props.autoplay&&a.state.autoplaying==="hovered"&&a.autoPlay("leave")}),te(Bt(a),"onSlideFocus",function(){return a.props.autoplay&&a.pause("focused")}),te(Bt(a),"onSlideBlur",function(){return a.props.autoplay&&a.state.autoplaying==="focused"&&a.autoPlay("blur")}),te(Bt(a),"render",function(){var o=dt("slick-slider",a.props.className,{"slick-vertical":a.props.vertical,"slick-initialized":!0}),s=se(se({},a.props),a.state),l=u8(s,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),c=a.props.pauseOnHover;l=se(se({},l),{},{onMouseEnter:c?a.onTrackOver:null,onMouseLeave:c?a.onTrackLeave:null,onMouseOver:c?a.onTrackOver:null,focusOnSelect:a.props.focusOnSelect&&a.clickable?a.selectHandler:null});var A;if(a.props.dots===!0&&a.state.slideCount>=a.props.slidesToShow){var u=u8(s,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),d=a.props.pauseOnDotsHover;u=se(se({},u),{},{clickHandler:a.changeSlide,onMouseEnter:d?a.onDotsLeave:null,onMouseOver:d?a.onDotsOver:null,onMouseLeave:d?a.onDotsLeave:null}),A=le.createElement(Uqe,u)}var f,h,g=u8(s,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);g.clickHandler=a.changeSlide,a.props.arrows&&(f=le.createElement(Hqe,g),h=le.createElement(Gqe,g));var p=null;a.props.vertical&&(p={height:a.state.listHeight});var m=null;a.props.vertical===!1?a.props.centerMode===!0&&(m={padding:"0px "+a.props.centerPadding}):a.props.centerMode===!0&&(m={padding:a.props.centerPadding+" 0px"});var y=se(se({},p),m),C=a.props.touchMove,w={className:"slick-list",style:y,onClick:a.clickHandler,onMouseDown:C?a.swipeStart:null,onMouseMove:a.state.dragging&&C?a.swipeMove:null,onMouseUp:C?a.swipeEnd:null,onMouseLeave:a.state.dragging&&C?a.swipeEnd:null,onTouchStart:C?a.swipeStart:null,onTouchMove:a.state.dragging&&C?a.swipeMove:null,onTouchEnd:C?a.touchEnd:null,onTouchCancel:a.state.dragging&&C?a.swipeEnd:null,onKeyDown:a.props.accessibility?a.keyHandler:null},B={className:o,dir:"ltr",style:a.props.style};return a.props.unslick&&(w={className:"slick-list"},B={className:o,style:a.props.style}),le.createElement("div",B,a.props.unslick?"":f,le.createElement("div",ge({ref:a.listRefHandler},w),le.createElement(Lqe,ge({ref:a.trackRefHandler},l),a.props.children)),a.props.unslick?"":h,a.props.unslick?"":A)}),a.list=null,a.track=null,a.state=se(se({},wqe),{},{currentSlide:a.props.initialSlide,slideCount:le.Children.count(a.props.children)}),a.callbackTimers=[],a.clickable=!0,a.debouncedResize=null;var i=a.ssrInit();return a.state=se(se({},a.state),i),a}return Jn(r,[{key:"didPropsChange",value:function(a){for(var i=!1,o=0,s=Object.keys(this.props);o<s.length;o++){var l=s[o];if(!a.hasOwnProperty(l)){i=!0;break}if(!(Ar(a[l])==="object"||typeof a[l]=="function")&&a[l]!==this.props[l]){i=!0;break}}return i||le.Children.count(this.props.children)!==le.Children.count(a.children)}}]),r})(le.Component),h8,HZ;function Jqe(){if(HZ)return h8;HZ=1;var e=function(t){return t.replace(/[A-Z]/g,function(r){return"-"+r.toLowerCase()}).toLowerCase()};return h8=e,h8}var g8,GZ;function Wqe(){if(GZ)return g8;GZ=1;var e=Jqe(),t=function(a){var i=/[height|width]$/;return i.test(a)},r=function(a){var i="",o=Object.keys(a);return o.forEach(function(s,l){var c=a[s];s=e(s),t(s)&&typeof c=="number"&&(c=c+"px"),c===!0?i+=s:c===!1?i+="not "+s:i+="("+s+": "+c+")",l<o.length-1&&(i+=" and ")}),i},n=function(a){var i="";return typeof a=="string"?a:a instanceof Array?(a.forEach(function(o,s){i+=r(o),s<a.length-1&&(i+=", ")}),i):r(a)};return g8=n,g8}var Xqe=Wqe();const p8=gn(Xqe);var KZ={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(t){return le.createElement("ul",{style:{display:"block"}},t)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(t){return le.createElement("button",null,t+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0},qqe=(function(e){fa(r,e);var t=pi(r);function r(n){var a;return Vn(this,r),a=t.call(this,n),te(Bt(a),"innerSliderRefHandler",function(i){return a.innerSlider=i}),te(Bt(a),"slickPrev",function(){return a.innerSlider.slickPrev()}),te(Bt(a),"slickNext",function(){return a.innerSlider.slickNext()}),te(Bt(a),"slickGoTo",function(i){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return a.innerSlider.slickGoTo(i,o)}),te(Bt(a),"slickPause",function(){return a.innerSlider.pause("paused")}),te(Bt(a),"slickPlay",function(){return a.innerSlider.autoPlay("play")}),a.state={breakpoint:null},a._responsiveMediaHandlers=[],a}return Jn(r,[{key:"media",value:function(a,i){var o=window.matchMedia(a),s=function(c){var A=c.matches;A&&i()};o.addListener(s),s(o),this._responsiveMediaHandlers.push({mql:o,query:a,listener:s})}},{key:"componentDidMount",value:function(){var a=this;if(this.props.responsive){var i=this.props.responsive.map(function(s){return s.breakpoint});i.sort(function(s,l){return s-l}),i.forEach(function(s,l){var c;l===0?c=p8({minWidth:0,maxWidth:s}):c=p8({minWidth:i[l-1]+1,maxWidth:s}),UZ()&&a.media(c,function(){a.setState({breakpoint:s})})});var o=p8({minWidth:i.slice(-1)[0]});UZ()&&this.media(o,function(){a.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(a){a.mql.removeListener(a.listener)})}},{key:"render",value:function(){var a=this,i,o;this.state.breakpoint?(o=this.props.responsive.filter(function(p){return p.breakpoint===a.state.breakpoint}),i=o[0].settings==="unslick"?"unslick":se(se(se({},KZ),this.props),o[0].settings)):i=se(se({},KZ),this.props),i.centerMode&&(i.slidesToScroll>1,i.slidesToScroll=1),i.fade&&(i.slidesToShow>1,i.slidesToScroll>1,i.slidesToShow=1,i.slidesToScroll=1);var s=le.Children.toArray(this.props.children);s=s.filter(function(p){return typeof p=="string"?!!p.trim():!!p}),i.variableWidth&&(i.rows>1||i.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),i.variableWidth=!1);for(var l=[],c=null,A=0;A<s.length;A+=i.rows*i.slidesPerRow){for(var u=[],d=A;d<A+i.rows*i.slidesPerRow;d+=i.slidesPerRow){for(var f=[],h=d;h<d+i.slidesPerRow&&(i.variableWidth&&s[h].props.style&&(c=s[h].props.style.width),!(h>=s.length));h+=1)f.push(le.cloneElement(s[h],{key:100*A+10*d+h,tabIndex:-1,style:{width:"".concat(100/i.slidesPerRow,"%"),display:"inline-block"}}));u.push(le.createElement("div",{key:10*A+d},f))}i.variableWidth?l.push(le.createElement("div",{key:A,style:{width:c}},u)):l.push(le.createElement("div",{key:A},u))}if(i==="unslick"){var g="regular slider "+(this.props.className||"");return le.createElement("div",{className:g},s)}else l.length<=i.slidesToShow&&(i.unslick=!0);return le.createElement(Vqe,ge({style:this.props.style,ref:this.innerSliderRefHandler},i),l)}}]),r})(le.Component),Zqe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},$qe=E.forwardRef(function(e,t){var r=e.dots,n=r===void 0?!0:r,a=e.arrows,i=a===void 0?!1:a,o=e.draggable,s=o===void 0?!1:o,l=e.dotPosition,c=l===void 0?"bottom":l,A=e.vertical,u=A===void 0?c==="left"||c==="right":A,d=Zqe(e,["dots","arrows","draggable","dotPosition","vertical"]),f=E.useContext(an),h=f.getPrefixCls,g=f.direction,p=E.useRef(),m=function(b){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;p.current.slickGoTo(b,T)};E.useImperativeHandle(t,function(){return{goTo:m,autoPlay:p.current.innerSlider.autoPlay,innerSlider:p.current.innerSlider,prev:p.current.slickPrev,next:p.current.slickNext}},[p.current]);var y=E.useRef(E.Children.count(d.children));E.useEffect(function(){y.current!==E.Children.count(d.children)&&(m(d.initialSlide||0,!1),y.current=E.Children.count(d.children))},[d.children]);var C=ge({vertical:u},d);C.effect==="fade"&&(C.fade=!0);var w=h("carousel",C.prefixCls),B="slick-dots",x=!!n,M=dt(B,"".concat(B,"-").concat(c),typeof n=="boolean"?!1:n?.className),S=dt(w,te(te({},"".concat(w,"-rtl"),g==="rtl"),"".concat(w,"-vertical"),c==="left"||c==="right"));return E.createElement("div",{className:S},E.createElement(qqe,ge({ref:p},C,{dots:x,dotsClass:M,arrows:i,draggable:s})))});function cc(e,t){return e[t]}function h1e(e,t){var r=new Set;return e.forEach(function(n){t.has(n)||r.add(n)}),r}function eZe(e){var t=e||{},r=t.disabled,n=t.disableCheckbox,a=t.checkable;return!!(r||n)||a===!1}function tZe(e,t,r,n){for(var a=new Set(e),i=new Set,o=0;o<=r;o+=1){var s=t.get(o)||new Set;s.forEach(function(u){var d=u.key,f=u.node,h=u.children,g=h===void 0?[]:h;a.has(d)&&!n(f)&&g.filter(function(p){return!n(p.node)}).forEach(function(p){a.add(p.key)})})}for(var l=new Set,c=r;c>=0;c-=1){var A=t.get(c)||new Set;A.forEach(function(u){var d=u.parent,f=u.node;if(!(n(f)||!u.parent||l.has(u.parent.key))){if(n(u.parent.node)){l.add(d.key);return}var h=!0,g=!1;(d.children||[]).filter(function(p){return!n(p.node)}).forEach(function(p){var m=p.key,y=a.has(m);h&&!y&&(h=!1),!g&&(y||i.has(m))&&(g=!0)}),h&&a.add(d.key),g&&i.add(d.key),l.add(d.key)}})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(h1e(i,a))}}function rZe(e,t,r,n,a){for(var i=new Set(e),o=new Set(t),s=0;s<=n;s+=1){var l=r.get(s)||new Set;l.forEach(function(d){var f=d.key,h=d.node,g=d.children,p=g===void 0?[]:g;!i.has(f)&&!o.has(f)&&!a(h)&&p.filter(function(m){return!a(m.node)}).forEach(function(m){i.delete(m.key)})})}o=new Set;for(var c=new Set,A=n;A>=0;A-=1){var u=r.get(A)||new Set;u.forEach(function(d){var f=d.parent,h=d.node;if(!(a(h)||!d.parent||c.has(d.parent.key))){if(a(d.parent.node)){c.add(f.key);return}var g=!0,p=!1;(f.children||[]).filter(function(m){return!a(m.node)}).forEach(function(m){var y=m.key,C=i.has(y);g&&!C&&(g=!1),!p&&(C||o.has(y))&&(p=!0)}),g||i.delete(f.key),p&&o.add(f.key),c.add(f.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(h1e(o,i))}}function Uf(e,t,r,n){var a=[],i;n?i=n:i=eZe;var o=new Set(e.filter(function(A){var u=!!cc(r,A);return u||a.push(A),u})),s=new Map,l=0;Object.keys(r).forEach(function(A){var u=r[A],d=u.level,f=s.get(d);f||(f=new Set,s.set(d,f)),f.add(u),l=Math.max(l,d)}),Ea(!a.length,"Tree missing follow keys: ".concat(a.slice(0,100).map(function(A){return"'".concat(A,"'")}).join(", ")));var c;return t===!0?c=tZe(o,s,l,i):c=rZe(o,t.halfCheckedKeys,s,l,i),c}var nZe=["children"];function g1e(e,t){return"".concat(e,"-").concat(t)}function aZe(e){return e&&e.type&&e.type.isTreeNode}function Cx(e,t){return e??t}function hT(e){var t=e||{},r=t.title,n=t._title,a=t.key,i=t.children,o=r||"title";return{title:o,_title:n||[o],key:a||"key",children:i||"children"}}function p1e(e){function t(r){var n=Vo(r);return n.map(function(a){if(!aZe(a))return Ea(!a,"Tree/TreeNode can only accept TreeNode as children."),null;var i=a.key,o=a.props,s=o.children,l=An(o,nZe),c=se({key:i},l),A=t(s);return A.length&&(c.children=A),c}).filter(function(a){return a})}return t(e)}function v8(e,t,r){var n=hT(r),a=n._title,i=n.key,o=n.children,s=new Set(t===!0?[]:t),l=[];function c(A){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return A.map(function(d,f){for(var h=g1e(u?u.pos:"0",f),g=Cx(d[i],h),p,m=0;m<a.length;m+=1){var y=a[m];if(d[y]!==void 0){p=d[y];break}}var C=se(se({},ji(d,[].concat(ir(a),[i,o]))),{},{title:p,key:g,parent:u,pos:h,children:null,data:d,isStart:[].concat(ir(u?u.isStart:[]),[f===0]),isEnd:[].concat(ir(u?u.isEnd:[]),[f===A.length-1])});return l.push(C),t===!0||s.has(g)?C.children=c(d[o]||[],C):C.children=[],C})}return c(e),l}function iZe(e,t,r){var n={};Ar(r)==="object"?n=r:n={externalGetKey:r},n=n||{};var a=n,i=a.childrenPropName,o=a.externalGetKey,s=a.fieldNames,l=hT(s),c=l.key,A=l.children,u=i||A,d;o?typeof o=="string"?d=function(g){return g[o]}:typeof o=="function"&&(d=function(g){return o(g)}):d=function(g,p){return Cx(g[c],p)};function f(h,g,p,m){var y=h?h[u]:e,C=h?g1e(p.pos,g):"0",w=h?[].concat(ir(m),[h]):[];if(h){var B=d(h,C),x={node:h,index:g,pos:C,key:B,parentPos:p.node?p.pos:null,level:p.level+1,nodes:w};t(x)}y&&y.forEach(function(M,S){f(M,S,{node:h,pos:C,level:p?p.level+1:-1},w)})}f(null)}function f4(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.initWrapper,n=t.processEntity,a=t.onProcessFinished,i=t.externalGetKey,o=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,c=i||l,A={},u={},d={posEntities:A,keyEntities:u};return r&&(d=r(d)||d),iZe(e,function(f){var h=f.node,g=f.index,p=f.pos,m=f.key,y=f.parentPos,C=f.level,w=f.nodes,B={node:h,nodes:w,index:g,key:m,pos:p,level:C},x=Cx(m,p);A[p]=B,u[x]=B,B.parent=A[y],B.parent&&(B.parent.children=B.parent.children||[],B.parent.children.push(B)),n&&n(B,d)},{externalGetKey:c,childrenPropName:o,fieldNames:s}),a&&a(d),d}function _w(e,t){var r=t.expandedKeys,n=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,c=t.dropPosition,A=t.keyEntities,u=cc(A,e),d={eventKey:e,expanded:r.indexOf(e)!==-1,selected:n.indexOf(e)!==-1,loaded:a.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:o.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(u?u.pos:""),dragOver:l===e&&c===0,dragOverGapTop:l===e&&c===-1,dragOverGapBottom:l===e&&c===1};return d}function ho(e){var t=e.data,r=e.expanded,n=e.selected,a=e.checked,i=e.loaded,o=e.loading,s=e.halfChecked,l=e.dragOver,c=e.dragOverGapTop,A=e.dragOverGapBottom,u=e.pos,d=e.active,f=e.eventKey,h=se(se({},t),{},{expanded:r,selected:n,checked:a,loaded:i,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:c,dragOverGapBottom:A,pos:u,active:d,key:f});return"props"in h||Object.defineProperty(h,"props",{get:function(){return Ea(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),h}var oZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},v1e=E.createContext(null),sZe=function(t,r){var n=t.defaultValue,a=t.children,i=t.options,o=i===void 0?[]:i,s=t.prefixCls,l=t.className,c=t.style,A=t.onChange,u=oZe(t,["defaultValue","children","options","prefixCls","className","style","onChange"]),d=E.useContext(an),f=d.getPrefixCls,h=d.direction,g=E.useState(u.value||n||[]),p=Je(g,2),m=p[0],y=p[1],C=E.useState([]),w=Je(C,2),B=w[0],x=w[1];E.useEffect(function(){"value"in u&&y(u.value||[])},[u.value]);var M=function(){return o.map(function(k){return typeof k=="string"||typeof k=="number"?{label:k,value:k}:k})},S=function(k){x(function(j){return j.filter(function(Y){return Y!==k})})},R=function(k){x(function(j){return[].concat(ir(j),[k])})},b=function(k){var j=m.indexOf(k.value),Y=ir(m);j===-1?Y.push(k.value):Y.splice(j,1),"value"in u||y(Y);var X=M();A?.(Y.filter(function(K){return B.includes(K)}).sort(function(K,U){var H=X.findIndex(function(V){return V.value===K}),L=X.findIndex(function(V){return V.value===U});return H-L}))},T=f("checkbox",s),D="".concat(T,"-group"),F=ji(u,["value","disabled"]);o&&o.length>0&&(a=M().map(function(P){return E.createElement(m1e,{prefixCls:T,key:P.value.toString(),disabled:"disabled"in P?P.disabled:u.disabled,value:P.value,checked:m.includes(P.value),onChange:P.onChange,className:"".concat(D,"-item"),style:P.style},P.label)}));var N={toggleOption:b,value:m,disabled:u.disabled,name:u.name,registerValue:R,cancelValue:S},_=dt(D,te({},"".concat(D,"-rtl"),h==="rtl"),l);return E.createElement("div",ge({className:_,style:c},F,{ref:r}),E.createElement(v1e.Provider,{value:N},a))},lZe=E.forwardRef(sZe);const cZe=E.memo(lZe);var AZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},uZe=function(t,r){var n,a=t.prefixCls,i=t.className,o=t.children,s=t.indeterminate,l=s===void 0?!1:s,c=t.style,A=t.onMouseEnter,u=t.onMouseLeave,d=t.skipGroup,f=d===void 0?!1:d,h=t.disabled,g=AZe(t,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),p=E.useContext(an),m=p.getPrefixCls,y=p.direction,C=E.useContext(v1e),w=E.useContext(fs),B=w.isFormItemInput,x=E.useContext(Ol),M=(n=C?.disabled||h)!==null&&n!==void 0?n:x,S=E.useRef(g.value);E.useEffect(function(){C?.registerValue(g.value)},[]),E.useEffect(function(){if(!f)return g.value!==S.current&&(C?.cancelValue(S.current),C?.registerValue(g.value),S.current=g.value),function(){return C?.cancelValue(g.value)}},[g.value]);var R=m("checkbox",a),b=ge({},g);C&&!f&&(b.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),C.toggleOption&&C.toggleOption({label:o,value:g.value})},b.name=C.name,b.checked=C.value.includes(g.value));var T=dt(te(te(te(te(te({},"".concat(R,"-wrapper"),!0),"".concat(R,"-rtl"),y==="rtl"),"".concat(R,"-wrapper-checked"),b.checked),"".concat(R,"-wrapper-disabled"),M),"".concat(R,"-wrapper-in-form-item"),B),i),D=dt(te({},"".concat(R,"-indeterminate"),l)),F=l?"mixed":void 0;return E.createElement("label",{className:T,style:c,onMouseEnter:A,onMouseLeave:u},E.createElement(uT,ge({"aria-checked":F},b,{prefixCls:R,className:D,disabled:M,ref:r})),o!==void 0&&E.createElement("span",null,o))},m1e=E.forwardRef(uZe),un=m1e;un.Group=cZe;un.__ANT_CHECKBOX=!0;var E1e=E.createContext({}),dZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function fZe(e){return typeof e=="number"?"".concat(e," ").concat(e," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?"0 0 ".concat(e):e}var hZe=["xs","sm","md","lg","xl","xxl"],Ta=E.forwardRef(function(e,t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=E.useContext(E1e),o=i.gutter,s=i.wrap,l=i.supportFlexGap,c=e.prefixCls,A=e.span,u=e.order,d=e.offset,f=e.push,h=e.pull,g=e.className,p=e.children,m=e.flex,y=e.style,C=dZe(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),w=n("col",c),B={};hZe.forEach(function(b){var T={},D=e[b];typeof D=="number"?T.span=D:Ar(D)==="object"&&(T=D||{}),delete C[b],B=ge(ge({},B),te(te(te(te(te(te({},"".concat(w,"-").concat(b,"-").concat(T.span),T.span!==void 0),"".concat(w,"-").concat(b,"-order-").concat(T.order),T.order||T.order===0),"".concat(w,"-").concat(b,"-offset-").concat(T.offset),T.offset||T.offset===0),"".concat(w,"-").concat(b,"-push-").concat(T.push),T.push||T.push===0),"".concat(w,"-").concat(b,"-pull-").concat(T.pull),T.pull||T.pull===0),"".concat(w,"-rtl"),a==="rtl"))});var x=dt(w,te(te(te(te(te({},"".concat(w,"-").concat(A),A!==void 0),"".concat(w,"-order-").concat(u),u),"".concat(w,"-offset-").concat(d),d),"".concat(w,"-push-").concat(f),f),"".concat(w,"-pull-").concat(h),h),g,B),M={};if(o&&o[0]>0){var S=o[0]/2;M.paddingLeft=S,M.paddingRight=S}if(o&&o[1]>0&&!l){var R=o[1]/2;M.paddingTop=R,M.paddingBottom=R}return m&&(M.flex=fZe(m),s===!1&&!M.minWidth&&(M.minWidth=0)),E.createElement("div",ge({},C,{style:ge(ge({},M),y),className:x,ref:t}),p)}),gZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};Wo("top","middle","bottom","stretch");Wo("start","end","center","space-around","space-between","space-evenly");function VZ(e,t){var r=E.useState(typeof e=="string"?e:""),n=Je(r,2),a=n[0],i=n[1],o=function(){if(typeof e=="string"&&i(e),Ar(e)==="object")for(var l=0;l<$R.length;l++){var c=$R[l];if(t[c]){var A=e[c];if(A!==void 0){i(A);return}}}};return E.useEffect(function(){o()},[JSON.stringify(e),t]),a}var Uo=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.justify,a=e.align,i=e.className,o=e.style,s=e.children,l=e.gutter,c=l===void 0?0:l,A=e.wrap,u=gZe(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),d=E.useContext(an),f=d.getPrefixCls,h=d.direction,g=E.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),p=Je(g,2),m=p[0],y=p[1],C=E.useState({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),w=Je(C,2),B=w[0],x=w[1],M=VZ(a,B),S=VZ(n,B),R=KEe(),b=E.useRef(c);E.useEffect(function(){var H=eT.subscribe(function(L){x(L);var V=b.current||0;(!Array.isArray(V)&&Ar(V)==="object"||Array.isArray(V)&&(Ar(V[0])==="object"||Ar(V[1])==="object"))&&y(L)});return function(){return eT.unsubscribe(H)}},[]);var T=function(){var L=[void 0,void 0],V=Array.isArray(c)?c:[c,void 0];return V.forEach(function(J,ee){if(Ar(J)==="object")for(var ae=0;ae<$R.length;ae++){var ne=$R[ae];if(m[ne]&&J[ne]!==void 0){L[ee]=J[ne];break}}else L[ee]=J}),L},D=f("row",r),F=T(),N=dt(D,te(te(te(te({},"".concat(D,"-no-wrap"),A===!1),"".concat(D,"-").concat(S),S),"".concat(D,"-").concat(M),M),"".concat(D,"-rtl"),h==="rtl"),i),_={},P=F[0]!=null&&F[0]>0?F[0]/-2:void 0,k=F[1]!=null&&F[1]>0?F[1]/-2:void 0;if(P&&(_.marginLeft=P,_.marginRight=P),R){var j=Je(F,2);_.rowGap=j[1]}else k&&(_.marginTop=k,_.marginBottom=k);var Y=Je(F,2),X=Y[0],K=Y[1],U=E.useMemo(function(){return{gutter:[X,K],wrap:A,supportFlexGap:R}},[X,K,A,R]);return E.createElement(E1e.Provider,{value:U},E.createElement("div",ge({},u,{className:N,style:ge(ge({},_),o),ref:t}),s))}),m8,JZ;function pZe(){return JZ||(JZ=1,m8=function(t,r,n,a){var i=n?n.call(a,t,r):void 0;if(i!==void 0)return!!i;if(t===r)return!0;if(typeof t!="object"||!t||typeof r!="object"||!r)return!1;var o=Object.keys(t),s=Object.keys(r);if(o.length!==s.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(r),c=0;c<o.length;c++){var A=o[c];if(!l(A))return!1;var u=t[A],d=r[A];if(i=n?n.call(a,u,d,A):void 0,i===!1||i===void 0&&u!==d)return!1}return!0}),m8}var vZe=pZe();const ZE=gn(vZe);var y1e=E.forwardRef(function(e,t){var r,n=e.prefixCls,a=e.forceRender,i=e.className,o=e.style,s=e.children,l=e.isActive,c=e.role,A=E.useState(l||a),u=Je(A,2),d=u[0],f=u[1];return E.useEffect(function(){(a||l)&&f(!0)},[a,l]),d?E.createElement("div",{ref:t,className:dt("".concat(n,"-content"),(r={},te(r,"".concat(n,"-content-active"),l),te(r,"".concat(n,"-content-inactive"),!l),r),i),style:o,role:c},E.createElement("div",{className:"".concat(n,"-content-box")},s)):null});y1e.displayName="PanelContent";var mZe=["className","id","style","prefixCls","headerClass","children","isActive","destroyInactivePanel","accordion","forceRender","openMotion","extra","collapsible"],C1e=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.onItemClick=function(){var s=n.props,l=s.onItemClick,c=s.panelKey;typeof l=="function"&&l(c)},n.handleKeyPress=function(s){(s.key==="Enter"||s.keyCode===13||s.which===13)&&n.onItemClick()},n.renderIcon=function(){var s=n.props,l=s.showArrow,c=s.expandIcon,A=s.prefixCls,u=s.collapsible;if(!l)return null;var d=typeof c=="function"?c(n.props):E.createElement("i",{className:"arrow"});return d&&E.createElement("div",{className:"".concat(A,"-expand-icon"),onClick:u==="header"||u==="icon"?n.onItemClick:null},d)},n.renderTitle=function(){var s=n.props,l=s.header,c=s.prefixCls,A=s.collapsible;return E.createElement("span",{className:"".concat(c,"-header-text"),onClick:A==="header"?n.onItemClick:null},l)},n}return Jn(r,[{key:"shouldComponentUpdate",value:function(a){return!ZE(this.props,a)}},{key:"render",value:function(){var a,i,o=this.props,s=o.className,l=o.id,c=o.style,A=o.prefixCls,u=o.headerClass,d=o.children,f=o.isActive,h=o.destroyInactivePanel,g=o.accordion,p=o.forceRender,m=o.openMotion,y=o.extra,C=o.collapsible,w=An(o,mZe),B=C==="disabled",x=C==="header",M=C==="icon",S=dt((a={},te(a,"".concat(A,"-item"),!0),te(a,"".concat(A,"-item-active"),f),te(a,"".concat(A,"-item-disabled"),B),a),s),R=dt("".concat(A,"-header"),(i={},te(i,u,u),te(i,"".concat(A,"-header-collapsible-only"),x),te(i,"".concat(A,"-icon-collapsible-only"),M),i)),b={className:R,"aria-expanded":f,"aria-disabled":B,onKeyPress:this.handleKeyPress};!x&&!M&&(b.onClick=this.onItemClick,b.role=g?"tab":"button",b.tabIndex=B?-1:0);var T=y!=null&&typeof y!="boolean";return delete w.header,delete w.panelKey,delete w.onItemClick,delete w.showArrow,delete w.expandIcon,E.createElement("div",ge({},w,{className:S,style:c,id:l}),E.createElement("div",b,this.renderIcon(),this.renderTitle(),T&&E.createElement("div",{className:"".concat(A,"-extra")},y)),E.createElement(us,ge({visible:f,leavedClassName:"".concat(A,"-content-hidden")},m,{forceRender:p,removeOnLeave:h}),function(D,F){var N=D.className,_=D.style;return E.createElement(y1e,{ref:F,prefixCls:A,className:N,style:_,isActive:f,forceRender:p,role:g?"tabpanel":null},d)}))}}]),r})(E.Component);C1e.defaultProps={showArrow:!0,isActive:!1,onItemClick:function(){},headerClass:"",forceRender:!1};function WZ(e){var t=e;if(!Array.isArray(t)){var r=Ar(t);t=r==="number"||r==="string"?[t]:[]}return t.map(function(n){return String(n)})}var wx=(function(e){fa(r,e);var t=pi(r);function r(n){var a;Vn(this,r),a=t.call(this,n),a.onClickItem=function(l){var c=a.state.activeKey;if(a.props.accordion)c=c[0]===l?[]:[l];else{c=ir(c);var A=c.indexOf(l),u=A>-1;u?c.splice(A,1):c.push(l)}a.setActiveKey(c)},a.getNewChild=function(l,c){if(!l)return null;var A=a.state.activeKey,u=a.props,d=u.prefixCls,f=u.openMotion,h=u.accordion,g=u.destroyInactivePanel,p=u.expandIcon,m=u.collapsible,y=l.key||String(c),C=l.props,w=C.header,B=C.headerClass,x=C.destroyInactivePanel,M=C.collapsible,S=!1;h?S=A[0]===y:S=A.indexOf(y)>-1;var R=M??m,b={key:y,panelKey:y,header:w,headerClass:B,isActive:S,prefixCls:d,destroyInactivePanel:x??g,openMotion:f,accordion:h,children:l.props.children,onItemClick:R==="disabled"?null:a.onClickItem,expandIcon:p,collapsible:R};return typeof l.type=="string"?l:(Object.keys(b).forEach(function(T){typeof b[T]>"u"&&delete b[T]}),E.cloneElement(l,b))},a.getItems=function(){var l=a.props.children;return Vo(l).map(a.getNewChild)},a.setActiveKey=function(l){"activeKey"in a.props||a.setState({activeKey:l}),a.props.onChange(a.props.accordion?l[0]:l)};var i=n.activeKey,o=n.defaultActiveKey,s=o;return"activeKey"in n&&(s=i),a.state={activeKey:WZ(s)},a}return Jn(r,[{key:"shouldComponentUpdate",value:function(a,i){return!ZE(this.props,a)||!ZE(this.state,i)}},{key:"render",value:function(){var a,i=this.props,o=i.prefixCls,s=i.className,l=i.style,c=i.accordion,A=dt((a={},te(a,o,!0),te(a,s,!!s),a));return E.createElement("div",{className:A,style:l,role:c?"tablist":null},this.getItems())}}],[{key:"getDerivedStateFromProps",value:function(a){var i={};return"activeKey"in a&&(i.activeKey=WZ(a.activeKey)),i}}]),r})(E.Component);wx.defaultProps={prefixCls:"rc-collapse",onChange:function(){},accordion:!1,destroyInactivePanel:!1};wx.Panel=C1e;wx.Panel;var EZe=function(t){var r=E.useContext(an),n=r.getPrefixCls,a=t.prefixCls,i=t.className,o=i===void 0?"":i,s=t.showArrow,l=s===void 0?!0:s,c=n("collapse",a),A=dt(te({},"".concat(c,"-no-arrow"),!l),o);return E.createElement(wx.Panel,ge({},t,{prefixCls:c,className:A}))},$E=function(t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.className,s=o===void 0?"":o,l=t.bordered,c=l===void 0?!0:l,A=t.ghost,u=t.expandIconPosition,d=u===void 0?"start":u,f=n("collapse",i),h=E.useMemo(function(){return d==="left"?"start":d==="right"?"end":d},[d]),g=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},B=t.expandIcon,x=B?B(w):E.createElement(tB,{rotate:w.isActive?90:void 0});return fi(x,function(){return{className:dt(x.props.className,"".concat(f,"-arrow"))}})},p=dt("".concat(f,"-icon-position-").concat(h),te(te(te({},"".concat(f,"-borderless"),!c),"".concat(f,"-rtl"),a==="rtl"),"".concat(f,"-ghost"),!!A),s),m=ge(ge({},sB),{motionAppear:!1,leavedClassName:"".concat(f,"-content-hidden")}),y=function(){var w=t.children;return Vo(w).map(function(B,x){var M;if(!((M=B.props)===null||M===void 0)&&M.disabled){var S=B.key||String(x),R=B.props,b=R.disabled,T=R.collapsible,D=ge(ge({},ji(B.props,["disabled"])),{key:S,collapsible:T??(b?"disabled":void 0)});return fi(B,D)}return B})};return E.createElement(wx,ge({openMotion:m},t,{expandIcon:g,prefixCls:f,className:p}),y())};$E.Panel=EZe;function yZe(e){return E.createElement(yt,ge({size:"small",type:"primary"},e))}var CZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},wZe=function(t){var r=t.prefixCls,n=t.className,a=t.checked,i=t.onChange,o=t.onClick,s=CZe(t,["prefixCls","className","checked","onChange","onClick"]),l=E.useContext(an),c=l.getPrefixCls,A=function(h){i?.(!a),o?.(h)},u=c("tag",r),d=dt(u,te(te({},"".concat(u,"-checkable"),!0),"".concat(u,"-checkable-checked"),a),n);return E.createElement("span",ge({},s,{className:d,onClick:A}))},BZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},xZe=new RegExp("^(".concat(D7.join("|"),")(-inverse)?$")),MZe=new RegExp("^(".concat(s9e.join("|"),")$")),IZe=function(t,r){var n=t.prefixCls,a=t.className,i=t.style,o=t.children,s=t.icon,l=t.color,c=t.onClose,A=t.closeIcon,u=t.closable,d=u===void 0?!1:u,f=BZe(t,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),h=E.useContext(an),g=h.getPrefixCls,p=h.direction,m=E.useState(!0),y=Je(m,2),C=y[0],w=y[1];E.useEffect(function(){"visible"in f&&w(f.visible)},[f.visible]);var B=function(){return l?xZe.test(l)||MZe.test(l):!1},x=ge({backgroundColor:l&&!B()?l:void 0},i),M=B(),S=g("tag",n),R=dt(S,te(te(te(te({},"".concat(S,"-").concat(l),M),"".concat(S,"-has-color"),l&&!M),"".concat(S,"-hidden"),!C),"".concat(S,"-rtl"),p==="rtl"),a),b=function(j){j.stopPropagation(),c?.(j),!j.defaultPrevented&&("visible"in f||w(!1))},T=function(){return d?A?E.createElement("span",{className:"".concat(S,"-close-icon"),onClick:b},A):E.createElement(Go,{className:"".concat(S,"-close-icon"),onClick:b}):null},D="onClick"in f||o&&o.type==="a",F=ji(f,["visible"]),N=s||null,_=N?E.createElement(E.Fragment,null,N,E.createElement("span",null,o)):o,P=E.createElement("span",ge({},F,{ref:r,className:R,style:x}),_,T());return D?E.createElement(ZQ,null,P):P},Bx=E.forwardRef(IZe);Bx.CheckableTag=wZe;function bZe(e){return E.createElement(Bx,ge({color:"blue"},e))}function SZe(e,t,r){return r!==void 0?r:e==="year"&&t.lang.yearPlaceholder?t.lang.yearPlaceholder:e==="quarter"&&t.lang.quarterPlaceholder?t.lang.quarterPlaceholder:e==="month"&&t.lang.monthPlaceholder?t.lang.monthPlaceholder:e==="week"&&t.lang.weekPlaceholder?t.lang.weekPlaceholder:e==="time"&&t.timePickerLocale.placeholder?t.timePickerLocale.placeholder:t.lang.placeholder}function RZe(e,t,r){return r!==void 0?r:e==="year"&&t.lang.yearPlaceholder?t.lang.rangeYearPlaceholder:e==="quarter"&&t.lang.quarterPlaceholder?t.lang.rangeQuarterPlaceholder:e==="month"&&t.lang.monthPlaceholder?t.lang.rangeMonthPlaceholder:e==="week"&&t.lang.weekPlaceholder?t.lang.rangeWeekPlaceholder:e==="time"&&t.timePickerLocale.placeholder?t.timePickerLocale.rangePlaceholder:t.lang.rangePlaceholder}function w1e(e,t){var r={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:r};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:r};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:r};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:r};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:r}}}var TZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function QZe(e){var t=E.forwardRef(function(r,n){var a=r.prefixCls,i=r.getPopupContainer,o=r.className,s=r.placement,l=r.size,c=r.disabled,A=r.bordered,u=A===void 0?!0:A,d=r.placeholder,f=r.popupClassName,h=r.dropdownClassName,g=r.status,p=TZe(r,["prefixCls","getPopupContainer","className","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status"]),m=E.useRef(null),y=E.useContext(an),C=y.getPrefixCls,w=y.direction,B=y.getPopupContainer,x=C("picker",a),M=$f(x,w),S=M.compactSize,R=M.compactItemClassnames,b=r.format,T=r.showTime,D=r.picker,F=C(),N={};N=ge(ge(ge({},N),T?gT(ge({format:b,picker:D},T)):{}),D==="time"?gT(ge(ge({format:b},r),{picker:D})):{});var _=E.useContext(ds),P=S||l||_,k=E.useContext(Ol),j=c??k,Y=E.useContext(fs),X=Y.hasFeedback,K=Y.status,U=Y.feedbackIcon,H=E.createElement(E.Fragment,null,D==="time"?E.createElement(IY,null):E.createElement(qhe,null),X&&U);return E.useImperativeHandle(n,function(){return{focus:function(){var V;return(V=m.current)===null||V===void 0?void 0:V.focus()},blur:function(){var V;return(V=m.current)===null||V===void 0?void 0:V.blur()}}}),E.createElement(Td,{componentName:"DatePicker",defaultLocale:KR},function(L){var V=ge(ge({},L),r.locale);return E.createElement(PXe,ge({separator:E.createElement("span",{"aria-label":"to",className:"".concat(x,"-separator")},E.createElement(M_e,null)),disabled:j,ref:m,dropdownAlign:w1e(w,s),placeholder:RZe(D,V,d),suffixIcon:H,clearIcon:E.createElement(fu,null),prevIcon:E.createElement("span",{className:"".concat(x,"-prev-icon")}),nextIcon:E.createElement("span",{className:"".concat(x,"-next-icon")}),superPrevIcon:E.createElement("span",{className:"".concat(x,"-super-prev-icon")}),superNextIcon:E.createElement("span",{className:"".concat(x,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(F,"-slide-up")},p,N,{className:dt(te(te({},"".concat(x,"-").concat(P),P),"".concat(x,"-borderless"),!u),kl(x,Zf(K,g),X),R,o),locale:V.lang,prefixCls:x,getPopupContainer:i||B,generateConfig:e,components:B1e,direction:w,dropdownClassName:f||h}))})});return t}var DZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function FZe(e){function t(l,c){var A=E.forwardRef(function(u,d){var f=u.prefixCls,h=u.getPopupContainer,g=u.className,p=u.size,m=u.bordered,y=m===void 0?!0:m,C=u.placement,w=u.placeholder,B=u.popupClassName,x=u.dropdownClassName,M=u.disabled,S=u.status,R=DZe(u,["prefixCls","getPopupContainer","className","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status"]),b=E.useContext(an),T=b.getPrefixCls,D=b.direction,F=b.getPopupContainer,N=T("picker",f),_=$f(N,D),P=_.compactSize,k=_.compactItemClassnames,j=E.useRef(null),Y=u.format,X=u.showTime;E.useImperativeHandle(d,function(){return{focus:function(){var ve;return(ve=j.current)===null||ve===void 0?void 0:ve.focus()},blur:function(){var ve;return(ve=j.current)===null||ve===void 0?void 0:ve.blur()}}});var K={showToday:!0},U={};l&&(U.picker=l);var H=l||u.picker;U=ge(ge(ge({},U),X?gT(ge({format:Y,picker:H},X)):{}),H==="time"?gT(ge(ge({format:Y},u),{picker:H})):{});var L=T(),V=E.useContext(ds),J=P||p||V,ee=E.useContext(Ol),ae=M??ee,ne=E.useContext(fs),fe=ne.hasFeedback,he=ne.status,ye=ne.feedbackIcon,be=E.createElement(E.Fragment,null,H==="time"?E.createElement(IY,null):E.createElement(qhe,null),fe&&ye);return E.createElement(Td,{componentName:"DatePicker",defaultLocale:KR},function(Se){var ve=ge(ge({},Se),u.locale);return E.createElement(QXe,ge({ref:j,placeholder:SZe(H,ve,w),suffixIcon:be,dropdownAlign:w1e(D,C),clearIcon:E.createElement(fu,null),prevIcon:E.createElement("span",{className:"".concat(N,"-prev-icon")}),nextIcon:E.createElement("span",{className:"".concat(N,"-next-icon")}),superPrevIcon:E.createElement("span",{className:"".concat(N,"-super-prev-icon")}),superNextIcon:E.createElement("span",{className:"".concat(N,"-super-next-icon")}),allowClear:!0,transitionName:"".concat(L,"-slide-up")},K,R,U,{locale:ve.lang,className:dt(te(te({},"".concat(N,"-").concat(J),J),"".concat(N,"-borderless"),!y),kl(N,Zf(he,S),fe),k,g),prefixCls:N,getPopupContainer:h||F,generateConfig:e,components:B1e,direction:D,disabled:ae,dropdownClassName:B||x}))})});return c&&(A.displayName=c),A}var r=t(),n=t("week","WeekPicker"),a=t("month","MonthPicker"),i=t("year","YearPicker"),o=t("time","TimePicker"),s=t("quarter","QuarterPicker");return{DatePicker:r,WeekPicker:n,MonthPicker:a,YearPicker:i,TimePicker:o,QuarterPicker:s}}var B1e={button:yZe,rangeItem:bZe};function NZe(e){return e?Array.isArray(e)?e:[e]:[]}function gT(e){var t=e.format,r=e.picker,n=e.showHour,a=e.showMinute,i=e.showSecond,o=e.use12Hours,s=NZe(t)[0],l=ge({},e);return s&&typeof s=="string"&&(!s.includes("s")&&i===void 0&&(l.showSecond=!1),!s.includes("m")&&a===void 0&&(l.showMinute=!1),!s.includes("H")&&!s.includes("h")&&n===void 0&&(l.showHour=!1),(s.includes("a")||s.includes("A"))&&o===void 0&&(l.use12Hours=!0)),r==="time"?l:(typeof s=="function"&&delete l.format,{showTime:l})}Wo("bottomLeft","bottomRight","topLeft","topRight");function _Ze(e){var t=FZe(e),r=t.DatePicker,n=t.WeekPicker,a=t.MonthPicker,i=t.YearPicker,o=t.TimePicker,s=t.QuarterPicker,l=QZe(e),c=r;return c.WeekPicker=n,c.MonthPicker=a,c.YearPicker=i,c.RangePicker=l,c.TimePicker=o,c.QuarterPicker=s,c}var gB=_Ze(OWe),kZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},tu=function(t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.type,s=o===void 0?"horizontal":o,l=t.orientation,c=l===void 0?"center":l,A=t.orientationMargin,u=t.className,d=t.children,f=t.dashed,h=t.plain,g=kZe(t,["prefixCls","type","orientation","orientationMargin","className","children","dashed","plain"]),p=n("divider",i),m=c.length>0?"-".concat(c):c,y=!!d,C=c==="left"&&A!=null,w=c==="right"&&A!=null,B=dt(p,"".concat(p,"-").concat(s),te(te(te(te(te(te(te({},"".concat(p,"-with-text"),y),"".concat(p,"-with-text").concat(m),y),"".concat(p,"-dashed"),!!f),"".concat(p,"-plain"),!!h),"".concat(p,"-rtl"),a==="rtl"),"".concat(p,"-no-default-orientation-margin-left"),C),"".concat(p,"-no-default-orientation-margin-right"),w),u),x=ge(ge({},C&&{marginLeft:A}),w&&{marginRight:A});return E.createElement("div",ge({className:B},g,{role:"separator"}),d&&s!=="vertical"&&E.createElement("span",{className:"".concat(p,"-inner-text"),style:x},d))},x1e=E.createContext(null),XZ=[];function PZe(e,t){var r=E.useState(function(){if(!_s())return null;var h=document.createElement("div");return h}),n=Je(r,1),a=n[0],i=E.useRef(!1),o=E.useContext(x1e),s=E.useState(XZ),l=Je(s,2),c=l[0],A=l[1],u=o||(i.current?void 0:function(h){A(function(g){var p=[h].concat(ir(g));return p})});function d(){a.parentElement||document.body.appendChild(a),i.current=!0}function f(){var h;(h=a.parentElement)===null||h===void 0||h.removeChild(a),i.current=!1}return Wa(function(){return e?o?o(d):d():f(),f},[e]),Wa(function(){c.length&&(c.forEach(function(h){return h()}),A(XZ))},[c]),[a,u]}var E8;function M1e(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),r=document.createElement("div");r.id=t;var n=r.style;n.position="absolute",n.left="0",n.top="0",n.width="100px",n.height="100px",n.overflow="scroll";var a,i;if(e){var o=getComputedStyle(e);n.scrollbarColor=o.scrollbarColor,n.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),c=parseInt(s.height,10);try{var A=l?"width: ".concat(s.width,";"):"",u=c?"height: ".concat(s.height,";"):"";UB(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(A,`
`).concat(u,`
}`),t)}catch(h){console.error(h),a=l,i=c}}document.body.appendChild(r);var d=e&&a&&!isNaN(a)?a:r.offsetWidth-r.clientWidth,f=e&&i&&!isNaN(i)?i:r.offsetHeight-r.clientHeight;return document.body.removeChild(r),Vj(t),{width:d,height:f}}function qZ(e){return typeof document>"u"?0:(E8===void 0&&(E8=M1e()),E8.width)}function h6(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:M1e(e)}function OZe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var jZe="rc-util-locker-".concat(Date.now()),ZZ=0;function zZe(e){var t=!!e,r=E.useState(function(){return ZZ+=1,"".concat(jZe,"_").concat(ZZ)}),n=Je(r,1),a=n[0];Wa(function(){if(t){var i=h6(document.body).width,o=OZe();UB(`
html body {
  overflow-y: hidden;
  `.concat(o?"width: calc(100% - ".concat(i,"px);"):"",`
}`),a)}else Vj(a);return function(){Vj(a)}},[t,a])}var LZe=!1;function YZe(e){return LZe}var $Z=function(t){return t===!1?!1:!_s()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},I1e=E.forwardRef(function(e,t){var r=e.open,n=e.autoLock,a=e.getContainer;e.debug;var i=e.autoDestroy,o=i===void 0?!0:i,s=e.children,l=E.useState(r),c=Je(l,2),A=c[0],u=c[1],d=A||r;E.useEffect(function(){(o||r)&&u(r)},[r,o]);var f=E.useState(function(){return $Z(a)}),h=Je(f,2),g=h[0],p=h[1];E.useEffect(function(){var T=$Z(a);p(T??null)});var m=PZe(d&&!g),y=Je(m,2),C=y[0],w=y[1],B=g??C;zZe(n&&r&&_s()&&(B===C||B===document.body));var x=null;if(s&&im(s)&&t){var M=s;x=M.ref}var S=cx(x,t);if(!d||!_s()||g===void 0)return null;var R=B===!1||YZe(),b=s;return t&&(b=E.cloneElement(s,{ref:S})),E.createElement(x1e.Provider,{value:w},R?b:Ko.createPortal(b,B))}),e$=E.createContext(null),UZe=function(t){var r=t.prefixCls,n=t.className,a=t.style,i=t.children,o=t.containerRef,s=t.id,l=t.onMouseEnter,c=t.onMouseOver,A=t.onMouseLeave,u=t.onClick,d=t.onKeyDown,f=t.onKeyUp,h={onMouseEnter:l,onMouseOver:c,onMouseLeave:A,onClick:u,onKeyDown:d,onKeyUp:f};return E.createElement(E.Fragment,null,E.createElement("div",ge({id:s,className:dt("".concat(r,"-content"),n),style:se({},a),"aria-modal":"true",role:"dialog",ref:o},h),i))};function t$(e){return typeof e=="string"&&String(Number(e))===e?(Ea(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var r$={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function HZe(e,t){var r,n,a,i,o=e.prefixCls,s=e.open,l=e.placement,c=e.inline,A=e.push,u=e.forceRender,d=e.autoFocus,f=e.keyboard,h=e.rootClassName,g=e.rootStyle,p=e.zIndex,m=e.className,y=e.id,C=e.style,w=e.motion,B=e.width,x=e.height,M=e.children,S=e.contentWrapperStyle,R=e.mask,b=e.maskClosable,T=e.maskMotion,D=e.maskClassName,F=e.maskStyle,N=e.afterOpenChange,_=e.onClose,P=e.onMouseEnter,k=e.onMouseOver,j=e.onMouseLeave,Y=e.onClick,X=e.onKeyDown,K=e.onKeyUp,U=E.useRef(),H=E.useRef(),L=E.useRef();E.useImperativeHandle(t,function(){return U.current});var V=function(we){var Re=we.keyCode,Te=we.shiftKey;switch(Re){case cr.TAB:{if(Re===cr.TAB){if(!Te&&document.activeElement===L.current){var Ke;(Ke=H.current)===null||Ke===void 0||Ke.focus({preventScroll:!0})}else if(Te&&document.activeElement===H.current){var mt;(mt=L.current)===null||mt===void 0||mt.focus({preventScroll:!0})}}break}case cr.ESC:{_&&f&&(we.stopPropagation(),_(we));break}}};E.useEffect(function(){if(s&&d){var Ie;(Ie=U.current)===null||Ie===void 0||Ie.focus({preventScroll:!0})}},[s]);var J=E.useState(!1),ee=Je(J,2),ae=ee[0],ne=ee[1],fe=E.useContext(e$),he;A===!1?he={distance:0}:A===!0?he={}:he=A||{};var ye=(r=(n=(a=he)===null||a===void 0?void 0:a.distance)!==null&&n!==void 0?n:fe?.pushDistance)!==null&&r!==void 0?r:180,be=E.useMemo(function(){return{pushDistance:ye,push:function(){ne(!0)},pull:function(){ne(!1)}}},[ye]);E.useEffect(function(){if(s){var Ie;fe==null||(Ie=fe.push)===null||Ie===void 0||Ie.call(fe)}else{var we;fe==null||(we=fe.pull)===null||we===void 0||we.call(fe)}},[s]),E.useEffect(function(){return function(){var Ie;fe==null||(Ie=fe.pull)===null||Ie===void 0||Ie.call(fe)}},[]);var Se=R&&E.createElement(us,ge({key:"mask"},T,{visible:s}),function(Ie,we){var Re=Ie.className,Te=Ie.style;return E.createElement("div",{className:dt("".concat(o,"-mask"),Re,D),style:se(se({},Te),F),onClick:b&&s?_:void 0,ref:we})}),ve=typeof w=="function"?w(l):w,de={};if(ae&&ye)switch(l){case"top":de.transform="translateY(".concat(ye,"px)");break;case"bottom":de.transform="translateY(".concat(-ye,"px)");break;case"left":de.transform="translateX(".concat(ye,"px)");break;default:de.transform="translateX(".concat(-ye,"px)");break}l==="left"||l==="right"?de.width=t$(B):de.height=t$(x);var Ue={onMouseEnter:P,onMouseOver:k,onMouseLeave:j,onClick:Y,onKeyDown:X,onKeyUp:K},at=E.createElement(us,ge({key:"panel"},ve,{visible:s,forceRender:u,onVisibleChanged:function(we){N?.(we)},removeOnLeave:!1,leavedClassName:"".concat(o,"-content-wrapper-hidden")}),function(Ie,we){var Re=Ie.className,Te=Ie.style;return E.createElement("div",ge({className:dt("".concat(o,"-content-wrapper"),Re),style:se(se(se({},de),Te),S)},Gf(e,{data:!0})),E.createElement(UZe,ge({id:y,containerRef:we,prefixCls:o,className:m,style:C},Ue),M))}),Ve=se({},g);return p&&(Ve.zIndex=p),E.createElement(e$.Provider,{value:be},E.createElement("div",{className:dt(o,"".concat(o,"-").concat(l),h,(i={},te(i,"".concat(o,"-open"),s),te(i,"".concat(o,"-inline"),c),i)),style:Ve,tabIndex:-1,ref:U,onKeyDown:V},Se,E.createElement("div",{tabIndex:0,ref:H,style:r$,"aria-hidden":"true","data-sentinel":"start"}),at,E.createElement("div",{tabIndex:0,ref:L,style:r$,"aria-hidden":"true","data-sentinel":"end"})))}var GZe=E.forwardRef(HZe),KZe=function(t){var r=t.open,n=r===void 0?!1:r,a=t.prefixCls,i=a===void 0?"rc-drawer":a,o=t.placement,s=o===void 0?"right":o,l=t.autoFocus,c=l===void 0?!0:l,A=t.keyboard,u=A===void 0?!0:A,d=t.width,f=d===void 0?378:d,h=t.mask,g=h===void 0?!0:h,p=t.maskClosable,m=p===void 0?!0:p,y=t.getContainer,C=t.forceRender,w=t.afterOpenChange,B=t.destroyOnClose,x=t.onMouseEnter,M=t.onMouseOver,S=t.onMouseLeave,R=t.onClick,b=t.onKeyDown,T=t.onKeyUp,D=E.useState(!1),F=Je(D,2),N=F[0],_=F[1],P=E.useState(!1),k=Je(P,2),j=k[0],Y=k[1];Wa(function(){Y(!0)},[]);var X=j?n:!1,K=E.useRef(),U=E.useRef();Wa(function(){X&&(U.current=document.activeElement)},[X]);var H=function(ee){var ae;if(_(ee),w?.(ee),!ee&&U.current&&!(!((ae=K.current)===null||ae===void 0)&&ae.contains(U.current))){var ne;(ne=U.current)===null||ne===void 0||ne.focus({preventScroll:!0})}};if(!C&&!N&&!X&&B)return null;var L={onMouseEnter:x,onMouseOver:M,onMouseLeave:S,onClick:R,onKeyDown:b,onKeyUp:T},V=se(se({},t),{},{open:X,prefixCls:i,placement:s,autoFocus:c,keyboard:u,width:f,mask:g,maskClosable:m,inline:y===!1,afterOpenChange:H,ref:K},L);return E.createElement(I1e,{open:X||C||N,autoDestroy:!1,getContainer:y,autoLock:g&&(X||N)},E.createElement(GZe,V))},VZe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};Wo("default","large");var JZe={distance:180};function b1e(e){var t=e.width,r=e.height,n=e.size,a=n===void 0?"default":n,i=e.closable,o=i===void 0?!0:i,s=e.mask,l=s===void 0?!0:s,c=e.push,A=c===void 0?JZe:c,u=e.closeIcon,d=u===void 0?E.createElement(Go,null):u,f=e.bodyStyle,h=e.drawerStyle,g=e.className,p=e.visible,m=e.open,y=e.children,C=e.style,w=e.title,B=e.headerStyle,x=e.onClose,M=e.footer,S=e.footerStyle,R=e.prefixCls,b=e.getContainer,T=e.extra,D=e.afterVisibleChange,F=e.afterOpenChange,N=VZe(e,["width","height","size","closable","mask","push","closeIcon","bodyStyle","drawerStyle","className","visible","open","children","style","title","headerStyle","onClose","footer","footerStyle","prefixCls","getContainer","extra","afterVisibleChange","afterOpenChange"]),_=E.useContext(an),P=_.getPopupContainer,k=_.getPrefixCls,j=_.direction,Y=k("drawer",R),X=b===void 0&&P?function(){return P(document.body)}:b,K=o&&E.createElement("button",{type:"button",onClick:x,"aria-label":"Close",className:"".concat(Y,"-close")},d);[["visible","open"],["afterVisibleChange","afterOpenChange"]].forEach(function(ne){var fe=Je(ne,2);fe[0],fe[1]});function U(){return!w&&!o?null:E.createElement("div",{className:dt("".concat(Y,"-header"),te({},"".concat(Y,"-header-close-only"),o&&!w&&!T)),style:B},E.createElement("div",{className:"".concat(Y,"-header-title")},K,w&&E.createElement("div",{className:"".concat(Y,"-title")},w)),T&&E.createElement("div",{className:"".concat(Y,"-extra")},T))}function H(){if(!M)return null;var ne="".concat(Y,"-footer");return E.createElement("div",{className:ne,style:S},M)}var L=dt(te({"no-mask":!l},"".concat(Y,"-rtl"),j==="rtl"),g),V=E.useMemo(function(){return t??(a==="large"?736:378)},[t,a]),J=E.useMemo(function(){return r??(a==="large"?736:378)},[r,a]),ee={motionName:rA(Y,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},ae=function(fe){return{motionName:rA(Y,"panel-motion-".concat(fe)),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}};return E.createElement(jv,null,E.createElement(XE,{status:!0,override:!0},E.createElement(KZe,ge({prefixCls:Y,onClose:x},N,{open:m??p,mask:l,push:A,width:V,height:J,rootClassName:L,getContainer:X,afterOpenChange:function(fe){F?.(fe),D?.(fe)},maskMotion:ee,motion:ae,rootStyle:C}),E.createElement("div",{className:"".concat(Y,"-wrapper-body"),style:ge({},h)},U(),E.createElement("div",{className:"".concat(Y,"-body"),style:f},y),H()))))}function pT(e){var t=E.useState(e),r=Je(t,2),n=r[0],a=r[1];return E.useEffect(function(){var i=setTimeout(function(){a(e)},e.length?0:10);return function(){clearTimeout(i)}},[e]),n}var n$=[];function y8(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(r,"-").concat(n),error:e,errorStatus:t}}function S1e(e){var t=e.help,r=e.helpStatus,n=e.errors,a=n===void 0?n$:n,i=e.warnings,o=i===void 0?n$:i,s=e.className,l=e.fieldId,c=e.onVisibleChanged,A=E.useContext(T7),u=A.prefixCls,d=E.useContext(an),f=d.getPrefixCls,h="".concat(u,"-item-explain"),g=f(),p=pT(a),m=pT(o),y=E.useMemo(function(){return t!=null?[y8(t,r,"help")]:[].concat(ir(p.map(function(w,B){return y8(w,"error","error",B)})),ir(m.map(function(w,B){return y8(w,"warning","warning",B)})))},[t,r,p,m]),C={};return l&&(C.id="".concat(l,"_help")),E.createElement(us,{motionDeadline:sB.motionDeadline,motionName:"".concat(g,"-show-help"),visible:!!y.length,onVisibleChanged:c},function(w){var B=w.className,x=w.style;return E.createElement("div",ge({},C,{className:dt(h,B,s),style:x,role:"alert"}),E.createElement(d7,ge({keys:y},sB,{motionName:"".concat(g,"-show-help-item"),component:!1}),function(M){var S=M.key,R=M.error,b=M.errorStatus,T=M.className,D=M.style;return E.createElement("div",{key:S,className:dt(T,te({},"".concat(h,"-").concat(b),b)),style:D},R)}))})}function a$(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function i$(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function C8(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var r=getComputedStyle(e,null);return i$(r.overflowY,t)||i$(r.overflowX,t)||(function(n){var a=(function(i){if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!a&&(a.clientHeight<n.scrollHeight||a.clientWidth<n.scrollWidth)})(e)}return!1}function aI(e,t,r,n,a,i,o,s){return i<e&&o>t||i>e&&o<t?0:i<=e&&s<=r||o>=t&&s>=r?i-e-n:o>t&&s<r||i<e&&s>r?o-t+a:0}var o$=function(e,t){var r=window,n=t.scrollMode,a=t.block,i=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Se){return Se!==o};if(!a$(e))throw new TypeError("Invalid target");for(var c,A,u=document.scrollingElement||document.documentElement,d=[],f=e;a$(f)&&l(f);){if((f=(A=(c=f).parentElement)==null?c.getRootNode().host||null:A)===u){d.push(f);break}f!=null&&f===document.body&&C8(f)&&!C8(document.documentElement)||f!=null&&C8(f,s)&&d.push(f)}for(var h=r.visualViewport?r.visualViewport.width:innerWidth,g=r.visualViewport?r.visualViewport.height:innerHeight,p=window.scrollX||pageXOffset,m=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),C=y.height,w=y.width,B=y.top,x=y.right,M=y.bottom,S=y.left,R=a==="start"||a==="nearest"?B:a==="end"?M:B+C/2,b=i==="center"?S+w/2:i==="end"?x:S,T=[],D=0;D<d.length;D++){var F=d[D],N=F.getBoundingClientRect(),_=N.height,P=N.width,k=N.top,j=N.right,Y=N.bottom,X=N.left;if(n==="if-needed"&&B>=0&&S>=0&&M<=g&&x<=h&&B>=k&&M<=Y&&S>=X&&x<=j)return T;var K=getComputedStyle(F),U=parseInt(K.borderLeftWidth,10),H=parseInt(K.borderTopWidth,10),L=parseInt(K.borderRightWidth,10),V=parseInt(K.borderBottomWidth,10),J=0,ee=0,ae="offsetWidth"in F?F.offsetWidth-F.clientWidth-U-L:0,ne="offsetHeight"in F?F.offsetHeight-F.clientHeight-H-V:0,fe="offsetWidth"in F?F.offsetWidth===0?0:P/F.offsetWidth:0,he="offsetHeight"in F?F.offsetHeight===0?0:_/F.offsetHeight:0;if(u===F)J=a==="start"?R:a==="end"?R-g:a==="nearest"?aI(m,m+g,g,H,V,m+R,m+R+C,C):R-g/2,ee=i==="start"?b:i==="center"?b-h/2:i==="end"?b-h:aI(p,p+h,h,U,L,p+b,p+b+w,w),J=Math.max(0,J+m),ee=Math.max(0,ee+p);else{J=a==="start"?R-k-H:a==="end"?R-Y+V+ne:a==="nearest"?aI(k,Y,_,H,V+ne,R,R+C,C):R-(k+_/2)+ne/2,ee=i==="start"?b-X-U:i==="center"?b-(X+P/2)+ae/2:i==="end"?b-j+L+ae:aI(X,j,P,U,L+ae,b,b+w,w);var ye=F.scrollLeft,be=F.scrollTop;R+=be-(J=Math.max(0,Math.min(be+J/he,F.scrollHeight-_/he+ne))),b+=ye-(ee=Math.max(0,Math.min(ye+ee/fe,F.scrollWidth-P/fe+ae)))}T.push({el:F,top:J,left:ee})}return T};function R1e(e){return e===Object(e)&&Object.keys(e).length!==0}function WZe(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var a=n.el,i=n.top,o=n.left;a.scroll&&r?a.scroll({top:i,left:o,behavior:t}):(a.scrollTop=i,a.scrollLeft=o)})}function XZe(e){return e===!1?{block:"end",inline:"nearest"}:R1e(e)?e:{block:"start",inline:"nearest"}}function qZe(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(R1e(t)&&typeof t.behavior=="function")return t.behavior(r?o$(e,t):[]);if(r){var n=XZe(t);return WZe(o$(e,n),n.behavior)}}var ZZe=["parentNode"],$Ze="form_item";function kw(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function T1e(e,t){if(e.length){var r=e.join("_");if(t)return"".concat(t,"_").concat(r);var n=ZZe.includes(r);return n?"".concat($Ze,"_").concat(r):r}}function s$(e){var t=kw(e);return t.join("_")}function Q1e(e){var t=KQ(),r=Je(t,1),n=r[0],a=E.useRef({}),i=E.useMemo(function(){return e??ge(ge({},n),{__INTERNAL__:{itemRef:function(s){return function(l){var c=s$(s);l?a.current[c]=l:delete a.current[c]}}},scrollToField:function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=kw(s),A=T1e(c,i.__INTERNAL__.name),u=A?document.getElementById(A):null;u&&qZe(u,ge({scrollMode:"if-needed",block:"nearest"},l))},getFieldInstance:function(s){var l=s$(s);return a.current[l]}})},[e,n]);return[i]}var e$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},t$e=function(t,r){var n=E.useContext(ds),a=E.useContext(Ol),i=E.useContext(an),o=i.getPrefixCls,s=i.direction,l=i.form,c=t.prefixCls,A=t.className,u=A===void 0?"":A,d=t.size,f=d===void 0?n:d,h=t.disabled,g=h===void 0?a:h,p=t.form,m=t.colon,y=t.labelAlign,C=t.labelWrap,w=t.labelCol,B=t.wrapperCol,x=t.hideRequiredMark,M=t.layout,S=M===void 0?"horizontal":M,R=t.scrollToFirstError,b=t.requiredMark,T=t.onFinishFailed,D=t.name,F=e$e(t,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),N=E.useContext(Pme),_=E.useMemo(function(){return b!==void 0?b:l&&l.requiredMark!==void 0?l.requiredMark:!x},[x,b,l]),P=m??l?.colon,k=o("form",c),j=dt(k,te(te(te(te({},"".concat(k,"-").concat(S),!0),"".concat(k,"-hide-required-mark"),_===!1),"".concat(k,"-rtl"),s==="rtl"),"".concat(k,"-").concat(f),f),u),Y=Q1e(p),X=Je(Y,1),K=X[0],U=K.__INTERNAL__;U.name=D;var H=E.useMemo(function(){return{name:D,labelAlign:y,labelCol:w,labelWrap:C,wrapperCol:B,vertical:S==="vertical",colon:P,requiredMark:_,itemRef:U.itemRef,form:K}},[D,y,w,B,S,P,_,K]);E.useImperativeHandle(r,function(){return K});var L=function(J){T?.(J);var ee={block:"nearest"};R&&J.errorFields.length&&(Ar(R)==="object"&&(ee=R),K.scrollToField(J.errorFields[0].name,ee))};return E.createElement(S0e,{disabled:g},E.createElement(R0e,{size:f},E.createElement(mEe,ge({},{validateMessages:N}),E.createElement(Mg.Provider,{value:H},E.createElement(sm,ge({id:D},F,{name:D,onFinishFailed:L,form:K,className:j}))))))},r$e=E.forwardRef(t$e),n$e=function(){var t=E.useContext(fs),r=t.status;return{status:r}};function a$e(e){var t=E.useState(e),r=Je(t,2),n=r[0],a=r[1],i=E.useRef(null),o=E.useRef([]),s=E.useRef(!1);E.useEffect(function(){return s.current=!1,function(){s.current=!0,ta.cancel(i.current),i.current=null}},[]);function l(c){s.current||(i.current===null&&(o.current=[],i.current=ta(function(){i.current=null,a(function(A){var u=A;return o.current.forEach(function(d){u=d(u)}),u})})),o.current.push(c))}return[n,l]}function i$e(){var e=E.useContext(Mg),t=e.itemRef,r=E.useRef({});function n(a,i){var o=i&&Ar(i)==="object"&&i.ref,s=a.join("_");return(r.current.name!==s||r.current.originRef!==o)&&(r.current.name=s,r.current.originRef=o,r.current.ref=Ec(t(a),o)),r.current.ref}return n}var o$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function s$e(e){return e?Ar(e)==="object"&&!E.isValidElement(e)?e:{title:e}:null}var l$e=function(t){var r=t.prefixCls,n=t.label,a=t.htmlFor,i=t.labelCol,o=t.labelAlign,s=t.colon,l=t.required,c=t.requiredMark,A=t.tooltip,u=Lme("Form"),d=Je(u,1),f=d[0];return n?E.createElement(Mg.Consumer,{key:"label"},function(h){var g=h.vertical,p=h.labelAlign,m=h.labelCol,y=h.labelWrap,C=h.colon,w,B=i||m||{},x=o||p,M="".concat(r,"-item-label"),S=dt(M,x==="left"&&"".concat(M,"-left"),B.className,te({},"".concat(M,"-wrap"),!!y)),R=n,b=s===!0||C!==!1&&s!==!1,T=b&&!g;T&&typeof n=="string"&&n.trim()!==""&&(R=n.replace(/[:|：]\s*$/,""));var D=s$e(A);if(D){var F=D.icon,N=F===void 0?E.createElement(XNe,null):F,_=o$e(D,["icon"]),P=E.createElement(Mi,ge({},_),E.cloneElement(N,{className:"".concat(r,"-item-tooltip"),title:"",onClick:function(Y){Y.preventDefault()},tabIndex:null}));R=E.createElement(E.Fragment,null,R,P)}c==="optional"&&!l&&(R=E.createElement(E.Fragment,null,R,E.createElement("span",{className:"".concat(r,"-item-optional"),title:""},f?.optional||((w=eA.Form)===null||w===void 0?void 0:w.optional))));var k=dt(te(te(te({},"".concat(r,"-item-required"),l),"".concat(r,"-item-required-mark-optional"),c==="optional"),"".concat(r,"-item-no-colon"),!b));return E.createElement(Ta,ge({},B,{className:S}),E.createElement("label",{htmlFor:a,className:k,title:typeof n=="string"?n:""},R))}):null},c$e=function(t){var r=t.prefixCls,n=t.status,a=t.wrapperCol,i=t.children,o=t.errors,s=t.warnings,l=t._internalItemRender,c=t.extra,A=t.help,u=t.fieldId,d=t.marginBottom,f=t.onErrorVisibleChanged,h="".concat(r,"-item"),g=E.useContext(Mg),p=a||g.wrapperCol||{},m=dt("".concat(h,"-control"),p.className),y=E.useMemo(function(){return ge({},g)},[g]);delete y.labelCol,delete y.wrapperCol;var C=E.createElement("div",{className:"".concat(h,"-control-input")},E.createElement("div",{className:"".concat(h,"-control-input-content")},i)),w=E.useMemo(function(){return{prefixCls:r,status:n}},[r,n]),B=d!==null||o.length||s.length?E.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},E.createElement(T7.Provider,{value:w},E.createElement(S1e,{fieldId:u,errors:o,warnings:s,help:A,helpStatus:n,className:"".concat(h,"-explain-connected"),onVisibleChanged:f})),!!d&&E.createElement("div",{style:{width:0,height:d}})):null,x={};u&&(x.id="".concat(u,"_extra"));var M=c?E.createElement("div",ge({},x,{className:"".concat(h,"-extra")}),c):null,S=l&&l.mark==="pro_table_render"&&l.render?l.render(t,{input:C,errorList:B,extra:M}):E.createElement(E.Fragment,null,C,B,M);return E.createElement(Mg.Provider,{value:y},E.createElement(Ta,ge({},p,{className:m}),S))},A$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},u$e={success:KB,warning:JB,error:fu,validating:Cg};function d$e(e){var t=e.prefixCls,r=e.className,n=e.style,a=e.help,i=e.errors,o=e.warnings,s=e.validateStatus,l=e.meta,c=e.hasFeedback,A=e.hidden,u=e.children,d=e.fieldId,f=e.isRequired,h=e.onSubItemMetaChange,g=A$e(e,["prefixCls","className","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","isRequired","onSubItemMetaChange"]),p="".concat(t,"-item"),m=E.useContext(Mg),y=m.requiredMark,C=E.useRef(null),w=pT(i),B=pT(o),x=a!=null,M=!!(x||i.length||o.length),S=E.useState(null),R=Je(S,2),b=R[0],T=R[1];Wa(function(){if(M&&C.current){var P=getComputedStyle(C.current);T(parseInt(P.marginBottom,10))}},[M]);var D=function(k){k||T(null)},F="";s!==void 0?F=s:l.validating?F="validating":w.length?F="error":B.length?F="warning":l.touched&&(F="success");var N=E.useMemo(function(){var P;if(c){var k=F&&u$e[F];P=k?E.createElement("span",{className:dt("".concat(p,"-feedback-icon"),"".concat(p,"-feedback-icon-").concat(F))},E.createElement(k,null)):null}return{status:F,hasFeedback:c,feedbackIcon:P,isFormItemInput:!0}},[F,c]),_=te(te(te(te(te(te(te(te(te({},p,!0),"".concat(p,"-with-help"),x||w.length||B.length),"".concat(r),!!r),"".concat(p,"-has-feedback"),F&&c),"".concat(p,"-has-success"),F==="success"),"".concat(p,"-has-warning"),F==="warning"),"".concat(p,"-has-error"),F==="error"),"".concat(p,"-is-validating"),F==="validating"),"".concat(p,"-hidden"),A);return E.createElement("div",{className:dt(_),style:n,ref:C},E.createElement(Uo,ge({className:"".concat(p,"-row")},ji(g,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","required","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),E.createElement(l$e,ge({htmlFor:d,required:f,requiredMark:y},e,{prefixCls:t})),E.createElement(c$e,ge({},e,l,{errors:w,warnings:B,prefixCls:t,status:F,help:a,marginBottom:b,onErrorVisibleChanged:D}),E.createElement(vEe.Provider,{value:h},E.createElement(fs.Provider,{value:N},u)))),!!b&&E.createElement("div",{className:"".concat(p,"-margin-offset"),style:{marginBottom:-b}}))}var f$e="__SPLIT__";Wo("success","warning","error","validating","");var h$e=E.memo(function(e){var t=e.children;return t},function(e,t){return e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(function(r,n){return r===t.childProps[n]})});function g$e(e){return e!=null}function l$(){return{errors:[],warnings:[],touched:!1,validating:!1,validated:!1,name:[]}}function p$e(e){var t=e.name,r=e.noStyle,n=e.dependencies,a=e.prefixCls,i=e.shouldUpdate,o=e.rules,s=e.children,l=e.required,c=e.label,A=e.messageVariables,u=e.trigger,d=u===void 0?"onChange":u,f=e.validateTrigger,h=e.hidden,g=E.useContext(an),p=g.getPrefixCls,m=E.useContext(Mg),y=m.name,C=typeof s=="function",w=E.useContext(vEe),B=E.useContext(xg),x=B.validateTrigger,M=f!==void 0?f:x,S=g$e(t),R=p("form",a),b=E.useContext(WE),T=E.useRef(),D=a$e({}),F=Je(D,2),N=F[0],_=F[1],P=Bg(function(){return l$()}),k=Je(P,2),j=k[0],Y=k[1],X=function(fe){var he=b?.getKey(fe.name);if(Y(fe.destroy?l$():fe,!0),r&&w){var ye=fe.name;if(fe.destroy)ye=T.current||ye;else if(he!==void 0){var be=Je(he,2),Se=be[0],ve=be[1];ye=[Se].concat(ir(ve)),T.current=ye}w(fe,ye)}},K=function(fe,he){_(function(ye){var be=ge({},ye),Se=[].concat(ir(fe.name.slice(0,-1)),ir(he)),ve=Se.join(f$e);return fe.destroy?delete be[ve]:be[ve]=fe,be})},U=E.useMemo(function(){var ne=ir(j.errors),fe=ir(j.warnings);return Object.values(N).forEach(function(he){ne.push.apply(ne,ir(he.errors||[])),fe.push.apply(fe,ir(he.warnings||[]))}),[ne,fe]},[N,j.errors,j.warnings]),H=Je(U,2),L=H[0],V=H[1],J=i$e();function ee(ne,fe,he){return r&&!h?ne:E.createElement(d$e,ge({key:"row"},e,{prefixCls:R,fieldId:fe,isRequired:he,errors:L,warnings:V,meta:j,onSubItemMetaChange:K}),ne)}if(!S&&!C&&!n)return ee(s);var ae={};return typeof c=="string"?ae.label=c:t&&(ae.label=String(t)),A&&(ae=ge(ge({},ae),A)),E.createElement(GQ,ge({},e,{messageVariables:ae,trigger:d,validateTrigger:M,onMetaChange:X}),function(ne,fe,he){var ye=kw(t).length&&fe?fe.name:[],be=T1e(ye,y),Se=l!==void 0?l:!!(o&&o.some(function(we){if(we&&Ar(we)==="object"&&we.required&&!we.warningOnly)return!0;if(typeof we=="function"){var Re=we(he);return Re&&Re.required&&!Re.warningOnly}return!1})),ve=ge({},ne),de=null;if(Array.isArray(s)&&S)de=s;else if(!(C&&(!(i||n)||S))){if(!(n&&!C&&!S))if(gc(s)){var Ue=ge(ge({},s.props),ve);if(Ue.id||(Ue.id=be),e.help||L.length>0||V.length>0||e.extra){var at=[];(e.help||L.length>0)&&at.push("".concat(be,"_help")),e.extra&&at.push("".concat(be,"_extra")),Ue["aria-describedby"]=at.join(" ")}L.length>0&&(Ue["aria-invalid"]="true"),Se&&(Ue["aria-required"]="true"),im(s)&&(Ue.ref=J(ye,s));var Ve=new Set([].concat(ir(kw(d)),ir(kw(M))));Ve.forEach(function(we){Ue[we]=function(){for(var Re,Te,Ke,mt,tt,rt=arguments.length,lt=new Array(rt),At=0;At<rt;At++)lt[At]=arguments[At];(Ke=ve[we])===null||Ke===void 0||(Re=Ke).call.apply(Re,[ve].concat(lt)),(tt=(mt=s.props)[we])===null||tt===void 0||(Te=tt).call.apply(Te,[mt].concat(lt))}});var Ie=[Ue["aria-required"],Ue["aria-invalid"],Ue["aria-describedby"]];de=E.createElement(h$e,{value:ve[e.valuePropName||"value"],update:s,childProps:Ie},fi(s,Ue))}else C&&(i||n)&&!S?de=s(he):de=s}return ee(de,be,Se)})}var D1e=p$e;D1e.useStatus=n$e;var v$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},m$e=function(t){var r=t.prefixCls,n=t.children,a=v$e(t,["prefixCls","children"]),i=E.useContext(an),o=i.getPrefixCls,s=o("form",r),l=E.useMemo(function(){return{prefixCls:s,status:"error"}},[s]);return E.createElement(b7,ge({},a),function(c,A,u){return E.createElement(T7.Provider,{value:l},n(c.map(function(d){return ge(ge({},d),{fieldKey:d.key})}),A,{errors:u.errors,warnings:u.warnings}))})};function E$e(){var e=E.useContext(Mg),t=e.form;return t}var We=r$e;We.Item=D1e;We.List=m$e;We.ErrorList=S1e;We.useForm=Q1e;We.useFormInstance=E$e;We.useWatch=R7;We.Provider=mEe;We.create=function(){};function c$(e){var t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function y$e(){var e=se({},r4e);return e.useId}var A$=0,u$=y$e();const C$e=u$?(function(t){var r=u$();return t||r}):(function(t){var r=E.useState("ssr-id"),n=Je(r,2),a=n[0],i=n[1];return E.useEffect(function(){var o=A$;A$+=1,i("rc_unique_".concat(o))},[]),t||a});function w$e(e){var t=e.prefixCls,r=e.style,n=e.visible,a=e.maskProps,i=e.motionName;return E.createElement(us,{key:"mask",visible:n,motionName:i,leavedClassName:"".concat(t,"-mask-hidden")},function(o,s){var l=o.className,c=o.style;return E.createElement("div",ge({ref:s,style:se(se({},c),r),className:dt("".concat(t,"-mask"),l)},a))})}function d$(e,t,r){var n=t;return!n&&r&&(n="".concat(e,"-").concat(r)),n}function f$(e,t){var r=e["page".concat(t?"Y":"X","Offset")],n="scroll".concat(t?"Top":"Left");if(typeof r!="number"){var a=e.document;r=a.documentElement[n],typeof r!="number"&&(r=a.body[n])}return r}function B$e(e){var t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,a=n.defaultView||n.parentWindow;return r.left+=f$(a),r.top+=f$(a,!0),r}const x$e=E.memo(function(e){var t=e.children;return t},function(e,t){var r=t.shouldUpdate;return!r});var h$={width:0,height:0,overflow:"hidden",outline:"none"},F1e=le.forwardRef(function(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.title,o=e.ariaId,s=e.footer,l=e.closable,c=e.closeIcon,A=e.onClose,u=e.children,d=e.bodyStyle,f=e.bodyProps,h=e.modalRender,g=e.onMouseDown,p=e.onMouseUp,m=e.holderRef,y=e.visible,C=e.forceRender,w=e.width,B=e.height,x=E.useRef(),M=E.useRef();le.useImperativeHandle(t,function(){return{focus:function(){var N;(N=x.current)===null||N===void 0||N.focus({preventScroll:!0})},changeActive:function(N){var _=document,P=_.activeElement;N&&P===M.current?x.current.focus({preventScroll:!0}):!N&&P===x.current&&M.current.focus({preventScroll:!0})}}});var S={};w!==void 0&&(S.width=w),B!==void 0&&(S.height=B);var R;s&&(R=le.createElement("div",{className:"".concat(r,"-footer")},s));var b;i&&(b=le.createElement("div",{className:"".concat(r,"-header")},le.createElement("div",{className:"".concat(r,"-title"),id:o},i)));var T;l&&(T=le.createElement("button",{type:"button",onClick:A,"aria-label":"Close",className:"".concat(r,"-close")},c||le.createElement("span",{className:"".concat(r,"-close-x")})));var D=le.createElement("div",{className:"".concat(r,"-content")},T,b,le.createElement("div",ge({className:"".concat(r,"-body"),style:d},f),u),R);return le.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?o:null,"aria-modal":"true",ref:m,style:se(se({},a),S),className:dt(r,n),onMouseDown:g,onMouseUp:p},le.createElement("div",{tabIndex:0,ref:x,style:h$}),le.createElement(x$e,{shouldUpdate:y||C},h?h(D):D),le.createElement("div",{tabIndex:0,ref:M,style:h$}))}),N1e=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.title,a=e.style,i=e.className,o=e.visible,s=e.forceRender,l=e.destroyOnClose,c=e.motionName,A=e.ariaId,u=e.onVisibleChanged,d=e.mousePosition,f=E.useRef(),h=E.useState(),g=Je(h,2),p=g[0],m=g[1],y={};p&&(y.transformOrigin=p);function C(){var w=B$e(f.current);m(d?"".concat(d.x-w.left,"px ").concat(d.y-w.top,"px"):"")}return E.createElement(us,{visible:o,onVisibleChanged:u,onAppearPrepare:C,onEnterPrepare:C,forceRender:s,motionName:c,removeOnLeave:l,ref:f},function(w,B){var x=w.className,M=w.style;return E.createElement(F1e,ge({},e,{ref:t,title:n,ariaId:A,prefixCls:r,holderRef:B,style:se(se(se({},M),a),y),className:dt(i,x)}))})});N1e.displayName="Content";function M$e(e){var t=e.prefixCls,r=t===void 0?"rc-dialog":t,n=e.zIndex,a=e.visible,i=a===void 0?!1:a,o=e.keyboard,s=o===void 0?!0:o,l=e.focusTriggerAfterClose,c=l===void 0?!0:l,A=e.wrapStyle,u=e.wrapClassName,d=e.wrapProps,f=e.onClose,h=e.afterClose,g=e.transitionName,p=e.animation,m=e.closable,y=m===void 0?!0:m,C=e.mask,w=C===void 0?!0:C,B=e.maskTransitionName,x=e.maskAnimation,M=e.maskClosable,S=M===void 0?!0:M,R=e.maskStyle,b=e.maskProps,T=e.rootClassName,D=E.useRef(),F=E.useRef(),N=E.useRef(),_=E.useState(i),P=Je(_,2),k=P[0],j=P[1],Y=C$e();function X(){Cv(F.current,document.activeElement)||(D.current=document.activeElement)}function K(){if(!Cv(F.current,document.activeElement)){var fe;(fe=N.current)===null||fe===void 0||fe.focus()}}function U(fe){if(fe)K();else{if(j(!1),w&&D.current&&c){try{D.current.focus({preventScroll:!0})}catch{}D.current=null}k&&h?.()}}function H(fe){f?.(fe)}var L=E.useRef(!1),V=E.useRef(),J=function(){clearTimeout(V.current),L.current=!0},ee=function(){V.current=setTimeout(function(){L.current=!1})},ae=null;S&&(ae=function(he){L.current?L.current=!1:F.current===he.target&&H(he)});function ne(fe){if(s&&fe.keyCode===cr.ESC){fe.stopPropagation(),H(fe);return}i&&fe.keyCode===cr.TAB&&N.current.changeActive(!fe.shiftKey)}return E.useEffect(function(){i&&(j(!0),X())},[i]),E.useEffect(function(){return function(){clearTimeout(V.current)}},[]),E.createElement("div",ge({className:dt("".concat(r,"-root"),T)},Gf(e,{data:!0})),E.createElement(w$e,{prefixCls:r,visible:w&&i,motionName:d$(r,B,x),style:se({zIndex:n},R),maskProps:b}),E.createElement("div",ge({tabIndex:-1,onKeyDown:ne,className:dt("".concat(r,"-wrap"),u),ref:F,onClick:ae,style:se(se({zIndex:n},A),{},{display:k?null:"none"})},d),E.createElement(N1e,ge({},e,{onMouseDown:J,onMouseUp:ee,ref:N,closable:y,ariaId:Y,prefixCls:r,visible:i&&k,onClose:H,onVisibleChanged:U,motionName:d$(r,g,p)}))))}var hU=function(t){var r=t.visible,n=t.getContainer,a=t.forceRender,i=t.destroyOnClose,o=i===void 0?!1:i,s=t.afterClose,l=E.useState(r),c=Je(l,2),A=c[0],u=c[1];return E.useEffect(function(){r&&u(!0)},[r]),!a&&o&&!A?null:E.createElement(I1e,{open:r||a||A,autoDestroy:!1,getContainer:n,autoLock:r||A},E.createElement(M$e,ge({},t,{destroyOnClose:o,afterClose:function(){s?.(),u(!1)}})))};hU.displayName="Dialog";const I$e=Object.freeze(Object.defineProperty({__proto__:null,Panel:F1e,default:hU},Symbol.toStringTag,{value:"Module"}));var b$e=function(t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=t.prefixCls,o=t.className,s=o===void 0?"":o,l=n("input-group",i),c=dt(l,te(te(te(te({},"".concat(l,"-lg"),t.size==="large"),"".concat(l,"-sm"),t.size==="small"),"".concat(l,"-compact"),t.compact),"".concat(l,"-rtl"),a==="rtl"),s),A=E.useContext(fs),u=E.useMemo(function(){return ge(ge({},A),{isFormItemInput:!1})},[A]);return E.createElement("span",{className:c,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},E.createElement(fs.Provider,{value:u},t.children))};function $S(e){return!!(e.addonBefore||e.addonAfter)}function _1e(e){return!!(e.prefix||e.suffix||e.allowClear)}function g$(e,t,r,n){if(r){var a=t;if(t.type==="click"){var i=e.cloneNode(!0);a=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",r(a);return}r(a)}}function S$e(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a)}}}}function p$(e){return typeof e>"u"||e===null?"":String(e)}var k1e=function(t){var r=t.inputElement,n=t.prefixCls,a=t.prefix,i=t.suffix,o=t.addonBefore,s=t.addonAfter,l=t.className,c=t.style,A=t.affixWrapperClassName,u=t.groupClassName,d=t.wrapperClassName,f=t.disabled,h=t.readOnly,g=t.focused,p=t.triggerFocus,m=t.allowClear,y=t.value,C=t.handleReset,w=t.hidden,B=E.useRef(null),x=function(j){var Y;(Y=B.current)!==null&&Y!==void 0&&Y.contains(j.target)&&p?.()},M=function(){var j;if(!m)return null;var Y=!f&&!h&&y,X="".concat(n,"-clear-icon"),K=Ar(m)==="object"&&m!==null&&m!==void 0&&m.clearIcon?m.clearIcon:"✖";return le.createElement("span",{onClick:C,onMouseDown:function(H){return H.preventDefault()},className:dt(X,(j={},te(j,"".concat(X,"-hidden"),!Y),te(j,"".concat(X,"-has-suffix"),!!i),j)),role:"button",tabIndex:-1},K)},S=E.cloneElement(r,{value:y,hidden:w});if(_1e(t)){var R,b="".concat(n,"-affix-wrapper"),T=dt(b,(R={},te(R,"".concat(b,"-disabled"),f),te(R,"".concat(b,"-focused"),g),te(R,"".concat(b,"-readonly"),h),te(R,"".concat(b,"-input-with-clear-btn"),i&&m&&y),R),!$S(t)&&l,A),D=(i||m)&&le.createElement("span",{className:"".concat(n,"-suffix")},M(),i);S=le.createElement("span",{className:T,style:c,hidden:!$S(t)&&w,onClick:x,ref:B},a&&le.createElement("span",{className:"".concat(n,"-prefix")},a),E.cloneElement(r,{style:null,value:y,hidden:null}),D)}if($S(t)){var F="".concat(n,"-group"),N="".concat(F,"-addon"),_=dt("".concat(n,"-wrapper"),F,d),P=dt("".concat(n,"-group-wrapper"),l,u);return le.createElement("span",{className:P,style:c,hidden:w},le.createElement("span",{className:_},o&&le.createElement("span",{className:N},o),E.cloneElement(S,{style:null,hidden:null}),s&&le.createElement("span",{className:N},s)))}return S},R$e=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],P1e=E.forwardRef(function(e,t){var r=e.autoComplete,n=e.onChange,a=e.onFocus,i=e.onBlur,o=e.onPressEnter,s=e.onKeyDown,l=e.prefixCls,c=l===void 0?"rc-input":l,A=e.disabled,u=e.htmlSize,d=e.className,f=e.maxLength,h=e.suffix,g=e.showCount,p=e.type,m=p===void 0?"text":p,y=e.inputClassName,C=An(e,R$e),w=Ia(e.defaultValue,{value:e.value}),B=Je(w,2),x=B[0],M=B[1],S=E.useState(!1),R=Je(S,2),b=R[0],T=R[1],D=E.useRef(null),F=function(U){D.current&&S$e(D.current,U)};E.useImperativeHandle(t,function(){return{focus:F,blur:function(){var U;(U=D.current)===null||U===void 0||U.blur()},setSelectionRange:function(U,H,L){var V;(V=D.current)===null||V===void 0||V.setSelectionRange(U,H,L)},select:function(){var U;(U=D.current)===null||U===void 0||U.select()},input:D.current}}),E.useEffect(function(){T(function(K){return K&&A?!1:K})},[A]);var N=function(U){e.value===void 0&&M(U.target.value),D.current&&g$(D.current,U,n)},_=function(U){o&&U.key==="Enter"&&o(U),s?.(U)},P=function(U){T(!0),a?.(U)},k=function(U){T(!1),i?.(U)},j=function(U){M(""),F(),D.current&&g$(D.current,U,n)},Y=function(){var U=ji(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return le.createElement("input",ge({autoComplete:r},U,{onChange:N,onFocus:P,onBlur:k,onKeyDown:_,className:dt(c,te({},"".concat(c,"-disabled"),A),y,!$S(e)&&!_1e(e)&&d),ref:D,size:u,type:m}))},X=function(){var U=Number(f)>0;if(h||g){var H=p$(x),L=ir(H).length,V=Ar(g)==="object"?g.formatter({value:H,count:L,maxLength:f}):"".concat(L).concat(U?" / ".concat(f):"");return le.createElement(le.Fragment,null,!!g&&le.createElement("span",{className:dt("".concat(c,"-show-count-suffix"),te({},"".concat(c,"-show-count-has-suffix"),!!h))},V),h)}return null};return le.createElement(k1e,ge({},C,{prefixCls:c,className:d,inputElement:Y(),handleReset:j,value:p$(x),focused:b,triggerFocus:F,suffix:X(),disabled:A}))});const T$e=Object.freeze(Object.defineProperty({__proto__:null,BaseInput:k1e,default:P1e},Symbol.toStringTag,{value:"Module"}));function O1e(e,t){var r=E.useRef([]),n=function(){r.current.push(setTimeout(function(){var i,o,s,l;!((i=e.current)===null||i===void 0)&&i.input&&((o=e.current)===null||o===void 0?void 0:o.input.getAttribute("type"))==="password"&&(!((s=e.current)===null||s===void 0)&&s.input.hasAttribute("value"))&&((l=e.current)===null||l===void 0||l.input.removeAttribute("value"))}))};return E.useEffect(function(){return t&&n(),function(){return r.current.forEach(function(a){a&&clearTimeout(a)})}},[]),n}function Q$e(e){return!!(e.prefix||e.suffix||e.allowClear)}var D$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function F$e(e){return typeof e>"u"||e===null?"":String(e)}function w8(e,t,r,n){if(r){var a=t;if(t.type==="click"){var i=e.cloneNode(!0);a=Object.create(t,{target:{value:i},currentTarget:{value:i}}),i.value="",r(a);return}if(n!==void 0){a=Object.create(t,{target:{value:e},currentTarget:{value:e}}),e.value=n,r(a);return}r(a)}}function N$e(e,t){if(e){e.focus(t);var r=t||{},n=r.cursor;if(n){var a=e.value.length;switch(n){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(a,a);break;default:e.setSelectionRange(0,a);break}}}}var gU=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.bordered,a=n===void 0?!0:n,i=e.status,o=e.size,s=e.disabled,l=e.onBlur,c=e.onFocus,A=e.suffix,u=e.allowClear,d=e.addonAfter,f=e.addonBefore,h=e.className,g=e.onChange,p=D$e(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","onChange"]),m=le.useContext(an),y=m.getPrefixCls,C=m.direction,w=m.input,B=y("input",r),x=E.useRef(null),M=$f(B,C),S=M.compactSize,R=M.compactItemClassnames,b=le.useContext(ds),T=S||o||b,D=le.useContext(Ol),F=s??D,N=E.useContext(fs),_=N.status,P=N.hasFeedback,k=N.feedbackIcon,j=Zf(_,i),Y=Q$e(e)||!!P,X=E.useRef(Y);E.useEffect(function(){Y&&X.current,X.current=Y},[Y]);var K=O1e(x,!0),U=function(ae){K(),l?.(ae)},H=function(ae){K(),c?.(ae)},L=function(ae){K(),g?.(ae)},V=(P||A)&&le.createElement(le.Fragment,null,A,P&&k),J;return Ar(u)==="object"&&u?.clearIcon?J=u:u&&(J={clearIcon:le.createElement(fu,null)}),le.createElement(P1e,ge({ref:Ec(t,x),prefixCls:B,autoComplete:w?.autoComplete},p,{disabled:F||void 0,onBlur:U,onFocus:H,suffix:V,allowClear:J,className:dt(h,R),onChange:L,addonAfter:d&&le.createElement(jv,null,le.createElement(XE,{override:!0,status:!0},d)),addonBefore:f&&le.createElement(jv,null,le.createElement(XE,{override:!0,status:!0},f)),inputClassName:dt(te(te(te(te({},"".concat(B,"-sm"),T==="small"),"".concat(B,"-lg"),T==="large"),"".concat(B,"-rtl"),C==="rtl"),"".concat(B,"-borderless"),!a),!Y&&kl(B,j)),affixWrapperClassName:dt(te(te(te(te({},"".concat(B,"-affix-wrapper-sm"),T==="small"),"".concat(B,"-affix-wrapper-lg"),T==="large"),"".concat(B,"-affix-wrapper-rtl"),C==="rtl"),"".concat(B,"-affix-wrapper-borderless"),!a),kl("".concat(B,"-affix-wrapper"),j,P)),wrapperClassName:dt(te({},"".concat(B,"-group-rtl"),C==="rtl")),groupClassName:dt(te(te(te({},"".concat(B,"-group-wrapper-sm"),T==="small"),"".concat(B,"-group-wrapper-lg"),T==="large"),"".concat(B,"-group-wrapper-rtl"),C==="rtl"),kl("".concat(B,"-group-wrapper"),j,P))}))}),_$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},k$e=function(t){return t?E.createElement(TY,null):E.createElement(RY,null)},P$e={click:"onClick",hover:"onMouseOver"},O$e=E.forwardRef(function(e,t){var r=e.visibilityToggle,n=r===void 0?!0:r,a=Ar(n)==="object"&&n.visible!==void 0,i=E.useState(function(){return a?n.visible:!1}),o=Je(i,2),s=o[0],l=o[1],c=E.useRef(null);E.useEffect(function(){a&&l(n.visible)},[a,n]);var A=O1e(c),u=function(){var g=e.disabled;g||(s&&A(),l(function(p){var m,y=!p;return Ar(n)==="object"&&((m=n.onVisibleChange)===null||m===void 0||m.call(n,y)),y}))},d=function(g){var p=e.action,m=p===void 0?"click":p,y=e.iconRender,C=y===void 0?k$e:y,w=P$e[m]||"",B=C(s),x=te(te(te(te(te({},w,u),"className","".concat(g,"-icon")),"key","passwordIcon"),"onMouseDown",function(S){S.preventDefault()}),"onMouseUp",function(S){S.preventDefault()});return E.cloneElement(E.isValidElement(B)?B:E.createElement("span",null,B),x)},f=function(g){var p=g.getPrefixCls,m=e.className,y=e.prefixCls,C=e.inputPrefixCls,w=e.size,B=_$e(e,["className","prefixCls","inputPrefixCls","size"]),x=p("input",C),M=p("input-password",y),S=n&&d(M),R=dt(M,m,te({},"".concat(M,"-").concat(w),!!w)),b=ge(ge({},ji(B,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:R,prefixCls:x,suffix:S});return w&&(b.size=w),E.createElement(gU,ge({ref:Ec(t,c)},b))};return E.createElement(Lg,null,f)}),j$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},z$e=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.inputPrefixCls,a=e.className,i=e.size,o=e.suffix,s=e.enterButton,l=s===void 0?!1:s,c=e.addonAfter,A=e.loading,u=e.disabled,d=e.onSearch,f=e.onChange,h=e.onCompositionStart,g=e.onCompositionEnd,p=j$e(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),m=E.useContext(an),y=m.getPrefixCls,C=m.direction,w=E.useContext(ds),B=E.useRef(!1),x=y("input-search",r),M=y("input",n),S=$f(x,C),R=S.compactSize,b=R||i||w,T=E.useRef(null),D=function(V){V&&V.target&&V.type==="click"&&d&&d(V.target.value,V),f&&f(V)},F=function(V){var J;document.activeElement===((J=T.current)===null||J===void 0?void 0:J.input)&&V.preventDefault()},N=function(V){var J,ee;d&&d((ee=(J=T.current)===null||J===void 0?void 0:J.input)===null||ee===void 0?void 0:ee.value,V)},_=function(V){B.current||A||N(V)},P=typeof l=="boolean"?E.createElement(Xf,null):null,k="".concat(x,"-button"),j,Y=l||{},X=Y.type&&Y.type.__ANT_BUTTON===!0;X||Y.type==="button"?j=fi(Y,ge({onMouseDown:F,onClick:function(V){var J,ee;(ee=(J=Y?.props)===null||J===void 0?void 0:J.onClick)===null||ee===void 0||ee.call(J,V),N(V)},key:"enterButton"},X?{className:k,size:b}:{})):j=E.createElement(yt,{className:k,type:l?"primary":void 0,size:b,disabled:u,key:"enterButton",onMouseDown:F,onClick:N,loading:A,icon:P},l),c&&(j=[j,fi(c,{key:"addonAfter"})]);var K=dt(x,te(te(te({},"".concat(x,"-rtl"),C==="rtl"),"".concat(x,"-").concat(b),!!b),"".concat(x,"-with-button"),!!l),a),U=function(V){B.current=!0,h?.(V)},H=function(V){B.current=!1,g?.(V)};return E.createElement(gU,ge({ref:Ec(T,t),onPressEnter:_},p,{size:b,onCompositionStart:U,onCompositionEnd:H,prefixCls:M,addonAfter:j,suffix:o,onChange:D,className:K,disabled:u}))}),L$e=`
  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;
`,Y$e=["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"],B8={},Uc;function U$e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&B8[r])return B8[r];var n=window.getComputedStyle(e),a=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),i=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),s=Y$e.map(function(c){return"".concat(c,":").concat(n.getPropertyValue(c))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:o,boxSizing:a};return t&&r&&(B8[r]=l),l}function H$e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Uc||(Uc=document.createElement("textarea"),Uc.setAttribute("tab-index","-1"),Uc.setAttribute("aria-hidden","true"),document.body.appendChild(Uc)),e.getAttribute("wrap")?Uc.setAttribute("wrap",e.getAttribute("wrap")):Uc.removeAttribute("wrap");var a=U$e(e,t),i=a.paddingSize,o=a.borderSize,s=a.boxSizing,l=a.sizingStyle;Uc.setAttribute("style","".concat(l,";").concat(L$e)),Uc.value=e.value||e.placeholder||"";var c=void 0,A=void 0,u,d=Uc.scrollHeight;if(s==="border-box"?d+=o:s==="content-box"&&(d-=i),r!==null||n!==null){Uc.value=" ";var f=Uc.scrollHeight-i;r!==null&&(c=f*r,s==="border-box"&&(c=c+i+o),d=Math.max(c,d)),n!==null&&(A=f*n,s==="border-box"&&(A=A+i+o),u=d>A?"":"hidden",d=Math.min(A,d))}var h={height:d,overflowY:u,resize:"none"};return c&&(h.minHeight=c),A&&(h.maxHeight=A),h}var G$e=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],x8=0,M8=1,I8=2,j1e=E.forwardRef(function(e,t){var r=e.prefixCls,n=r===void 0?"rc-textarea":r;e.onPressEnter;var a=e.defaultValue,i=e.value,o=e.autoSize,s=e.onResize,l=e.className,c=e.style,A=e.disabled,u=e.onChange;e.onInternalAutoSize;var d=An(e,G$e),f=Ia(a,{value:i,postState:function(L){return L??""}}),h=Je(f,2),g=h[0],p=h[1],m=function(L){p(L.target.value),u?.(L)},y=E.useRef();E.useImperativeHandle(t,function(){return{textArea:y.current}});var C=E.useMemo(function(){return o&&Ar(o)==="object"?[o.minRows,o.maxRows]:[]},[o]),w=Je(C,2),B=w[0],x=w[1],M=!!o,S=function(){try{if(document.activeElement===y.current){var L=y.current,V=L.selectionStart,J=L.selectionEnd,ee=L.scrollTop;y.current.setSelectionRange(V,J),y.current.scrollTop=ee}}catch{}},R=E.useState(I8),b=Je(R,2),T=b[0],D=b[1],F=E.useState(),N=Je(F,2),_=N[0],P=N[1],k=function(){D(x8)};Wa(function(){M&&k()},[i,B,x,M]),Wa(function(){if(T===x8)D(M8);else if(T===M8){var H=H$e(y.current,!1,B,x);D(I8),P(H)}else S()},[T]);var j=E.useRef(),Y=function(){ta.cancel(j.current)},X=function(L){T===I8&&(s?.(L),o&&(Y(),j.current=ta(function(){k()})))};E.useEffect(function(){return Y},[]);var K=M?_:null,U=se(se({},c),K);return(T===x8||T===M8)&&(U.overflowY="hidden",U.overflowX="hidden"),E.createElement($c,{onResize:X,disabled:!(o||s)},E.createElement("textarea",ge({},d,{ref:y,style:U,className:dt(n,l,te({},"".concat(n,"-disabled"),A)),disabled:A,value:g,onChange:m})))}),z1e=(function(e){fa(r,e);var t=pi(r);function r(n){var a;Vn(this,r),a=t.call(this,n),a.resizableTextArea=void 0,a.focus=function(){a.resizableTextArea.textArea.focus()},a.saveTextArea=function(o){a.resizableTextArea=o},a.handleChange=function(o){var s=a.props.onChange;a.setValue(o.target.value),s&&s(o)},a.handleKeyDown=function(o){var s=a.props,l=s.onPressEnter,c=s.onKeyDown;o.keyCode===13&&l&&l(o),c&&c(o)};var i=typeof n.value>"u"||n.value===null?n.defaultValue:n.value;return a.state={value:i},a}return Jn(r,[{key:"setValue",value:function(a,i){"value"in this.props||this.setState({value:a},i)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return E.createElement(j1e,ge({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(a){return"value"in a?{value:a.value}:null}}]),r})(E.Component);const K$e=Object.freeze(Object.defineProperty({__proto__:null,ResizableTextArea:j1e,default:z1e},Symbol.toStringTag,{value:"Module"}));function V$e(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var J$e=Wo("text","input");function W$e(e){return!!(e.addonBefore||e.addonAfter)}var X$e=(function(e){fa(t,e);function t(){return Vn(this,t),V$e(this,t,arguments)}return Jn(t,[{key:"renderClearIcon",value:function(n){var a=this.props,i=a.value,o=a.disabled,s=a.readOnly,l=a.handleReset,c=a.suffix,A=!o&&!s&&i,u="".concat(n,"-clear-icon");return E.createElement(fu,{onClick:l,onMouseDown:function(f){return f.preventDefault()},className:dt(te(te({},"".concat(u,"-hidden"),!A),"".concat(u,"-has-suffix"),!!c),u),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(n,a,i){var o=this.props,s=o.value,l=o.allowClear,c=o.className,A=o.focused,u=o.style,d=o.direction,f=o.bordered,h=o.hidden,g=o.status,p=i.status,m=i.hasFeedback;if(!l)return fi(a,{value:s});var y=dt("".concat(n,"-affix-wrapper"),"".concat(n,"-affix-wrapper-textarea-with-clear-btn"),kl("".concat(n,"-affix-wrapper"),Zf(p,g),m),te(te(te(te({},"".concat(n,"-affix-wrapper-focused"),A),"".concat(n,"-affix-wrapper-rtl"),d==="rtl"),"".concat(n,"-affix-wrapper-borderless"),!f),"".concat(c),!W$e(this.props)&&c));return E.createElement("span",{className:y,style:u,hidden:h},fi(a,{style:null,value:s}),this.renderClearIcon(n))}},{key:"render",value:function(){var n=this;return E.createElement(fs.Consumer,null,function(a){var i=n.props,o=i.prefixCls,s=i.inputType,l=i.element;if(s===J$e[0])return n.renderTextAreaWithClearIcon(o,l,a)})}}]),t})(E.Component),q$e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function L1e(e,t){return ir(e||"").slice(0,t).join("")}function v$(e,t,r,n){var a=r;return e?a=L1e(r,n):ir(t||"").length<r.length&&ir(r||"").length>n&&(a=t),a}var Y1e=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.bordered,a=n===void 0?!0:n,i=e.showCount,o=i===void 0?!1:i,s=e.maxLength,l=e.className,c=e.style,A=e.size,u=e.disabled,d=e.onCompositionStart,f=e.onCompositionEnd,h=e.onChange,g=e.onFocus,p=e.onBlur,m=e.status,y=q$e(e,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),C=E.useContext(an),w=C.getPrefixCls,B=C.direction,x=E.useContext(ds),M=E.useContext(Ol),S=u??M,R=E.useContext(fs),b=R.status,T=R.hasFeedback,D=R.isFormItemInput,F=R.feedbackIcon,N=Zf(b,m),_=E.useRef(null),P=E.useRef(null),k=E.useState(!1),j=Je(k,2),Y=j[0],X=j[1],K=E.useState(!1),U=Je(K,2),H=U[0],L=U[1],V=E.useRef(),J=E.useRef(0),ee=Ia(y.defaultValue,{value:y.value}),ae=Je(ee,2),ne=ae[0],fe=ae[1],he=y.hidden,ye=function(rt,lt){y.value===void 0&&fe(rt)},be=Number(s)>0,Se=function(rt){X(!0),V.current=ne,J.current=rt.currentTarget.selectionStart,d?.(rt)},ve=function(rt){var lt;X(!1);var At=rt.currentTarget.value;if(be){var $e=J.current>=s+1||J.current===((lt=V.current)===null||lt===void 0?void 0:lt.length);At=v$($e,V.current,At,s)}At!==ne&&(ye(At),w8(rt.currentTarget,rt,h,At)),f?.(rt)},de=function(rt){var lt=rt.target.value;if(!Y&&be){var At=rt.target.selectionStart>=s+1||rt.target.selectionStart===lt.length||!rt.target.selectionStart;lt=v$(At,ne,lt,s)}ye(lt),w8(rt.currentTarget,rt,h,lt)},Ue=function(rt){L(!1),p?.(rt)},at=function(rt){L(!0),g?.(rt)};E.useEffect(function(){L(function(tt){return!S&&tt})},[S]);var Ve=function(rt){var lt,At,$e;ye(""),(lt=_.current)===null||lt===void 0||lt.focus(),w8(($e=(At=_.current)===null||At===void 0?void 0:At.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,rt,h)},Ie=w("input",r);E.useImperativeHandle(t,function(){var tt;return{resizableTextArea:(tt=_.current)===null||tt===void 0?void 0:tt.resizableTextArea,focus:function(lt){var At,$e;N$e(($e=(At=_.current)===null||At===void 0?void 0:At.resizableTextArea)===null||$e===void 0?void 0:$e.textArea,lt)},blur:function(){var lt;return(lt=_.current)===null||lt===void 0?void 0:lt.blur()}}});var we=E.createElement(z1e,ge({},ji(y,["allowClear"]),{disabled:S,className:dt(te(te(te(te({},"".concat(Ie,"-borderless"),!a),l,l&&!o),"".concat(Ie,"-sm"),x==="small"||A==="small"),"".concat(Ie,"-lg"),x==="large"||A==="large"),kl(Ie,N)),style:o?{resize:c?.resize}:c,prefixCls:Ie,onCompositionStart:Se,onChange:de,onBlur:Ue,onFocus:at,onCompositionEnd:ve,ref:_})),Re=F$e(ne);!Y&&be&&(y.value===null||y.value===void 0)&&(Re=L1e(Re,s));var Te=E.createElement(X$e,ge({disabled:S,focused:H},y,{prefixCls:Ie,direction:B,inputType:"text",value:Re,element:we,handleReset:Ve,ref:P,bordered:a,status:m,style:o?void 0:c}));if(o||T){var Ke=ir(Re).length,mt="";return Ar(o)==="object"?mt=o.formatter({value:Re,count:Ke,maxLength:s}):mt="".concat(Ke).concat(be?" / ".concat(s):""),E.createElement("div",{hidden:he,className:dt("".concat(Ie,"-textarea"),te(te(te({},"".concat(Ie,"-textarea-rtl"),B==="rtl"),"".concat(Ie,"-textarea-show-count"),o),"".concat(Ie,"-textarea-in-form-item"),D),kl("".concat(Ie,"-textarea"),N,T),l),style:c,"data-count":mt},Te,T&&E.createElement("span",{className:"".concat(Ie,"-textarea-suffix")},F))}return Te}),jt=gU;jt.Group=b$e;jt.Search=z$e;jt.TextArea=Y1e;jt.Password=O$e;function g6(){return typeof BigInt=="function"}function Mv(e){var t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var n=t||"0",a=n.split("."),i=a[0]||"0",o=a[1]||"0";i==="0"&&o==="0"&&(r=!1);var s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:i,decimalStr:o,fullStr:"".concat(s).concat(n)}}function pU(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function pB(e){var t=String(e);if(pU(e)){var r=Number(t.slice(t.indexOf("e-")+2)),n=t.match(/\.(\d+)/);return n?.[1]&&(r+=n[1].length),r}return t.includes(".")&&vU(t)?t.length-t.indexOf(".")-1:0}function h4(e){var t=String(e);if(pU(e)){if(e>Number.MAX_SAFE_INTEGER)return String(g6()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(g6()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(pB(t))}return Mv(t).fullStr}function vU(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}function m$(e){var t=typeof e=="number"?h4(e):Mv(e).fullStr,r=t.includes(".");return r?Mv(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}var Z$e=(function(){function e(t){if(Vn(this,e),this.origin="",this.number=void 0,this.empty=void 0,!t&&t!==0||!String(t).trim()){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Jn(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=Number(r);if(Number.isNaN(n))return this;var a=this.number+n;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var i=Math.max(pB(this.number),pB(n));return new e(a.toFixed(i))}},{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(r){return this.toNumber()===r?.toNumber()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":h4(this.number):this.origin}}]),e})(),$$e=(function(){function e(t){if(Vn(this,e),this.origin="",this.negative=void 0,this.integer=void 0,this.decimal=void 0,this.decimalLen=void 0,this.empty=void 0,this.nan=void 0,!t&&t!==0||!String(t).trim()){this.empty=!0;return}if(this.origin=String(t),t==="-"){this.nan=!0;return}var r=t;if(pU(r)&&(r=Number(r)),r=typeof r=="string"?r:h4(r),vU(r)){var n=Mv(r);this.negative=n.negative;var a=n.trimStr.split(".");this.integer=BigInt(a[0]);var i=a[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return Jn(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(r){var n="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(r,"0"));return BigInt(n)}},{key:"negate",value:function(){var r=new e(this.toString());return r.negative=!r.negative,r}},{key:"add",value:function(r){if(this.isInvalidate())return new e(r);var n=new e(r);if(n.isInvalidate())return this;var a=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(a),o=n.alignDecimal(a),s=(i+o).toString(),l=Mv(s),c=l.negativeStr,A=l.trimStr,u="".concat(c).concat(A.padStart(a+1,"0"));return new e("".concat(u.slice(0,-a),".").concat(u.slice(-a)))}},{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(r){return this.toString()===r?.toString()}},{key:"lessEquals",value:function(r){return this.add(r.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return r?this.isInvalidate()?"":Mv("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e})();function HA(e){return g6()?new $$e(e):new Z$e(e)}function eR(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=Mv(e),i=a.negativeStr,o=a.integerStr,s=a.decimalStr,l="".concat(t).concat(s),c="".concat(i).concat(o);if(r>=0){var A=Number(s[r]);if(A>=5&&!n){var u=HA(e).add("".concat(i,"0.").concat("0".repeat(r)).concat(10-A));return eR(u.toString(),t,r,n)}return r===0?c:"".concat(c).concat(t).concat(s.padEnd(r,"0").slice(0,r))}return l===".0"?c:"".concat(c).concat(l)}var eet=200,tet=600;function ret(e){var t=e.prefixCls,r=e.upNode,n=e.downNode,a=e.upDisabled,i=e.downDisabled,o=e.onStep,s=E.useRef(),l=E.useRef();l.current=o;var c=function(p,m){p.preventDefault(),l.current(m);function y(){l.current(m),s.current=setTimeout(y,eet)}s.current=setTimeout(y,tet)},A=function(){clearTimeout(s.current)};if(E.useEffect(function(){return A},[]),LQ())return null;var u="".concat(t,"-handler"),d=dt(u,"".concat(u,"-up"),te({},"".concat(u,"-up-disabled"),a)),f=dt(u,"".concat(u,"-down"),te({},"".concat(u,"-down-disabled"),i)),h={unselectable:"on",role:"button",onMouseUp:A,onMouseLeave:A};return E.createElement("div",{className:"".concat(u,"-wrap")},E.createElement("span",ge({},h,{onMouseDown:function(p){c(p,!0)},"aria-label":"Increase Value","aria-disabled":a,className:d}),r||E.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),E.createElement("span",ge({},h,{onMouseDown:function(p){c(p,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:f}),n||E.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function net(e,t){var r=E.useRef(null);function n(){try{var i=e.selectionStart,o=e.selectionEnd,s=e.value,l=s.substring(0,i),c=s.substring(o);r.current={start:i,end:o,value:s,beforeTxt:l,afterTxt:c}}catch{}}function a(){if(e&&r.current&&t)try{var i=e.value,o=r.current,s=o.beforeTxt,l=o.afterTxt,c=o.start,A=i.length;if(i.endsWith(l))A=i.length-r.current.afterTxt.length;else if(i.startsWith(s))A=s.length;else{var u=s[c-1],d=i.indexOf(u,c-1);d!==-1&&(A=d+1)}e.setSelectionRange(A,A)}catch(f){Ea(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(f.message))}}return[n,a]}const aet=(function(){var e=E.useRef(0),t=function(){ta.cancel(e.current)};return E.useEffect(function(){return t},[]),function(r){t(),e.current=ta(function(){r()})}});var iet=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],E$=function(t,r){return t||r.isEmpty()?r.toString():r.toNumber()},y$=function(t){var r=HA(t);return r.isInvalidate()?null:r},U1e=E.forwardRef(function(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-input-number":n,i=e.className,o=e.style,s=e.min,l=e.max,c=e.step,A=c===void 0?1:c,u=e.defaultValue,d=e.value,f=e.disabled,h=e.readOnly,g=e.upHandler,p=e.downHandler,m=e.keyboard,y=e.controls,C=y===void 0?!0:y,w=e.stringMode,B=e.parser,x=e.formatter,M=e.precision,S=e.decimalSeparator,R=e.onChange,b=e.onInput,T=e.onPressEnter,D=e.onStep,F=An(e,iet),N="".concat(a,"-input"),_=E.useRef(null),P=E.useState(!1),k=Je(P,2),j=k[0],Y=k[1],X=E.useRef(!1),K=E.useRef(!1),U=E.useRef(!1),H=E.useState(function(){return HA(d??u)}),L=Je(H,2),V=L[0],J=L[1];function ee(Yt){d===void 0&&J(Yt)}var ae=E.useCallback(function(Yt,$){if(!$)return M>=0?M:Math.max(pB(Yt),pB(A))},[M,A]),ne=E.useCallback(function(Yt){var $=String(Yt);if(B)return B($);var Fe=$;return S&&(Fe=Fe.replace(S,".")),Fe.replace(/[^\w.-]+/g,"")},[B,S]),fe=E.useRef(""),he=E.useCallback(function(Yt,$){if(x)return x(Yt,{userTyping:$,input:String(fe.current)});var Fe=typeof Yt=="number"?h4(Yt):Yt;if(!$){var je=ae(Fe,$);if(vU(Fe)&&(S||je>=0)){var ue=S||".";Fe=eR(Fe,ue,je)}}return Fe},[x,ae,S]),ye=E.useState(function(){var Yt=u??d;return V.isInvalidate()&&["string","number"].includes(Ar(Yt))?Number.isNaN(Yt)?"":Yt:he(V.toString(),!1)}),be=Je(ye,2),Se=be[0],ve=be[1];fe.current=Se;function de(Yt,$){ve(he(Yt.isInvalidate()?Yt.toString(!1):Yt.toString(!$),$))}var Ue=E.useMemo(function(){return y$(l)},[l,M]),at=E.useMemo(function(){return y$(s)},[s,M]),Ve=E.useMemo(function(){return!Ue||!V||V.isInvalidate()?!1:Ue.lessEquals(V)},[Ue,V]),Ie=E.useMemo(function(){return!at||!V||V.isInvalidate()?!1:V.lessEquals(at)},[at,V]),we=net(_.current,j),Re=Je(we,2),Te=Re[0],Ke=Re[1],mt=function($){return Ue&&!$.lessEquals(Ue)?Ue:at&&!at.lessEquals($)?at:null},tt=function($){return!mt($)},rt=function($,Fe){var je=$,ue=tt(je)||je.isEmpty();if(!je.isEmpty()&&!Fe&&(je=mt(je)||je,ue=!0),!h&&!f&&ue){var ie=je.toString(),Be=ae(ie,Fe);return Be>=0&&(je=HA(eR(ie,".",Be)),tt(je)||(je=HA(eR(ie,".",Be,!0)))),je.equals(V)||(ee(je),R?.(je.isEmpty()?null:E$(w,je)),d===void 0&&de(je,Fe)),je}return V},lt=aet(),At=function Yt($){if(Te(),ve($),!K.current){var Fe=ne($),je=HA(Fe);je.isNaN()||rt(je,!0)}b?.($),lt(function(){var ue=$;B||(ue=$.replace(/。/g,".")),ue!==$&&Yt(ue)})},$e=function(){K.current=!0},ce=function(){K.current=!1,At(_.current.value)},qe=function($){At($.target.value)},ct=function($){var Fe;if(!($&&Ve||!$&&Ie)){X.current=!1;var je=HA(U.current?m$(A):A);$||(je=je.negate());var ue=(V||HA(0)).add(je.toString()),ie=rt(ue,!1);D?.(E$(w,ie),{offset:U.current?m$(A):A,type:$?"up":"down"}),(Fe=_.current)===null||Fe===void 0||Fe.focus()}},Tt=function($){var Fe=HA(ne(Se)),je=Fe;Fe.isNaN()?je=V:je=rt(Fe,$),d!==void 0?de(V,!1):je.isNaN()||de(je,!1)},He=function(){X.current=!0},Ge=function($){var Fe=$.which,je=$.shiftKey;X.current=!0,je?U.current=!0:U.current=!1,Fe===cr.ENTER&&(K.current||(X.current=!1),Tt(!1),T?.($)),m!==!1&&!K.current&&[cr.UP,cr.DOWN].includes(Fe)&&(ct(cr.UP===Fe),$.preventDefault())},Ee=function(){X.current=!1,U.current=!1},Et=function(){Tt(!1),Y(!1),X.current=!1};return mE(function(){V.isInvalidate()||de(V,!1)},[M]),mE(function(){var Yt=HA(d);J(Yt);var $=HA(ne(Se));(!Yt.equals($)||!X.current||x)&&de(Yt,X.current)},[d]),mE(function(){x&&Ke()},[Se]),E.createElement("div",{className:dt(a,i,(r={},te(r,"".concat(a,"-focused"),j),te(r,"".concat(a,"-disabled"),f),te(r,"".concat(a,"-readonly"),h),te(r,"".concat(a,"-not-a-number"),V.isNaN()),te(r,"".concat(a,"-out-of-range"),!V.isInvalidate()&&!tt(V)),r)),style:o,onFocus:function(){Y(!0)},onBlur:Et,onKeyDown:Ge,onKeyUp:Ee,onCompositionStart:$e,onCompositionEnd:ce,onBeforeInput:He},C&&E.createElement(ret,{prefixCls:a,upNode:g,downNode:p,upDisabled:Ve,downDisabled:Ie,onStep:ct}),E.createElement("div",{className:"".concat(N,"-wrap")},E.createElement("input",ge({autoComplete:"off",role:"spinbutton","aria-valuemin":s,"aria-valuemax":l,"aria-valuenow":V.isInvalidate()?null:V.toString(),step:A},F,{ref:Ec(_,t),className:N,value:Se,onChange:qe,disabled:f,readOnly:h}))))});U1e.displayName="InputNumber";var oet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},H1e=E.forwardRef(function(e,t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=E.useContext(ds),o=E.useState(!1),s=Je(o,2),l=s[0],c=s[1],A=E.useRef(null);E.useImperativeHandle(t,function(){return A.current});var u=e.className,d=e.size,f=e.disabled,h=e.prefixCls,g=e.addonBefore,p=e.addonAfter,m=e.prefix,y=e.bordered,C=y===void 0?!0:y,w=e.readOnly,B=e.status,x=e.controls,M=oet(e,["className","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),S=n("input-number",h),R=$f(S,a),b=R.compactSize,T=R.compactItemClassnames,D=E.createElement(V_e,{className:"".concat(S,"-handler-up-inner")}),F=E.createElement(VB,{className:"".concat(S,"-handler-down-inner")}),N=typeof x=="boolean"?x:void 0;Ar(x)==="object"&&(D=typeof x.upIcon>"u"?D:E.createElement("span",{className:"".concat(S,"-handler-up-inner")},x.upIcon),F=typeof x.downIcon>"u"?F:E.createElement("span",{className:"".concat(S,"-handler-down-inner")},x.downIcon));var _=E.useContext(fs),P=_.hasFeedback,k=_.status,j=_.isFormItemInput,Y=_.feedbackIcon,X=Zf(k,B),K=b||d||i,U=E.useContext(Ol),H=f??U,L=dt(te(te(te(te(te({},"".concat(S,"-lg"),K==="large"),"".concat(S,"-sm"),K==="small"),"".concat(S,"-rtl"),a==="rtl"),"".concat(S,"-borderless"),!C),"".concat(S,"-in-form-item"),j),kl(S,X),T,u),V=E.createElement(U1e,ge({ref:A,disabled:H,className:L,upHandler:D,downHandler:F,prefixCls:S,readOnly:w,controls:N},M));if(m!=null||P){var J=dt("".concat(S,"-affix-wrapper"),kl("".concat(S,"-affix-wrapper"),X,P),te(te(te(te(te(te(te(te({},"".concat(S,"-affix-wrapper-focused"),l),"".concat(S,"-affix-wrapper-disabled"),e.disabled),"".concat(S,"-affix-wrapper-sm"),i==="small"),"".concat(S,"-affix-wrapper-lg"),i==="large"),"".concat(S,"-affix-wrapper-rtl"),a==="rtl"),"".concat(S,"-affix-wrapper-readonly"),w),"".concat(S,"-affix-wrapper-borderless"),!C),"".concat(u),!(g||p)&&u));V=E.createElement("div",{className:J,style:e.style,onMouseUp:function(){return A.current.focus()}},m&&E.createElement("span",{className:"".concat(S,"-prefix")},m),fi(V,{style:null,value:e.value,onFocus:function(Se){var ve;c(!0),(ve=e.onFocus)===null||ve===void 0||ve.call(e,Se)},onBlur:function(Se){var ve;c(!1),(ve=e.onBlur)===null||ve===void 0||ve.call(e,Se)}}),P&&E.createElement("span",{className:"".concat(S,"-suffix")},Y))}if(g!=null||p!=null){var ee="".concat(S,"-group"),ae="".concat(ee,"-addon"),ne=g?E.createElement("div",{className:ae},g):null,fe=p?E.createElement("div",{className:ae},p):null,he=dt("".concat(S,"-wrapper"),ee,te({},"".concat(ee,"-rtl"),a==="rtl")),ye=dt("".concat(S,"-group-wrapper"),te(te(te({},"".concat(S,"-group-wrapper-sm"),i==="small"),"".concat(S,"-group-wrapper-lg"),i==="large"),"".concat(S,"-group-wrapper-rtl"),a==="rtl"),kl("".concat(S,"-group-wrapper"),X,P),u);V=E.createElement("div",{className:ye,style:e.style},E.createElement("div",{className:he},ne&&E.createElement(jv,null,E.createElement(XE,{status:!0,override:!0},ne)),fi(V,{style:null,disabled:H}),fe&&E.createElement(jv,null,E.createElement(XE,{status:!0,override:!0},fe))))}return V}),k1=function(t){var r,n="".concat(t.rootPrefixCls,"-item"),a=dt(n,"".concat(n,"-").concat(t.page),(r={},te(r,"".concat(n,"-active"),t.active),te(r,"".concat(n,"-disabled"),!t.page),te(r,t.className,!!t.className),r)),i=function(){t.onClick(t.page)},o=function(l){t.onKeyPress(l,t.onClick,t.page)};return le.createElement("li",{title:t.showTitle?t.page:null,className:a,onClick:i,onKeyPress:o,tabIndex:"0"},t.itemRender(t.page,"page",le.createElement("a",{rel:"nofollow"},t.page)))};const Wp={ENTER:13,ARROW_UP:38,ARROW_DOWN:40};var G1e=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.state={goInputText:""},n.buildOptionText=function(s){return"".concat(s," ").concat(n.props.locale.items_per_page)},n.changeSize=function(s){n.props.changeSize(Number(s))},n.handleChange=function(s){n.setState({goInputText:s.target.value})},n.handleBlur=function(s){var l=n.props,c=l.goButton,A=l.quickGo,u=l.rootPrefixCls,d=n.state.goInputText;c||d===""||(n.setState({goInputText:""}),!(s.relatedTarget&&(s.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||s.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&A(n.getValidValue()))},n.go=function(s){var l=n.state.goInputText;l!==""&&(s.keyCode===Wp.ENTER||s.type==="click")&&(n.setState({goInputText:""}),n.props.quickGo(n.getValidValue()))},n}return Jn(r,[{key:"getValidValue",value:function(){var a=this.state.goInputText;return!a||isNaN(a)?void 0:Number(a)}},{key:"getPageSizeOptions",value:function(){var a=this.props,i=a.pageSize,o=a.pageSizeOptions;return o.some(function(s){return s.toString()===i.toString()})?o:o.concat([i.toString()]).sort(function(s,l){var c=isNaN(Number(s))?0:Number(s),A=isNaN(Number(l))?0:Number(l);return c-A})}},{key:"render",value:function(){var a=this,i=this.props,o=i.pageSize,s=i.locale,l=i.rootPrefixCls,c=i.changeSize,A=i.quickGo,u=i.goButton,d=i.selectComponentClass,f=i.buildOptionText,h=i.selectPrefixCls,g=i.disabled,p=this.state.goInputText,m="".concat(l,"-options"),y=d,C=null,w=null,B=null;if(!c&&!A)return null;var x=this.getPageSizeOptions();if(c&&y){var M=x.map(function(S,R){return le.createElement(y.Option,{key:R,value:S.toString()},(f||a.buildOptionText)(S))});C=le.createElement(y,{disabled:g,prefixCls:h,showSearch:!1,className:"".concat(m,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(o||x[0]).toString(),onChange:this.changeSize,getPopupContainer:function(R){return R.parentNode},"aria-label":s.page_size,defaultOpen:!1},M)}return A&&(u&&(B=typeof u=="boolean"?le.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:g,className:"".concat(m,"-quick-jumper-button")},s.jump_to_confirm):le.createElement("span",{onClick:this.go,onKeyUp:this.go},u)),w=le.createElement("div",{className:"".concat(m,"-quick-jumper")},s.jump_to,le.createElement("input",{disabled:g,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":s.page}),s.page,B)),le.createElement("li",{className:"".concat(m)},C,w)}}]),r})(le.Component);G1e.defaultProps={pageSizeOptions:["10","20","50","100"]};const set={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:"页码"};function p6(){}function C$(e){var t=Number(e);return typeof t=="number"&&!isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function cet(e,t,r){return r}function Rh(e,t,r){var n=typeof e>"u"?t.pageSize:e;return Math.floor((r.total-1)/n)+1}var K1e=(function(e){fa(r,e);var t=pi(r);function r(n){var a;Vn(this,r),a=t.call(this,n),a.getJumpPrevPage=function(){return Math.max(1,a.state.current-(a.props.showLessItems?3:5))},a.getJumpNextPage=function(){return Math.min(Rh(void 0,a.state,a.props),a.state.current+(a.props.showLessItems?3:5))},a.getItemIcon=function(c,A){var u=a.props.prefixCls,d=c||le.createElement("button",{type:"button","aria-label":A,className:"".concat(u,"-item-link")});return typeof c=="function"&&(d=le.createElement(c,se({},a.props))),d},a.savePaginationNode=function(c){a.paginationNode=c},a.isValid=function(c){var A=a.props.total;return C$(c)&&c!==a.state.current&&C$(A)&&A>0},a.shouldDisplayQuickJumper=function(){var c=a.props,A=c.showQuickJumper,u=c.total,d=a.state.pageSize;return u<=d?!1:A},a.handleKeyDown=function(c){(c.keyCode===Wp.ARROW_UP||c.keyCode===Wp.ARROW_DOWN)&&c.preventDefault()},a.handleKeyUp=function(c){var A=a.getValidValue(c),u=a.state.currentInputValue;A!==u&&a.setState({currentInputValue:A}),c.keyCode===Wp.ENTER?a.handleChange(A):c.keyCode===Wp.ARROW_UP?a.handleChange(A-1):c.keyCode===Wp.ARROW_DOWN&&a.handleChange(A+1)},a.handleBlur=function(c){var A=a.getValidValue(c);a.handleChange(A)},a.changePageSize=function(c){var A=a.state.current,u=Rh(c,a.state,a.props);A=A>u?u:A,u===0&&(A=a.state.current),typeof c=="number"&&("pageSize"in a.props||a.setState({pageSize:c}),"current"in a.props||a.setState({current:A,currentInputValue:A})),a.props.onShowSizeChange(A,c),"onChange"in a.props&&a.props.onChange&&a.props.onChange(A,c)},a.handleChange=function(c){var A=a.props,u=A.disabled,d=A.onChange,f=a.state,h=f.pageSize,g=f.current,p=f.currentInputValue;if(a.isValid(c)&&!u){var m=Rh(void 0,a.state,a.props),y=c;return c>m?y=m:c<1&&(y=1),"current"in a.props||a.setState({current:y}),y!==p&&a.setState({currentInputValue:y}),d(y,h),y}return g},a.prev=function(){a.hasPrev()&&a.handleChange(a.state.current-1)},a.next=function(){a.hasNext()&&a.handleChange(a.state.current+1)},a.jumpPrev=function(){a.handleChange(a.getJumpPrevPage())},a.jumpNext=function(){a.handleChange(a.getJumpNextPage())},a.hasPrev=function(){return a.state.current>1},a.hasNext=function(){return a.state.current<Rh(void 0,a.state,a.props)},a.runIfEnter=function(c,A){if(c.key==="Enter"||c.charCode===13){for(var u=arguments.length,d=new Array(u>2?u-2:0),f=2;f<u;f++)d[f-2]=arguments[f];A.apply(void 0,d)}},a.runIfEnterPrev=function(c){a.runIfEnter(c,a.prev)},a.runIfEnterNext=function(c){a.runIfEnter(c,a.next)},a.runIfEnterJumpPrev=function(c){a.runIfEnter(c,a.jumpPrev)},a.runIfEnterJumpNext=function(c){a.runIfEnter(c,a.jumpNext)},a.handleGoTO=function(c){(c.keyCode===Wp.ENTER||c.type==="click")&&a.handleChange(a.state.currentInputValue)};var i=n.onChange!==p6,o="current"in n;o&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var s=n.defaultCurrent;"current"in n&&(s=n.current);var l=n.defaultPageSize;return"pageSize"in n&&(l=n.pageSize),s=Math.min(s,Rh(l,void 0,n)),a.state={current:s,currentInputValue:s,pageSize:l},a}return Jn(r,[{key:"componentDidUpdate",value:function(a,i){var o=this.props.prefixCls;if(i.current!==this.state.current&&this.paginationNode){var s=this.paginationNode.querySelector(".".concat(o,"-item-").concat(i.current));s&&document.activeElement===s&&s.blur()}}},{key:"getValidValue",value:function(a){var i=a.target.value,o=Rh(void 0,this.state,this.props),s=this.state.currentInputValue,l;return i===""?l=i:isNaN(Number(i))?l=s:i>=o?l=o:l=Number(i),l}},{key:"getShowSizeChanger",value:function(){var a=this.props,i=a.showSizeChanger,o=a.total,s=a.totalBoundaryShowSizeChanger;return typeof i<"u"?i:o>s}},{key:"renderPrev",value:function(a){var i=this.props,o=i.prevIcon,s=i.itemRender,l=s(a,"prev",this.getItemIcon(o,"prev page")),c=!this.hasPrev();return E.isValidElement(l)?E.cloneElement(l,{disabled:c}):l}},{key:"renderNext",value:function(a){var i=this.props,o=i.nextIcon,s=i.itemRender,l=s(a,"next",this.getItemIcon(o,"next page")),c=!this.hasNext();return E.isValidElement(l)?E.cloneElement(l,{disabled:c}):l}},{key:"render",value:function(){var a=this,i=this.props,o=i.prefixCls,s=i.className,l=i.style,c=i.disabled,A=i.hideOnSinglePage,u=i.total,d=i.locale,f=i.showQuickJumper,h=i.showLessItems,g=i.showTitle,p=i.showTotal,m=i.simple,y=i.itemRender,C=i.showPrevNextJumpers,w=i.jumpPrevIcon,B=i.jumpNextIcon,x=i.selectComponentClass,M=i.selectPrefixCls,S=i.pageSizeOptions,R=this.state,b=R.current,T=R.pageSize,D=R.currentInputValue;if(A===!0&&u<=T)return null;var F=Rh(void 0,this.state,this.props),N=[],_=null,P=null,k=null,j=null,Y=null,X=f&&f.goButton,K=h?1:2,U=b-1>0?b-1:0,H=b+1<F?b+1:F,L=Object.keys(this.props).reduce(function(Ue,at){return(at.substr(0,5)==="data-"||at.substr(0,5)==="aria-"||at==="role")&&(Ue[at]=a.props[at]),Ue},{}),V=p&&le.createElement("li",{className:"".concat(o,"-total-text")},p(u,[u===0?0:(b-1)*T+1,b*T>u?u:b*T]));if(m)return X&&(typeof X=="boolean"?Y=le.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},d.jump_to_confirm):Y=le.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},X),Y=le.createElement("li",{title:g?"".concat(d.jump_to).concat(b,"/").concat(F):null,className:"".concat(o,"-simple-pager")},Y)),le.createElement("ul",ge({className:dt(o,"".concat(o,"-simple"),te({},"".concat(o,"-disabled"),c),s),style:l,ref:this.savePaginationNode},L),V,le.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:dt("".concat(o,"-prev"),te({},"".concat(o,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(U)),le.createElement("li",{title:g?"".concat(b,"/").concat(F):null,className:"".concat(o,"-simple-pager")},le.createElement("input",{type:"text",value:D,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),le.createElement("span",{className:"".concat(o,"-slash")},"/"),F),le.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:dt("".concat(o,"-next"),te({},"".concat(o,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(H)),Y);if(F<=3+K*2){var J={locale:d,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:y};F||N.push(le.createElement(k1,ge({},J,{key:"noPager",page:1,className:"".concat(o,"-item-disabled")})));for(var ee=1;ee<=F;ee+=1){var ae=b===ee;N.push(le.createElement(k1,ge({},J,{key:ee,page:ee,active:ae})))}}else{var ne=h?d.prev_3:d.prev_5,fe=h?d.next_3:d.next_5;C&&(_=le.createElement("li",{title:g?ne:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:dt("".concat(o,"-jump-prev"),te({},"".concat(o,"-jump-prev-custom-icon"),!!w))},y(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(w,"prev page"))),P=le.createElement("li",{title:g?fe:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:dt("".concat(o,"-jump-next"),te({},"".concat(o,"-jump-next-custom-icon"),!!B))},y(this.getJumpNextPage(),"jump-next",this.getItemIcon(B,"next page")))),j=le.createElement(k1,{locale:d,last:!0,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:F,page:F,active:!1,showTitle:g,itemRender:y}),k=le.createElement(k1,{locale:d,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:y});var he=Math.max(1,b-K),ye=Math.min(b+K,F);b-1<=K&&(ye=1+K*2),F-b<=K&&(he=F-K*2);for(var be=he;be<=ye;be+=1){var Se=b===be;N.push(le.createElement(k1,{locale:d,rootPrefixCls:o,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:be,page:be,active:Se,showTitle:g,itemRender:y}))}b-1>=K*2&&b!==3&&(N[0]=E.cloneElement(N[0],{className:"".concat(o,"-item-after-jump-prev")}),N.unshift(_)),F-b>=K*2&&b!==F-2&&(N[N.length-1]=E.cloneElement(N[N.length-1],{className:"".concat(o,"-item-before-jump-next")}),N.push(P)),he!==1&&N.unshift(k),ye!==F&&N.push(j)}var ve=!this.hasPrev()||!F,de=!this.hasNext()||!F;return le.createElement("ul",ge({className:dt(o,s,te({},"".concat(o,"-disabled"),c)),style:l,ref:this.savePaginationNode},L),V,le.createElement("li",{title:g?d.prev_page:null,onClick:this.prev,tabIndex:ve?null:0,onKeyPress:this.runIfEnterPrev,className:dt("".concat(o,"-prev"),te({},"".concat(o,"-disabled"),ve)),"aria-disabled":ve},this.renderPrev(U)),N,le.createElement("li",{title:g?d.next_page:null,onClick:this.next,tabIndex:de?null:0,onKeyPress:this.runIfEnterNext,className:dt("".concat(o,"-next"),te({},"".concat(o,"-disabled"),de)),"aria-disabled":de},this.renderNext(H)),le.createElement(G1e,{disabled:c,locale:d,rootPrefixCls:o,selectComponentClass:x,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:b,pageSize:T,pageSizeOptions:S,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:X}))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o={};if("current"in a&&(o.current=a.current,a.current!==i.current&&(o.currentInputValue=o.current)),"pageSize"in a&&a.pageSize!==i.pageSize){var s=i.current,l=Rh(a.pageSize,i,a);s=s>l?l:s,"current"in a||(o.current=s,o.currentInputValue=s),o.pageSize=a.pageSize}return o}}]),r})(le.Component);K1e.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:p6,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:p6,locale:set,style:{},itemRender:cet,totalBoundaryShowSizeChanger:50};var V1e=function(t){return E.createElement(sn,ge({},t,{size:"small"}))},J1e=function(t){return E.createElement(sn,ge({},t,{size:"middle"}))};V1e.Option=sn.Option;J1e.Option=sn.Option;var Aet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},W1e=function(t){var r=t.prefixCls,n=t.selectPrefixCls,a=t.className,i=t.size,o=t.locale,s=t.selectComponentClass,l=t.responsive,c=t.showSizeChanger,A=Aet(t,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass","responsive","showSizeChanger"]),u=Q7(l),d=u.xs,f=E.useContext(an),h=f.getPrefixCls,g=f.direction,p=f.pagination,m=p===void 0?{}:p,y=h("pagination",r),C=c??m.showSizeChanger,w=function(){var x=E.createElement("span",{className:"".concat(y,"-item-ellipsis")},"•••"),M=E.createElement("button",{className:"".concat(y,"-item-link"),type:"button",tabIndex:-1},E.createElement(Wj,null)),S=E.createElement("button",{className:"".concat(y,"-item-link"),type:"button",tabIndex:-1},E.createElement(tB,null)),R=E.createElement("a",{className:"".concat(y,"-item-link")},E.createElement("div",{className:"".concat(y,"-item-container")},E.createElement(z5e,{className:"".concat(y,"-item-link-icon")}),x)),b=E.createElement("a",{className:"".concat(y,"-item-link")},E.createElement("div",{className:"".concat(y,"-item-container")},E.createElement(U5e,{className:"".concat(y,"-item-link-icon")}),x));if(g==="rtl"){var T=[S,M];M=T[0],S=T[1];var D=[b,R];R=D[0],b=D[1]}return{prevIcon:M,nextIcon:S,jumpPrevIcon:R,jumpNextIcon:b}};return E.createElement(Td,{componentName:"Pagination",defaultLocale:Ome},function(B){var x=ge(ge({},B),o),M=i==="small"||!!(d&&!i&&l),S=h("select",n),R=dt(te(te({},"".concat(y,"-mini"),M),"".concat(y,"-rtl"),g==="rtl"),a);return E.createElement(K1e,ge({},w(),A,{prefixCls:y,selectPrefixCls:S,className:R,selectComponentClass:s||(M?V1e:J1e),locale:x,showSizeChanger:C}))})},b8,w$;function uet(){if(w$)return b8;w$=1;var e=du(),t=function(){return e.Date.now()};return b8=t,b8}var S8,B$;function det(){if(B$)return S8;B$=1;var e=mc(),t=uet(),r=Lye(),n="Expected a function",a=Math.max,i=Math.min;function o(s,l,c){var A,u,d,f,h,g,p=0,m=!1,y=!1,C=!0;if(typeof s!="function")throw new TypeError(n);l=r(l)||0,e(c)&&(m=!!c.leading,y="maxWait"in c,d=y?a(r(c.maxWait)||0,l):d,C="trailing"in c?!!c.trailing:C);function w(F){var N=A,_=u;return A=u=void 0,p=F,f=s.apply(_,N),f}function B(F){return p=F,h=setTimeout(S,l),m?w(F):f}function x(F){var N=F-g,_=F-p,P=l-N;return y?i(P,d-_):P}function M(F){var N=F-g,_=F-p;return g===void 0||N>=l||N<0||y&&_>=d}function S(){var F=t();if(M(F))return R(F);h=setTimeout(S,x(F))}function R(F){return h=void 0,C&&A?w(F):(A=u=void 0,f)}function b(){h!==void 0&&clearTimeout(h),p=0,A=g=u=h=void 0}function T(){return h===void 0?f:R(t())}function D(){var F=t(),N=M(F);if(A=arguments,u=this,g=F,N){if(h===void 0)return B(g);if(y)return clearTimeout(h),h=setTimeout(S,l),w(g)}return h===void 0&&(h=setTimeout(S,l)),f}return D.cancel=b,D.flush=T,D}return S8=o,S8}var fet=det();const mU=gn(fet);var het=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};Wo("small","default","large");var tR=null;function get(e,t){var r=t.indicator,n="".concat(e,"-dot");return r===null?null:gc(r)?fi(r,{className:dt(r.props.className,n)}):gc(tR)?fi(tR,{className:dt(tR.props.className,n)}):E.createElement("span",{className:dt(n,"".concat(e,"-dot-spin"))},E.createElement("i",{className:"".concat(e,"-dot-item")}),E.createElement("i",{className:"".concat(e,"-dot-item")}),E.createElement("i",{className:"".concat(e,"-dot-item")}),E.createElement("i",{className:"".concat(e,"-dot-item")}))}function pet(e,t){return!!e&&!!t&&!isNaN(Number(t))}var vet=function(t){var r=t.spinPrefixCls,n=t.spinning,a=n===void 0?!0:n,i=t.delay,o=t.className,s=t.size,l=s===void 0?"default":s,c=t.tip,A=t.wrapperClassName,u=t.style,d=t.children,f=het(t,["spinPrefixCls","spinning","delay","className","size","tip","wrapperClassName","style","children"]),h=E.useState(function(){return a&&!pet(a,i)}),g=Je(h,2),p=g[0],m=g[1];E.useEffect(function(){var w=mU(function(){m(a)},i);return w(),function(){var B;(B=w?.cancel)===null||B===void 0||B.call(w)}},[i,a]);var y=function(){return typeof d<"u"},C=function(B){var x=B.direction,M=dt(r,te(te(te(te(te({},"".concat(r,"-sm"),l==="small"),"".concat(r,"-lg"),l==="large"),"".concat(r,"-spinning"),p),"".concat(r,"-show-text"),!!c),"".concat(r,"-rtl"),x==="rtl"),o),S=ji(f,["indicator","prefixCls"]),R=E.createElement("div",ge({},S,{style:u,className:M,"aria-live":"polite","aria-busy":p}),get(r,t),c?E.createElement("div",{className:"".concat(r,"-text")},c):null);if(y()){var b=dt("".concat(r,"-container"),te({},"".concat(r,"-blur"),p));return E.createElement("div",ge({},S,{className:dt("".concat(r,"-nested-loading"),A)}),p&&E.createElement("div",{key:"loading"},R),E.createElement("div",{className:b,key:"container"},d))}return R};return E.createElement(Lg,null,C)},g4=function(t){var r=t.prefixCls,n=E.useContext(an),a=n.getPrefixCls,i=a("spin",r),o=ge(ge({},t),{spinPrefixCls:i});return E.createElement(vet,ge({},o))};g4.setDefaultIndicator=function(e){tR=e};function x$(e){return!!(e&&e.then)}var v6=function(t){var r=E.useRef(!1),n=E.useRef(null),a=Bg(!1),i=Je(a,2),o=i[0],s=i[1],l=t.close,c=function(){l?.apply(void 0,arguments)};E.useEffect(function(){var p=null;return t.autoFocus&&(p=setTimeout(function(){var m;(m=n.current)===null||m===void 0||m.focus()})),function(){p&&clearTimeout(p)}},[]);var A=function(m){x$(m)&&(s(!0),m.then(function(){s(!1,!0),c.apply(void 0,arguments),r.current=!1},function(y){return s(!1,!0),r.current=!1,Promise.reject(y)}))},u=function(m){var y=t.actionFn;if(!r.current){if(r.current=!0,!y){c();return}var C;if(t.emitEvent){if(C=y(m),t.quitOnNullishReturnValue&&!x$(C)){r.current=!1,c(m);return}}else if(y.length)C=y(l),r.current=!1;else if(C=y(),!C){c();return}A(C)}},d=t.type,f=t.children,h=t.prefixCls,g=t.buttonProps;return E.createElement(yt,ge({},z7(d),{onClick:u,loading:o,prefixCls:h},g,{ref:n}),f)},met=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},m6,Eet=function(t){m6={x:t.pageX,y:t.pageY},setTimeout(function(){m6=null},100)};GEe()&&document.documentElement.addEventListener("click",Eet,!0);var X1e=function(t){var r,n=E.useContext(an),a=n.getPopupContainer,i=n.getPrefixCls,o=n.direction,s=function(F){var N=t.onCancel;N?.(F)},l=function(F){var N=t.onOk;N?.(F)},c=t.prefixCls,A=t.footer,u=t.visible,d=t.open,f=d===void 0?!1:d,h=t.wrapClassName,g=t.centered,p=t.getContainer,m=t.closeIcon,y=t.focusTriggerAfterClose,C=y===void 0?!0:y,w=t.width,B=w===void 0?520:w,x=met(t,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),M=i("modal",c),S=i(),R=E.createElement(Td,{componentName:"Modal",defaultLocale:zme()},function(D){var F=t.okText,N=t.okType,_=N===void 0?"primary":N,P=t.cancelText,k=t.confirmLoading,j=k===void 0?!1:k;return E.createElement(E.Fragment,null,E.createElement(yt,ge({onClick:s},t.cancelButtonProps),P||D.cancelText),E.createElement(yt,ge({},z7(_),{loading:j,onClick:l},t.okButtonProps),F??D.okText))}),b=E.createElement("span",{className:"".concat(M,"-close-x")},m||E.createElement(Go,{className:"".concat(M,"-close-icon")})),T=dt(h,te(te({},"".concat(M,"-centered"),!!g),"".concat(M,"-wrap-rtl"),o==="rtl"));return E.createElement(jv,null,E.createElement(XE,{status:!0,override:!0},E.createElement(hU,ge({width:B},x,{getContainer:p===void 0?a:p,prefixCls:M,wrapClassName:T,footer:A===void 0?R:A,visible:f||u,mousePosition:(r=x.mousePosition)!==null&&r!==void 0?r:m6,onClose:s,closeIcon:b,focusTriggerAfterClose:C,transitionName:rA(S,"zoom",t.transitionName),maskTransitionName:rA(S,"fade",t.maskTransitionName)}))))},q1e=function(t){var r=t.icon,n=t.onCancel,a=t.onOk,i=t.close,o=t.zIndex,s=t.afterClose,l=t.visible,c=t.open,A=t.keyboard,u=t.centered,d=t.getContainer,f=t.maskStyle,h=t.okText,g=t.okButtonProps,p=t.cancelText,m=t.cancelButtonProps,y=t.direction,C=t.prefixCls,w=t.wrapClassName,B=t.rootPrefixCls,x=t.iconPrefixCls,M=t.bodyStyle,S=t.closable,R=S===void 0?!1:S,b=t.closeIcon,T=t.modalRender,D=t.focusTriggerAfterClose,F=t.okType||"primary",N="".concat(C,"-confirm"),_="okCancel"in t?t.okCancel:!0,P=t.width||416,k=t.style||{},j=t.mask===void 0?!0:t.mask,Y=t.maskClosable===void 0?!1:t.maskClosable,X=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",K=dt(N,"".concat(N,"-").concat(t.type),te({},"".concat(N,"-rtl"),y==="rtl"),t.className),U=_&&E.createElement(v6,{actionFn:n,close:i,autoFocus:X==="cancel",buttonProps:m,prefixCls:"".concat(B,"-btn")},p);return E.createElement(om,{prefixCls:B,iconPrefixCls:x,direction:y},E.createElement(X1e,{prefixCls:C,className:K,wrapClassName:dt(te({},"".concat(N,"-centered"),!!t.centered),w),onCancel:function(){return i?.({triggerCancel:!0})},open:c||l,title:"",footer:"",transitionName:rA(B,"zoom",t.transitionName),maskTransitionName:rA(B,"fade",t.maskTransitionName),mask:j,maskClosable:Y,maskStyle:f,style:k,bodyStyle:M,width:P,zIndex:o,afterClose:s,keyboard:A,centered:u,getContainer:d,closable:R,closeIcon:b,modalRender:T,focusTriggerAfterClose:D},E.createElement("div",{className:"".concat(N,"-body-wrapper")},E.createElement("div",{className:"".concat(N,"-body")},r,t.title===void 0?null:E.createElement("span",{className:"".concat(N,"-title")},t.title),E.createElement("div",{className:"".concat(N,"-content")},t.content)),E.createElement("div",{className:"".concat(N,"-btns")},U,E.createElement(v6,{type:F,actionFn:a,close:i,autoFocus:X==="ok",buttonProps:g,prefixCls:"".concat(B,"-btn")},h)))))},AE=[],yet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Z1e="";function Cet(){return Z1e}function xx(e){var t=document.createDocumentFragment(),r=ge(ge({},e),{close:o,open:!0}),n;function a(){for(var l=arguments.length,c=new Array(l),A=0;A<l;A++)c[A]=arguments[A];var u=c.some(function(h){return h&&h.triggerCancel});e.onCancel&&u&&e.onCancel.apply(e,[function(){}].concat(ir(c.slice(1))));for(var d=0;d<AE.length;d++){var f=AE[d];if(f===o){AE.splice(d,1);break}}Gme(t)}function i(l){var c=l.okText,A=l.cancelText,u=l.prefixCls,d=yet(l,["okText","cancelText","prefixCls"]);clearTimeout(n),n=setTimeout(function(){var f=zme(),h=g7(),g=h.getPrefixCls,p=h.getIconPrefixCls,m=g(void 0,Cet()),y=u||"".concat(m,"-modal"),C=p();Hme(E.createElement(q1e,ge({},d,{prefixCls:y,rootPrefixCls:m,iconPrefixCls:C,okText:c||(d.okCancel?f.okText:f.justOkText),cancelText:A||f.cancelText})),t)})}function o(){for(var l=this,c=arguments.length,A=new Array(c),u=0;u<c;u++)A[u]=arguments[u];r=ge(ge({},r),{open:!1,afterClose:function(){typeof e.afterClose=="function"&&e.afterClose(),a.apply(l,A)}}),r.visible&&delete r.visible,i(r)}function s(l){typeof l=="function"?r=l(r):r=ge(ge({},r),l),i(r)}return i(r),AE.push(o),{destroy:o,update:s}}function $1e(e){return ge(ge({icon:E.createElement(Ey,null),okCancel:!1},e),{type:"warning"})}function eCe(e){return ge(ge({icon:E.createElement(mQ,null),okCancel:!1},e),{type:"info"})}function tCe(e){return ge(ge({icon:E.createElement(gQ,null),okCancel:!1},e),{type:"success"})}function rCe(e){return ge(ge({icon:E.createElement(pQ,null),okCancel:!1},e),{type:"error"})}function nCe(e){return ge(ge({icon:E.createElement(Ey,null),okCancel:!0},e),{type:"confirm"})}function wet(e){var t=e.rootPrefixCls;Z1e=t}function Bet(){var e=E.useState([]),t=Je(e,2),r=t[0],n=t[1],a=E.useCallback(function(i){return n(function(o){return[].concat(ir(o),[i])}),function(){n(function(o){return o.filter(function(s){return s!==i})})}},[]);return[r,a]}var xet=function(t,r){var n=t.afterClose,a=t.config,i=E.useState(!0),o=Je(i,2),s=o[0],l=o[1],c=E.useState(a),A=Je(c,2),u=A[0],d=A[1],f=E.useContext(an),h=f.direction,g=f.getPrefixCls,p=g("modal"),m=g(),y=function(){l(!1);for(var w=arguments.length,B=new Array(w),x=0;x<w;x++)B[x]=arguments[x];var M=B.some(function(S){return S&&S.triggerCancel});u.onCancel&&M&&u.onCancel.apply(u,[function(){}].concat(ir(B.slice(1))))};return E.useImperativeHandle(r,function(){return{destroy:y,update:function(w){d(function(B){return ge(ge({},B),w)})}}}),E.createElement(Td,{componentName:"Modal",defaultLocale:eA.Modal},function(C){return E.createElement(q1e,ge({prefixCls:p,rootPrefixCls:m},u,{close:y,open:s,afterClose:n,okText:u.okText||(u.okCancel?C.okText:C.justOkText),direction:h,cancelText:u.cancelText||C.cancelText}))})};const Met=E.forwardRef(xet);var M$=0,Iet=E.memo(E.forwardRef(function(e,t){var r=Bet(),n=Je(r,2),a=n[0],i=n[1];return E.useImperativeHandle(t,function(){return{patchElement:i}},[]),E.createElement(E.Fragment,null,a)}));function bet(){var e=E.useRef(null),t=E.useState([]),r=Je(t,2),n=r[0],a=r[1];E.useEffect(function(){if(n.length){var s=ir(n);s.forEach(function(l){l()}),a([])}},[n]);var i=E.useCallback(function(s){return function(c){var A;M$+=1;var u=E.createRef(),d,f=E.createElement(Met,{key:"modal-".concat(M$),config:s(c),ref:u,afterClose:function(){d?.()}});return d=(A=e.current)===null||A===void 0?void 0:A.patchElement(f),{destroy:function(){function g(){var p;(p=u.current)===null||p===void 0||p.destroy()}u.current?g():a(function(p){return[].concat(ir(p),[g])})},update:function(g){function p(){var m;(m=u.current)===null||m===void 0||m.update(g)}u.current?p():a(function(m){return[].concat(ir(m),[p])})}}}},[]),o=E.useMemo(function(){return{info:i(eCe),success:i(tCe),error:i(rCe),warning:i($1e),confirm:i(nCe)}},[]);return[o,E.createElement(Iet,{ref:e})]}function aCe(e){return xx($1e(e))}var gi=X1e;gi.useModal=bet;gi.info=function(t){return xx(eCe(t))};gi.success=function(t){return xx(tCe(t))};gi.error=function(t){return xx(rCe(t))};gi.warning=aCe;gi.warn=aCe;gi.confirm=function(t){return xx(nCe(t))};gi.destroyAll=function(){for(;AE.length;){var t=AE.pop();t&&t()}};gi.config=wet;var Ret=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Tet={border:0,background:"transparent",padding:0,lineHeight:"inherit",display:"inline-block"},E6=E.forwardRef(function(e,t){var r=function(A){var u=A.keyCode;u===cr.ENTER&&A.preventDefault()},n=function(A){var u=A.keyCode,d=e.onClick;u===cr.ENTER&&d&&d()},a=e.style,i=e.noStyle,o=e.disabled,s=Ret(e,["style","noStyle","disabled"]),l={};return i||(l=ge({},Tet)),o&&(l.pointerEvents="none"),l=ge(ge({},l),a),E.createElement("div",ge({role:"button",tabIndex:0,ref:t},s,{onKeyDown:r,onKeyUp:n,style:l}))}),Qet=function(t){var r=t.prefixCls,n=t.okButtonProps,a=t.cancelButtonProps,i=t.title,o=t.cancelText,s=t.okText,l=t.okType,c=t.icon,A=t.showCancel,u=A===void 0?!0:A,d=t.close,f=t.onConfirm,h=t.onCancel,g=E.useContext(an),p=g.getPrefixCls;return E.createElement(Td,{componentName:"Popconfirm",defaultLocale:eA.Popconfirm},function(m){return E.createElement("div",{className:"".concat(r,"-inner-content")},E.createElement("div",{className:"".concat(r,"-message")},c&&E.createElement("span",{className:"".concat(r,"-message-icon")},c),E.createElement("div",{className:"".concat(r,"-message-title")},Yz(i))),E.createElement("div",{className:"".concat(r,"-buttons")},u&&E.createElement(yt,ge({onClick:h,size:"small"},a),o??m.cancelText),E.createElement(v6,{buttonProps:ge(ge({size:"small"},z7(l)),n),actionFn:f,close:d,prefixCls:p("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s??m.okText)))})},I$=void 0,Det=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Ni=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.placement,a=n===void 0?"top":n,i=e.trigger,o=i===void 0?"click":i,s=e.okType,l=s===void 0?"primary":s,c=e.icon,A=c===void 0?E.createElement(JB,null):c,u=e.children,d=e.overlayClassName,f=e.onOpenChange,h=e.onVisibleChange,g=Det(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange"]),p=E.useContext(an),m=p.getPrefixCls,y=Ia(!1,{value:e.open!==void 0?e.open:e.visible,defaultValue:e.defaultOpen!==void 0?e.defaultOpen:e.defaultVisible}),C=Je(y,2),w=C[0],B=C[1],x=function(P,k){B(P,!0),h?.(P,k),f?.(P,k)},M=function(P){x(!1,P)},S=function(P){var k;return(k=e.onConfirm)===null||k===void 0?void 0:k.call(I$,P)},R=function(P){var k;x(!1,P),(k=e.onCancel)===null||k===void 0||k.call(I$,P)},b=function(P){P.keyCode===cr.ESC&&w&&x(!1,P)},T=function(P){var k=e.disabled,j=k===void 0?!1:k;j||x(P)},D=m("popover",r),F=m("popconfirm",r),N=dt(F,d);return E.createElement(JQ,ge({},g,{trigger:o,prefixCls:D,placement:a,onOpenChange:T,open:w,ref:t,overlayClassName:N,_overlay:E.createElement(Qet,ge({okType:l,icon:A},e,{prefixCls:D,close:M,onConfirm:S,onCancel:R}))}),fi(u,{onKeyDown:function(P){var k,j;E.isValidElement(u)&&((j=u==null?void 0:(k=u.props).onKeyDown)===null||j===void 0||j.call(k,P)),b(P)}}))}),Fet={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Net=function(){var t=E.useRef([]),r=E.useRef(null);return E.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(i){if(i){a=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(o.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},b$=0,_et=_s();function ket(){var e;return _et?(e=b$,b$+=1):e="TEST_OR_SSR",e}const Pet=(function(e){var t=E.useState(),r=Je(t,2),n=r[0],a=r[1];return E.useEffect(function(){a("rc_progress_".concat(ket()))},[]),e||n});var Oet=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function S$(e){return+e.replace("%","")}function R$(e){var t=e??[];return Array.isArray(t)?t:[t]}var P1=100,R8=function(t,r,n,a,i,o,s,l,c,A){var u=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,d=n/100*360*((360-o)/360),f=o===0?0:{bottom:0,top:180,left:90,right:-90}[s],h=(100-a)/100*r;return c==="round"&&a!==100&&(h+=A/2,h>=r&&(h=r-.01)),{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:h+u,transform:"rotate(".concat(i+d+f,"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}},jet=function(t){var r=se(se({},Fet),t),n=r.id,a=r.prefixCls,i=r.steps,o=r.strokeWidth,s=r.trailWidth,l=r.gapDegree,c=l===void 0?0:l,A=r.gapPosition,u=r.trailColor,d=r.strokeLinecap,f=r.style,h=r.className,g=r.strokeColor,p=r.percent,m=An(r,Oet),y=Pet(n),C="".concat(y,"-gradient"),w=P1/2-o/2,B=Math.PI*2*w,x=c>0?90+c/2:-90,M=B*((360-c)/360),S=Ar(i)==="object"?i:{count:i,space:2},R=S.count,b=S.space,T=R8(B,M,0,100,x,c,A,u,d,o),D=R$(p),F=R$(g),N=F.find(function(j){return j&&Ar(j)==="object"}),_=Net(),P=function(){var Y=0;return D.map(function(X,K){var U=F[K]||F[F.length-1],H=U&&Ar(U)==="object"?"url(#".concat(C,")"):void 0,L=R8(B,M,Y,X,x,c,A,U,d,o);return Y+=X,E.createElement("circle",{key:K,className:"".concat(a,"-circle-path"),r:w,cx:0,cy:0,stroke:H,strokeLinecap:d,strokeWidth:o,opacity:X===0?0:1,style:L,ref:function(J){_[K]=J}})}).reverse()},k=function(){var Y=Math.round(R*(D[0]/100)),X=100/R,K=0;return new Array(R).fill(null).map(function(U,H){var L=H<=Y-1?F[0]:u,V=L&&Ar(L)==="object"?"url(#".concat(C,")"):void 0,J=R8(B,M,K,X,x,c,A,L,"butt",o,b);return K+=(M-J.strokeDashoffset+b)*100/M,E.createElement("circle",{key:H,className:"".concat(a,"-circle-path"),r:w,cx:0,cy:0,stroke:V,strokeWidth:o,opacity:1,style:J,ref:function(ae){_[H]=ae}})})};return E.createElement("svg",ge({className:dt("".concat(a,"-circle"),h),viewBox:"".concat(-P1/2," ").concat(-P1/2," ").concat(P1," ").concat(P1),style:f,id:n,role:"presentation"},m),N&&E.createElement("defs",null,E.createElement("linearGradient",{id:C,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(N).sort(function(j,Y){return S$(j)-S$(Y)}).map(function(j,Y){return E.createElement("stop",{key:Y,offset:j,stopColor:N[j]})}))),!R&&E.createElement("circle",{className:"".concat(a,"-circle-trail"),r:w,cx:0,cy:0,stroke:u,strokeLinecap:d,strokeWidth:s||o,style:T}),R?k():P())};function Iv(e){return!e||e<0?0:e>100?100:e}function vT(e){var t=e.success,r=e.successPercent,n=r;return t&&"progress"in t&&(n=t.progress),t&&"percent"in t&&(n=t.percent),n}function zet(e){var t=e.percent,r=e.success,n=e.successPercent,a=Iv(vT({success:r,successPercent:n}));return[a,Iv(Iv(t)-a)]}function Let(e){var t=e.success,r=t===void 0?{}:t,n=e.strokeColor,a=r.strokeColor;return[a||yv.green,n||null]}var Yet=function(t){var r=t.prefixCls,n=t.width,a=t.strokeWidth,i=t.trailColor,o=i===void 0?null:i,s=t.strokeLinecap,l=s===void 0?"round":s,c=t.gapPosition,A=t.gapDegree,u=t.type,d=t.children,f=t.success,h=n||120,g={width:h,height:h,fontSize:h*.15+6},p=a||6,m=c||u==="dashboard"&&"bottom"||void 0,y=function(){if(A||A===0)return A;if(u==="dashboard")return 75},C=Object.prototype.toString.call(t.strokeColor)==="[object Object]",w=Let({success:f,strokeColor:t.strokeColor}),B=dt("".concat(r,"-inner"),te({},"".concat(r,"-circle-gradient"),C));return E.createElement("div",{className:B,style:g},E.createElement(jet,{percent:zet(t),strokeWidth:p,trailWidth:p,strokeColor:w,strokeLinecap:l,trailColor:o,prefixCls:r,gapDegree:y(),gapPosition:m}),d)},Uet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Het=function(t){var r=[];return Object.keys(t).forEach(function(n){var a=parseFloat(n.replace(/%/g,""));isNaN(a)||r.push({key:a,value:t[n]})}),r=r.sort(function(n,a){return n.key-a.key}),r.map(function(n){var a=n.key,i=n.value;return"".concat(i," ").concat(a,"%")}).join(", ")},Get=function(t,r){var n=t.from,a=n===void 0?yv.blue:n,i=t.to,o=i===void 0?yv.blue:i,s=t.direction,l=s===void 0?r==="rtl"?"to left":"to right":s,c=Uet(t,["from","to","direction"]);if(Object.keys(c).length!==0){var A=Het(c);return{backgroundImage:"linear-gradient(".concat(l,", ").concat(A,")")}}return{backgroundImage:"linear-gradient(".concat(l,", ").concat(a,", ").concat(o,")")}},Ket=function(t){var r=t.prefixCls,n=t.direction,a=t.percent,i=t.strokeWidth,o=t.size,s=t.strokeColor,l=t.strokeLinecap,c=l===void 0?"round":l,A=t.children,u=t.trailColor,d=u===void 0?null:u,f=t.success,h=s&&typeof s!="string"?Get(s,n):{background:s},g=c==="square"||c==="butt"?0:void 0,p={backgroundColor:d||void 0,borderRadius:g},m=ge({width:"".concat(Iv(a),"%"),height:i||(o==="small"?6:8),borderRadius:g},h),y=vT(t),C={width:"".concat(Iv(y),"%"),height:i||(o==="small"?6:8),borderRadius:g,backgroundColor:f?.strokeColor},w=y!==void 0?E.createElement("div",{className:"".concat(r,"-success-bg"),style:C}):null;return E.createElement(E.Fragment,null,E.createElement("div",{className:"".concat(r,"-outer")},E.createElement("div",{className:"".concat(r,"-inner"),style:p},E.createElement("div",{className:"".concat(r,"-bg"),style:m}),w)),A)},Vet=function(t){for(var r=t.size,n=t.steps,a=t.percent,i=a===void 0?0:a,o=t.strokeWidth,s=o===void 0?8:o,l=t.strokeColor,c=t.trailColor,A=c===void 0?null:c,u=t.prefixCls,d=t.children,f=Math.round(n*(i/100)),h=r==="small"?2:14,g=new Array(n),p=0;p<n;p++){var m=Array.isArray(l)?l[p]:l;g[p]=E.createElement("div",{key:p,className:dt("".concat(u,"-steps-item"),te({},"".concat(u,"-steps-item-active"),p<=f-1)),style:{backgroundColor:p<=f-1?m:A,width:h,height:s}})}return E.createElement("div",{className:"".concat(u,"-steps-outer")},g,d)},Jet=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};Wo("line","circle","dashboard");var Wet=Wo("normal","exception","active","success"),Xet=function(t){var r=t.prefixCls,n=t.className,a=t.steps,i=t.strokeColor,o=t.percent,s=o===void 0?0:o,l=t.size,c=l===void 0?"default":l,A=t.showInfo,u=A===void 0?!0:A,d=t.type,f=d===void 0?"line":d,h=Jet(t,["prefixCls","className","steps","strokeColor","percent","size","showInfo","type"]);function g(){var D=vT(t);return parseInt(D!==void 0?D.toString():s.toString(),10)}function p(){var D=t.status;return!Wet.includes(D)&&g()>=100?"success":D||"normal"}function m(D,F){var N=t.format,_=vT(t);if(!u)return null;var P,k=N||function(Y){return"".concat(Y,"%")},j=f==="line";return N||F!=="exception"&&F!=="success"?P=k(Iv(s),Iv(_)):F==="exception"?P=j?E.createElement(fu,null):E.createElement(Go,null):F==="success"&&(P=j?E.createElement(KB,null):E.createElement(lA,null)),E.createElement("span",{className:"".concat(D,"-text"),title:typeof P=="string"?P:void 0},P)}var y=E.useContext(an),C=y.getPrefixCls,w=y.direction,B=C("progress",r),x=p(),M=m(B,x),S=Array.isArray(i)?i[0]:i,R=typeof i=="string"||Array.isArray(i)?i:void 0,b;f==="line"?b=a?E.createElement(Vet,ge({},t,{strokeColor:R,prefixCls:B,steps:a}),M):E.createElement(Ket,ge({},t,{strokeColor:S,prefixCls:B,direction:w}),M):(f==="circle"||f==="dashboard")&&(b=E.createElement(Yet,ge({},t,{strokeColor:S,prefixCls:B,progressStatus:x}),M));var T=dt(B,te(te(te(te(te({},"".concat(B,"-").concat(f==="dashboard"&&"circle"||a&&"steps"||f),!0),"".concat(B,"-status-").concat(x),!0),"".concat(B,"-show-info"),u),"".concat(B,"-").concat(c),c),"".concat(B,"-rtl"),w==="rtl"),n);return E.createElement("div",ge({},ji(h,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"]),{className:T,role:"progressbar"}),b)},qet=function(){return E.createElement("svg",{width:"252",height:"294"},E.createElement("defs",null,E.createElement("path",{d:"M0 .387h251.772v251.772H0z"})),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(0 .012)"},E.createElement("mask",{fill:"#fff"}),E.createElement("path",{d:"M0 127.32v-2.095C0 56.279 55.892.387 124.838.387h2.096c68.946 0 124.838 55.892 124.838 124.838v2.096c0 68.946-55.892 124.838-124.838 124.838h-2.096C55.892 252.16 0 196.267 0 127.321",fill:"#E4EBF7",mask:"url(#b)"})),E.createElement("path",{d:"M39.755 130.84a8.276 8.276 0 1 1-16.468-1.66 8.276 8.276 0 0 1 16.468 1.66",fill:"#FFF"}),E.createElement("path",{d:"M36.975 134.297l10.482 5.943M48.373 146.508l-12.648 10.788",stroke:"#FFF",strokeWidth:"2"}),E.createElement("path",{d:"M39.875 159.352a5.667 5.667 0 1 1-11.277-1.136 5.667 5.667 0 0 1 11.277 1.136M57.588 143.247a5.708 5.708 0 1 1-11.358-1.145 5.708 5.708 0 0 1 11.358 1.145M99.018 26.875l29.82-.014a4.587 4.587 0 1 0-.003-9.175l-29.82.013a4.587 4.587 0 1 0 .003 9.176M110.424 45.211l29.82-.013a4.588 4.588 0 0 0-.004-9.175l-29.82.013a4.587 4.587 0 1 0 .004 9.175",fill:"#FFF"}),E.createElement("path",{d:"M112.798 26.861v-.002l15.784-.006a4.588 4.588 0 1 0 .003 9.175l-15.783.007v-.002a4.586 4.586 0 0 0-.004-9.172M184.523 135.668c-.553 5.485-5.447 9.483-10.931 8.93-5.485-.553-9.483-5.448-8.93-10.932.552-5.485 5.447-9.483 10.932-8.93 5.485.553 9.483 5.447 8.93 10.932",fill:"#FFF"}),E.createElement("path",{d:"M179.26 141.75l12.64 7.167M193.006 156.477l-15.255 13.011",stroke:"#FFF",strokeWidth:"2"}),E.createElement("path",{d:"M184.668 170.057a6.835 6.835 0 1 1-13.6-1.372 6.835 6.835 0 0 1 13.6 1.372M203.34 153.325a6.885 6.885 0 1 1-13.7-1.382 6.885 6.885 0 0 1 13.7 1.382",fill:"#FFF"}),E.createElement("path",{d:"M151.931 192.324a2.222 2.222 0 1 1-4.444 0 2.222 2.222 0 0 1 4.444 0zM225.27 116.056a2.222 2.222 0 1 1-4.445 0 2.222 2.222 0 0 1 4.444 0zM216.38 151.08a2.223 2.223 0 1 1-4.446-.001 2.223 2.223 0 0 1 4.446 0zM176.917 107.636a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM195.291 92.165a2.223 2.223 0 1 1-4.445 0 2.223 2.223 0 0 1 4.445 0zM202.058 180.711a2.223 2.223 0 1 1-4.446 0 2.223 2.223 0 0 1 4.446 0z",stroke:"#FFF",strokeWidth:"2"}),E.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M214.404 153.302l-1.912 20.184-10.928 5.99M173.661 174.792l-6.356 9.814h-11.36l-4.508 6.484M174.941 125.168v-15.804M220.824 117.25l-12.84 7.901-15.31-7.902V94.39"}),E.createElement("path",{d:"M166.588 65.936h-3.951a4.756 4.756 0 0 1-4.743-4.742 4.756 4.756 0 0 1 4.743-4.743h3.951a4.756 4.756 0 0 1 4.743 4.743 4.756 4.756 0 0 1-4.743 4.742",fill:"#FFF"}),E.createElement("path",{d:"M174.823 30.03c0-16.281 13.198-29.48 29.48-29.48 16.28 0 29.48 13.199 29.48 29.48 0 16.28-13.2 29.48-29.48 29.48-16.282 0-29.48-13.2-29.48-29.48",fill:"#1890FF"}),E.createElement("path",{d:"M205.952 38.387c.5.5.785 1.142.785 1.928s-.286 1.465-.785 1.964c-.572.5-1.214.75-2 .75-.785 0-1.429-.285-1.929-.785-.572-.5-.82-1.143-.82-1.929s.248-1.428.82-1.928c.5-.5 1.144-.75 1.93-.75.785 0 1.462.25 1.999.75m4.285-19.463c1.428 1.249 2.143 2.963 2.143 5.142 0 1.712-.427 3.13-1.219 4.25-.067.096-.137.18-.218.265-.416.429-1.41 1.346-2.956 2.699a5.07 5.07 0 0 0-1.428 1.75 5.207 5.207 0 0 0-.536 2.357v.5h-4.107v-.5c0-1.357.215-2.536.714-3.5.464-.964 1.857-2.464 4.178-4.536l.43-.5c.643-.785.964-1.643.964-2.535 0-1.18-.358-2.108-1-2.785-.678-.68-1.643-1.001-2.858-1.001-1.536 0-2.642.464-3.357 1.43-.37.5-.621 1.135-.76 1.904a1.999 1.999 0 0 1-1.971 1.63h-.004c-1.277 0-2.257-1.183-1.98-2.43.337-1.518 1.02-2.78 2.073-3.784 1.536-1.5 3.607-2.25 6.25-2.25 2.32 0 4.214.607 5.642 1.894",fill:"#FFF"}),E.createElement("path",{d:"M52.04 76.131s21.81 5.36 27.307 15.945c5.575 10.74-6.352 9.26-15.73 4.935-10.86-5.008-24.7-11.822-11.577-20.88",fill:"#FFB594"}),E.createElement("path",{d:"M90.483 67.504l-.449 2.893c-.753.49-4.748-2.663-4.748-2.663l-1.645.748-1.346-5.684s6.815-4.589 8.917-5.018c2.452-.501 9.884.94 10.7 2.278 0 0 1.32.486-2.227.69-3.548.203-5.043.447-6.79 3.132-1.747 2.686-2.412 3.624-2.412 3.624",fill:"#FFC6A0"}),E.createElement("path",{d:"M128.055 111.367c-2.627-7.724-6.15-13.18-8.917-15.478-3.5-2.906-9.34-2.225-11.366-4.187-1.27-1.231-3.215-1.197-3.215-1.197s-14.98-3.158-16.828-3.479c-2.37-.41-2.124-.714-6.054-1.405-1.57-1.907-2.917-1.122-2.917-1.122l-7.11-1.383c-.853-1.472-2.423-1.023-2.423-1.023l-2.468-.897c-1.645 9.976-7.74 13.796-7.74 13.796 1.795 1.122 15.703 8.3 15.703 8.3l5.107 37.11s-3.321 5.694 1.346 9.109c0 0 19.883-3.743 34.921-.329 0 0 3.047-2.546.972-8.806.523-3.01 1.394-8.263 1.736-11.622.385.772 2.019 1.918 3.14 3.477 0 0 9.407-7.365 11.052-14.012-.832-.723-1.598-1.585-2.267-2.453-.567-.736-.358-2.056-.765-2.717-.669-1.084-1.804-1.378-1.907-1.682",fill:"#FFF"}),E.createElement("path",{d:"M101.09 289.998s4.295 2.041 7.354 1.021c2.821-.94 4.53.668 7.08 1.178 2.55.51 6.874 1.1 11.686-1.26-.103-5.51-6.889-3.98-11.96-6.713-2.563-1.38-3.784-4.722-3.598-8.799h-9.402s-1.392 10.52-1.16 14.573",fill:"#CBD1D1"}),E.createElement("path",{d:"M101.067 289.826s2.428 1.271 6.759.653c3.058-.437 3.712.481 7.423 1.031 3.712.55 10.724-.069 11.823-.894.413 1.1-.343 2.063-.343 2.063s-1.512.603-4.812.824c-2.03.136-5.8.291-7.607-.503-1.787-1.375-5.247-1.903-5.728-.241-3.918.95-7.355-.286-7.355-.286l-.16-2.647z",fill:"#2B0849"}),E.createElement("path",{d:"M108.341 276.044h3.094s-.103 6.702 4.536 8.558c-4.64.618-8.558-2.303-7.63-8.558",fill:"#A4AABA"}),E.createElement("path",{d:"M57.542 272.401s-2.107 7.416-4.485 12.306c-1.798 3.695-4.225 7.492 5.465 7.492 6.648 0 8.953-.48 7.423-6.599-1.53-6.12.266-13.199.266-13.199h-8.669z",fill:"#CBD1D1"}),E.createElement("path",{d:"M51.476 289.793s2.097 1.169 6.633 1.169c6.083 0 8.249-1.65 8.249-1.65s.602 1.114-.619 2.165c-.993.855-3.597 1.591-7.39 1.546-4.145-.048-5.832-.566-6.736-1.168-.825-.55-.687-1.58-.137-2.062",fill:"#2B0849"}),E.createElement("path",{d:"M58.419 274.304s.033 1.519-.314 2.93c-.349 1.42-1.078 3.104-1.13 4.139-.058 1.151 4.537 1.58 5.155.034.62-1.547 1.294-6.427 1.913-7.252.619-.825-4.903-2.119-5.624.15",fill:"#A4AABA"}),E.createElement("path",{d:"M99.66 278.514l13.378.092s1.298-54.52 1.853-64.403c.554-9.882 3.776-43.364 1.002-63.128l-12.547-.644-22.849.78s-.434 3.966-1.195 9.976c-.063.496-.682.843-.749 1.365-.075.585.423 1.354.32 1.966-2.364 14.08-6.377 33.104-8.744 46.677-.116.666-1.234 1.009-1.458 2.691-.04.302.211 1.525.112 1.795-6.873 18.744-10.949 47.842-14.277 61.885l14.607-.014s2.197-8.57 4.03-16.97c2.811-12.886 23.111-85.01 23.111-85.01l3.016-.521 1.043 46.35s-.224 1.234.337 2.02c.56.785-.56 1.123-.392 2.244l.392 1.794s-.449 7.178-.898 11.89c-.448 4.71-.092 39.165-.092 39.165",fill:"#7BB2F9"}),E.createElement("path",{d:"M76.085 221.626c1.153.094 4.038-2.019 6.955-4.935M106.36 225.142s2.774-1.11 6.103-3.883",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M107.275 222.1s2.773-1.11 6.102-3.884",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M74.74 224.767s2.622-.591 6.505-3.365M86.03 151.634c-.27 3.106.3 8.525-4.336 9.123M103.625 149.88s.11 14.012-1.293 15.065c-2.219 1.664-2.99 1.944-2.99 1.944M99.79 150.438s.035 12.88-1.196 24.377M93.673 175.911s7.212-1.664 9.431-1.664M74.31 205.861a212.013 212.013 0 0 1-.979 4.56s-1.458 1.832-1.009 3.776c.449 1.944-.947 2.045-4.985 15.355-1.696 5.59-4.49 18.591-6.348 27.597l-.231 1.12M75.689 197.807a320.934 320.934 0 0 1-.882 4.754M82.591 152.233L81.395 162.7s-1.097.15-.5 2.244c.113 1.346-2.674 15.775-5.18 30.43M56.12 274.418h13.31",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M116.241 148.22s-17.047-3.104-35.893.2c.158 2.514-.003 4.15-.003 4.15s14.687-2.818 35.67-.312c.252-2.355.226-4.038.226-4.038",fill:"#192064"}),E.createElement("path",{d:"M106.322 151.165l.003-4.911a.81.81 0 0 0-.778-.815c-2.44-.091-5.066-.108-7.836-.014a.818.818 0 0 0-.789.815l-.003 4.906a.81.81 0 0 0 .831.813c2.385-.06 4.973-.064 7.73.017a.815.815 0 0 0 .842-.81",fill:"#FFF"}),E.createElement("path",{d:"M105.207 150.233l.002-3.076a.642.642 0 0 0-.619-.646 94.321 94.321 0 0 0-5.866-.01.65.65 0 0 0-.63.647v3.072a.64.64 0 0 0 .654.644 121.12 121.12 0 0 1 5.794.011c.362.01.665-.28.665-.642",fill:"#192064"}),E.createElement("path",{d:"M100.263 275.415h12.338M101.436 270.53c.006 3.387.042 5.79.111 6.506M101.451 264.548a915.75 915.75 0 0 0-.015 4.337M100.986 174.965l.898 44.642s.673 1.57-.225 2.692c-.897 1.122 2.468.673.898 2.243-1.57 1.57.897 1.122 0 3.365-.596 1.489-.994 21.1-1.096 35.146",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M46.876 83.427s-.516 6.045 7.223 5.552c11.2-.712 9.218-9.345 31.54-21.655-.786-2.708-2.447-4.744-2.447-4.744s-11.068 3.11-22.584 8.046c-6.766 2.9-13.395 6.352-13.732 12.801M104.46 91.057l.941-5.372-8.884-11.43-5.037 5.372-1.74 7.834a.321.321 0 0 0 .108.32c.965.8 6.5 5.013 14.347 3.544a.332.332 0 0 0 .264-.268",fill:"#FFC6A0"}),E.createElement("path",{d:"M93.942 79.387s-4.533-2.853-2.432-6.855c1.623-3.09 4.513 1.133 4.513 1.133s.52-3.642 3.121-3.642c.52-1.04 1.561-4.162 1.561-4.162s11.445 2.601 13.526 3.121c0 5.203-2.304 19.424-7.84 19.861-8.892.703-12.449-9.456-12.449-9.456",fill:"#FFC6A0"}),E.createElement("path",{d:"M113.874 73.446c2.601-2.081 3.47-9.722 3.47-9.722s-2.479-.49-6.64-2.05c-4.683-2.081-12.798-4.747-17.48.976-9.668 3.223-2.05 19.823-2.05 19.823l2.713-3.021s-3.935-3.287-2.08-6.243c2.17-3.462 3.92 1.073 3.92 1.073s.637-2.387 3.581-3.342c.355-.71 1.036-2.674 1.432-3.85a1.073 1.073 0 0 1 1.263-.704c2.4.558 8.677 2.019 11.356 2.662.522.125.871.615.82 1.15l-.305 3.248z",fill:"#520038"}),E.createElement("path",{d:"M104.977 76.064c-.103.61-.582 1.038-1.07.956-.489-.083-.801-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.644.698 1.254M112.132 77.694c-.103.61-.582 1.038-1.07.956-.488-.083-.8-.644-.698-1.254.103-.61.582-1.038 1.07-.956.488.082.8.643.698 1.254",fill:"#552950"}),E.createElement("path",{stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round",d:"M110.13 74.84l-.896 1.61-.298 4.357h-2.228"}),E.createElement("path",{d:"M110.846 74.481s1.79-.716 2.506.537",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M92.386 74.282s.477-1.114 1.113-.716c.637.398 1.274 1.433.558 1.99-.717.556.159 1.67.159 1.67",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M103.287 72.93s1.83 1.113 4.137.954",stroke:"#5C2552",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M103.685 81.762s2.227 1.193 4.376 1.193M104.64 84.308s.954.398 1.511.318M94.693 81.205s2.308 7.4 10.424 7.639",stroke:"#DB836E",strokeWidth:"1.118",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M81.45 89.384s.45 5.647-4.935 12.787M69 82.654s-.726 9.282-8.204 14.206",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M129.405 122.865s-5.272 7.403-9.422 10.768",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M119.306 107.329s.452 4.366-2.127 32.062",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M150.028 151.232h-49.837a1.01 1.01 0 0 1-1.01-1.01v-31.688c0-.557.452-1.01 1.01-1.01h49.837c.558 0 1.01.453 1.01 1.01v31.688a1.01 1.01 0 0 1-1.01 1.01",fill:"#F2D7AD"}),E.createElement("path",{d:"M150.29 151.232h-19.863v-33.707h20.784v32.786a.92.92 0 0 1-.92.92",fill:"#F4D19D"}),E.createElement("path",{d:"M123.554 127.896H92.917a.518.518 0 0 1-.425-.816l6.38-9.113c.193-.277.51-.442.85-.442h31.092l-7.26 10.371z",fill:"#F2D7AD"}),E.createElement("path",{fill:"#CC9B6E",d:"M123.689 128.447H99.25v-.519h24.169l7.183-10.26.424.298z"}),E.createElement("path",{d:"M158.298 127.896h-18.669a2.073 2.073 0 0 1-1.659-.83l-7.156-9.541h19.965c.49 0 .95.23 1.244.622l6.69 8.92a.519.519 0 0 1-.415.83",fill:"#F4D19D"}),E.createElement("path",{fill:"#CC9B6E",d:"M157.847 128.479h-19.384l-7.857-10.475.415-.31 7.7 10.266h19.126zM130.554 150.685l-.032-8.177.519-.002.032 8.177z"}),E.createElement("path",{fill:"#CC9B6E",d:"M130.511 139.783l-.08-21.414.519-.002.08 21.414zM111.876 140.932l-.498-.143 1.479-5.167.498.143zM108.437 141.06l-2.679-2.935 2.665-3.434.41.318-2.397 3.089 2.384 2.612zM116.607 141.06l-.383-.35 2.383-2.612-2.397-3.089.41-.318 2.665 3.434z"}),E.createElement("path",{d:"M154.316 131.892l-3.114-1.96.038 3.514-1.043.092c-1.682.115-3.634.23-4.789.23-1.902 0-2.693 2.258 2.23 2.648l-2.645-.596s-2.168 1.317.504 2.3c0 0-1.58 1.217.561 2.58-.584 3.504 5.247 4.058 7.122 3.59 1.876-.47 4.233-2.359 4.487-5.16.28-3.085-.89-5.432-3.35-7.238",fill:"#FFC6A0"}),E.createElement("path",{d:"M153.686 133.577s-6.522.47-8.36.372c-1.836-.098-1.904 2.19 2.359 2.264 3.739.15 5.451-.044 5.451-.044",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M145.16 135.877c-1.85 1.346.561 2.355.561 2.355s3.478.898 6.73.617",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M151.89 141.71s-6.28.111-6.73-2.132c-.223-1.346.45-1.402.45-1.402M146.114 140.868s-1.103 3.16 5.44 3.533M151.202 129.932v3.477M52.838 89.286c3.533-.337 8.423-1.248 13.582-7.754",stroke:"#DB836E",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M168.567 248.318a6.647 6.647 0 0 1-6.647-6.647v-66.466a6.647 6.647 0 1 1 13.294 0v66.466a6.647 6.647 0 0 1-6.647 6.647",fill:"#5BA02E"}),E.createElement("path",{d:"M176.543 247.653a6.647 6.647 0 0 1-6.646-6.647v-33.232a6.647 6.647 0 1 1 13.293 0v33.232a6.647 6.647 0 0 1-6.647 6.647",fill:"#92C110"}),E.createElement("path",{d:"M186.443 293.613H158.92a3.187 3.187 0 0 1-3.187-3.187v-46.134a3.187 3.187 0 0 1 3.187-3.187h27.524a3.187 3.187 0 0 1 3.187 3.187v46.134a3.187 3.187 0 0 1-3.187 3.187",fill:"#F2D7AD"}),E.createElement("path",{d:"M88.979 89.48s7.776 5.384 16.6 2.842",stroke:"#E4EBF7",strokeWidth:"1.101",strokeLinecap:"round",strokeLinejoin:"round"})))},Zet=function(){return E.createElement("svg",{width:"254",height:"294"},E.createElement("defs",null,E.createElement("path",{d:"M0 .335h253.49v253.49H0z"}),E.createElement("path",{d:"M0 293.665h253.49V.401H0z"})),E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("g",{transform:"translate(0 .067)"},E.createElement("mask",{fill:"#fff"}),E.createElement("path",{d:"M0 128.134v-2.11C0 56.608 56.273.334 125.69.334h2.11c69.416 0 125.69 56.274 125.69 125.69v2.11c0 69.417-56.274 125.69-125.69 125.69h-2.11C56.273 253.824 0 197.551 0 128.134",fill:"#E4EBF7",mask:"url(#b)"})),E.createElement("path",{d:"M39.989 132.108a8.332 8.332 0 1 1-16.581-1.671 8.332 8.332 0 0 1 16.58 1.671",fill:"#FFF"}),E.createElement("path",{d:"M37.19 135.59l10.553 5.983M48.665 147.884l-12.734 10.861",stroke:"#FFF",strokeWidth:"2"}),E.createElement("path",{d:"M40.11 160.816a5.706 5.706 0 1 1-11.354-1.145 5.706 5.706 0 0 1 11.354 1.145M57.943 144.6a5.747 5.747 0 1 1-11.436-1.152 5.747 5.747 0 0 1 11.436 1.153M99.656 27.434l30.024-.013a4.619 4.619 0 1 0-.004-9.238l-30.024.013a4.62 4.62 0 0 0 .004 9.238M111.14 45.896l30.023-.013a4.62 4.62 0 1 0-.004-9.238l-30.024.013a4.619 4.619 0 1 0 .004 9.238",fill:"#FFF"}),E.createElement("path",{d:"M113.53 27.421v-.002l15.89-.007a4.619 4.619 0 1 0 .005 9.238l-15.892.007v-.002a4.618 4.618 0 0 0-.004-9.234M150.167 70.091h-3.979a4.789 4.789 0 0 1-4.774-4.775 4.788 4.788 0 0 1 4.774-4.774h3.979a4.789 4.789 0 0 1 4.775 4.774 4.789 4.789 0 0 1-4.775 4.775",fill:"#FFF"}),E.createElement("path",{d:"M171.687 30.234c0-16.392 13.289-29.68 29.681-29.68 16.392 0 29.68 13.288 29.68 29.68 0 16.393-13.288 29.681-29.68 29.681s-29.68-13.288-29.68-29.68",fill:"#FF603B"}),E.createElement("path",{d:"M203.557 19.435l-.676 15.035a1.514 1.514 0 0 1-3.026 0l-.675-15.035a2.19 2.19 0 1 1 4.377 0m-.264 19.378c.513.477.77 1.1.77 1.87s-.257 1.393-.77 1.907c-.55.476-1.21.733-1.943.733a2.545 2.545 0 0 1-1.87-.77c-.55-.514-.806-1.136-.806-1.87 0-.77.256-1.393.806-1.87.513-.513 1.137-.733 1.87-.733.77 0 1.43.22 1.943.733",fill:"#FFF"}),E.createElement("path",{d:"M119.3 133.275c4.426-.598 3.612-1.204 4.079-4.778.675-5.18-3.108-16.935-8.262-25.118-1.088-10.72-12.598-11.24-12.598-11.24s4.312 4.895 4.196 16.199c1.398 5.243.804 14.45.804 14.45s5.255 11.369 11.78 10.487",fill:"#FFB594"}),E.createElement("path",{d:"M100.944 91.61s1.463-.583 3.211.582c8.08 1.398 10.368 6.706 11.3 11.368 1.864 1.282 1.864 2.33 1.864 3.496.365.777 1.515 3.03 1.515 3.03s-7.225 1.748-10.954 6.758c-1.399-6.41-6.936-25.235-6.936-25.235",fill:"#FFF"}),E.createElement("path",{d:"M94.008 90.5l1.019-5.815-9.23-11.874-5.233 5.581-2.593 9.863s8.39 5.128 16.037 2.246",fill:"#FFB594"}),E.createElement("path",{d:"M82.931 78.216s-4.557-2.868-2.445-6.892c1.632-3.107 4.537 1.139 4.537 1.139s.524-3.662 3.139-3.662c.523-1.046 1.569-4.184 1.569-4.184s11.507 2.615 13.6 3.138c-.001 5.23-2.317 19.529-7.884 19.969-8.94.706-12.516-9.508-12.516-9.508",fill:"#FFC6A0"}),E.createElement("path",{d:"M102.971 72.243c2.616-2.093 3.489-9.775 3.489-9.775s-2.492-.492-6.676-2.062c-4.708-2.092-12.867-4.771-17.575.982-9.54 4.41-2.062 19.93-2.062 19.93l2.729-3.037s-3.956-3.304-2.092-6.277c2.183-3.48 3.943 1.08 3.943 1.08s.64-2.4 3.6-3.36c.356-.714 1.04-2.69 1.44-3.872a1.08 1.08 0 0 1 1.27-.707c2.41.56 8.723 2.03 11.417 2.676.524.126.876.619.825 1.156l-.308 3.266z",fill:"#520038"}),E.createElement("path",{d:"M101.22 76.514c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.961.491.083.805.647.702 1.26M94.26 75.074c-.104.613-.585 1.044-1.076.96-.49-.082-.805-.646-.702-1.26.104-.613.585-1.044 1.076-.96.491.082.805.646.702 1.26",fill:"#552950"}),E.createElement("path",{stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round",d:"M99.206 73.644l-.9 1.62-.3 4.38h-2.24"}),E.createElement("path",{d:"M99.926 73.284s1.8-.72 2.52.54",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M81.367 73.084s.48-1.12 1.12-.72c.64.4 1.28 1.44.56 2s.16 1.68.16 1.68",stroke:"#DB836E",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M92.326 71.724s1.84 1.12 4.16.96",stroke:"#5C2552",strokeWidth:"1.117",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M92.726 80.604s2.24 1.2 4.4 1.2M93.686 83.164s.96.4 1.52.32M83.687 80.044s1.786 6.547 9.262 7.954",stroke:"#DB836E",strokeWidth:"1.063",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M95.548 91.663s-1.068 2.821-8.298 2.105c-7.23-.717-10.29-5.044-10.29-5.044",stroke:"#E4EBF7",strokeWidth:"1.136",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M78.126 87.478s6.526 4.972 16.47 2.486c0 0 9.577 1.02 11.536 5.322 5.36 11.77.543 36.835 0 39.962 3.496 4.055-.466 8.483-.466 8.483-15.624-3.548-35.81-.6-35.81-.6-4.849-3.546-1.223-9.044-1.223-9.044L62.38 110.32c-2.485-15.227.833-19.803 3.549-20.743 3.03-1.049 8.04-1.282 8.04-1.282.496-.058 1.08-.076 1.37-.233 2.36-1.282 2.787-.583 2.787-.583",fill:"#FFF"}),E.createElement("path",{d:"M65.828 89.81s-6.875.465-7.59 8.156c-.466 8.857 3.03 10.954 3.03 10.954s6.075 22.102 16.796 22.957c8.39-2.176 4.758-6.702 4.661-11.42-.233-11.304-7.108-16.897-7.108-16.897s-4.212-13.75-9.789-13.75",fill:"#FFC6A0"}),E.createElement("path",{d:"M71.716 124.225s.855 11.264 9.828 6.486c4.765-2.536 7.581-13.828 9.789-22.568 1.456-5.768 2.58-12.197 2.58-12.197l-4.973-1.709s-2.408 5.516-7.769 12.275c-4.335 5.467-9.144 11.11-9.455 17.713",fill:"#FFC6A0"}),E.createElement("path",{d:"M108.463 105.191s1.747 2.724-2.331 30.535c2.376 2.216 1.053 6.012-.233 7.51",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M123.262 131.527s-.427 2.732-11.77 1.981c-15.187-1.006-25.326-3.25-25.326-3.25l.933-5.8s.723.215 9.71-.068c11.887-.373 18.714-6.07 24.964-1.022 4.039 3.263 1.489 8.16 1.489 8.16",fill:"#FFC6A0"}),E.createElement("path",{d:"M70.24 90.974s-5.593-4.739-11.054 2.68c-3.318 7.223.517 15.284 2.664 19.578-.31 3.729 2.33 4.311 2.33 4.311s.108.895 1.516 2.68c4.078-7.03 6.72-9.166 13.711-12.546-.328-.656-1.877-3.265-1.825-3.767.175-1.69-1.282-2.623-1.282-2.623s-.286-.156-1.165-2.738c-.788-2.313-2.036-5.177-4.895-7.575",fill:"#FFF"}),E.createElement("path",{d:"M90.232 288.027s4.855 2.308 8.313 1.155c3.188-1.063 5.12.755 8.002 1.331 2.881.577 7.769 1.243 13.207-1.424-.117-6.228-7.786-4.499-13.518-7.588-2.895-1.56-4.276-5.336-4.066-9.944H91.544s-1.573 11.89-1.312 16.47",fill:"#CBD1D1"}),E.createElement("path",{d:"M90.207 287.833s2.745 1.437 7.639.738c3.456-.494 3.223.66 7.418 1.282 4.195.621 13.092-.194 14.334-1.126.466 1.242-.388 2.33-.388 2.33s-1.709.682-5.438.932c-2.295.154-8.098.276-10.14-.621-2.02-1.554-4.894-1.515-6.06-.234-4.427 1.075-7.184-.31-7.184-.31l-.181-2.991z",fill:"#2B0849"}),E.createElement("path",{d:"M98.429 272.257h3.496s-.117 7.574 5.127 9.671c-5.244.7-9.672-2.602-8.623-9.671",fill:"#A4AABA"}),E.createElement("path",{d:"M44.425 272.046s-2.208 7.774-4.702 12.899c-1.884 3.874-4.428 7.854 5.729 7.854 6.97 0 9.385-.503 7.782-6.917-1.604-6.415.279-13.836.279-13.836h-9.088z",fill:"#CBD1D1"}),E.createElement("path",{d:"M38.066 290.277s2.198 1.225 6.954 1.225c6.376 0 8.646-1.73 8.646-1.73s.63 1.168-.649 2.27c-1.04.897-3.77 1.668-7.745 1.621-4.347-.05-6.115-.593-7.062-1.224-.864-.577-.72-1.657-.144-2.162",fill:"#2B0849"}),E.createElement("path",{d:"M45.344 274.041s.035 1.592-.329 3.07c-.365 1.49-1.13 3.255-1.184 4.34-.061 1.206 4.755 1.657 5.403.036.65-1.622 1.357-6.737 2.006-7.602.648-.865-5.14-2.222-5.896.156",fill:"#A4AABA"}),E.createElement("path",{d:"M89.476 277.57l13.899.095s1.349-56.643 1.925-66.909c.576-10.267 3.923-45.052 1.042-65.585l-13.037-.669-23.737.81s-.452 4.12-1.243 10.365c-.065.515-.708.874-.777 1.417-.078.608.439 1.407.332 2.044-2.455 14.627-5.797 32.736-8.256 46.837-.121.693-1.282 1.048-1.515 2.796-.042.314.22 1.584.116 1.865-7.14 19.473-12.202 52.601-15.66 67.19l15.176-.015s2.282-10.145 4.185-18.871c2.922-13.389 24.012-88.32 24.012-88.32l3.133-.954-.158 48.568s-.233 1.282.35 2.098c.583.815-.581 1.167-.408 2.331l.408 1.864s-.466 7.458-.932 12.352c-.467 4.895 1.145 40.69 1.145 40.69",fill:"#7BB2F9"}),E.createElement("path",{d:"M64.57 218.881c1.197.099 4.195-2.097 7.225-5.127M96.024 222.534s2.881-1.152 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M96.973 219.373s2.882-1.153 6.34-4.034",stroke:"#648BD8",strokeWidth:"1.032",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M63.172 222.144s2.724-.614 6.759-3.496M74.903 146.166c-.281 3.226.31 8.856-4.506 9.478M93.182 144.344s.115 14.557-1.344 15.65c-2.305 1.73-3.107 2.02-3.107 2.02M89.197 144.923s.269 13.144-1.01 25.088M83.525 170.71s6.81-1.051 9.116-1.051M46.026 270.045l-.892 4.538M46.937 263.289l-.815 4.157M62.725 202.503c-.33 1.618-.102 1.904-.449 3.438 0 0-2.756 1.903-2.29 3.923.466 2.02-.31 3.424-4.505 17.252-1.762 5.807-4.233 18.922-6.165 28.278-.03.144-.521 2.646-1.14 5.8M64.158 194.136c-.295 1.658-.6 3.31-.917 4.938M71.33 146.787l-1.244 10.877s-1.14.155-.519 2.33c.117 1.399-2.778 16.39-5.382 31.615M44.242 273.727H58.07",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M106.18 142.117c-3.028-.489-18.825-2.744-36.219.2a.625.625 0 0 0-.518.644c.063 1.307.044 2.343.015 2.995a.617.617 0 0 0 .716.636c3.303-.534 17.037-2.412 35.664-.266.347.04.66-.214.692-.56.124-1.347.16-2.425.17-3.029a.616.616 0 0 0-.52-.62",fill:"#192064"}),E.createElement("path",{d:"M96.398 145.264l.003-5.102a.843.843 0 0 0-.809-.847 114.104 114.104 0 0 0-8.141-.014.85.85 0 0 0-.82.847l-.003 5.097c0 .476.388.857.864.845 2.478-.064 5.166-.067 8.03.017a.848.848 0 0 0 .876-.843",fill:"#FFF"}),E.createElement("path",{d:"M95.239 144.296l.002-3.195a.667.667 0 0 0-.643-.672c-1.9-.061-3.941-.073-6.094-.01a.675.675 0 0 0-.654.672l-.002 3.192c0 .376.305.677.68.669 1.859-.042 3.874-.043 6.02.012.376.01.69-.291.691-.668",fill:"#192064"}),E.createElement("path",{d:"M90.102 273.522h12.819M91.216 269.761c.006 3.519-.072 5.55 0 6.292M90.923 263.474c-.009 1.599-.016 2.558-.016 4.505M90.44 170.404l.932 46.38s.7 1.631-.233 2.796c-.932 1.166 2.564.7.932 2.33-1.63 1.633.933 1.166 0 3.497-.618 1.546-1.031 21.921-1.138 36.513",stroke:"#648BD8",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M73.736 98.665l2.214 4.312s2.098.816 1.865 2.68l.816 2.214M64.297 116.611c.233-.932 2.176-7.147 12.585-10.488M77.598 90.042s7.691 6.137 16.547 2.72",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M91.974 86.954s5.476-.816 7.574-4.545c1.297-.345.72 2.212-.33 3.671-.7.971-1.01 1.554-1.01 1.554s.194.31.155.816c-.053.697-.175.653-.272 1.048-.081.335.108.657 0 1.049-.046.17-.198.5-.382.878-.12.249-.072.687-.2.948-.231.469-1.562 1.87-2.622 2.855-3.826 3.554-5.018 1.644-6.001-.408-.894-1.865-.661-5.127-.874-6.875-.35-2.914-2.622-3.03-1.923-4.429.343-.685 2.87.69 3.263 1.748.757 2.04 2.952 1.807 2.622 1.69",fill:"#FFC6A0"}),E.createElement("path",{d:"M99.8 82.429c-.465.077-.35.272-.97 1.243-.622.971-4.817 2.932-6.39 3.224-2.589.48-2.278-1.56-4.254-2.855-1.69-1.107-3.562-.638-1.398 1.398.99.932.932 1.107 1.398 3.205.335 1.506-.64 3.67.7 5.593",stroke:"#DB836E",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M79.543 108.673c-2.1 2.926-4.266 6.175-5.557 8.762",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M87.72 124.768s-2.098-1.942-5.127-2.719c-3.03-.777-3.574-.155-5.516.078-1.942.233-3.885-.932-3.652.7.233 1.63 5.05 1.01 5.206 2.097.155 1.087-6.37 2.796-8.313 2.175-.777.777.466 1.864 2.02 2.175.233 1.554 2.253 1.554 2.253 1.554s.699 1.01 2.641 1.088c2.486 1.32 8.934-.7 10.954-1.554 2.02-.855-.466-5.594-.466-5.594",fill:"#FFC6A0"}),E.createElement("path",{d:"M73.425 122.826s.66 1.127 3.167 1.418c2.315.27 2.563.583 2.563.583s-2.545 2.894-9.07 2.272M72.416 129.274s3.826.097 4.933-.718M74.98 130.75s1.961.136 3.36-.505M77.232 131.916s1.748.019 2.914-.505M73.328 122.321s-.595-1.032 1.262-.427c1.671.544 2.833.055 5.128.155 1.389.061 3.067-.297 3.982.15 1.606.784 3.632 2.181 3.632 2.181s10.526 1.204 19.033-1.127M78.864 108.104s-8.39 2.758-13.168 12.12",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M109.278 112.533s3.38-3.613 7.575-4.662",stroke:"#E4EBF7",strokeWidth:"1.085",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M107.375 123.006s9.697-2.745 11.445-.88",stroke:"#E59788",strokeWidth:".774",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M194.605 83.656l3.971-3.886M187.166 90.933l3.736-3.655M191.752 84.207l-4.462-4.56M198.453 91.057l-4.133-4.225M129.256 163.074l3.718-3.718M122.291 170.039l3.498-3.498M126.561 163.626l-4.27-4.27M132.975 170.039l-3.955-3.955",stroke:"#BFCDDD",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M190.156 211.779h-1.604a4.023 4.023 0 0 1-4.011-4.011V175.68a4.023 4.023 0 0 1 4.01-4.01h1.605a4.023 4.023 0 0 1 4.011 4.01v32.088a4.023 4.023 0 0 1-4.01 4.01",fill:"#A3B4C6"}),E.createElement("path",{d:"M237.824 212.977a4.813 4.813 0 0 1-4.813 4.813h-86.636a4.813 4.813 0 0 1 0-9.626h86.636a4.813 4.813 0 0 1 4.813 4.813",fill:"#A3B4C6"}),E.createElement("mask",{fill:"#fff"}),E.createElement("path",{fill:"#A3B4C6",mask:"url(#d)",d:"M154.098 190.096h70.513v-84.617h-70.513z"}),E.createElement("path",{d:"M224.928 190.096H153.78a3.219 3.219 0 0 1-3.208-3.209V167.92a3.219 3.219 0 0 1 3.208-3.21h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.219 3.219 0 0 1-3.21 3.209M224.928 130.832H153.78a3.218 3.218 0 0 1-3.208-3.208v-18.968a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.21v18.967a3.218 3.218 0 0 1-3.21 3.208",fill:"#BFCDDD",mask:"url(#d)"}),E.createElement("path",{d:"M159.563 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 120.546a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 120.546h-22.461a.802.802 0 0 1-.802-.802v-3.208c0-.443.359-.803.802-.803h22.46c.444 0 .803.36.803.803v3.208c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),E.createElement("path",{d:"M224.928 160.464H153.78a3.218 3.218 0 0 1-3.208-3.209v-18.967a3.219 3.219 0 0 1 3.208-3.209h71.148a3.219 3.219 0 0 1 3.209 3.209v18.967a3.218 3.218 0 0 1-3.21 3.209",fill:"#BFCDDD",mask:"url(#d)"}),E.createElement("path",{d:"M173.455 130.832h49.301M164.984 130.832h6.089M155.952 130.832h6.75M173.837 160.613h49.3M165.365 160.613h6.089M155.57 160.613h6.751",stroke:"#7C90A5",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),E.createElement("path",{d:"M159.563 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M166.98 151.038a2.407 2.407 0 1 1 0-4.814 2.407 2.407 0 0 1 0 4.814M174.397 151.038a2.407 2.407 0 1 1 .001-4.814 2.407 2.407 0 0 1 0 4.814M222.539 151.038h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802M159.563 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M166.98 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M174.397 179.987a2.407 2.407 0 1 1 0-4.813 2.407 2.407 0 0 1 0 4.813M222.539 179.987h-22.461a.802.802 0 0 1-.802-.802v-3.209c0-.443.359-.802.802-.802h22.46c.444 0 .803.36.803.802v3.209c0 .443-.36.802-.802.802",fill:"#FFF",mask:"url(#d)"}),E.createElement("path",{d:"M203.04 221.108h-27.372a2.413 2.413 0 0 1-2.406-2.407v-11.448a2.414 2.414 0 0 1 2.406-2.407h27.372a2.414 2.414 0 0 1 2.407 2.407V218.7a2.413 2.413 0 0 1-2.407 2.407",fill:"#BFCDDD",mask:"url(#d)"}),E.createElement("path",{d:"M177.259 207.217v11.52M201.05 207.217v11.52",stroke:"#A3B4C6",strokeWidth:"1.124",strokeLinecap:"round",strokeLinejoin:"round",mask:"url(#d)"}),E.createElement("path",{d:"M162.873 267.894a9.422 9.422 0 0 1-9.422-9.422v-14.82a9.423 9.423 0 0 1 18.845 0v14.82a9.423 9.423 0 0 1-9.423 9.422",fill:"#5BA02E",mask:"url(#d)"}),E.createElement("path",{d:"M171.22 267.83a9.422 9.422 0 0 1-9.422-9.423v-3.438a9.423 9.423 0 0 1 18.845 0v3.438a9.423 9.423 0 0 1-9.422 9.423",fill:"#92C110",mask:"url(#d)"}),E.createElement("path",{d:"M181.31 293.666h-27.712a3.209 3.209 0 0 1-3.209-3.21V269.79a3.209 3.209 0 0 1 3.209-3.21h27.711a3.209 3.209 0 0 1 3.209 3.21v20.668a3.209 3.209 0 0 1-3.209 3.209",fill:"#F2D7AD",mask:"url(#d)"})))},$et=function(){return E.createElement("svg",{width:"251",height:"294"},E.createElement("g",{fill:"none",fillRule:"evenodd"},E.createElement("path",{d:"M0 129.023v-2.084C0 58.364 55.591 2.774 124.165 2.774h2.085c68.574 0 124.165 55.59 124.165 124.165v2.084c0 68.575-55.59 124.166-124.165 124.166h-2.085C55.591 253.189 0 197.598 0 129.023",fill:"#E4EBF7"}),E.createElement("path",{d:"M41.417 132.92a8.231 8.231 0 1 1-16.38-1.65 8.231 8.231 0 0 1 16.38 1.65",fill:"#FFF"}),E.createElement("path",{d:"M38.652 136.36l10.425 5.91M49.989 148.505l-12.58 10.73",stroke:"#FFF",strokeWidth:"2"}),E.createElement("path",{d:"M41.536 161.28a5.636 5.636 0 1 1-11.216-1.13 5.636 5.636 0 0 1 11.216 1.13M59.154 145.261a5.677 5.677 0 1 1-11.297-1.138 5.677 5.677 0 0 1 11.297 1.138M100.36 29.516l29.66-.013a4.562 4.562 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 0 0 .005 9.126M111.705 47.754l29.659-.013a4.563 4.563 0 1 0-.004-9.126l-29.66.013a4.563 4.563 0 1 0 .005 9.126",fill:"#FFF"}),E.createElement("path",{d:"M114.066 29.503V29.5l15.698-.007a4.563 4.563 0 1 0 .004 9.126l-15.698.007v-.002a4.562 4.562 0 0 0-.004-9.122M185.405 137.723c-.55 5.455-5.418 9.432-10.873 8.882-5.456-.55-9.432-5.418-8.882-10.873.55-5.455 5.418-9.432 10.873-8.882 5.455.55 9.432 5.418 8.882 10.873",fill:"#FFF"}),E.createElement("path",{d:"M180.17 143.772l12.572 7.129M193.841 158.42L178.67 171.36",stroke:"#FFF",strokeWidth:"2"}),E.createElement("path",{d:"M185.55 171.926a6.798 6.798 0 1 1-13.528-1.363 6.798 6.798 0 0 1 13.527 1.363M204.12 155.285a6.848 6.848 0 1 1-13.627-1.375 6.848 6.848 0 0 1 13.626 1.375",fill:"#FFF"}),E.createElement("path",{d:"M152.988 194.074a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0zM225.931 118.217a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM217.09 153.051a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.42 0zM177.84 109.842a2.21 2.21 0 1 1-4.422 0 2.21 2.21 0 0 1 4.421 0zM196.114 94.454a2.21 2.21 0 1 1-4.421 0 2.21 2.21 0 0 1 4.421 0zM202.844 182.523a2.21 2.21 0 1 1-4.42 0 2.21 2.21 0 0 1 4.42 0z",stroke:"#FFF",strokeWidth:"2"}),E.createElement("path",{stroke:"#FFF",strokeWidth:"2",d:"M215.125 155.262l-1.902 20.075-10.87 5.958M174.601 176.636l-6.322 9.761H156.98l-4.484 6.449M175.874 127.28V111.56M221.51 119.404l-12.77 7.859-15.228-7.86V96.668"}),E.createElement("path",{d:"M180.68 29.32C180.68 13.128 193.806 0 210 0c16.193 0 29.32 13.127 29.32 29.32 0 16.194-13.127 29.322-29.32 29.322-16.193 0-29.32-13.128-29.32-29.321",fill:"#A26EF4"}),E.createElement("path",{d:"M221.45 41.706l-21.563-.125a1.744 1.744 0 0 1-1.734-1.754l.071-12.23a1.744 1.744 0 0 1 1.754-1.734l21.562.125c.964.006 1.74.791 1.735 1.755l-.071 12.229a1.744 1.744 0 0 1-1.754 1.734",fill:"#FFF"}),E.createElement("path",{d:"M215.106 29.192c-.015 2.577-2.049 4.654-4.543 4.64-2.494-.014-4.504-2.115-4.489-4.693l.04-6.925c.016-2.577 2.05-4.654 4.543-4.64 2.494.015 4.504 2.116 4.49 4.693l-.04 6.925zm-4.53-14.074a6.877 6.877 0 0 0-6.916 6.837l-.043 7.368a6.877 6.877 0 0 0 13.754.08l.042-7.368a6.878 6.878 0 0 0-6.837-6.917zM167.566 68.367h-3.93a4.73 4.73 0 0 1-4.717-4.717 4.73 4.73 0 0 1 4.717-4.717h3.93a4.73 4.73 0 0 1 4.717 4.717 4.73 4.73 0 0 1-4.717 4.717",fill:"#FFF"}),E.createElement("path",{d:"M168.214 248.838a6.611 6.611 0 0 1-6.61-6.611v-66.108a6.611 6.611 0 0 1 13.221 0v66.108a6.611 6.611 0 0 1-6.61 6.61",fill:"#5BA02E"}),E.createElement("path",{d:"M176.147 248.176a6.611 6.611 0 0 1-6.61-6.61v-33.054a6.611 6.611 0 1 1 13.221 0v33.053a6.611 6.611 0 0 1-6.61 6.611",fill:"#92C110"}),E.createElement("path",{d:"M185.994 293.89h-27.376a3.17 3.17 0 0 1-3.17-3.17v-45.887a3.17 3.17 0 0 1 3.17-3.17h27.376a3.17 3.17 0 0 1 3.17 3.17v45.886a3.17 3.17 0 0 1-3.17 3.17",fill:"#F2D7AD"}),E.createElement("path",{d:"M81.972 147.673s6.377-.927 17.566-1.28c11.729-.371 17.57 1.086 17.57 1.086s3.697-3.855.968-8.424c1.278-12.077 5.982-32.827.335-48.273-1.116-1.339-3.743-1.512-7.536-.62-1.337.315-7.147-.149-7.983-.1l-15.311-.347s-3.487-.17-8.035-.508c-1.512-.113-4.227-1.683-5.458-.338-.406.443-2.425 5.669-1.97 16.077l8.635 35.642s-3.141 3.61 1.219 7.085",fill:"#FFF"}),E.createElement("path",{d:"M75.768 73.325l-.9-6.397 11.982-6.52s7.302-.118 8.038 1.205c.737 1.324-5.616.993-5.616.993s-1.836 1.388-2.615 2.5c-1.654 2.363-.986 6.471-8.318 5.986-1.708.284-2.57 2.233-2.57 2.233",fill:"#FFC6A0"}),E.createElement("path",{d:"M52.44 77.672s14.217 9.406 24.973 14.444c1.061.497-2.094 16.183-11.892 11.811-7.436-3.318-20.162-8.44-21.482-14.496-.71-3.258 2.543-7.643 8.401-11.76M141.862 80.113s-6.693 2.999-13.844 6.876c-3.894 2.11-10.137 4.704-12.33 7.988-6.224 9.314 3.536 11.22 12.947 7.503 6.71-2.651 28.999-12.127 13.227-22.367",fill:"#FFB594"}),E.createElement("path",{d:"M76.166 66.36l3.06 3.881s-2.783 2.67-6.31 5.747c-7.103 6.195-12.803 14.296-15.995 16.44-3.966 2.662-9.754 3.314-12.177-.118-3.553-5.032.464-14.628 31.422-25.95",fill:"#FFC6A0"}),E.createElement("path",{d:"M64.674 85.116s-2.34 8.413-8.912 14.447c.652.548 18.586 10.51 22.144 10.056 5.238-.669 6.417-18.968 1.145-20.531-.702-.208-5.901-1.286-8.853-2.167-.87-.26-1.611-1.71-3.545-.936l-1.98-.869zM128.362 85.826s5.318 1.956 7.325 13.734c-.546.274-17.55 12.35-21.829 7.805-6.534-6.94-.766-17.393 4.275-18.61 4.646-1.121 5.03-1.37 10.23-2.929",fill:"#FFF"}),E.createElement("path",{d:"M78.18 94.656s.911 7.41-4.914 13.078",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M87.397 94.68s3.124 2.572 10.263 2.572c7.14 0 9.074-3.437 9.074-3.437",stroke:"#E4EBF7",strokeWidth:".932",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M117.184 68.639l-6.781-6.177s-5.355-4.314-9.223-.893c-3.867 3.422 4.463 2.083 5.653 4.165 1.19 2.082.848 1.143-2.083.446-5.603-1.331-2.082.893 2.975 5.355 2.091 1.845 6.992.955 6.992.955l2.467-3.851z",fill:"#FFC6A0"}),E.createElement("path",{d:"M105.282 91.315l-.297-10.937-15.918-.027-.53 10.45c-.026.403.17.788.515.999 2.049 1.251 9.387 5.093 15.799.424.287-.21.443-.554.431-.91",fill:"#FFB594"}),E.createElement("path",{d:"M107.573 74.24c.817-1.147.982-9.118 1.015-11.928a1.046 1.046 0 0 0-.965-1.055l-4.62-.365c-7.71-1.044-17.071.624-18.253 6.346-5.482 5.813-.421 13.244-.421 13.244s1.963 3.566 4.305 6.791c.756 1.041.398-3.731 3.04-5.929 5.524-4.594 15.899-7.103 15.899-7.103",fill:"#5C2552"}),E.createElement("path",{d:"M88.426 83.206s2.685 6.202 11.602 6.522c7.82.28 8.973-7.008 7.434-17.505l-.909-5.483c-6.118-2.897-15.478.54-15.478.54s-.576 2.044-.19 5.504c-2.276 2.066-1.824 5.618-1.824 5.618s-.905-1.922-1.98-2.321c-.86-.32-1.897.089-2.322 1.98-1.04 4.632 3.667 5.145 3.667 5.145",fill:"#FFC6A0"}),E.createElement("path",{stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round",d:"M100.843 77.099l1.701-.928-1.015-4.324.674-1.406"}),E.createElement("path",{d:"M105.546 74.092c-.022.713-.452 1.279-.96 1.263-.51-.016-.904-.607-.882-1.32.021-.713.452-1.278.96-1.263.51.016.904.607.882 1.32M97.592 74.349c-.022.713-.452 1.278-.961 1.263-.509-.016-.904-.607-.882-1.32.022-.713.452-1.279.961-1.263.51.016.904.606.882 1.32",fill:"#552950"}),E.createElement("path",{d:"M91.132 86.786s5.269 4.957 12.679 2.327",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M99.776 81.903s-3.592.232-1.44-2.79c1.59-1.496 4.897-.46 4.897-.46s1.156 3.906-3.457 3.25",fill:"#DB836E"}),E.createElement("path",{d:"M102.88 70.6s2.483.84 3.402.715M93.883 71.975s2.492-1.144 4.778-1.073",stroke:"#5C2552",strokeWidth:"1.526",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M86.32 77.374s.961.879 1.458 2.106c-.377.48-1.033 1.152-.236 1.809M99.337 83.719s1.911.151 2.509-.254",stroke:"#DB836E",strokeWidth:"1.145",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M87.782 115.821l15.73-3.012M100.165 115.821l10.04-2.008",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M66.508 86.763s-1.598 8.83-6.697 14.078",stroke:"#E4EBF7",strokeWidth:"1.114",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M128.31 87.934s3.013 4.121 4.06 11.785",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M64.09 84.816s-6.03 9.912-13.607 9.903",stroke:"#DB836E",strokeWidth:".795",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M112.366 65.909l-.142 5.32s5.993 4.472 11.945 9.202c4.482 3.562 8.888 7.455 10.985 8.662 4.804 2.766 8.9 3.355 11.076 1.808 4.071-2.894 4.373-9.878-8.136-15.263-4.271-1.838-16.144-6.36-25.728-9.73",fill:"#FFC6A0"}),E.createElement("path",{d:"M130.532 85.488s4.588 5.757 11.619 6.214",stroke:"#DB836E",strokeWidth:".75",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M121.708 105.73s-.393 8.564-1.34 13.612",stroke:"#E4EBF7",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M115.784 161.512s-3.57-1.488-2.678-7.14",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M101.52 290.246s4.326 2.057 7.408 1.03c2.842-.948 4.564.673 7.132 1.186 2.57.514 6.925 1.108 11.772-1.269-.104-5.551-6.939-4.01-12.048-6.763-2.582-1.39-3.812-4.757-3.625-8.863h-9.471s-1.402 10.596-1.169 14.68",fill:"#CBD1D1"}),E.createElement("path",{d:"M101.496 290.073s2.447 1.281 6.809.658c3.081-.44 3.74.485 7.479 1.039 3.739.554 10.802-.07 11.91-.9.415 1.108-.347 2.077-.347 2.077s-1.523.608-4.847.831c-2.045.137-5.843.293-7.663-.507-1.8-1.385-5.286-1.917-5.77-.243-3.947.958-7.41-.288-7.41-.288l-.16-2.667z",fill:"#2B0849"}),E.createElement("path",{d:"M108.824 276.19h3.116s-.103 6.751 4.57 8.62c-4.673.624-8.62-2.32-7.686-8.62",fill:"#A4AABA"}),E.createElement("path",{d:"M57.65 272.52s-2.122 7.47-4.518 12.396c-1.811 3.724-4.255 7.548 5.505 7.548 6.698 0 9.02-.483 7.479-6.648-1.541-6.164.268-13.296.268-13.296H57.65z",fill:"#CBD1D1"}),E.createElement("path",{d:"M51.54 290.04s2.111 1.178 6.682 1.178c6.128 0 8.31-1.662 8.31-1.662s.605 1.122-.624 2.18c-1 .862-3.624 1.603-7.444 1.559-4.177-.049-5.876-.57-6.786-1.177-.831-.554-.692-1.593-.138-2.078",fill:"#2B0849"}),E.createElement("path",{d:"M58.533 274.438s.034 1.529-.315 2.95c-.352 1.431-1.087 3.127-1.139 4.17-.058 1.16 4.57 1.592 5.194.035.623-1.559 1.303-6.475 1.927-7.306.622-.831-4.94-2.135-5.667.15",fill:"#A4AABA"}),E.createElement("path",{d:"M100.885 277.015l13.306.092s1.291-54.228 1.843-64.056c.552-9.828 3.756-43.13.997-62.788l-12.48-.64-22.725.776s-.433 3.944-1.19 9.921c-.062.493-.677.838-.744 1.358-.075.582.42 1.347.318 1.956-2.35 14.003-6.343 32.926-8.697 46.425-.116.663-1.227 1.004-1.45 2.677-.04.3.21 1.516.112 1.785-6.836 18.643-10.89 47.584-14.2 61.551l14.528-.014s2.185-8.524 4.008-16.878c2.796-12.817 22.987-84.553 22.987-84.553l3-.517 1.037 46.1s-.223 1.228.334 2.008c.558.782-.556 1.117-.39 2.233l.39 1.784s-.446 7.14-.892 11.826c-.446 4.685-.092 38.954-.092 38.954",fill:"#7BB2F9"}),E.createElement("path",{d:"M77.438 220.434c1.146.094 4.016-2.008 6.916-4.91M107.55 223.931s2.758-1.103 6.069-3.862",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M108.459 220.905s2.759-1.104 6.07-3.863",stroke:"#648BD8",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M76.099 223.557s2.608-.587 6.47-3.346M87.33 150.82c-.27 3.088.297 8.478-4.315 9.073M104.829 149.075s.11 13.936-1.286 14.983c-2.207 1.655-2.975 1.934-2.975 1.934M101.014 149.63s.035 12.81-1.19 24.245M94.93 174.965s7.174-1.655 9.38-1.655M75.671 204.754c-.316 1.55-.64 3.067-.973 4.535 0 0-1.45 1.822-1.003 3.756.446 1.934-.943 2.034-4.96 15.273-1.686 5.559-4.464 18.49-6.313 27.447-.078.38-4.018 18.06-4.093 18.423M77.043 196.743a313.269 313.269 0 0 1-.877 4.729M83.908 151.414l-1.19 10.413s-1.091.148-.496 2.23c.111 1.34-2.66 15.692-5.153 30.267M57.58 272.94h13.238",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"}),E.createElement("path",{d:"M117.377 147.423s-16.955-3.087-35.7.199c.157 2.501-.002 4.128-.002 4.128s14.607-2.802 35.476-.31c.251-2.342.226-4.017.226-4.017",fill:"#192064"}),E.createElement("path",{d:"M107.511 150.353l.004-4.885a.807.807 0 0 0-.774-.81c-2.428-.092-5.04-.108-7.795-.014a.814.814 0 0 0-.784.81l-.003 4.88c0 .456.371.82.827.808a140.76 140.76 0 0 1 7.688.017.81.81 0 0 0 .837-.806",fill:"#FFF"}),E.createElement("path",{d:"M106.402 149.426l.002-3.06a.64.64 0 0 0-.616-.643 94.135 94.135 0 0 0-5.834-.009.647.647 0 0 0-.626.643l-.001 3.056c0 .36.291.648.651.64 1.78-.04 3.708-.041 5.762.012.36.009.662-.279.662-.64",fill:"#192064"}),E.createElement("path",{d:"M101.485 273.933h12.272M102.652 269.075c.006 3.368.04 5.759.11 6.47M102.667 263.125c-.009 1.53-.015 2.98-.016 4.313M102.204 174.024l.893 44.402s.669 1.561-.224 2.677c-.892 1.116 2.455.67.893 2.231-1.562 1.562.893 1.116 0 3.347-.592 1.48-.988 20.987-1.09 34.956",stroke:"#648BD8",strokeWidth:"1.051",strokeLinecap:"round",strokeLinejoin:"round"})))},ett={success:KB,error:fu,info:JB,warning:oge},Mx={404:qet,500:Zet,403:$et},ttt=Object.keys(Mx),rtt=function(t){var r=t.prefixCls,n=t.icon,a=t.status,i=dt("".concat(r,"-icon"));if(ttt.includes("".concat(a))){var o=Mx[a];return E.createElement("div",{className:"".concat(i," ").concat(r,"-image")},E.createElement(o,null))}var s=E.createElement(ett[a]);return n===null||n===!1?null:E.createElement("div",{className:i},n||s)},ntt=function(t){var r=t.prefixCls,n=t.extra;return n?E.createElement("div",{className:"".concat(r,"-extra")},n):null},Ug=function(t){var r=t.prefixCls,n=t.className,a=t.subTitle,i=t.title,o=t.style,s=t.children,l=t.status,c=l===void 0?"info":l,A=t.icon,u=t.extra,d=E.useContext(an),f=d.getPrefixCls,h=d.direction,g=f("result",r),p=dt(g,"".concat(g,"-").concat(c),n,te({},"".concat(g,"-rtl"),h==="rtl"));return E.createElement("div",{className:p,style:o},E.createElement(rtt,{prefixCls:g,status:c,icon:A}),E.createElement("div",{className:"".concat(g,"-title")},i),a&&E.createElement("div",{className:"".concat(g,"-subtitle")},a),E.createElement(ntt,{prefixCls:g,extra:u}),s&&E.createElement("div",{className:"".concat(g,"-content")},s))};Ug.PRESENTED_IMAGE_403=Mx[403];Ug.PRESENTED_IMAGE_404=Mx[404];Ug.PRESENTED_IMAGE_500=Mx[500];var att=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function T$(e){return typeof e=="string"}var iCe=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),te(Bt(n),"onClick",function(){var s=n.props,l=s.onClick,c=s.onStepClick,A=s.stepIndex;l&&l.apply(void 0,arguments),c(A)}),n}return Jn(r,[{key:"renderIconNode",value:function(){var a,i=this.props,o=i.prefixCls,s=i.progressDot,l=i.stepIcon,c=i.stepNumber,A=i.status,u=i.title,d=i.description,f=i.icon,h=i.iconPrefix,g=i.icons,p,m=dt("".concat(o,"-icon"),"".concat(h,"icon"),(a={},te(a,"".concat(h,"icon-").concat(f),f&&T$(f)),te(a,"".concat(h,"icon-check"),!f&&A==="finish"&&(g&&!g.finish||!g)),te(a,"".concat(h,"icon-cross"),!f&&A==="error"&&(g&&!g.error||!g)),a)),y=E.createElement("span",{className:"".concat(o,"-icon-dot")});return s?typeof s=="function"?p=E.createElement("span",{className:"".concat(o,"-icon")},s(y,{index:c-1,status:A,title:u,description:d})):p=E.createElement("span",{className:"".concat(o,"-icon")},y):f&&!T$(f)?p=E.createElement("span",{className:"".concat(o,"-icon")},f):g&&g.finish&&A==="finish"?p=E.createElement("span",{className:"".concat(o,"-icon")},g.finish):g&&g.error&&A==="error"?p=E.createElement("span",{className:"".concat(o,"-icon")},g.error):f||A==="finish"||A==="error"?p=E.createElement("span",{className:m}):p=E.createElement("span",{className:"".concat(o,"-icon")},c),l&&(p=l({index:c-1,status:A,title:u,description:d,node:p})),p}},{key:"render",value:function(){var a,i=this.props,o=i.className,s=i.prefixCls,l=i.style,c=i.active,A=i.status,u=A===void 0?"wait":A;i.iconPrefix;var d=i.icon;i.wrapperStyle,i.stepNumber;var f=i.disabled,h=i.description,g=i.title,p=i.subTitle;i.progressDot,i.stepIcon;var m=i.tailContent;i.icons,i.stepIndex;var y=i.onStepClick,C=i.onClick,w=An(i,att),B=dt("".concat(s,"-item"),"".concat(s,"-item-").concat(u),o,(a={},te(a,"".concat(s,"-item-custom"),d),te(a,"".concat(s,"-item-active"),c),te(a,"".concat(s,"-item-disabled"),f===!0),a)),x=se({},l),M={};return y&&!f&&(M.role="button",M.tabIndex=0,M.onClick=this.onClick),E.createElement("div",ge({},w,{className:B,style:x}),E.createElement("div",ge({onClick:C},M,{className:"".concat(s,"-item-container")}),E.createElement("div",{className:"".concat(s,"-item-tail")},m),E.createElement("div",{className:"".concat(s,"-item-icon")},this.renderIconNode()),E.createElement("div",{className:"".concat(s,"-item-content")},E.createElement("div",{className:"".concat(s,"-item-title")},g,p&&E.createElement("div",{title:typeof p=="string"?p:void 0,className:"".concat(s,"-item-subtitle")},p)),h&&E.createElement("div",{className:"".concat(s,"-item-description")},h))))}}]),r})(E.Component),itt=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","items"],p4=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),te(Bt(n),"onStepClick",function(s){var l=n.props,c=l.onChange,A=l.current;c&&A!==s&&c(s)}),n}return Jn(r,[{key:"render",value:function(){var a,i=this,o=this.props,s=o.prefixCls,l=o.style,c=l===void 0?{}:l,A=o.className;o.children;var u=o.direction,d=o.type,f=o.labelPlacement,h=o.iconPrefix,g=o.status,p=o.size,m=o.current,y=o.progressDot,C=o.stepIcon,w=o.initial,B=o.icons,x=o.onChange,M=o.items,S=M===void 0?[]:M,R=An(o,itt),b=d==="navigation",T=y?"vertical":f,D=dt(s,"".concat(s,"-").concat(u),A,(a={},te(a,"".concat(s,"-").concat(p),p),te(a,"".concat(s,"-label-").concat(T),u==="horizontal"),te(a,"".concat(s,"-dot"),!!y),te(a,"".concat(s,"-navigation"),b),a));return le.createElement("div",ge({className:D,style:c},R),S.filter(function(F){return F}).map(function(F,N){var _=se({},F),P=w+N;return g==="error"&&N===m-1&&(_.className="".concat(s,"-next-error")),_.status||(P===m?_.status=g:P<m?_.status="finish":_.status="wait"),le.createElement(iCe,ge({},_,{active:P===m,stepNumber:P+1,stepIndex:P,key:P,prefixCls:s,iconPrefix:h,wrapperStyle:c,progressDot:y,stepIcon:C,icons:B,onStepClick:x&&i.onStepClick}))}))}}]),r})(le.Component);te(p4,"Step",iCe);te(p4,"defaultProps",{type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1});function ott(e){return e.filter(function(t){return t})}function stt(e,t){if(e)return e;var r=Vo(t).map(function(n){if(E.isValidElement(n)){var a=n.props,i=ge({},a);return i}return null});return ott(r)}var ltt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},oCe=function(t){var r=t.percent,n=t.size,a=t.className,i=t.direction,o=t.items,s=t.responsive,l=s===void 0?!0:s,c=t.current,A=c===void 0?0:c,u=t.children,d=ltt(t,["percent","size","className","direction","items","responsive","current","children"]),f=Q7(l),h=f.xs,g=E.useContext(an),p=g.getPrefixCls,m=g.direction,y=E.useCallback(function(){return l&&h?"vertical":i},[h,i]),C=p("steps",t.prefixCls),w=p("",t.iconPrefix),B=stt(o,u),x=dt(te(te({},"".concat(C,"-rtl"),m==="rtl"),"".concat(C,"-with-progress"),r!==void 0),a),M={finish:E.createElement(lA,{className:"".concat(C,"-finish-icon")}),error:E.createElement(Go,{className:"".concat(C,"-error-icon")})},S=function(b){var T=b.node,D=b.status;if(D==="process"&&r!==void 0){var F=n==="small"?32:40;return E.createElement("div",{className:"".concat(C,"-progress-icon")},E.createElement(Xet,{type:"circle",percent:r,width:F,strokeWidth:4,format:function(){return null}}),T)}return T};return E.createElement(p4,ge({icons:M},d,{current:A,size:n,items:B,direction:y(),stepIcon:S,prefixCls:C,iconPrefix:w,className:x}))};oCe.Step=p4.Step;var sCe=E.forwardRef(function(e,t){var r,n=e.prefixCls,a=n===void 0?"rc-switch":n,i=e.className,o=e.checked,s=e.defaultChecked,l=e.disabled,c=e.loadingIcon,A=e.checkedChildren,u=e.unCheckedChildren,d=e.onClick,f=e.onChange,h=e.onKeyDown,g=An(e,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),p=Ia(!1,{value:o,defaultValue:s}),m=Je(p,2),y=m[0],C=m[1];function w(S,R){var b=y;return l||(b=S,C(b),f?.(b,R)),b}function B(S){S.which===cr.LEFT?w(!1,S):S.which===cr.RIGHT&&w(!0,S),h?.(S)}function x(S){var R=w(!y,S);d?.(R,S)}var M=dt(a,i,(r={},te(r,"".concat(a,"-checked"),y),te(r,"".concat(a,"-disabled"),l),r));return E.createElement("button",Object.assign({},g,{type:"button",role:"switch","aria-checked":y,disabled:l,className:M,ref:t,onKeyDown:B,onClick:x}),c,E.createElement("span",{className:"".concat(a,"-inner")},y?A:u))});sCe.displayName="Switch";var ctt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},bo=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.size,a=e.disabled,i=e.loading,o=e.className,s=o===void 0?"":o,l=ctt(e,["prefixCls","size","disabled","loading","className"]),c=E.useContext(an),A=c.getPrefixCls,u=c.direction,d=E.useContext(ds),f=E.useContext(Ol),h=(a??f)||i,g=A("switch",r),p=E.createElement("div",{className:"".concat(g,"-handle")},i&&E.createElement(Cg,{className:"".concat(g,"-loading-icon")})),m=dt(te(te(te({},"".concat(g,"-small"),(n||d)==="small"),"".concat(g,"-loading"),i),"".concat(g,"-rtl"),u==="rtl"),s);return E.createElement(ZQ,{insertExtraNode:!0},E.createElement(sCe,ge({},l,{prefixCls:g,className:m,disabled:h,ref:t,loadingIcon:p})))});bo.__ANT_SWITCH=!0;function Att(e){return null}function utt(e){return null}var dtt="RC_TABLE_KEY";function lCe(e){return e==null?[]:Array.isArray(e)?e:[e]}function cCe(e,t){if(!t&&typeof t!="number")return e;for(var r=lCe(t),n=e,a=0;a<r.length;a+=1){if(!n)return null;var i=r[a];n=n[i]}return n}function v4(e){var t=[],r={};return e.forEach(function(n){for(var a=n||{},i=a.key,o=a.dataIndex,s=i||lCe(o).join("-")||dtt;r[s];)s="".concat(s,"_next");r[s]=!0,t.push(s)}),t}function y6(e){return e!=null}var ACe=E.createContext(!1);function ftt(){var e=E.createContext(null),t=function(n){var a=n.value,i=n.children,o=E.useRef(a);o.current=a;var s=E.useState(function(){return{getValue:function(){return o.current},listeners:new Set}}),l=Je(s,1),c=l[0];return Wa(function(){c.listeners.forEach(function(A){A(a)})},[a]),E.createElement(e.Provider,{value:c},i)};return{Context:e,Provider:t}}function htt(e,t){var r=tA(t),n=E.useContext(e?.Context),a=n||{},i=a.listeners,o=a.getValue,s=E.useState(function(){return r(n?o():null)}),l=Je(s,2),c=l[0],A=l[1];return Wa(function(){if(!n)return;function u(d){A(function(f){var h=r(d);return ZE(f,h)?f:h})}return i.add(u),function(){i.delete(u)}},[n]),c}var uCe=ftt(),m4=E.createContext(null),dCe=E.createContext({renderWithProps:!1}),gtt=["colSpan","rowSpan","style","className"];function ptt(e,t,r,n){var a=e+t-1;return e<=n&&a>=r}function vtt(e){return e&&Ar(e)==="object"&&!Array.isArray(e)&&!E.isValidElement(e)}function mtt(e){return typeof e=="string"?!0:im(e)}var Ett=function(t){var r=t.ellipsis,n=t.rowType,a=t.children,i,o=r===!0?{showTitle:!0}:r;return o&&(o.showTitle||n==="header")&&(typeof a=="string"||typeof a=="number"?i=a.toString():E.isValidElement(a)&&typeof a.props.children=="string"&&(i=a.props.children)),i};function ytt(e,t){var r,n,a,i=e.prefixCls,o=e.className,s=e.record,l=e.index,c=e.renderIndex,A=e.dataIndex,u=e.render,d=e.children,f=e.component,h=f===void 0?"td":f,g=e.colSpan,p=e.rowSpan,m=e.fixLeft,y=e.fixRight,C=e.firstFixLeft,w=e.lastFixLeft,B=e.firstFixRight,x=e.lastFixRight,M=e.appendNode,S=e.additionalProps,R=S===void 0?{}:S,b=e.ellipsis,T=e.align,D=e.rowType,F=e.isSticky,N=e.hovering,_=e.onHover,P="".concat(i,"-cell"),k=E.useContext(dCe),j=E.useContext(ACe),Y=E.useContext(m4),X=Y.allColumnsFixedLeft,K=E.useMemo(function(){if(y6(d))return[d];var Re=cCe(s,A),Te=Re,Ke=void 0;if(u){var mt=u(Re,s,c);vtt(mt)?(Te=mt.children,Ke=mt.props,k.renderWithProps=!0):Te=mt}return[Te,Ke]},[k.renderWithProps?Math.random():0,d,A,k,s,u,c]),U=Je(K,2),H=U[0],L=U[1],V=H;Ar(V)==="object"&&!Array.isArray(V)&&!E.isValidElement(V)&&(V=null),b&&(w||B)&&(V=E.createElement("span",{className:"".concat(P,"-content")},V));var J=L||{},ee=J.colSpan,ae=J.rowSpan,ne=J.style,fe=J.className,he=An(J,gtt),ye=(r=ee!==void 0?ee:g)!==null&&r!==void 0?r:1,be=(n=ae!==void 0?ae:p)!==null&&n!==void 0?n:1;if(ye===0||be===0)return null;var Se={},ve=typeof m=="number"&&j,de=typeof y=="number"&&j;ve&&(Se.position="sticky",Se.left=m),de&&(Se.position="sticky",Se.right=y);var Ue={};T&&(Ue.textAlign=T);var at=function(Te){var Ke;s&&_(l,l+be-1),R==null||(Ke=R.onMouseEnter)===null||Ke===void 0||Ke.call(R,Te)},Ve=function(Te){var Ke;s&&_(-1,-1),R==null||(Ke=R.onMouseLeave)===null||Ke===void 0||Ke.call(R,Te)},Ie=Ett({rowType:D,ellipsis:b,children:H}),we=se(se(se({title:Ie},he),R),{},{colSpan:ye!==1?ye:null,rowSpan:be!==1?be:null,className:dt(P,o,(a={},te(a,"".concat(P,"-fix-left"),ve&&j),te(a,"".concat(P,"-fix-left-first"),C&&j),te(a,"".concat(P,"-fix-left-last"),w&&j),te(a,"".concat(P,"-fix-left-all"),w&&X&&j),te(a,"".concat(P,"-fix-right"),de&&j),te(a,"".concat(P,"-fix-right-first"),B&&j),te(a,"".concat(P,"-fix-right-last"),x&&j),te(a,"".concat(P,"-ellipsis"),b),te(a,"".concat(P,"-with-append"),M),te(a,"".concat(P,"-fix-sticky"),(ve||de)&&F&&j),te(a,"".concat(P,"-row-hover"),!L&&N),a),R.className,fe),style:se(se(se(se({},R.style),Ue),Se),ne),onMouseEnter:at,onMouseLeave:Ve,ref:mtt(h)?t:null});return E.createElement(h,we,M,V)}var fCe=E.forwardRef(ytt);fCe.displayName="Cell";var Ctt=["expanded","className","hovering"],wtt=E.memo(fCe,function(e,t){return t.shouldCellUpdate?Ctt.every(function(r){return e[r]===t[r]})&&!t.shouldCellUpdate(t.record,e.record):ZE(e,t)}),Ix=E.forwardRef(function(e,t){var r=e.index,n=e.additionalProps,a=n===void 0?{}:n,i=e.colSpan,o=e.rowSpan,s=a.colSpan,l=a.rowSpan,c=i??s,A=o??l,u=htt(uCe,function(h){var g=ptt(r,A||1,h?.startRow,h?.endRow);return{onHover:h?.onHover,hovering:g}}),d=u.onHover,f=u.hovering;return E.createElement(wtt,ge({},e,{colSpan:c,rowSpan:A,hovering:f,ref:t,onHover:d}))});Ix.displayName="WrappedCell";var Fd=E.createContext(null);function EU(e,t,r,n,a){var i=r[e]||{},o=r[t]||{},s,l;i.fixed==="left"?s=n.left[e]:o.fixed==="right"&&(l=n.right[t]);var c=!1,A=!1,u=!1,d=!1,f=r[t+1],h=r[e-1];if(a==="rtl"){if(s!==void 0){var g=h&&h.fixed==="left";d=!g}else if(l!==void 0){var p=f&&f.fixed==="right";u=!p}}else if(s!==void 0){var m=f&&f.fixed==="left";c=!m}else if(l!==void 0){var y=h&&h.fixed==="right";A=!y}return{fixLeft:s,fixRight:l,lastFixLeft:c,firstFixRight:A,lastFixRight:u,firstFixLeft:d,isSticky:n.isSticky}}function hCe(e){var t=e.cells,r=e.stickyOffsets,n=e.flattenColumns,a=e.rowComponent,i=e.cellComponent,o=e.onHeaderRow,s=e.index,l=E.useContext(Fd),c=l.prefixCls,A=l.direction,u;o&&(u=o(t.map(function(f){return f.column}),s));var d=v4(t.map(function(f){return f.column}));return E.createElement(a,u,t.map(function(f,h){var g=f.column,p=EU(f.colStart,f.colEnd,n,r,A),m;return g&&g.onHeaderCell&&(m=f.column.onHeaderCell(g)),E.createElement(Ix,ge({},f,{ellipsis:g.ellipsis,align:g.align,component:i,prefixCls:c,key:d[h]},p,{additionalProps:m,rowType:"header"}))}))}hCe.displayName="HeaderRow";function Btt(e){var t=[];function r(o,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var c=s,A=o.filter(Boolean).map(function(u){var d={key:u.key,className:u.className||"",children:u.title,column:u,colStart:c},f=1,h=u.children;return h&&h.length>0&&(f=r(h,c,l+1).reduce(function(g,p){return g+p},0),d.hasSubColumns=!0),"colSpan"in u&&(f=u.colSpan),"rowSpan"in u&&(d.rowSpan=u.rowSpan),d.colSpan=f,d.colEnd=d.colStart+f-1,t[l].push(d),c+=f,f});return A}r(e,0);for(var n=t.length,a=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=n-s)})},i=0;i<n;i+=1)a(i);return t}function Q$(e){var t=e.stickyOffsets,r=e.columns,n=e.flattenColumns,a=e.onHeaderRow,i=E.useContext(Fd),o=i.prefixCls,s=i.getComponent,l=E.useMemo(function(){return Btt(r)},[r]),c=s(["header","wrapper"],"thead"),A=s(["header","row"],"tr"),u=s(["header","cell"],"th");return E.createElement(c,{className:"".concat(o,"-thead")},l.map(function(d,f){var h=E.createElement(hCe,{key:f,flattenColumns:n,cells:d,stickyOffsets:t,rowComponent:A,cellComponent:u,onHeaderRow:a,index:f});return h}))}var gCe=E.createContext(null);function pCe(e){var t=e.prefixCls,r=e.children,n=e.component,a=e.cellComponent,i=e.className,o=e.expanded,s=e.colSpan,l=e.isEmpty,c=E.useContext(Fd),A=c.scrollbarSize,u=E.useContext(gCe),d=u.fixHeader,f=u.fixColumn,h=u.componentWidth,g=u.horizonScroll;return E.useMemo(function(){var p=r;return(l?g:f)&&(p=E.createElement("div",{style:{width:h-(d?A:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},h!==0&&p)),E.createElement(n,{className:i,style:{display:o?null:"none"}},E.createElement(Ix,{component:a,prefixCls:t,colSpan:s},p))},[r,n,i,o,s,l,A,h,f,d,g])}var vCe=E.createContext(null);function mCe(e){var t=e.className,r=e.style,n=e.record,a=e.index,i=e.renderIndex,o=e.rowKey,s=e.rowExpandable,l=e.expandedKeys,c=e.onRow,A=e.indent,u=A===void 0?0:A,d=e.rowComponent,f=e.cellComponent,h=e.childrenColumnName,g=E.useContext(Fd),p=g.prefixCls,m=g.fixedInfoList,y=E.useContext(m4),C=y.flattenColumns,w=y.expandableType,B=y.expandRowByClick,x=y.onTriggerExpand,M=y.rowClassName,S=y.expandedRowClassName,R=y.indentSize,b=y.expandIcon,T=y.expandedRowRender,D=y.expandIconColumnIndex,F=E.useState(!1),N=Je(F,2),_=N[0],P=N[1],k=l&&l.has(e.recordKey);E.useEffect(function(){k&&P(!0)},[k]);var j=w==="row"&&(!s||s(n)),Y=w==="nest",X=h&&n&&n[h],K=j||Y,U=E.useRef(x);U.current=x;var H=function(){U.current.apply(U,arguments)},L=c?.(n,a),V=function(be){var Se;B&&K&&H(n,be);for(var ve=arguments.length,de=new Array(ve>1?ve-1:0),Ue=1;Ue<ve;Ue++)de[Ue-1]=arguments[Ue];L==null||(Se=L.onClick)===null||Se===void 0||Se.call.apply(Se,[L,be].concat(de))},J;typeof M=="string"?J=M:typeof M=="function"&&(J=M(n,a,u));var ee=v4(C),ae=E.createElement(d,ge({},L,{"data-row-key":o,className:dt(t,"".concat(p,"-row"),"".concat(p,"-row-level-").concat(u),J,L&&L.className),style:se(se({},r),L?L.style:null),onClick:V}),C.map(function(ye,be){var Se=ye.render,ve=ye.dataIndex,de=ye.className,Ue=ee[be],at=m[be],Ve;be===(D||0)&&Y&&(Ve=E.createElement(E.Fragment,null,E.createElement("span",{style:{paddingLeft:"".concat(R*u,"px")},className:"".concat(p,"-row-indent indent-level-").concat(u)}),b({prefixCls:p,expanded:k,expandable:X,record:n,onExpand:H})));var Ie;return ye.onCell&&(Ie=ye.onCell(n,a)),E.createElement(Ix,ge({className:de,ellipsis:ye.ellipsis,align:ye.align,component:f,prefixCls:p,key:Ue,record:n,index:a,renderIndex:i,dataIndex:ve,render:Se,shouldCellUpdate:ye.shouldCellUpdate,expanded:Ve&&k},at,{appendNode:Ve,additionalProps:Ie}))})),ne;if(j&&(_||k)){var fe=T(n,a,u+1,k),he=S&&S(n,a,u);ne=E.createElement(pCe,{expanded:k,className:dt("".concat(p,"-expanded-row"),"".concat(p,"-expanded-row-level-").concat(u+1),he),prefixCls:p,component:d,cellComponent:f,colSpan:C.length,isEmpty:!1},fe)}return E.createElement(E.Fragment,null,ae,ne)}mCe.displayName="BodyRow";function ECe(e,t,r,n,a,i){var o=[];o.push({record:e,indent:t,index:i});var s=a(e),l=n?.has(s);if(e&&Array.isArray(e[r])&&l)for(var c=0;c<e[r].length;c+=1){var A=ECe(e[r][c],t+1,r,n,a,c);o.push.apply(o,ir(A))}return o}function xtt(e,t,r,n){var a=E.useMemo(function(){if(r?.size){for(var i=[],o=0;o<e?.length;o+=1){var s=e[o];i.push.apply(i,ir(ECe(s,0,t,r,n,o)))}return i}return e?.map(function(l,c){return{record:l,indent:0,index:c}})},[e,t,r,n]);return a}function Mtt(e){var t=e.columnKey,r=e.onColumnResize,n=E.useRef();return E.useEffect(function(){n.current&&r(t,n.current.offsetWidth)},[]),E.createElement($c,{data:t},E.createElement("td",{ref:n,style:{padding:0,border:0,height:0}},E.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}function Itt(e){var t=e.prefixCls,r=e.columnsKey,n=e.onColumnResize;return E.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),style:{height:0,fontSize:0}},E.createElement($c.Collection,{onBatchResize:function(i){i.forEach(function(o){var s=o.data,l=o.size;n(s,l.offsetWidth)})}},r.map(function(a){return E.createElement(Mtt,{key:a,columnKey:a,onColumnResize:n})})))}function btt(e){var t=e.data,r=e.getRowKey,n=e.measureColumnWidth,a=e.expandedKeys,i=e.onRow,o=e.rowExpandable,s=e.emptyNode,l=e.childrenColumnName,c=E.useContext(vCe),A=c.onColumnResize,u=E.useContext(Fd),d=u.prefixCls,f=u.getComponent,h=E.useContext(m4),g=h.flattenColumns,p=xtt(t,l,a,r),m=E.useRef({renderWithProps:!1}),y=E.useState(-1),C=Je(y,2),w=C[0],B=C[1],x=E.useState(-1),M=Je(x,2),S=M[0],R=M[1],b=E.useCallback(function(D,F){B(D),R(F)},[]),T=E.useMemo(function(){var D=f(["body","wrapper"],"tbody"),F=f(["body","row"],"tr"),N=f(["body","cell"],"td"),_;t.length?_=p.map(function(k,j){var Y=k.record,X=k.indent,K=k.index,U=r(Y,j);return E.createElement(mCe,{key:U,rowKey:U,record:Y,recordKey:U,index:j,renderIndex:K,rowComponent:F,cellComponent:N,expandedKeys:a,onRow:i,getRowKey:r,rowExpandable:o,childrenColumnName:l,indent:X})}):_=E.createElement(pCe,{expanded:!0,className:"".concat(d,"-placeholder"),prefixCls:d,component:F,cellComponent:N,colSpan:g.length,isEmpty:!0},s);var P=v4(g);return E.createElement(D,{className:"".concat(d,"-tbody")},n&&E.createElement(Itt,{prefixCls:d,columnsKey:P,onColumnResize:A}),_)},[t,d,i,n,a,r,f,s,g,l,A,o,p]);return E.createElement(dCe.Provider,{value:m.current},E.createElement(uCe.Provider,{value:{startRow:w,endRow:S,onHover:b}},T))}var yCe=E.memo(btt);yCe.displayName="Body";var Stt=["expandable"],Pw="RC_TABLE_INTERNAL_COL_DEFINE";function Rtt(e){var t=e.expandable,r=An(e,Stt),n;return"expandable"in e?n=se(se({},r),t):n=r,n.showExpandColumn===!1&&(n.expandIconColumnIndex=-1),n}var Xp={},Ttt=["children"],Qtt=["fixed"];function yU(e){return Vo(e).filter(function(t){return E.isValidElement(t)}).map(function(t){var r=t.key,n=t.props,a=n.children,i=An(n,Ttt),o=se({key:r},i);return a&&(o.children=yU(a)),o})}function C6(e){return e.reduce(function(t,r){var n=r.fixed,a=n===!0?"left":n,i=r.children;return i&&i.length>0?[].concat(ir(t),ir(C6(i).map(function(o){return se({fixed:a},o)}))):[].concat(ir(t),[se(se({},r),{},{fixed:a})])},[])}function Dtt(e){return e.map(function(t){var r=t.fixed,n=An(t,Qtt),a=r;return r==="left"?a="right":r==="right"&&(a="left"),se({fixed:a},n)})}function Ftt(e,t){var r=e.prefixCls,n=e.columns,a=e.children,i=e.expandable,o=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,c=e.onTriggerExpand,A=e.expandIcon,u=e.rowExpandable,d=e.expandIconColumnIndex,f=e.direction,h=e.expandRowByClick,g=e.columnWidth,p=e.fixed,m=E.useMemo(function(){return n||yU(a)},[n,a]),y=E.useMemo(function(){if(i){var B,x=m.slice();if(!x.includes(Xp)){var M=d||0;M>=0&&x.splice(M,0,Xp)}var S=x.indexOf(Xp);x=x.filter(function(D,F){return D!==Xp||F===S});var R=m[S],b;(p==="left"||p)&&!d?b="left":(p==="right"||p)&&d===m.length?b="right":b=R?R.fixed:null;var T=(B={},te(B,Pw,{className:"".concat(r,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),te(B,"title",s),te(B,"fixed",b),te(B,"className","".concat(r,"-row-expand-icon-cell")),te(B,"width",g),te(B,"render",function(F,N,_){var P=l(N,_),k=o.has(P),j=u?u(N):!0,Y=A({prefixCls:r,expanded:k,expandable:j,record:N,onExpand:c});return h?E.createElement("span",{onClick:function(K){return K.stopPropagation()}},Y):Y}),B);return x.map(function(D){return D===Xp?T:D})}return m.filter(function(D){return D!==Xp})},[i,m,l,o,A,f]),C=E.useMemo(function(){var B=y;return t&&(B=t(B)),B.length||(B=[{render:function(){return null}}]),B},[t,y,f]),w=E.useMemo(function(){return f==="rtl"?Dtt(C6(C)):C6(C)},[C,f]);return[C,w]}function CCe(e){var t=E.useRef(e),r=E.useState({}),n=Je(r,2),a=n[1],i=E.useRef(null),o=E.useRef([]);function s(l){o.current.push(l);var c=Promise.resolve();i.current=c,c.then(function(){if(i.current===c){var A=o.current,u=t.current;o.current=[],A.forEach(function(d){t.current=d(t.current)}),i.current=null,u!==t.current&&a({})}})}return E.useEffect(function(){return function(){i.current=null}},[]),[t.current,s]}function Ntt(e){var t=E.useRef(null),r=E.useRef();function n(){window.clearTimeout(r.current)}function a(o){t.current=o,n(),r.current=window.setTimeout(function(){t.current=null,r.current=void 0},100)}function i(){return t.current}return E.useEffect(function(){return n},[]),[a,i]}function _tt(e,t,r){var n=E.useMemo(function(){for(var a=[],i=[],o=0,s=0,l=0;l<t;l+=1)if(r==="rtl"){i[l]=s,s+=e[l]||0;var c=t-l-1;a[c]=o,o+=e[c]||0}else{a[l]=o,o+=e[l]||0;var A=t-l-1;i[A]=s,s+=e[A]||0}return{left:a,right:i}},[e,t,r]);return n}var ktt=["columnType"];function wCe(e){for(var t=e.colWidths,r=e.columns,n=e.columCount,a=[],i=n||r.length,o=!1,s=i-1;s>=0;s-=1){var l=t[s],c=r&&r[s],A=c&&c[Pw];if(l||A||o){var u=A||{};u.columnType;var d=An(u,ktt);a.unshift(E.createElement("col",ge({key:s,style:{width:l}},d))),o=!0}}return E.createElement("colgroup",null,a)}function D$(e){var t=e.className,r=e.children;return E.createElement("div",{className:t},r)}var BCe=E.createContext({});function Ptt(e){var t=e.className,r=e.index,n=e.children,a=e.colSpan,i=a===void 0?1:a,o=e.rowSpan,s=e.align,l=E.useContext(Fd),c=l.prefixCls,A=l.direction,u=E.useContext(BCe),d=u.scrollColumnIndex,f=u.stickyOffsets,h=u.flattenColumns,g=r+i-1,p=g+1===d?i+1:i,m=EU(r,r+p-1,h,f,A);return E.createElement(Ix,ge({className:t,index:r,component:"td",prefixCls:c,record:null,dataIndex:null,align:s,colSpan:p,rowSpan:o,render:function(){return n}},m))}var Ott=["children"];function jtt(e){var t=e.children,r=An(e,Ott);return E.createElement("tr",r,t)}function E4(e){var t=e.children;return t}E4.Row=jtt;E4.Cell=Ptt;function iI(e){var t=e.children,r=e.stickyOffsets,n=e.flattenColumns,a=E.useContext(Fd),i=a.prefixCls,o=n.length-1,s=n[o],l=E.useMemo(function(){return{stickyOffsets:r,flattenColumns:n,scrollColumnIndex:s?.scrollbar?o:null}},[s,n,o,r]);return E.createElement(BCe.Provider,{value:l},E.createElement("tfoot",{className:"".concat(i,"-summary")},t))}var xCe=E4;function ztt(e){var t,r=e.prefixCls,n=e.record,a=e.onExpand,i=e.expanded,o=e.expandable,s="".concat(r,"-row-expand-icon");if(!o)return E.createElement("span",{className:dt(s,"".concat(r,"-row-spaced"))});var l=function(A){a(n,A),A.stopPropagation()};return E.createElement("span",{className:dt(s,(t={},te(t,"".concat(r,"-row-expanded"),i),te(t,"".concat(r,"-row-collapsed"),!i),t)),onClick:l})}function Ltt(e,t,r){var n=[];function a(i){(i||[]).forEach(function(o,s){n.push(t(o,s)),a(o[r])})}return a(e),n}var Ytt=function(t,r){var n,a,i=t.scrollBodyRef,o=t.onScroll,s=t.offsetScroll,l=t.container,c=E.useContext(Fd),A=c.prefixCls,u=((n=i.current)===null||n===void 0?void 0:n.scrollWidth)||0,d=((a=i.current)===null||a===void 0?void 0:a.clientWidth)||0,f=u&&d*(d/u),h=E.useRef(),g=CCe({scrollLeft:0,isHiddenScrollBar:!1}),p=Je(g,2),m=p[0],y=p[1],C=E.useRef({delta:0,x:0}),w=E.useState(!1),B=Je(w,2),x=B[0],M=B[1],S=function(){M(!1)},R=function(N){N.persist(),C.current.delta=N.pageX-m.scrollLeft,C.current.x=0,M(!0),N.preventDefault()},b=function(N){var _,P=N||((_=window)===null||_===void 0?void 0:_.event),k=P.buttons;if(!x||k===0){x&&M(!1);return}var j=C.current.x+N.pageX-C.current.x-C.current.delta;j<=0&&(j=0),j+f>=d&&(j=d-f),o({scrollLeft:j/d*(u+2)}),C.current.x=N.pageX},T=function(){if(i.current){var N=c$(i.current).top,_=N+i.current.offsetHeight,P=l===window?document.documentElement.scrollTop+window.innerHeight:c$(l).top+l.clientHeight;_-qZ()<=P||N>=P-s?y(function(k){return se(se({},k),{},{isHiddenScrollBar:!0})}):y(function(k){return se(se({},k),{},{isHiddenScrollBar:!1})})}},D=function(N){y(function(_){return se(se({},_),{},{scrollLeft:N/u*d||0})})};return E.useImperativeHandle(r,function(){return{setScrollLeft:D}}),E.useEffect(function(){var F=Tf(document.body,"mouseup",S,!1),N=Tf(document.body,"mousemove",b,!1);return T(),function(){F.remove(),N.remove()}},[f,x]),E.useEffect(function(){var F=Tf(l,"scroll",T,!1),N=Tf(window,"resize",T,!1);return function(){F.remove(),N.remove()}},[l]),E.useEffect(function(){m.isHiddenScrollBar||y(function(F){var N=i.current;return N?se(se({},F),{},{scrollLeft:N.scrollLeft/N.scrollWidth*N.clientWidth}):F})},[m.isHiddenScrollBar]),u<=d||!f||m.isHiddenScrollBar?null:E.createElement("div",{style:{height:qZ(),width:d,bottom:s},className:"".concat(A,"-sticky-scroll")},E.createElement("div",{onMouseDown:R,ref:h,className:dt("".concat(A,"-sticky-scroll-bar"),te({},"".concat(A,"-sticky-scroll-bar-active"),x)),style:{width:"".concat(f,"px"),transform:"translate3d(".concat(m.scrollLeft,"px, 0, 0)")}}))};const Utt=E.forwardRef(Ytt);var F$=_s()?window:null;function Htt(e,t){var r=Ar(e)==="object"?e:{},n=r.offsetHeader,a=n===void 0?0:n,i=r.offsetSummary,o=i===void 0?0:i,s=r.offsetScroll,l=s===void 0?0:s,c=r.getContainer,A=c===void 0?function(){return F$}:c,u=A()||F$;return E.useMemo(function(){var d=!!e;return{isSticky:d,stickyClassName:d?"".concat(t,"-sticky-holder"):"",offsetHeader:a,offsetSummary:o,offsetScroll:l,container:u}},[l,a,o,t,u])}var Gtt=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ktt(e,t){return E.useMemo(function(){for(var r=[],n=0;n<t;n+=1){var a=e[n];if(a!==void 0)r[n]=a;else return null}return r},[e.join("_"),t])}var w6=E.forwardRef(function(e,t){var r=e.className,n=e.noData,a=e.columns,i=e.flattenColumns,o=e.colWidths,s=e.columCount,l=e.stickyOffsets,c=e.direction,A=e.fixHeader,u=e.stickyTopOffset,d=e.stickyBottomOffset,f=e.stickyClassName,h=e.onScroll,g=e.maxContentScroll,p=e.children,m=An(e,Gtt),y=E.useContext(Fd),C=y.prefixCls,w=y.scrollbarSize,B=y.isSticky,x=B&&!A?0:w,M=E.useRef(null),S=E.useCallback(function(P){UR(t,P),UR(M,P)},[]);E.useEffect(function(){var P;function k(j){var Y=j.currentTarget,X=j.deltaX;X&&(h({currentTarget:Y,scrollLeft:Y.scrollLeft+X}),j.preventDefault())}return(P=M.current)===null||P===void 0||P.addEventListener("wheel",k),function(){var j;(j=M.current)===null||j===void 0||j.removeEventListener("wheel",k)}},[]);var R=E.useMemo(function(){return i.every(function(P){return P.width>=0})},[i]),b=i[i.length-1],T={fixed:b?b.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(C,"-cell-scrollbar")}}},D=E.useMemo(function(){return x?[].concat(ir(a),[T]):a},[x,a]),F=E.useMemo(function(){return x?[].concat(ir(i),[T]):i},[x,i]),N=E.useMemo(function(){var P=l.right,k=l.left;return se(se({},l),{},{left:c==="rtl"?[].concat(ir(k.map(function(j){return j+x})),[0]):k,right:c==="rtl"?P:[].concat(ir(P.map(function(j){return j+x})),[0]),isSticky:B})},[x,l,B]),_=Ktt(o,s);return E.createElement("div",{style:se({overflow:"hidden"},B?{top:u,bottom:d}:{}),ref:S,className:dt(r,te({},f,!!f))},E.createElement("table",{style:{tableLayout:"fixed",visibility:n||_?null:"hidden"}},(!n||!g||R)&&E.createElement(wCe,{colWidths:_?[].concat(ir(_),[x]):[],columCount:s+1,columns:F}),p(se(se({},m),{},{stickyOffsets:N,columns:D,flattenColumns:F}))))});w6.displayName="FixedHolder";var Vtt=[],Jtt={},rR="rc-table-internal-hook",Wtt=E.memo(function(e){var t=e.children;return t},function(e,t){return ZE(e.props,t.props)?e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight:!1});function Am(e){var t,r=e.prefixCls,n=e.className,a=e.rowClassName,i=e.style,o=e.data,s=e.rowKey,l=e.scroll,c=e.tableLayout,A=e.direction,u=e.title,d=e.footer,f=e.summary,h=e.id,g=e.showHeader,p=e.components,m=e.emptyText,y=e.onRow,C=e.onHeaderRow,w=e.internalHooks,B=e.transformColumns,x=e.internalRefs,M=e.sticky,S=o||Vtt,R=!!S.length,b=E.useCallback(function(kr,Wr){return cCe(p||{},kr)||Wr},[p]),T=E.useMemo(function(){return typeof s=="function"?s:function(kr){var Wr=kr&&kr[s];return Wr}},[s]),D=Rtt(e),F=D.expandIcon,N=D.expandedRowKeys,_=D.defaultExpandedRowKeys,P=D.defaultExpandAllRows,k=D.expandedRowRender,j=D.columnTitle,Y=D.onExpand,X=D.onExpandedRowsChange,K=D.expandRowByClick,U=D.rowExpandable,H=D.expandIconColumnIndex,L=D.expandedRowClassName,V=D.childrenColumnName,J=D.indentSize,ee=F||ztt,ae=V||"children",ne=E.useMemo(function(){return k?"row":e.expandable&&w===rR&&e.expandable.__PARENT_RENDER_ICON__||S.some(function(kr){return kr&&Ar(kr)==="object"&&kr[ae]})?"nest":!1},[!!k,S]),fe=E.useState(function(){return _||(P?Ltt(S,T,ae):[])}),he=Je(fe,2),ye=he[0],be=he[1],Se=E.useMemo(function(){return new Set(N||ye||[])},[N,ye]),ve=E.useCallback(function(kr){var Wr=T(kr,S.indexOf(kr)),Rr,Gn=Se.has(Wr);Gn?(Se.delete(Wr),Rr=ir(Se)):Rr=[].concat(ir(Se),[Wr]),be(Rr),Y&&Y(!Gn,kr),X&&X(Rr)},[T,Se,S,Y,X]),de=E.useState(0),Ue=Je(de,2),at=Ue[0],Ve=Ue[1],Ie=Ftt(se(se(se({},e),D),{},{expandable:!!k,columnTitle:j,expandedKeys:Se,getRowKey:T,onTriggerExpand:ve,expandIcon:ee,expandIconColumnIndex:H,direction:A}),w===rR?B:null),we=Je(Ie,2),Re=we[0],Te=we[1],Ke=E.useMemo(function(){return{columns:Re,flattenColumns:Te}},[Re,Te]),mt=E.useRef(),tt=E.useRef(),rt=E.useRef(),lt=E.useRef(),At=E.useRef(),$e=E.useState(!1),ce=Je($e,2),qe=ce[0],ct=ce[1],Tt=E.useState(!1),He=Je(Tt,2),Ge=He[0],Ee=He[1],Et=CCe(new Map),Yt=Je(Et,2),$=Yt[0],Fe=Yt[1],je=v4(Te),ue=je.map(function(kr){return $.get(kr)}),ie=E.useMemo(function(){return ue},[ue.join("_")]),Be=_tt(ie,Te.length,A),Xe=l&&y6(l.y),Oe=l&&y6(l.x)||!!D.fixed,ft=Oe&&Te.some(function(kr){var Wr=kr.fixed;return Wr}),wt=E.useRef(),ot=Htt(M,r),it=ot.isSticky,vt=ot.offsetHeader,qt=ot.offsetSummary,Xt=ot.offsetScroll,Tr=ot.stickyClassName,Kr=ot.container,Vr=f?.(S),Pr=(Xe||it)&&E.isValidElement(Vr)&&Vr.type===E4&&Vr.props.fixed,mr,xr,Ir;Xe&&(xr={overflowY:"scroll",maxHeight:l.y}),Oe&&(mr={overflowX:"auto"},Xe||(xr={overflowY:"hidden"}),Ir={width:l?.x===!0?"auto":l?.x,minWidth:"100%"});var Fr=E.useCallback(function(kr,Wr){UQ(mt.current)&&Fe(function(Rr){if(Rr.get(kr)!==Wr){var Gn=new Map(Rr);return Gn.set(kr,Wr),Gn}return Rr})},[]),br=Ntt(),Sr=Je(br,2),fr=Sr[0],Cr=Sr[1];function hr(kr,Wr){Wr&&(typeof Wr=="function"?Wr(kr):Wr.scrollLeft!==kr&&(Wr.scrollLeft=kr))}var Ht=function(Wr){var Rr=Wr.currentTarget,Gn=Wr.scrollLeft,Wn=A==="rtl",Cn=typeof Gn=="number"?Gn:Rr.scrollLeft,qa=Rr||Jtt;if(!Cr()||Cr()===qa){var wa;fr(qa),hr(Cn,tt.current),hr(Cn,rt.current),hr(Cn,At.current),hr(Cn,(wa=wt.current)===null||wa===void 0?void 0:wa.setScrollLeft)}if(Rr){var ht=Rr.scrollWidth,Pt=Rr.clientWidth;if(ht===Pt){ct(!1),Ee(!1);return}Wn?(ct(-Cn<ht-Pt),Ee(-Cn>0)):(ct(Cn>0),Ee(Cn<ht-Pt))}},Gt=function(){Oe&&rt.current?Ht({currentTarget:rt.current}):(ct(!1),Ee(!1))},er=function(Wr){var Rr=Wr.width;Rr!==at&&(Gt(),Ve(mt.current?mt.current.offsetWidth:Rr))},Qr=E.useRef(!1);E.useEffect(function(){Qr.current&&Gt()},[Oe,o,Re.length]),E.useEffect(function(){Qr.current=!0},[]);var Hr=E.useState(0),vn=Je(Hr,2),pn=vn[0],Qn=vn[1],pt=E.useState(!0),Ze=Je(pt,2),bt=Ze[0],kt=Ze[1];E.useEffect(function(){rt.current instanceof Element?Qn(h6(rt.current).width):Qn(h6(lt.current).width),kt(Xz("position","sticky"))},[]),E.useEffect(function(){w===rR&&x&&(x.body.current=rt.current)});var Wt=b(["table"],"table"),St=E.useMemo(function(){return c||(ft?l?.x==="max-content"?"auto":"fixed":Xe||it||Te.some(function(kr){var Wr=kr.ellipsis;return Wr})?"fixed":"auto")},[Xe,ft,Te,c,it]),pe,ke={colWidths:ie,columCount:Te.length,stickyOffsets:Be,onHeaderRow:C,fixHeader:Xe,scroll:l},Me=E.useMemo(function(){return R?null:typeof m=="function"?m():m},[R,m]),ze=E.createElement(yCe,{data:S,measureColumnWidth:Xe||Oe||it,expandedKeys:Se,rowExpandable:U,getRowKey:T,onRow:y,emptyNode:Me,childrenColumnName:ae}),Ye=E.createElement(wCe,{colWidths:Te.map(function(kr){var Wr=kr.width;return Wr}),columns:Te}),et=b(["body"]);if(Xe||it){var Ct;typeof et=="function"?(Ct=et(S,{scrollbarSize:pn,ref:rt,onScroll:Ht}),ke.colWidths=Te.map(function(kr,Wr){var Rr=kr.width,Gn=Wr===Re.length-1?Rr-pn:Rr;return typeof Gn=="number"&&!Number.isNaN(Gn)?Gn:(Ea(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0)})):Ct=E.createElement("div",{style:se(se({},mr),xr),onScroll:Ht,ref:rt,className:dt("".concat(r,"-body"))},E.createElement(Wt,{style:se(se({},Ir),{},{tableLayout:St})},Ye,ze,!Pr&&Vr&&E.createElement(iI,{stickyOffsets:Be,flattenColumns:Te},Vr)));var Ot=se(se(se({noData:!S.length,maxContentScroll:Oe&&l.x==="max-content"},ke),Ke),{},{direction:A,stickyClassName:Tr,onScroll:Ht});pe=E.createElement(E.Fragment,null,g!==!1&&E.createElement(w6,ge({},Ot,{stickyTopOffset:vt,className:"".concat(r,"-header"),ref:tt}),function(kr){return E.createElement(E.Fragment,null,E.createElement(Q$,kr),Pr==="top"&&E.createElement(iI,kr,Vr))}),Ct,Pr&&Pr!=="top"&&E.createElement(w6,ge({},Ot,{stickyBottomOffset:qt,className:"".concat(r,"-summary"),ref:At}),function(kr){return E.createElement(iI,kr,Vr)}),it&&E.createElement(Utt,{ref:wt,offsetScroll:Xt,scrollBodyRef:rt,onScroll:Ht,container:Kr}))}else pe=E.createElement("div",{style:se(se({},mr),xr),className:dt("".concat(r,"-content")),onScroll:Ht,ref:rt},E.createElement(Wt,{style:se(se({},Ir),{},{tableLayout:St})},Ye,g!==!1&&E.createElement(Q$,ge({},ke,Ke)),ze,Vr&&E.createElement(iI,{stickyOffsets:Be,flattenColumns:Te},Vr)));var Ut=Gf(e,{aria:!0,data:!0}),Jt=E.createElement("div",ge({className:dt(r,n,(t={},te(t,"".concat(r,"-rtl"),A==="rtl"),te(t,"".concat(r,"-ping-left"),qe),te(t,"".concat(r,"-ping-right"),Ge),te(t,"".concat(r,"-layout-fixed"),c==="fixed"),te(t,"".concat(r,"-fixed-header"),Xe),te(t,"".concat(r,"-fixed-column"),ft),te(t,"".concat(r,"-scroll-horizontal"),Oe),te(t,"".concat(r,"-has-fix-left"),Te[0]&&Te[0].fixed),te(t,"".concat(r,"-has-fix-right"),Te[Te.length-1]&&Te[Te.length-1].fixed==="right"),t)),style:i,id:h,ref:mt},Ut),E.createElement(Wtt,{pingLeft:qe,pingRight:Ge,props:se(se({},e),{},{stickyOffsets:Be,mergedExpandedKeys:Se})},u&&E.createElement(D$,{className:"".concat(r,"-title")},u(S)),E.createElement("div",{ref:lt,className:"".concat(r,"-container")},pe),d&&E.createElement(D$,{className:"".concat(r,"-footer")},d(S))));Oe&&(Jt=E.createElement($c,{onResize:er},Jt));var ar=E.useMemo(function(){return{prefixCls:r,getComponent:b,scrollbarSize:pn,direction:A,fixedInfoList:Te.map(function(kr,Wr){return EU(Wr,Wr,Te,Be,A)}),isSticky:it}},[r,b,pn,A,Te,Be,it]),Nr=E.useMemo(function(){return se(se({},Ke),{},{tableLayout:St,rowClassName:a,expandedRowClassName:L,expandIcon:ee,expandableType:ne,expandRowByClick:K,expandedRowRender:k,onTriggerExpand:ve,expandIconColumnIndex:H,indentSize:J,allColumnsFixedLeft:Ke.flattenColumns.every(function(kr){return kr.fixed==="left"})})},[Ke,St,a,L,ee,ne,K,k,ve,H,J]),rn=E.useMemo(function(){return{componentWidth:at,fixHeader:Xe,fixColumn:ft,horizonScroll:Oe}},[at,Xe,ft,Oe]),dn=E.useMemo(function(){return{onColumnResize:Fr}},[Fr]);return E.createElement(ACe.Provider,{value:bt},E.createElement(Fd.Provider,{value:ar},E.createElement(m4.Provider,{value:Nr},E.createElement(gCe.Provider,{value:rn},E.createElement(vCe.Provider,{value:dn},Jt)))))}Am.EXPAND_COLUMN=Xp;Am.Column=utt;Am.ColumnGroup=Att;Am.Summary=xCe;Am.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};function Xtt(e){return null}function qtt(e){return null}function Ztt(e){return function(r){var n=r.prefixCls,a=r.onExpand,i=r.record,o=r.expanded,s=r.expandable,l="".concat(n,"-row-expand-icon");return E.createElement("button",{type:"button",onClick:function(A){a(i,A),A.stopPropagation()},className:dt(l,te(te(te({},"".concat(l,"-spaced"),!s),"".concat(l,"-expanded"),s&&o),"".concat(l,"-collapsed"),s&&!o)),"aria-label":o?e.collapse:e.expand,"aria-expanded":o})}}function ey(e,t){return"key"in e&&e.key!==void 0&&e.key!==null?e.key:e.dataIndex?Array.isArray(e.dataIndex)?e.dataIndex.join("."):e.dataIndex:t}function y4(e,t){return t?"".concat(t,"-").concat(e):"".concat(e)}function C4(e,t){return typeof e=="function"?e(t):e}function $tt(e,t){var r=C4(e,t);return Object.prototype.toString.call(r)==="[object Object]"?"":r}var T8,N$;function ert(){if(N$)return T8;N$=1;var e=$Y();function t(r,n){return e(r,n)}return T8=t,T8}var trt=ert();const _$=gn(trt);var CU=E.createContext(null);function rrt(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.indent,a={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case-1:a.top=0,a.left=-r*n;break;case 1:a.bottom=0,a.left=-r*n;break;case 0:a.bottom=0,a.left=n;break}return E.createElement("div",{style:a})}function MCe(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var nrt=function(t){for(var r=t.prefixCls,n=t.level,a=t.isStart,i=t.isEnd,o="".concat(r,"-indent-unit"),s=[],l=0;l<n;l+=1){var c;s.push(E.createElement("span",{key:l,className:dt(o,(c={},te(c,"".concat(o,"-start"),a[l]),te(c,"".concat(o,"-end"),i[l]),c))}))}return E.createElement("span",{"aria-hidden":"true",className:"".concat(r,"-indent")},s)};const art=E.memo(nrt);var irt=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],k$="open",P$="close",ort="---",srt=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.state={dragNodeHighlight:!1},n.selectHandle=void 0,n.cacheIndent=void 0,n.onSelectorClick=function(s){var l=n.props.context.onNodeClick;l(s,ho(n.props)),n.isSelectable()?n.onSelect(s):n.onCheck(s)},n.onSelectorDoubleClick=function(s){var l=n.props.context.onNodeDoubleClick;l(s,ho(n.props))},n.onSelect=function(s){if(!n.isDisabled()){var l=n.props.context.onNodeSelect;l(s,ho(n.props))}},n.onCheck=function(s){if(!n.isDisabled()){var l=n.props,c=l.disableCheckbox,A=l.checked,u=n.props.context.onNodeCheck;if(!(!n.isCheckable()||c)){var d=!A;u(s,ho(n.props),d)}}},n.onMouseEnter=function(s){var l=n.props.context.onNodeMouseEnter;l(s,ho(n.props))},n.onMouseLeave=function(s){var l=n.props.context.onNodeMouseLeave;l(s,ho(n.props))},n.onContextMenu=function(s){var l=n.props.context.onNodeContextMenu;l(s,ho(n.props))},n.onDragStart=function(s){var l=n.props.context.onNodeDragStart;s.stopPropagation(),n.setState({dragNodeHighlight:!0}),l(s,Bt(n));try{s.dataTransfer.setData("text/plain","")}catch{}},n.onDragEnter=function(s){var l=n.props.context.onNodeDragEnter;s.preventDefault(),s.stopPropagation(),l(s,Bt(n))},n.onDragOver=function(s){var l=n.props.context.onNodeDragOver;s.preventDefault(),s.stopPropagation(),l(s,Bt(n))},n.onDragLeave=function(s){var l=n.props.context.onNodeDragLeave;s.stopPropagation(),l(s,Bt(n))},n.onDragEnd=function(s){var l=n.props.context.onNodeDragEnd;s.stopPropagation(),n.setState({dragNodeHighlight:!1}),l(s,Bt(n))},n.onDrop=function(s){var l=n.props.context.onNodeDrop;s.preventDefault(),s.stopPropagation(),n.setState({dragNodeHighlight:!1}),l(s,Bt(n))},n.onExpand=function(s){var l=n.props,c=l.loading,A=l.context.onNodeExpand;c||A(s,ho(n.props))},n.setSelectHandle=function(s){n.selectHandle=s},n.getNodeState=function(){var s=n.props.expanded;return n.isLeaf()?null:s?k$:P$},n.hasChildren=function(){var s=n.props.eventKey,l=n.props.context.keyEntities,c=cc(l,s)||{},A=c.children;return!!(A||[]).length},n.isLeaf=function(){var s=n.props,l=s.isLeaf,c=s.loaded,A=n.props.context.loadData,u=n.hasChildren();return l===!1?!1:l||!A&&!u||A&&c&&!u},n.isDisabled=function(){var s=n.props.disabled,l=n.props.context.disabled;return!!(l||s)},n.isCheckable=function(){var s=n.props.checkable,l=n.props.context.checkable;return!l||s===!1?!1:l},n.syncLoadData=function(s){var l=s.expanded,c=s.loading,A=s.loaded,u=n.props.context,d=u.loadData,f=u.onNodeLoad;c||d&&l&&!n.isLeaf()&&!n.hasChildren()&&!A&&f(ho(n.props))},n.isDraggable=function(){var s=n.props,l=s.data,c=s.context.draggable;return!!(c&&(!c.nodeDraggable||c.nodeDraggable(l)))},n.renderDragHandler=function(){var s=n.props.context,l=s.draggable,c=s.prefixCls;return l?.icon?E.createElement("span",{className:"".concat(c,"-draggable-icon")},l.icon):null},n.renderSwitcherIconDom=function(s){var l=n.props.switcherIcon,c=n.props.context.switcherIcon,A=l||c;return typeof A=="function"?A(se(se({},n.props),{},{isLeaf:s})):A},n.renderSwitcher=function(){var s=n.props.expanded,l=n.props.context.prefixCls;if(n.isLeaf()){var c=n.renderSwitcherIconDom(!0);return c!==!1?E.createElement("span",{className:dt("".concat(l,"-switcher"),"".concat(l,"-switcher-noop"))},c):null}var A=dt("".concat(l,"-switcher"),"".concat(l,"-switcher_").concat(s?k$:P$)),u=n.renderSwitcherIconDom(!1);return u!==!1?E.createElement("span",{onClick:n.onExpand,className:A},u):null},n.renderCheckbox=function(){var s=n.props,l=s.checked,c=s.halfChecked,A=s.disableCheckbox,u=n.props.context.prefixCls,d=n.isDisabled(),f=n.isCheckable();if(!f)return null;var h=typeof f!="boolean"?f:null;return E.createElement("span",{className:dt("".concat(u,"-checkbox"),l&&"".concat(u,"-checkbox-checked"),!l&&c&&"".concat(u,"-checkbox-indeterminate"),(d||A)&&"".concat(u,"-checkbox-disabled")),onClick:n.onCheck},h)},n.renderIcon=function(){var s=n.props.loading,l=n.props.context.prefixCls;return E.createElement("span",{className:dt("".concat(l,"-iconEle"),"".concat(l,"-icon__").concat(n.getNodeState()||"docu"),s&&"".concat(l,"-icon_loading"))})},n.renderSelector=function(){var s=n.state.dragNodeHighlight,l=n.props,c=l.title,A=c===void 0?ort:c,u=l.selected,d=l.icon,f=l.loading,h=l.data,g=n.props.context,p=g.prefixCls,m=g.showIcon,y=g.icon,C=g.loadData,w=g.titleRender,B=n.isDisabled(),x="".concat(p,"-node-content-wrapper"),M;if(m){var S=d||y;M=S?E.createElement("span",{className:dt("".concat(p,"-iconEle"),"".concat(p,"-icon__customize"))},typeof S=="function"?S(n.props):S):n.renderIcon()}else C&&f&&(M=n.renderIcon());var R;typeof A=="function"?R=A(h):w?R=w(h):R=A;var b=E.createElement("span",{className:"".concat(p,"-title")},R);return E.createElement("span",{ref:n.setSelectHandle,title:typeof A=="string"?A:"",className:dt("".concat(x),"".concat(x,"-").concat(n.getNodeState()||"normal"),!B&&(u||s)&&"".concat(p,"-node-selected")),onMouseEnter:n.onMouseEnter,onMouseLeave:n.onMouseLeave,onContextMenu:n.onContextMenu,onClick:n.onSelectorClick,onDoubleClick:n.onSelectorDoubleClick},M,b,n.renderDropIndicator())},n.renderDropIndicator=function(){var s=n.props,l=s.disabled,c=s.eventKey,A=n.props.context,u=A.draggable,d=A.dropLevelOffset,f=A.dropPosition,h=A.prefixCls,g=A.indent,p=A.dropIndicatorRender,m=A.dragOverNodeKey,y=A.direction,C=!!u,w=!l&&C&&m===c,B=g??n.cacheIndent;return n.cacheIndent=g,w?p({dropPosition:f,dropLevelOffset:d,indent:B,prefixCls:h,direction:y}):null},n}return Jn(r,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var a=this.props.selectable,i=this.props.context.selectable;return typeof a=="boolean"?a:i}},{key:"render",value:function(){var a,i=this.props,o=i.eventKey,s=i.className,l=i.style,c=i.dragOver,A=i.dragOverGapTop,u=i.dragOverGapBottom,d=i.isLeaf,f=i.isStart,h=i.isEnd,g=i.expanded,p=i.selected,m=i.checked,y=i.halfChecked,C=i.loading,w=i.domRef,B=i.active;i.data;var x=i.onMouseMove,M=i.selectable,S=An(i,irt),R=this.props.context,b=R.prefixCls,T=R.filterTreeNode,D=R.keyEntities,F=R.dropContainerKey,N=R.dropTargetKey,_=R.draggingNodeKey,P=this.isDisabled(),k=Gf(S,{aria:!0,data:!0}),j=cc(D,o)||{},Y=j.level,X=h[h.length-1],K=this.isDraggable(),U=!P&&K,H=_===o,L=M!==void 0?{"aria-selected":!!M}:void 0;return E.createElement("div",ge({ref:w,className:dt(s,"".concat(b,"-treenode"),(a={},te(a,"".concat(b,"-treenode-disabled"),P),te(a,"".concat(b,"-treenode-switcher-").concat(g?"open":"close"),!d),te(a,"".concat(b,"-treenode-checkbox-checked"),m),te(a,"".concat(b,"-treenode-checkbox-indeterminate"),y),te(a,"".concat(b,"-treenode-selected"),p),te(a,"".concat(b,"-treenode-loading"),C),te(a,"".concat(b,"-treenode-active"),B),te(a,"".concat(b,"-treenode-leaf-last"),X),te(a,"".concat(b,"-treenode-draggable"),K),te(a,"dragging",H),te(a,"drop-target",N===o),te(a,"drop-container",F===o),te(a,"drag-over",!P&&c),te(a,"drag-over-gap-top",!P&&A),te(a,"drag-over-gap-bottom",!P&&u),te(a,"filter-node",T&&T(ho(this.props))),a)),style:l,draggable:U,"aria-grabbed":H,onDragStart:U?this.onDragStart:void 0,onDragEnter:K?this.onDragEnter:void 0,onDragOver:K?this.onDragOver:void 0,onDragLeave:K?this.onDragLeave:void 0,onDrop:K?this.onDrop:void 0,onDragEnd:K?this.onDragEnd:void 0,onMouseMove:x},L,k),E.createElement(art,{prefixCls:b,level:Y,isStart:f,isEnd:h}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),r})(E.Component),ty=function(t){return E.createElement(CU.Consumer,null,function(r){return E.createElement(srt,ge({},t,{context:r}))})};ty.displayName="TreeNode";ty.isTreeNode=1;function lrt(e,t){var r=E.useState(!1),n=Je(r,2),a=n[0],i=n[1];E.useLayoutEffect(function(){if(a)return e(),function(){t()}},[a]),E.useLayoutEffect(function(){return i(!0),function(){i(!1)}},[])}var crt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ICe=function(t,r){var n=t.className,a=t.style,i=t.motion,o=t.motionNodes,s=t.motionType,l=t.onMotionStart,c=t.onMotionEnd,A=t.active,u=t.treeNodeRequiredProps,d=An(t,crt),f=E.useState(!0),h=Je(f,2),g=h[0],p=h[1],m=E.useContext(CU),y=m.prefixCls,C=o&&s!=="hide";Wa(function(){o&&C!==g&&p(C)},[o]);var w=function(){o&&l()},B=E.useRef(!1),x=function(){o&&!B.current&&(B.current=!0,c())};lrt(w,x);var M=function(R){C===R&&x()};return o?E.createElement(us,ge({ref:r,visible:g},i,{motionAppear:s==="show",onVisibleChanged:M}),function(S,R){var b=S.className,T=S.style;return E.createElement("div",{ref:R,className:dt("".concat(y,"-treenode-motion"),b),style:T},o.map(function(D){var F=ge({},(MCe(D.data),D.data)),N=D.title,_=D.key,P=D.isStart,k=D.isEnd;delete F.children;var j=_w(_,u);return E.createElement(ty,ge({},F,j,{title:N,active:A,data:D.data,key:_,isStart:P,isEnd:k}))}))}):E.createElement(ty,ge({domRef:r,className:n,style:a},d,{active:A}))};ICe.displayName="MotionTreeNode";var Art=E.forwardRef(ICe);function urt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function a(i,o){var s=new Map;i.forEach(function(c){s.set(c,!0)});var l=o.filter(function(c){return!s.has(c)});return l.length===1?l[0]:null}return r<n?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}function O$(e,t,r){var n=e.findIndex(function(s){return s.key===r}),a=e[n+1],i=t.findIndex(function(s){return s.key===r});if(a){var o=t.findIndex(function(s){return s.key===a.key});return t.slice(i+1,o)}return t.slice(i+1)}var drt=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],j$={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},frt=function(){},zv="RC_TREE_MOTION_".concat(Math.random()),B6={key:zv},bCe={key:zv,level:0,index:0,pos:"0",node:B6,nodes:[B6]},z$={parent:null,children:[],pos:bCe.pos,data:B6,title:null,key:zv,isStart:[],isEnd:[]};function L$(e,t,r,n){return t===!1||!r?e:e.slice(0,Math.ceil(r/n)+1)}function Y$(e){var t=e.key,r=e.pos;return Cx(t,r)}function hrt(e){for(var t=String(e.data.key),r=e;r.parent;)r=r.parent,t="".concat(r.data.key," > ").concat(t);return t}var SCe=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.data;e.selectable,e.checkable;var a=e.expandedKeys,i=e.selectedKeys,o=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,c=e.halfCheckedKeys,A=e.keyEntities,u=e.disabled,d=e.dragging,f=e.dragOverNodeKey,h=e.dropPosition,g=e.motion,p=e.height,m=e.itemHeight,y=e.virtual,C=e.focusable,w=e.activeItem,B=e.focused,x=e.tabIndex,M=e.onKeyDown,S=e.onFocus,R=e.onBlur,b=e.onActiveChange,T=e.onListChangeStart,D=e.onListChangeEnd,F=An(e,drt),N=E.useRef(null),_=E.useRef(null);E.useImperativeHandle(t,function(){return{scrollTo:function(we){N.current.scrollTo(we)},getIndentWidth:function(){return _.current.offsetWidth}}});var P=E.useState(a),k=Je(P,2),j=k[0],Y=k[1],X=E.useState(n),K=Je(X,2),U=K[0],H=K[1],L=E.useState(n),V=Je(L,2),J=V[0],ee=V[1],ae=E.useState([]),ne=Je(ae,2),fe=ne[0],he=ne[1],ye=E.useState(null),be=Je(ye,2),Se=be[0],ve=be[1],de=E.useRef(n);de.current=n;function Ue(){var Ie=de.current;H(Ie),ee(Ie),he([]),ve(null),D()}Wa(function(){Y(a);var Ie=urt(j,a);if(Ie.key!==null)if(Ie.add){var we=U.findIndex(function(rt){var lt=rt.key;return lt===Ie.key}),Re=L$(O$(U,n,Ie.key),y,p,m),Te=U.slice();Te.splice(we+1,0,z$),ee(Te),he(Re),ve("show")}else{var Ke=n.findIndex(function(rt){var lt=rt.key;return lt===Ie.key}),mt=L$(O$(n,U,Ie.key),y,p,m),tt=n.slice();tt.splice(Ke+1,0,z$),ee(tt),he(mt),ve("hide")}else U!==n&&(H(n),ee(n))},[a,n]),E.useEffect(function(){d||Ue()},[d]);var at=g?J:n,Ve={expandedKeys:a,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:f,dropPosition:h,keyEntities:A};return E.createElement(E.Fragment,null,B&&w&&E.createElement("span",{style:j$,"aria-live":"assertive"},hrt(w)),E.createElement("div",null,E.createElement("input",{style:j$,disabled:C===!1||u,tabIndex:C!==!1?x:null,onKeyDown:M,onFocus:S,onBlur:R,value:"",onChange:frt,"aria-label":"for screen reader"})),E.createElement("div",{className:"".concat(r,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},E.createElement("div",{className:"".concat(r,"-indent")},E.createElement("div",{ref:_,className:"".concat(r,"-indent-unit")}))),E.createElement(x7,ge({},F,{data:at,itemKey:Y$,height:p,fullHeight:!1,virtual:y,itemHeight:m,prefixCls:"".concat(r,"-list"),ref:N,onVisibleChange:function(we,Re){var Te=new Set(we),Ke=Re.filter(function(mt){return!Te.has(mt)});Ke.some(function(mt){return Y$(mt)===zv})&&Ue()}}),function(Ie){var we=Ie.pos,Re=ge({},(MCe(Ie.data),Ie.data)),Te=Ie.title,Ke=Ie.key,mt=Ie.isStart,tt=Ie.isEnd,rt=Cx(Ke,we);delete Re.key,delete Re.children;var lt=_w(rt,Ve);return E.createElement(Art,ge({},Re,lt,{title:Te,active:!!w&&Ke===w.key,pos:we,data:Ie.data,isStart:mt,isEnd:tt,motion:g,motionNodes:Ke===zv?fe:null,motionType:Se,onMotionStart:T,onMotionEnd:Ue,treeNodeRequiredProps:Ve,onMouseMove:function(){b(null)}}))}))});SCe.displayName="NodeList";function ld(e,t){if(!e)return[];var r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function xf(e,t){var r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function wU(e){return e.split("-")}function grt(e,t){var r=[],n=cc(t,e);function a(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(o){var s=o.key,l=o.children;r.push(s),a(l)})}return a(n.children),r}function prt(e){if(e.parent){var t=wU(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function vrt(e){var t=wU(e.pos);return Number(t[t.length-1])===0}function U$(e,t,r,n,a,i,o,s,l,c){var A,u=e.clientX,d=e.clientY,f=e.target.getBoundingClientRect(),h=f.top,g=f.height,p=(c==="rtl"?-1:1)*((a?.x||0)-u),m=(p-12)/n,y=cc(s,r.props.eventKey);if(d<h+g/2){var C=o.findIndex(function(_){return _.key===y.key}),w=C<=0?0:C-1,B=o[w].key;y=cc(s,B)}var x=y.key,M=y,S=y.key,R=0,b=0;if(!l.includes(x))for(var T=0;T<m&&prt(y);T+=1)y=y.parent,b+=1;var D=t.props.data,F=y.node,N=!0;return vrt(y)&&y.level===0&&d<h+g/2&&i({dragNode:D,dropNode:F,dropPosition:-1})&&y.key===r.props.eventKey?R=-1:(M.children||[]).length&&l.includes(S)?i({dragNode:D,dropNode:F,dropPosition:0})?R=0:N=!1:b===0?m>-1.5?i({dragNode:D,dropNode:F,dropPosition:1})?R=1:N=!1:i({dragNode:D,dropNode:F,dropPosition:0})?R=0:i({dragNode:D,dropNode:F,dropPosition:1})?R=1:N=!1:i({dragNode:D,dropNode:F,dropPosition:1})?R=1:N=!1,{dropPosition:R,dropLevelOffset:b,dropTargetKey:y.key,dropTargetPos:y.pos,dragOverNodeKey:S,dropContainerKey:R===0?null:((A=y.parent)===null||A===void 0?void 0:A.key)||null,dropAllowed:N}}function H$(e,t){if(e){var r=t.multiple;return r?e.slice():e.length?[e[0]]:e}}function Q8(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(Ar(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return Ea(!1,"`checkedKeys` is not an array or an object"),null;return t}function x6(e,t){var r=new Set;function n(a){if(!r.has(a)){var i=cc(t,a);if(i){r.add(a);var o=i.parent,s=i.node;s.disabled||o&&n(o.key)}}}return(e||[]).forEach(function(a){n(a)}),ir(r)}var mrt=10,w4=(function(e){fa(r,e);var t=pi(r);function r(){var n;Vn(this,r);for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=t.call.apply(t,[this].concat(i)),n.destroyed=!1,n.delayedDragEnterLogic=void 0,n.loadingRetryTimes={},n.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:hT()},n.dragStartMousePosition=null,n.dragNode=void 0,n.currentMouseOverDroppableNodeKey=null,n.listRef=E.createRef(),n.onNodeDragStart=function(s,l){var c=n.state,A=c.expandedKeys,u=c.keyEntities,d=n.props.onDragStart,f=l.props.eventKey;n.dragNode=l,n.dragStartMousePosition={x:s.clientX,y:s.clientY};var h=ld(A,f);n.setState({draggingNodeKey:f,dragChildrenKeys:grt(f,u),indent:n.listRef.current.getIndentWidth()}),n.setExpandedKeys(h),window.addEventListener("dragend",n.onWindowDragEnd),d?.({event:s,node:ho(l.props)})},n.onNodeDragEnter=function(s,l){var c=n.state,A=c.expandedKeys,u=c.keyEntities,d=c.dragChildrenKeys,f=c.flattenNodes,h=c.indent,g=n.props,p=g.onDragEnter,m=g.onExpand,y=g.allowDrop,C=g.direction,w=l.props,B=w.pos,x=w.eventKey,M=Bt(n),S=M.dragNode;if(n.currentMouseOverDroppableNodeKey!==x&&(n.currentMouseOverDroppableNodeKey=x),!S){n.resetDragState();return}var R=U$(s,S,l,h,n.dragStartMousePosition,y,f,u,A,C),b=R.dropPosition,T=R.dropLevelOffset,D=R.dropTargetKey,F=R.dropContainerKey,N=R.dropTargetPos,_=R.dropAllowed,P=R.dragOverNodeKey;if(d.indexOf(D)!==-1||!_){n.resetDragState();return}if(n.delayedDragEnterLogic||(n.delayedDragEnterLogic={}),Object.keys(n.delayedDragEnterLogic).forEach(function(k){clearTimeout(n.delayedDragEnterLogic[k])}),S.props.eventKey!==l.props.eventKey&&(s.persist(),n.delayedDragEnterLogic[B]=window.setTimeout(function(){if(n.state.draggingNodeKey!==null){var k=ir(A),j=cc(u,l.props.eventKey);j&&(j.children||[]).length&&(k=xf(A,l.props.eventKey)),"expandedKeys"in n.props||n.setExpandedKeys(k),m?.(k,{node:ho(l.props),expanded:!0,nativeEvent:s.nativeEvent})}},800)),S.props.eventKey===D&&T===0){n.resetDragState();return}n.setState({dragOverNodeKey:P,dropPosition:b,dropLevelOffset:T,dropTargetKey:D,dropContainerKey:F,dropTargetPos:N,dropAllowed:_}),p?.({event:s,node:ho(l.props),expandedKeys:A})},n.onNodeDragOver=function(s,l){var c=n.state,A=c.dragChildrenKeys,u=c.flattenNodes,d=c.keyEntities,f=c.expandedKeys,h=c.indent,g=n.props,p=g.onDragOver,m=g.allowDrop,y=g.direction,C=Bt(n),w=C.dragNode;if(w){var B=U$(s,w,l,h,n.dragStartMousePosition,m,u,d,f,y),x=B.dropPosition,M=B.dropLevelOffset,S=B.dropTargetKey,R=B.dropContainerKey,b=B.dropAllowed,T=B.dropTargetPos,D=B.dragOverNodeKey;A.indexOf(S)!==-1||!b||(w.props.eventKey===S&&M===0?n.state.dropPosition===null&&n.state.dropLevelOffset===null&&n.state.dropTargetKey===null&&n.state.dropContainerKey===null&&n.state.dropTargetPos===null&&n.state.dropAllowed===!1&&n.state.dragOverNodeKey===null||n.resetDragState():x===n.state.dropPosition&&M===n.state.dropLevelOffset&&S===n.state.dropTargetKey&&R===n.state.dropContainerKey&&T===n.state.dropTargetPos&&b===n.state.dropAllowed&&D===n.state.dragOverNodeKey||n.setState({dropPosition:x,dropLevelOffset:M,dropTargetKey:S,dropContainerKey:R,dropTargetPos:T,dropAllowed:b,dragOverNodeKey:D}),p?.({event:s,node:ho(l.props)}))}},n.onNodeDragLeave=function(s,l){n.currentMouseOverDroppableNodeKey===l.props.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(n.resetDragState(),n.currentMouseOverDroppableNodeKey=null);var c=n.props.onDragLeave;c?.({event:s,node:ho(l.props)})},n.onWindowDragEnd=function(s){n.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",n.onWindowDragEnd)},n.onNodeDragEnd=function(s,l){var c=n.props.onDragEnd;n.setState({dragOverNodeKey:null}),n.cleanDragState(),c?.({event:s,node:ho(l.props)}),n.dragNode=null,window.removeEventListener("dragend",n.onWindowDragEnd)},n.onNodeDrop=function(s,l){var c,A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,u=n.state,d=u.dragChildrenKeys,f=u.dropPosition,h=u.dropTargetKey,g=u.dropTargetPos,p=u.dropAllowed;if(p){var m=n.props.onDrop;if(n.setState({dragOverNodeKey:null}),n.cleanDragState(),h!==null){var y=se(se({},_w(h,n.getTreeNodeRequiredProps())),{},{active:((c=n.getActiveItem())===null||c===void 0?void 0:c.key)===h,data:cc(n.state.keyEntities,h).node}),C=d.indexOf(h)!==-1;Ea(!C,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var w=wU(g),B={event:s,node:ho(y),dragNode:n.dragNode?ho(n.dragNode.props):null,dragNodesKeys:[n.dragNode.props.eventKey].concat(d),dropToGap:f!==0,dropPosition:f+Number(w[w.length-1])};A||m?.(B),n.dragNode=null}}},n.cleanDragState=function(){var s=n.state.draggingNodeKey;s!==null&&n.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),n.dragStartMousePosition=null,n.currentMouseOverDroppableNodeKey=null},n.triggerExpandActionExpand=function(s,l){var c=n.state,A=c.expandedKeys,u=c.flattenNodes,d=l.expanded,f=l.key,h=l.isLeaf;if(!(h||s.shiftKey||s.metaKey||s.ctrlKey)){var g=u.filter(function(m){return m.key===f})[0],p=ho(se(se({},_w(f,n.getTreeNodeRequiredProps())),{},{data:g.data}));n.setExpandedKeys(d?ld(A,f):xf(A,f)),n.onNodeExpand(s,p)}},n.onNodeClick=function(s,l){var c=n.props,A=c.onClick,u=c.expandAction;u==="click"&&n.triggerExpandActionExpand(s,l),A?.(s,l)},n.onNodeDoubleClick=function(s,l){var c=n.props,A=c.onDoubleClick,u=c.expandAction;u==="doubleClick"&&n.triggerExpandActionExpand(s,l),A?.(s,l)},n.onNodeSelect=function(s,l){var c=n.state.selectedKeys,A=n.state,u=A.keyEntities,d=A.fieldNames,f=n.props,h=f.onSelect,g=f.multiple,p=l.selected,m=l[d.key],y=!p;y?g?c=xf(c,m):c=[m]:c=ld(c,m);var C=c.map(function(w){var B=cc(u,w);return B?B.node:null}).filter(function(w){return w});n.setUncontrolledState({selectedKeys:c}),h?.(c,{event:"select",selected:y,node:l,selectedNodes:C,nativeEvent:s.nativeEvent})},n.onNodeCheck=function(s,l,c){var A=n.state,u=A.keyEntities,d=A.checkedKeys,f=A.halfCheckedKeys,h=n.props,g=h.checkStrictly,p=h.onCheck,m=l.key,y,C={event:"check",node:l,checked:c,nativeEvent:s.nativeEvent};if(g){var w=c?xf(d,m):ld(d,m),B=ld(f,m);y={checked:w,halfChecked:B},C.checkedNodes=w.map(function(T){return cc(u,T)}).filter(function(T){return T}).map(function(T){return T.node}),n.setUncontrolledState({checkedKeys:w})}else{var x=Uf([].concat(ir(d),[m]),!0,u),M=x.checkedKeys,S=x.halfCheckedKeys;if(!c){var R=new Set(M);R.delete(m);var b=Uf(Array.from(R),{halfCheckedKeys:S},u);M=b.checkedKeys,S=b.halfCheckedKeys}y=M,C.checkedNodes=[],C.checkedNodesPositions=[],C.halfCheckedKeys=S,M.forEach(function(T){var D=cc(u,T);if(D){var F=D.node,N=D.pos;C.checkedNodes.push(F),C.checkedNodesPositions.push({node:F,pos:N})}}),n.setUncontrolledState({checkedKeys:M},!1,{halfCheckedKeys:S})}p?.(y,C)},n.onNodeLoad=function(s){var l=s.key,c=new Promise(function(A,u){n.setState(function(d){var f=d.loadedKeys,h=f===void 0?[]:f,g=d.loadingKeys,p=g===void 0?[]:g,m=n.props,y=m.loadData,C=m.onLoad;if(!y||h.indexOf(l)!==-1||p.indexOf(l)!==-1)return null;var w=y(s);return w.then(function(){var B=n.state.loadedKeys,x=xf(B,l);C?.(x,{event:"load",node:s}),n.setUncontrolledState({loadedKeys:x}),n.setState(function(M){return{loadingKeys:ld(M.loadingKeys,l)}}),A()}).catch(function(B){if(n.setState(function(M){return{loadingKeys:ld(M.loadingKeys,l)}}),n.loadingRetryTimes[l]=(n.loadingRetryTimes[l]||0)+1,n.loadingRetryTimes[l]>=mrt){var x=n.state.loadedKeys;Ea(!1,"Retry for `loadData` many times but still failed. No more retry."),n.setUncontrolledState({loadedKeys:xf(x,l)}),A()}u(B)}),{loadingKeys:xf(p,l)}})});return c.catch(function(){}),c},n.onNodeMouseEnter=function(s,l){var c=n.props.onMouseEnter;c?.({event:s,node:l})},n.onNodeMouseLeave=function(s,l){var c=n.props.onMouseLeave;c?.({event:s,node:l})},n.onNodeContextMenu=function(s,l){var c=n.props.onRightClick;c&&(s.preventDefault(),c({event:s,node:l}))},n.onFocus=function(){var s=n.props.onFocus;n.setState({focused:!0});for(var l=arguments.length,c=new Array(l),A=0;A<l;A++)c[A]=arguments[A];s?.apply(void 0,c)},n.onBlur=function(){var s=n.props.onBlur;n.setState({focused:!1}),n.onActiveChange(null);for(var l=arguments.length,c=new Array(l),A=0;A<l;A++)c[A]=arguments[A];s?.apply(void 0,c)},n.getTreeNodeRequiredProps=function(){var s=n.state,l=s.expandedKeys,c=s.selectedKeys,A=s.loadedKeys,u=s.loadingKeys,d=s.checkedKeys,f=s.halfCheckedKeys,h=s.dragOverNodeKey,g=s.dropPosition,p=s.keyEntities;return{expandedKeys:l||[],selectedKeys:c||[],loadedKeys:A||[],loadingKeys:u||[],checkedKeys:d||[],halfCheckedKeys:f||[],dragOverNodeKey:h,dropPosition:g,keyEntities:p}},n.setExpandedKeys=function(s){var l=n.state,c=l.treeData,A=l.fieldNames,u=v8(c,s,A);n.setUncontrolledState({expandedKeys:s,flattenNodes:u},!0)},n.onNodeExpand=function(s,l){var c=n.state.expandedKeys,A=n.state,u=A.listChanging,d=A.fieldNames,f=n.props,h=f.onExpand,g=f.loadData,p=l.expanded,m=l[d.key];if(!u){var y=c.indexOf(m),C=!p;if(Ea(p&&y!==-1||!p&&y===-1,"Expand state not sync with index check"),C?c=xf(c,m):c=ld(c,m),n.setExpandedKeys(c),h?.(c,{node:l,expanded:C,nativeEvent:s.nativeEvent}),C&&g){var w=n.onNodeLoad(l);w&&w.then(function(){var B=v8(n.state.treeData,c,d);n.setUncontrolledState({flattenNodes:B})}).catch(function(){var B=n.state.expandedKeys,x=ld(B,m);n.setExpandedKeys(x)})}}},n.onListChangeStart=function(){n.setUncontrolledState({listChanging:!0})},n.onListChangeEnd=function(){setTimeout(function(){n.setUncontrolledState({listChanging:!1})})},n.onActiveChange=function(s){var l=n.state.activeKey,c=n.props.onActiveChange;l!==s&&(n.setState({activeKey:s}),s!==null&&n.scrollTo({key:s}),c?.(s))},n.getActiveItem=function(){var s=n.state,l=s.activeKey,c=s.flattenNodes;return l===null?null:c.find(function(A){var u=A.key;return u===l})||null},n.offsetActiveKey=function(s){var l=n.state,c=l.flattenNodes,A=l.activeKey,u=c.findIndex(function(h){var g=h.key;return g===A});u===-1&&s<0&&(u=c.length),u=(u+s+c.length)%c.length;var d=c[u];if(d){var f=d.key;n.onActiveChange(f)}else n.onActiveChange(null)},n.onKeyDown=function(s){var l=n.state,c=l.activeKey,A=l.expandedKeys,u=l.checkedKeys,d=l.fieldNames,f=n.props,h=f.onKeyDown,g=f.checkable,p=f.selectable;switch(s.which){case cr.UP:{n.offsetActiveKey(-1),s.preventDefault();break}case cr.DOWN:{n.offsetActiveKey(1),s.preventDefault();break}}var m=n.getActiveItem();if(m&&m.data){var y=n.getTreeNodeRequiredProps(),C=m.data.isLeaf===!1||!!(m.data[d.children]||[]).length,w=ho(se(se({},_w(c,y)),{},{data:m.data,active:!0}));switch(s.which){case cr.LEFT:{C&&A.includes(c)?n.onNodeExpand({},w):m.parent&&n.onActiveChange(m.parent.key),s.preventDefault();break}case cr.RIGHT:{C&&!A.includes(c)?n.onNodeExpand({},w):m.children&&m.children.length&&n.onActiveChange(m.children[0].key),s.preventDefault();break}case cr.ENTER:case cr.SPACE:{g&&!w.disabled&&w.checkable!==!1&&!w.disableCheckbox?n.onNodeCheck({},w,!u.includes(c)):!g&&p&&!w.disabled&&w.selectable!==!1&&n.onNodeSelect({},w);break}}}h?.(s)},n.setUncontrolledState=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!n.destroyed){var A=!1,u=!0,d={};Object.keys(s).forEach(function(f){if(f in n.props){u=!1;return}A=!0,d[f]=s[f]}),A&&(!l||u)&&n.setState(se(se({},d),c))}},n.scrollTo=function(s){n.listRef.current.scrollTo(s)},n}return Jn(r,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var a=this.props.activeKey;a!==void 0&&a!==this.state.activeKey&&(this.setState({activeKey:a}),a!==null&&this.scrollTo({key:a}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var a,i=this.state,o=i.focused,s=i.flattenNodes,l=i.keyEntities,c=i.draggingNodeKey,A=i.activeKey,u=i.dropLevelOffset,d=i.dropContainerKey,f=i.dropTargetKey,h=i.dropPosition,g=i.dragOverNodeKey,p=i.indent,m=this.props,y=m.prefixCls,C=m.className,w=m.style,B=m.showLine,x=m.focusable,M=m.tabIndex,S=M===void 0?0:M,R=m.selectable,b=m.showIcon,T=m.icon,D=m.switcherIcon,F=m.draggable,N=m.checkable,_=m.checkStrictly,P=m.disabled,k=m.motion,j=m.loadData,Y=m.filterTreeNode,X=m.height,K=m.itemHeight,U=m.virtual,H=m.titleRender,L=m.dropIndicatorRender,V=m.onContextMenu,J=m.onScroll,ee=m.direction,ae=m.rootClassName,ne=m.rootStyle,fe=Gf(this.props,{aria:!0,data:!0}),he;return F&&(Ar(F)==="object"?he=F:typeof F=="function"?he={nodeDraggable:F}:he={}),E.createElement(CU.Provider,{value:{prefixCls:y,selectable:R,showIcon:b,icon:T,switcherIcon:D,draggable:he,draggingNodeKey:c,checkable:N,checkStrictly:_,disabled:P,keyEntities:l,dropLevelOffset:u,dropContainerKey:d,dropTargetKey:f,dropPosition:h,dragOverNodeKey:g,indent:p,direction:ee,dropIndicatorRender:L,loadData:j,filterTreeNode:Y,titleRender:H,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},E.createElement("div",{role:"tree",className:dt(y,C,ae,(a={},te(a,"".concat(y,"-show-line"),B),te(a,"".concat(y,"-focused"),o),te(a,"".concat(y,"-active-focused"),A!==null),a)),style:ne},E.createElement(SCe,ge({ref:this.listRef,prefixCls:y,style:w,data:s,disabled:P,selectable:R,checkable:!!N,motion:k,dragging:c!==null,height:X,itemHeight:K,virtual:U,focusable:x,focused:o,tabIndex:S,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:J},this.getTreeNodeRequiredProps(),fe))))}}],[{key:"getDerivedStateFromProps",value:function(a,i){var o=i.prevProps,s={prevProps:a};function l(x){return!o&&x in a||o&&o[x]!==a[x]}var c,A=i.fieldNames;if(l("fieldNames")&&(A=hT(a.fieldNames),s.fieldNames=A),l("treeData")?c=a.treeData:l("children")&&(Ea(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),c=p1e(a.children)),c){s.treeData=c;var u=f4(c,{fieldNames:A});s.keyEntities=se(te({},zv,bCe),u.keyEntities)}var d=s.keyEntities||i.keyEntities;if(l("expandedKeys")||o&&l("autoExpandParent"))s.expandedKeys=a.autoExpandParent||!o&&a.defaultExpandParent?x6(a.expandedKeys,d):a.expandedKeys;else if(!o&&a.defaultExpandAll){var f=se({},d);delete f[zv],s.expandedKeys=Object.keys(f).map(function(x){return f[x].key})}else!o&&a.defaultExpandedKeys&&(s.expandedKeys=a.autoExpandParent||a.defaultExpandParent?x6(a.defaultExpandedKeys,d):a.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,c||s.expandedKeys){var h=v8(c||i.treeData,s.expandedKeys||i.expandedKeys,A);s.flattenNodes=h}if(a.selectable&&(l("selectedKeys")?s.selectedKeys=H$(a.selectedKeys,a):!o&&a.defaultSelectedKeys&&(s.selectedKeys=H$(a.defaultSelectedKeys,a))),a.checkable){var g;if(l("checkedKeys")?g=Q8(a.checkedKeys)||{}:!o&&a.defaultCheckedKeys?g=Q8(a.defaultCheckedKeys)||{}:c&&(g=Q8(a.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),g){var p=g,m=p.checkedKeys,y=m===void 0?[]:m,C=p.halfCheckedKeys,w=C===void 0?[]:C;if(!a.checkStrictly){var B=Uf(y,!0,d);y=B.checkedKeys,w=B.halfCheckedKeys}s.checkedKeys=y,s.halfCheckedKeys=w}}return l("loadedKeys")&&(s.loadedKeys=a.loadedKeys),s}}]),r})(E.Component);w4.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:rrt,allowDrop:function(){return!0},expandAction:!1};w4.TreeNode=ty;var G$=4;function Ert(e){var t=e.dropPosition,r=e.dropLevelOffset,n=e.prefixCls,a=e.indent,i=e.direction,o=i===void 0?"ltr":i,s=o==="ltr"?"left":"right",l=o==="ltr"?"right":"left",c=te(te({},s,-r*a+G$),l,0);switch(t){case-1:c.top=-3;break;case 1:c.bottom=-3;break;default:c.bottom=-3,c[s]=a+G$;break}return le.createElement("div",{style:c,className:"".concat(n,"-drop-indicator")})}function RCe(e,t,r,n){var a=n.isLeaf,i=n.expanded,o=n.loading;if(o)return E.createElement(Cg,{className:"".concat(e,"-switcher-loading-icon")});var s;if(r&&Ar(r)==="object"&&(s=r.showLeafIcon),a){if(!r)return null;if(typeof s!="boolean"&&s){var l=typeof s=="function"?s(n):s,c="".concat(e,"-switcher-line-custom-icon");return gc(l)?fi(l,{className:dt(l.props.className||"",c)}):l}return s?E.createElement(QY,{className:"".concat(e,"-switcher-line-icon")}):E.createElement("span",{className:"".concat(e,"-switcher-leaf-line")})}var A="".concat(e,"-switcher-icon"),u=typeof t=="function"?t(n):t;return gc(u)?fi(u,{className:dt(u.props.className||"",A)}):u||(r?i?E.createElement(yQ,{className:"".concat(e,"-switcher-line-icon")}):E.createElement(em,{className:"".concat(e,"-switcher-line-icon")}):E.createElement(GDe,{className:A}))}var TCe=E.forwardRef(function(e,t){var r=E.useContext(an),n=r.getPrefixCls,a=r.direction,i=r.virtual,o=e.prefixCls,s=e.className,l=e.showIcon,c=l===void 0?!1:l,A=e.showLine,u=e.switcherIcon,d=e.blockNode,f=d===void 0?!1:d,h=e.children,g=e.checkable,p=g===void 0?!1:g,m=e.selectable,y=m===void 0?!0:m,C=e.draggable,w=e.motion,B=w===void 0?ge(ge({},sB),{motionAppear:!1}):w,x=n("tree",o),M=ge(ge({},e),{checkable:p,selectable:y,showIcon:c,motion:B,blockNode:f,showLine:!!A,dropIndicatorRender:Ert}),S=E.useMemo(function(){if(!C)return!1;var R={};switch(Ar(C)){case"function":R.nodeDraggable=C;break;case"object":R=ge({},C);break}return R.icon!==!1&&(R.icon=R.icon||E.createElement(JFe,null)),R},[C]);return E.createElement(w4,ge({itemHeight:20,ref:t,virtual:i},M,{prefixCls:x,className:dt(te(te(te(te({},"".concat(x,"-icon-hide"),!c),"".concat(x,"-block-node"),f),"".concat(x,"-unselectable"),!y),"".concat(x,"-rtl"),a==="rtl"),s),direction:a,checkable:p&&E.createElement("span",{className:"".concat(x,"-checkbox-inner")}),selectable:y,switcherIcon:function(b){return RCe(x,u,A,b)},draggable:S}),h)}),If;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(If||(If={}));function BU(e,t){function r(n){var a=n.key,i=n.children;t(a,n)!==!1&&BU(i||[],t)}e.forEach(r)}function yrt(e){var t=e.treeData,r=e.expandedKeys,n=e.startKey,a=e.endKey,i=[],o=If.None;if(n&&n===a)return[n];if(!n||!a)return[];function s(l){return l===n||l===a}return BU(t,function(l){if(o===If.End)return!1;if(s(l)){if(i.push(l),o===If.None)o=If.Start;else if(o===If.Start)return o=If.End,!1}else o===If.Start&&i.push(l);return r.includes(l)}),i}function D8(e,t){var r=ir(t),n=[];return BU(e,function(a,i){var o=r.indexOf(a);return o!==-1&&(n.push(i),r.splice(o,1)),!!r.length}),n}var K$=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Crt(e){var t=e.isLeaf,r=e.expanded;return t?E.createElement(QY,null):r?E.createElement(kFe,null):E.createElement(jFe,null)}function V$(e){var t=e.treeData,r=e.children;return t||p1e(r)}var wrt=function(t,r){var n=t.defaultExpandAll,a=t.defaultExpandParent,i=t.defaultExpandedKeys,o=K$(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),s=E.useRef(),l=E.useRef(),c=function(){var k=f4(V$(o)),j=k.keyEntities,Y;return n?Y=Object.keys(j):a?Y=x6(o.expandedKeys||i||[],j):Y=o.expandedKeys||i,Y},A=E.useState(o.selectedKeys||o.defaultSelectedKeys||[]),u=Je(A,2),d=u[0],f=u[1],h=E.useState(function(){return c()}),g=Je(h,2),p=g[0],m=g[1];E.useEffect(function(){"selectedKeys"in o&&f(o.selectedKeys)},[o.selectedKeys]),E.useEffect(function(){"expandedKeys"in o&&m(o.expandedKeys)},[o.expandedKeys]);var y=function(k,j){var Y;return"expandedKeys"in o||m(k),(Y=o.onExpand)===null||Y===void 0?void 0:Y.call(o,k,j)},C=function(k,j){var Y,X=o.multiple,K=j.node,U=j.nativeEvent,H=K.key,L=H===void 0?"":H,V=V$(o),J=ge(ge({},j),{selected:!0}),ee=U?.ctrlKey||U?.metaKey,ae=U?.shiftKey,ne;X&&ee?(ne=k,s.current=L,l.current=ne,J.selectedNodes=D8(V,ne)):X&&ae?(ne=Array.from(new Set([].concat(ir(l.current||[]),ir(yrt({treeData:V,expandedKeys:p,startKey:L,endKey:s.current}))))),J.selectedNodes=D8(V,ne)):(ne=[L],s.current=L,l.current=ne,J.selectedNodes=D8(V,ne)),(Y=o.onSelect)===null||Y===void 0||Y.call(o,ne,J),"selectedKeys"in o||f(ne)},w=E.useContext(an),B=w.getPrefixCls,x=w.direction,M=o.prefixCls,S=o.className,R=o.showIcon,b=R===void 0?!0:R,T=o.expandAction,D=T===void 0?"click":T,F=K$(o,["prefixCls","className","showIcon","expandAction"]),N=B("tree",M),_=dt("".concat(N,"-directory"),te({},"".concat(N,"-directory-rtl"),x==="rtl"),S);return E.createElement(TCe,ge({icon:Crt,ref:r,blockNode:!0},F,{showIcon:b,expandAction:D,prefixCls:N,className:_,expandedKeys:p,selectedKeys:d,onSelect:C,onExpand:y}))},Brt=E.forwardRef(wrt),Id=TCe;Id.DirectoryTree=Brt;Id.TreeNode=ty;function xrt(e){var t=E.useRef(e),r=BEe();return[function(){return t.current},function(n){t.current=n,r()}]}function J$(e){var t=e.value,r=e.onChange,n=e.filterSearch,a=e.tablePrefixCls,i=e.locale;return n?E.createElement("div",{className:"".concat(a,"-filter-dropdown-search")},E.createElement(jt,{prefix:E.createElement(Xf,null),placeholder:i.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,className:"".concat(a,"-filter-dropdown-search-input")})):null}var Mrt=function(t){var r=t.keyCode;r===cr.ENTER&&t.stopPropagation()},Irt=function(t){return E.createElement("div",{className:t.className,onClick:function(n){return n.stopPropagation()},onKeyDown:Mrt},t.children)};function brt(e){return e.some(function(t){var r=t.children;return r})}function QCe(e,t){return typeof t=="string"||typeof t=="number"?t?.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function DCe(e){var t=e.filters,r=e.prefixCls,n=e.filteredKeys,a=e.filterMultiple,i=e.searchValue,o=e.filterSearch;return t.map(function(s,l){var c=String(s.value);if(s.children)return{key:c||l,label:s.text,popupClassName:"".concat(r,"-dropdown-submenu"),children:DCe({filters:s.children,prefixCls:r,filteredKeys:n,filterMultiple:a,searchValue:i,filterSearch:o})};var A=a?un:mg,u={key:s.value!==void 0?c:l,label:E.createElement(E.Fragment,null,E.createElement(A,{checked:n.includes(c)}),E.createElement("span",null,s.text))};return i.trim()?typeof o=="function"?o(i,s)?u:null:QCe(i,s.text)?u:null:u})}function F8(e){return e||[]}function Srt(e){var t,r=e.tablePrefixCls,n=e.prefixCls,a=e.column,i=e.dropdownPrefixCls,o=e.columnKey,s=e.filterMultiple,l=e.filterMode,c=l===void 0?"menu":l,A=e.filterSearch,u=A===void 0?!1:A,d=e.filterState,f=e.triggerFilter,h=e.locale,g=e.children,p=e.getPopupContainer,m=a.filterDropdownOpen,y=a.onFilterDropdownOpenChange,C=a.filterDropdownVisible,w=a.onFilterDropdownVisibleChange,B=a.filterResetToDefaultFilteredValue,x=a.defaultFilteredValue,M=E.useState(!1),S=Je(M,2),R=S[0],b=S[1],T=!!(d&&(!((t=d.filteredKeys)===null||t===void 0)&&t.length||d.forceFiltered)),D=function(At){b(At),y?.(At),w?.(At)},F;typeof m=="boolean"?F=m:F=typeof C=="boolean"?C:R;var N=d?.filteredKeys,_=xrt(F8(N)),P=Je(_,2),k=P[0],j=P[1],Y=function(At){var $e=At.selectedKeys;j($e)},X=function(At,$e){var ce=$e.node,qe=$e.checked;Y(s?{selectedKeys:At}:{selectedKeys:qe&&ce.key?[ce.key]:[]})};E.useEffect(function(){R&&Y({selectedKeys:F8(N)})},[N]);var K=E.useState([]),U=Je(K,2),H=U[0],L=U[1],V=function(At){L(At)},J=E.useState(""),ee=Je(J,2),ae=ee[0],ne=ee[1],fe=function(At){var $e=At.target.value;ne($e)};E.useEffect(function(){R||ne("")},[R]);var he=function(At){var $e=At&&At.length?At:null;if($e===null&&(!d||!d.filteredKeys)||_$($e,d?.filteredKeys))return null;f({column:a,key:o,filteredKeys:$e})},ye=function(){D(!1),he(k())},be=function(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1},$e=At.confirm,ce=At.closeDropdown;$e&&he([]),ce&&D(!1),ne(""),j(B?(x||[]).map(function(qe){return String(qe)}):[])},Se=function(){var At=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0},$e=At.closeDropdown;$e&&D(!1),he(k())},ve=function(At){At&&N!==void 0&&j(F8(N)),D(At),!At&&!a.filterDropdown&&ye()},de=dt(te({},"".concat(i,"-menu-without-submenu"),!brt(a.filters||[]))),Ue=function(At){if(At.target.checked){var $e=IE(a?.filters).map(function(ce){return String(ce)});j($e)}else j([])},at=function lt(At){var $e=At.filters;return($e||[]).map(function(ce,qe){var ct=String(ce.value),Tt={title:ce.text,key:ce.value!==void 0?ct:String(qe)};return ce.children&&(Tt.children=lt({filters:ce.children})),Tt})},Ve=function lt(At){var $e;return ge(ge({},At),{text:At.title,value:At.key,children:(($e=At.children)===null||$e===void 0?void 0:$e.map(function(ce){return lt(ce)}))||[]})},Ie;if(typeof a.filterDropdown=="function")Ie=a.filterDropdown({prefixCls:"".concat(i,"-custom"),setSelectedKeys:function(At){return Y({selectedKeys:At})},selectedKeys:k(),confirm:Se,clearFilters:be,filters:a.filters,visible:F,close:function(){D(!1)}});else if(a.filterDropdown)Ie=a.filterDropdown;else{var we=k()||[],Re=function(){return(a.filters||[]).length===0?E.createElement(WA,{image:WA.PRESENTED_IMAGE_SIMPLE,description:h.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):c==="tree"?E.createElement(E.Fragment,null,E.createElement(J$,{filterSearch:u,value:ae,onChange:fe,tablePrefixCls:r,locale:h}),E.createElement("div",{className:"".concat(r,"-filter-dropdown-tree")},s?E.createElement(un,{checked:we.length===IE(a.filters).length,indeterminate:we.length>0&&we.length<IE(a.filters).length,className:"".concat(r,"-filter-dropdown-checkall"),onChange:Ue},h.filterCheckall):null,E.createElement(Id,{checkable:!0,selectable:!1,blockNode:!0,multiple:s,checkStrictly:!s,className:"".concat(i,"-menu"),onCheck:X,checkedKeys:we,selectedKeys:we,showIcon:!1,treeData:at({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:ae.trim()?function(At){return typeof u=="function"?u(ae,Ve(At)):QCe(ae,At.title)}:void 0}))):E.createElement(E.Fragment,null,E.createElement(J$,{filterSearch:u,value:ae,onChange:fe,tablePrefixCls:r,locale:h}),E.createElement(xd,{selectable:!0,multiple:s,prefixCls:"".concat(i,"-menu"),className:de,onSelect:Y,onDeselect:Y,selectedKeys:we,getPopupContainer:p,openKeys:H,onOpenChange:V,items:DCe({filters:a.filters||[],filterSearch:u,prefixCls:n,filteredKeys:k(),filterMultiple:s,searchValue:ae})}))},Te=function(){return B?_$((x||[]).map(function(At){return String(At)}),we):we.length===0};Ie=E.createElement(E.Fragment,null,Re(),E.createElement("div",{className:"".concat(n,"-dropdown-btns")},E.createElement(yt,{type:"link",size:"small",disabled:Te(),onClick:function(){return be()}},h.filterReset),E.createElement(yt,{type:"primary",size:"small",onClick:ye},h.filterConfirm)))}a.filterDropdown&&(Ie=E.createElement(LEe,{selectable:void 0},Ie));var Ke=function(){return E.createElement(Irt,{className:"".concat(n,"-dropdown")},Ie)},mt;typeof a.filterIcon=="function"?mt=a.filterIcon(T):a.filterIcon?mt=a.filterIcon:mt=E.createElement(bFe,null);var tt=E.useContext(an),rt=tt.direction;return E.createElement("div",{className:"".concat(n,"-column")},E.createElement("span",{className:"".concat(r,"-column-title")},g),E.createElement(Yg,{dropdownRender:Ke,trigger:["click"],open:F,onOpenChange:ve,getPopupContainer:p,placement:rt==="rtl"?"bottomLeft":"bottomRight"},E.createElement("span",{role:"button",tabIndex:-1,className:dt("".concat(n,"-trigger"),{active:T}),onClick:function(At){At.stopPropagation()}},mt)))}function M6(e,t,r){var n=[];return(e||[]).forEach(function(a,i){var o,s=y4(i,r);if(a.filters||"filterDropdown"in a||"onFilter"in a)if("filteredValue"in a){var l=a.filteredValue;"filterDropdown"in a||(l=(o=l?.map(String))!==null&&o!==void 0?o:l),n.push({column:a,key:ey(a,s),filteredKeys:l,forceFiltered:a.filtered})}else n.push({column:a,key:ey(a,s),filteredKeys:t&&a.defaultFilteredValue?a.defaultFilteredValue:void 0,forceFiltered:a.filtered});"children"in a&&(n=[].concat(ir(n),ir(M6(a.children,t,s))))}),n}function FCe(e,t,r,n,a,i,o,s){return r.map(function(l,c){var A=y4(c,s),u=l.filterMultiple,d=u===void 0?!0:u,f=l.filterMode,h=l.filterSearch,g=l;if(g.filters||g.filterDropdown){var p=ey(g,A),m=n.find(function(y){var C=y.key;return p===C});g=ge(ge({},g),{title:function(C){return E.createElement(Srt,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:t,column:g,columnKey:p,filterState:m,filterMultiple:d,filterMode:f,filterSearch:h,triggerFilter:a,locale:o,getPopupContainer:i},C4(l.title,C))}})}return"children"in g&&(g=ge(ge({},g),{children:FCe(e,t,g.children,n,a,i,o,A)})),g})}function IE(e){var t=[];return(e||[]).forEach(function(r){var n=r.value,a=r.children;t.push(n),a&&(t=[].concat(ir(t),ir(IE(a))))}),t}function W$(e){var t={};return e.forEach(function(r){var n=r.key,a=r.filteredKeys,i=r.column,o=n,s=i.filters,l=i.filterDropdown;if(l)t[o]=a||null;else if(Array.isArray(a)){var c=IE(s);t[o]=c.filter(function(A){return a.includes(String(A))})}else t[o]=null}),t}function X$(e,t){return t.reduce(function(r,n){var a=n.column,i=a.onFilter,o=a.filters,s=n.filteredKeys;return i&&s&&s.length?r.filter(function(l){return s.some(function(c){var A=IE(o),u=A.findIndex(function(f){return String(f)===String(c)}),d=u!==-1?A[u]:c;return i(d,l)})}):r},e)}function Rrt(e){var t=e.prefixCls,r=e.dropdownPrefixCls,n=e.mergedColumns,a=e.onFilterChange,i=e.getPopupContainer,o=e.locale,s=E.useState(function(){return M6(n,!0)}),l=Je(s,2),c=l[0],A=l[1],u=E.useMemo(function(){var g=M6(n,!1),p=!0;return g.forEach(function(m){var y=m.filteredKeys;y!==void 0&&(p=!1)}),p?c:g},[n,c]),d=E.useMemo(function(){return W$(u)},[u]),f=function(p){var m=u.filter(function(y){var C=y.key;return C!==p.key});m.push(p),A(m),a(W$(m),m)},h=function(p){return FCe(t,r,p,u,f,i,o)};return[h,u,d]}function Trt(e,t,r){var n=E.useRef({});function a(i){if(!n.current||n.current.data!==e||n.current.childrenColumnName!==t||n.current.getRowKey!==r){let s=function(l){l.forEach(function(c,A){var u=r(c,A);o.set(u,c),c&&Ar(c)==="object"&&t in c&&s(c[t]||[])})};var o=new Map;s(e),n.current={data:e,childrenColumnName:t,kvMap:o,getRowKey:r}}return n.current.kvMap.get(i)}return[a]}var Qrt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},NCe=10;function Drt(e,t){var r={current:t.current,pageSize:t.pageSize},n=e&&Ar(e)==="object"?e:{};return Object.keys(n).forEach(function(a){var i=t[a];typeof i!="function"&&(r[a]=i)}),r}function Frt(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(a){a&&Object.keys(a).forEach(function(i){var o=a[i];o!==void 0&&(e[i]=o)})}),e}function Nrt(e,t,r){var n=t&&Ar(t)==="object"?t:{},a=n.total,i=a===void 0?0:a,o=Qrt(n,["total"]),s=E.useState(function(){return{current:"defaultCurrent"in o?o.defaultCurrent:1,pageSize:"defaultPageSize"in o?o.defaultPageSize:NCe}}),l=Je(s,2),c=l[0],A=l[1],u=Frt(c,o,{total:i>0?i:e}),d=Math.ceil((i||e)/u.pageSize);u.current>d&&(u.current=d||1);var f=function(p,m){A({current:p??1,pageSize:m||u.pageSize})},h=function(p,m){var y;t&&((y=t.onChange)===null||y===void 0||y.call(t,p,m)),f(p,m),r(p,m||u?.pageSize)};return t===!1?[{},function(){}]:[ge(ge({},u),{onChange:h}),f]}var Jh={},I6="SELECT_ALL",b6="SELECT_INVERT",S6="SELECT_NONE",q$=[];function _Ce(e,t){var r=[];return(e||[]).forEach(function(n){r.push(n),n&&Ar(n)==="object"&&t in n&&(r=[].concat(ir(r),ir(_Ce(n[t],t))))}),r}function _rt(e,t){var r=e||{},n=r.preserveSelectedRowKeys,a=r.selectedRowKeys,i=r.defaultSelectedRowKeys,o=r.getCheckboxProps,s=r.onChange,l=r.onSelect,c=r.onSelectAll,A=r.onSelectInvert,u=r.onSelectNone,d=r.onSelectMultiple,f=r.columnWidth,h=r.type,g=r.selections,p=r.fixed,m=r.renderCell,y=r.hideSelectAll,C=r.checkStrictly,w=C===void 0?!0:C,B=t.prefixCls,x=t.data,M=t.pageData,S=t.getRecordByKey,R=t.getRowKey,b=t.expandType,T=t.childrenColumnName,D=t.locale,F=t.getPopupContainer,N=Ia(a||i||q$,{value:a}),_=Je(N,2),P=_[0],k=_[1],j=E.useRef(new Map),Y=E.useCallback(function(Ve){if(n){var Ie=new Map;Ve.forEach(function(we){var Re=S(we);!Re&&j.current.has(we)&&(Re=j.current.get(we)),Ie.set(we,Re)}),j.current=Ie}},[S,n]);E.useEffect(function(){Y(P)},[P]);var X=E.useMemo(function(){return w?{keyEntities:null}:f4(x,{externalGetKey:R,childrenPropName:T})},[x,R,w,T]),K=X.keyEntities,U=E.useMemo(function(){return _Ce(M,T)},[M,T]),H=E.useMemo(function(){var Ve=new Map;return U.forEach(function(Ie,we){var Re=R(Ie,we),Te=(o?o(Ie):null)||{};Ve.set(Re,Te)}),Ve},[U,R,o]),L=E.useCallback(function(Ve){var Ie;return!!(!((Ie=H.get(R(Ve)))===null||Ie===void 0)&&Ie.disabled)},[H,R]),V=E.useMemo(function(){if(w)return[P||[],[]];var Ve=Uf(P,!0,K,L),Ie=Ve.checkedKeys,we=Ve.halfCheckedKeys;return[Ie||[],we]},[P,w,K,L]),J=Je(V,2),ee=J[0],ae=J[1],ne=E.useMemo(function(){var Ve=h==="radio"?ee.slice(0,1):ee;return new Set(Ve)},[ee,h]),fe=E.useMemo(function(){return h==="radio"?new Set:new Set(ae)},[ae,h]),he=E.useState(null),ye=Je(he,2),be=ye[0],Se=ye[1];E.useEffect(function(){e||k(q$)},[!!e]);var ve=E.useCallback(function(Ve,Ie){var we,Re;Y(Ve),n?(we=Ve,Re=Ve.map(function(Te){return j.current.get(Te)})):(we=[],Re=[],Ve.forEach(function(Te){var Ke=S(Te);Ke!==void 0&&(we.push(Te),Re.push(Ke))})),k(we),s?.(we,Re,{type:Ie})},[k,S,s,n]),de=E.useCallback(function(Ve,Ie,we,Re){if(l){var Te=we.map(function(Ke){return S(Ke)});l(S(Ve),Ie,Te,Re)}ve(we,"single")},[l,S,ve]),Ue=E.useMemo(function(){if(!g||y)return null;var Ve=g===!0?[I6,b6,S6]:g;return Ve.map(function(Ie){return Ie===I6?{key:"all",text:D.selectionAll,onSelect:function(){ve(x.map(function(Re,Te){return R(Re,Te)}).filter(function(Re){var Te=H.get(Re);return!Te?.disabled||ne.has(Re)}),"all")}}:Ie===b6?{key:"invert",text:D.selectInvert,onSelect:function(){var Re=new Set(ne);M.forEach(function(Ke,mt){var tt=R(Ke,mt),rt=H.get(tt);rt?.disabled||(Re.has(tt)?Re.delete(tt):Re.add(tt))});var Te=Array.from(Re);A&&A(Te),ve(Te,"invert")}}:Ie===S6?{key:"none",text:D.selectNone,onSelect:function(){u?.(),ve(Array.from(ne).filter(function(Re){var Te=H.get(Re);return Te?.disabled}),"none")}}:Ie}).map(function(Ie){return ge(ge({},Ie),{onSelect:function(){for(var Re,Te,Ke=arguments.length,mt=new Array(Ke),tt=0;tt<Ke;tt++)mt[tt]=arguments[tt];(Te=Ie.onSelect)===null||Te===void 0||(Re=Te).call.apply(Re,[Ie].concat(mt)),Se(null)}})})},[g,ne,M,R,A,ve]),at=E.useCallback(function(Ve){var Ie;if(!e)return Ve.filter(function(Be){return Be!==Jh});var we=ir(Ve),Re=new Set(ne),Te=U.map(R).filter(function(Be){return!H.get(Be).disabled}),Ke=Te.every(function(Be){return Re.has(Be)}),mt=Te.some(function(Be){return Re.has(Be)}),tt=function(){var Xe=[];Ke?Te.forEach(function(ft){Re.delete(ft),Xe.push(ft)}):Te.forEach(function(ft){Re.has(ft)||(Re.add(ft),Xe.push(ft))});var Oe=Array.from(Re);c?.(!Ke,Oe.map(function(ft){return S(ft)}),Xe.map(function(ft){return S(ft)})),ve(Oe,"all"),Se(null)},rt;if(h!=="radio"){var lt;if(Ue){var At={getPopupContainer:F,items:Ue.map(function(Be,Xe){var Oe=Be.key,ft=Be.text,wt=Be.onSelect;return{key:Oe||Xe,onClick:function(){wt?.(Te)},label:ft}})};lt=E.createElement("div",{className:"".concat(B,"-selection-extra")},E.createElement(Yg,{menu:At,getPopupContainer:F},E.createElement("span",null,E.createElement(VB,null))))}var $e=U.map(function(Be,Xe){var Oe=R(Be,Xe),ft=H.get(Oe)||{};return ge({checked:Re.has(Oe)},ft)}).filter(function(Be){var Xe=Be.disabled;return Xe}),ce=!!$e.length&&$e.length===U.length,qe=ce&&$e.every(function(Be){var Xe=Be.checked;return Xe}),ct=ce&&$e.some(function(Be){var Xe=Be.checked;return Xe});rt=!y&&E.createElement("div",{className:"".concat(B,"-selection")},E.createElement(un,{checked:ce?qe:!!U.length&&Ke,indeterminate:ce?!qe&&ct:!Ke&&mt,onChange:tt,disabled:U.length===0||ce,"aria-label":lt?"Custom selection":"Select all",skipGroup:!0}),lt)}var Tt;h==="radio"?Tt=function(Xe,Oe,ft){var wt=R(Oe,ft),ot=Re.has(wt);return{node:E.createElement(mg,ge({},H.get(wt),{checked:ot,onClick:function(vt){return vt.stopPropagation()},onChange:function(vt){Re.has(wt)||de(wt,!0,[wt],vt.nativeEvent)}})),checked:ot}}:Tt=function(Xe,Oe,ft){var wt,ot=R(Oe,ft),it=Re.has(ot),vt=fe.has(ot),qt=H.get(ot),Xt;return b==="nest"?Xt=vt:Xt=(wt=qt?.indeterminate)!==null&&wt!==void 0?wt:vt,{node:E.createElement(un,ge({},qt,{indeterminate:Xt,checked:it,skipGroup:!0,onClick:function(Kr){return Kr.stopPropagation()},onChange:function(Kr){var Vr=Kr.nativeEvent,Pr=Vr.shiftKey,mr=-1,xr=-1;if(Pr&&w){var Ir=new Set([be,ot]);Te.some(function(Hr,vn){if(Ir.has(Hr))if(mr===-1)mr=vn;else return xr=vn,!0;return!1})}if(xr!==-1&&mr!==xr&&w){var Fr=Te.slice(mr,xr+1),br=[];it?Fr.forEach(function(Hr){Re.has(Hr)&&(br.push(Hr),Re.delete(Hr))}):Fr.forEach(function(Hr){Re.has(Hr)||(br.push(Hr),Re.add(Hr))});var Sr=Array.from(Re);d?.(!it,Sr.map(function(Hr){return S(Hr)}),br.map(function(Hr){return S(Hr)})),ve(Sr,"multiple")}else{var fr=ee;if(w){var Cr=it?ld(fr,ot):xf(fr,ot);de(ot,!it,Cr,Vr)}else{var hr=Uf([].concat(ir(fr),[ot]),!0,K,L),Ht=hr.checkedKeys,Gt=hr.halfCheckedKeys,er=Ht;if(it){var Qr=new Set(Ht);Qr.delete(ot),er=Uf(Array.from(Qr),{halfCheckedKeys:Gt},K,L).checkedKeys}de(ot,!it,er,Vr)}}Se(it?null:ot)}})),checked:it}};var He=function(Xe,Oe,ft){var wt=Tt(Xe,Oe,ft),ot=wt.node,it=wt.checked;return m?m(it,Oe,ft,ot):ot};if(!we.includes(Jh))if(we.findIndex(function(Be){var Xe;return((Xe=Be[Pw])===null||Xe===void 0?void 0:Xe.columnType)==="EXPAND_COLUMN"})===0){var Ge=we,Ee=s7(Ge),Et=Ee[0],Yt=Ee.slice(1);we=[Et,Jh].concat(ir(Yt))}else we=[Jh].concat(ir(we));var $=we.indexOf(Jh);we=we.filter(function(Be,Xe){return Be!==Jh||Xe===$});var Fe=we[$-1],je=we[$+1],ue=p;ue===void 0&&(je?.fixed!==void 0?ue=je.fixed:Fe?.fixed!==void 0&&(ue=Fe.fixed)),ue&&Fe&&((Ie=Fe[Pw])===null||Ie===void 0?void 0:Ie.columnType)==="EXPAND_COLUMN"&&Fe.fixed===void 0&&(Fe.fixed=ue);var ie=te({fixed:ue,width:f,className:"".concat(B,"-selection-column"),title:e.columnTitle||rt,render:He},Pw,{className:"".concat(B,"-selection-col")});return we.map(function(Be){return Be===Jh?ie:Be})},[R,U,e,ee,ne,fe,f,Ue,b,be,H,d,de,L]);return[at,ne]}var nR="ascend",N8="descend";function mT(e){return Ar(e.sorter)==="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function Z$(e){return typeof e=="function"?e:e&&Ar(e)==="object"&&e.compare?e.compare:!1}function krt(e,t){return t?e[e.indexOf(t)+1]:e[0]}function R6(e,t,r){var n=[];function a(i,o){n.push({column:i,key:ey(i,o),multiplePriority:mT(i),sortOrder:i.sortOrder})}return(e||[]).forEach(function(i,o){var s=y4(o,r);i.children?("sortOrder"in i&&a(i,s),n=[].concat(ir(n),ir(R6(i.children,t,s)))):i.sorter&&("sortOrder"in i?a(i,s):t&&i.defaultSortOrder&&n.push({column:i,key:ey(i,s),multiplePriority:mT(i),sortOrder:i.defaultSortOrder}))}),n}function kCe(e,t,r,n,a,i,o,s){return(t||[]).map(function(l,c){var A=y4(c,s),u=l;if(u.sorter){var d=u.sortDirections||a,f=u.showSorterTooltip===void 0?o:u.showSorterTooltip,h=ey(u,A),g=r.find(function(b){var T=b.key;return T===h}),p=g?g.sortOrder:null,m=krt(d,p),y=d.includes(nR)&&E.createElement(e5e,{className:dt("".concat(e,"-column-sorter-up"),{active:p===nR}),role:"presentation"}),C=d.includes(N8)&&E.createElement(JDe,{className:dt("".concat(e,"-column-sorter-down"),{active:p===N8}),role:"presentation"}),w=i||{},B=w.cancelSort,x=w.triggerAsc,M=w.triggerDesc,S=B;m===N8?S=M:m===nR&&(S=x);var R=Ar(f)==="object"?f:{title:S};u=ge(ge({},u),{className:dt(u.className,te({},"".concat(e,"-column-sort"),p)),title:function(T){var D=E.createElement("div",{className:"".concat(e,"-column-sorters")},E.createElement("span",{className:"".concat(e,"-column-title")},C4(l.title,T)),E.createElement("span",{className:dt("".concat(e,"-column-sorter"),te({},"".concat(e,"-column-sorter-full"),!!(y&&C)))},E.createElement("span",{className:"".concat(e,"-column-sorter-inner")},y,C)));return f?E.createElement(Mi,ge({},R),D):D},onHeaderCell:function(T){var D=l.onHeaderCell&&l.onHeaderCell(T)||{},F=D.onClick,N=D.onKeyDown;D.onClick=function(k){n({column:l,key:h,sortOrder:m,multiplePriority:mT(l)}),F?.(k)},D.onKeyDown=function(k){k.keyCode===cr.ENTER&&(n({column:l,key:h,sortOrder:m,multiplePriority:mT(l)}),N?.(k))};var _=$tt(l.title,{}),P=_?.toString();return p?D["aria-sort"]=p==="ascend"?"ascending":"descending":D["aria-label"]=P||"",D.className=dt(D.className,"".concat(e,"-column-has-sorters")),D.tabIndex=0,l.ellipsis&&(D.title=(_??"").toString()),D}})}return"children"in u&&(u=ge(ge({},u),{children:kCe(e,u.children,r,n,a,i,o,A)})),u})}function $$(e){var t=e.column,r=e.sortOrder;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function eee(e){var t=e.filter(function(r){var n=r.sortOrder;return n}).map($$);return t.length===0&&e.length?ge(ge({},$$(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function T6(e,t,r){var n=t.slice().sort(function(o,s){return s.multiplePriority-o.multiplePriority}),a=e.slice(),i=n.filter(function(o){var s=o.column.sorter,l=o.sortOrder;return Z$(s)&&l});return i.length?a.sort(function(o,s){for(var l=0;l<i.length;l+=1){var c=i[l],A=c.column.sorter,u=c.sortOrder,d=Z$(A);if(d&&u){var f=d(o,s,u);if(f!==0)return u===nR?f:-f}}return 0}).map(function(o){var s=o[r];return s?ge(ge({},o),te({},r,T6(s,t,r))):o}):a}function Prt(e){var t=e.prefixCls,r=e.mergedColumns,n=e.onSorterChange,a=e.sortDirections,i=e.tableLocale,o=e.showSorterTooltip,s=E.useState(R6(r,!0)),l=Je(s,2),c=l[0],A=l[1],u=E.useMemo(function(){var p=!0,m=R6(r,!1);if(!m.length)return c;var y=[];function C(B){p?y.push(B):y.push(ge(ge({},B),{sortOrder:null}))}var w=null;return m.forEach(function(B){w===null?(C(B),B.sortOrder&&(B.multiplePriority===!1?p=!1:w=!0)):(w&&B.multiplePriority!==!1||(p=!1),C(B))}),y},[r,c]),d=E.useMemo(function(){var p=u.map(function(m){var y=m.column,C=m.sortOrder;return{column:y,order:C}});return{sortColumns:p,sortColumn:p[0]&&p[0].column,sortOrder:p[0]&&p[0].order}},[u]);function f(p){var m;p.multiplePriority===!1||!u.length||u[0].multiplePriority===!1?m=[p]:m=[].concat(ir(u.filter(function(y){var C=y.key;return C!==p.key})),[p]),A(m),n(eee(m),m)}var h=function(m){return kCe(t,m,u,f,a,i,o)},g=function(){return eee(u)};return[h,u,d,g]}function PCe(e,t){return e.map(function(r){var n=ge({},r);return n.title=C4(r.title,t),"children"in n&&(n.children=PCe(n.children,t)),n})}function Ort(e){var t=E.useCallback(function(r){return PCe(r,e)},[e]);return[t]}var jrt=[];function zrt(e,t){var r=e.prefixCls,n=e.className,a=e.style,i=e.size,o=e.bordered,s=e.dropdownPrefixCls,l=e.dataSource,c=e.pagination,A=e.rowSelection,u=e.rowKey,d=u===void 0?"key":u,f=e.rowClassName,h=e.columns,g=e.children,p=e.childrenColumnName,m=e.onChange,y=e.getPopupContainer,C=e.loading,w=e.expandIcon,B=e.expandable,x=e.expandedRowRender,M=e.expandIconColumnIndex,S=e.indentSize,R=e.scroll,b=e.sortDirections,T=e.locale,D=e.showSorterTooltip,F=D===void 0?!0:D;[["filterDropdownVisible","filterDropdownOpen"],["onFilterDropdownVisibleChange","onFilterDropdownOpenChange"]].forEach(function(fr){var Cr=Je(fr,2);Cr[0],Cr[1]});var N=E.useMemo(function(){return h||yU(g)},[h,g]),_=E.useMemo(function(){return N.some(function(fr){return fr.responsive})},[N]),P=Q7(_),k=E.useMemo(function(){var fr=new Set(Object.keys(P).filter(function(Cr){return P[Cr]}));return N.filter(function(Cr){return!Cr.responsive||Cr.responsive.some(function(hr){return fr.has(hr)})})},[N,P]),j=ji(e,["className","style","columns"]),Y=E.useContext(ds),X=E.useContext(an),K=X.locale,U=K===void 0?eA:K,H=X.renderEmpty,L=X.direction,V=i||Y,J=ge(ge({},U.Table),T),ee=l||jrt,ae=E.useContext(an),ne=ae.getPrefixCls,fe=ne("table",r),he=ne("dropdown",s),ye=ge({childrenColumnName:p,expandIconColumnIndex:M},B),be=ye.childrenColumnName,Se=be===void 0?"children":be,ve=E.useMemo(function(){return ee.some(function(fr){return fr?.[Se]})?"nest":x||B&&B.expandedRowRender?"row":null},[ee]),de={body:E.useRef()},Ue=E.useMemo(function(){return typeof d=="function"?d:function(fr){return fr?.[d]}},[d]),at=Trt(ee,Se,Ue),Ve=Je(at,1),Ie=Ve[0],we={},Re=function(Cr,hr){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Gt=ge(ge({},we),Cr);Ht&&(we.resetPagination(),Gt.pagination.current&&(Gt.pagination.current=1),c&&c.onChange&&c.onChange(1,Gt.pagination.pageSize)),R&&R.scrollToFirstRowOnChange!==!1&&de.body.current&&$Ye(0,{getContainer:function(){return de.body.current}}),m?.(Gt.pagination,Gt.filters,Gt.sorter,{currentDataSource:X$(T6(ee,Gt.sorterStates,Se),Gt.filterStates),action:hr})},Te=function(Cr,hr){Re({sorter:Cr,sorterStates:hr},"sort",!1)},Ke=Prt({prefixCls:fe,mergedColumns:k,onSorterChange:Te,sortDirections:b||["ascend","descend"],tableLocale:J,showSorterTooltip:F}),mt=Je(Ke,4),tt=mt[0],rt=mt[1],lt=mt[2],At=mt[3],$e=E.useMemo(function(){return T6(ee,rt,Se)},[ee,rt]);we.sorter=At(),we.sorterStates=rt;var ce=function(Cr,hr){Re({filters:Cr,filterStates:hr},"filter",!0)},qe=Rrt({prefixCls:fe,locale:J,dropdownPrefixCls:he,mergedColumns:k,onFilterChange:ce,getPopupContainer:y}),ct=Je(qe,3),Tt=ct[0],He=ct[1],Ge=ct[2],Ee=X$($e,He);we.filters=Ge,we.filterStates=He;var Et=E.useMemo(function(){var fr={};return Object.keys(Ge).forEach(function(Cr){Ge[Cr]!==null&&(fr[Cr]=Ge[Cr])}),ge(ge({},lt),{filters:fr})},[lt,Ge]),Yt=Ort(Et),$=Je(Yt,1),Fe=$[0],je=function(Cr,hr){Re({pagination:ge(ge({},we.pagination),{current:Cr,pageSize:hr})},"paginate")},ue=Nrt(Ee.length,c,je),ie=Je(ue,2),Be=ie[0],Xe=ie[1];we.pagination=c===!1?{}:Drt(c,Be),we.resetPagination=Xe;var Oe=E.useMemo(function(){if(c===!1||!Be.pageSize)return Ee;var fr=Be.current,Cr=fr===void 0?1:fr,hr=Be.total,Ht=Be.pageSize,Gt=Ht===void 0?NCe:Ht;return Ee.length<hr?Ee.length>Gt?Ee.slice((Cr-1)*Gt,Cr*Gt):Ee:Ee.slice((Cr-1)*Gt,Cr*Gt)},[!!c,Ee,Be&&Be.current,Be&&Be.pageSize,Be&&Be.total]),ft=_rt(A,{prefixCls:fe,data:Ee,pageData:Oe,getRowKey:Ue,getRecordByKey:Ie,expandType:ve,childrenColumnName:Se,locale:J,getPopupContainer:y}),wt=Je(ft,2),ot=wt[0],it=wt[1],vt=function(Cr,hr,Ht){var Gt;return typeof f=="function"?Gt=dt(f(Cr,hr,Ht)):Gt=dt(f),dt(te({},"".concat(fe,"-row-selected"),it.has(Ue(Cr,hr))),Gt)};ye.__PARENT_RENDER_ICON__=ye.expandIcon,ye.expandIcon=ye.expandIcon||w||Ztt(J),ve==="nest"&&ye.expandIconColumnIndex===void 0?ye.expandIconColumnIndex=A?1:0:ye.expandIconColumnIndex>0&&A&&(ye.expandIconColumnIndex-=1),typeof ye.indentSize!="number"&&(ye.indentSize=typeof S=="number"?S:15);var qt=E.useCallback(function(fr){return Fe(ot(Tt(tt(fr))))},[tt,Tt,ot]),Xt,Tr;if(c!==!1&&Be?.total){var Kr;Be.size?Kr=Be.size:Kr=V==="small"||V==="middle"?"small":void 0;var Vr=function(Cr){return E.createElement(W1e,ge({},Be,{className:dt("".concat(fe,"-pagination ").concat(fe,"-pagination-").concat(Cr),Be.className),size:Kr}))},Pr=L==="rtl"?"left":"right",mr=Be.position;if(mr!==null&&Array.isArray(mr)){var xr=mr.find(function(fr){return fr.includes("top")}),Ir=mr.find(function(fr){return fr.includes("bottom")}),Fr=mr.every(function(fr){return"".concat(fr)==="none"});!xr&&!Ir&&!Fr&&(Tr=Vr(Pr)),xr&&(Xt=Vr(xr.toLowerCase().replace("top",""))),Ir&&(Tr=Vr(Ir.toLowerCase().replace("bottom","")))}else Tr=Vr(Pr)}var br;typeof C=="boolean"?br={spinning:C}:Ar(C)==="object"&&(br=ge({spinning:!0},C));var Sr=dt("".concat(fe,"-wrapper"),te({},"".concat(fe,"-wrapper-rtl"),L==="rtl"),n);return E.createElement("div",{ref:t,className:Sr,style:a},E.createElement(g4,ge({spinning:!1},br),Xt,E.createElement(Am,ge({},j,{columns:k,direction:L,expandable:ye,prefixCls:fe,className:dt(te(te(te(te({},"".concat(fe,"-middle"),V==="middle"),"".concat(fe,"-small"),V==="small"),"".concat(fe,"-bordered"),o),"".concat(fe,"-empty"),ee.length===0)),data:Oe,rowKey:Ue,rowClassName:vt,emptyText:T&&T.emptyText||(H||HQ)("Table"),internalHooks:rR,internalRefs:de,transformColumns:qt})),Tr))}var Lrt=E.forwardRef(zrt),rh=Lrt;rh.SELECTION_COLUMN=Jh;rh.EXPAND_COLUMN=Am.EXPAND_COLUMN;rh.SELECTION_ALL=I6;rh.SELECTION_INVERT=b6;rh.SELECTION_NONE=S6;rh.Column=Xtt;rh.ColumnGroup=qtt;rh.Summary=xCe;var Yrt=function(t){var r=t.renderedText,n=t.renderedEl,a=t.item,i=t.checked,o=t.disabled,s=t.prefixCls,l=t.onClick,c=t.onRemove,A=t.showRemove,u=dt(te(te(te({},"".concat(s,"-content-item"),!0),"".concat(s,"-content-item-disabled"),o||a.disabled),"".concat(s,"-content-item-checked"),i)),d;return(typeof r=="string"||typeof r=="number")&&(d=String(r)),E.createElement(Td,{componentName:"Transfer",defaultLocale:eA.Transfer},function(f){var h={className:u,title:d},g=E.createElement("span",{className:"".concat(s,"-content-item-text")},n);return A?E.createElement("li",ge({},h),g,E.createElement(E6,{disabled:o||a.disabled,className:"".concat(s,"-content-item-remove"),"aria-label":f.remove,onClick:function(){c?.(a)}},E.createElement(ki,null))):(h.onClick=o||a.disabled?void 0:function(){return l(a)},E.createElement("li",ge({},h),E.createElement(un,{className:"".concat(s,"-checkbox"),checked:i,disabled:o||a.disabled}),g))})};const Urt=E.memo(Yrt);function Hrt(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var Grt=Wo("handleFilter","handleClear","checkedKeys");function _8(e){if(!e)return null;var t={pageSize:10,simple:!0,showSizeChanger:!1,showLessItems:!1};return Ar(e)==="object"?ge(ge({},t),e):t}var Krt=(function(e){fa(t,e);function t(){var r;return Vn(this,t),r=Hrt(this,t,arguments),r.state={current:1},r.onItemSelect=function(n){var a=r.props,i=a.onItemSelect,o=a.selectedKeys,s=o.includes(n.key);i(n.key,!s)},r.onItemRemove=function(n){var a=r.props.onItemRemove;a?.([n.key])},r.onPageChange=function(n){r.setState({current:n})},r.getItems=function(){var n=r.state.current,a=r.props,i=a.pagination,o=a.filteredRenderItems,s=_8(i),l=o;return s&&(l=o.slice((n-1)*s.pageSize,n*s.pageSize)),l},r}return Jn(t,[{key:"render",value:function(){var n=this,a=this.state.current,i=this.props,o=i.prefixCls,s=i.onScroll,l=i.filteredRenderItems,c=i.selectedKeys,A=i.disabled,u=i.showRemove,d=i.pagination,f=_8(d),h=null;return f&&(h=E.createElement(W1e,{simple:f.simple,showSizeChanger:f.showSizeChanger,showLessItems:f.showLessItems,size:"small",disabled:A,className:"".concat(o,"-pagination"),total:l.length,pageSize:f.pageSize,current:a,onChange:this.onPageChange})),E.createElement(E.Fragment,null,E.createElement("ul",{className:dt("".concat(o,"-content"),te({},"".concat(o,"-content-show-remove"),u)),onScroll:s},this.getItems().map(function(g){var p=g.renderedEl,m=g.renderedText,y=g.item,C=y.disabled,w=c.includes(y.key);return E.createElement(Urt,{disabled:A||C,key:y.key,item:y,renderedText:m,renderedEl:p,checked:w,prefixCls:o,onClick:n.onItemSelect,onRemove:n.onItemRemove,showRemove:u})})),h)}}],[{key:"getDerivedStateFromProps",value:function(n,a){var i=n.filteredRenderItems,o=n.pagination,s=a.current,l=_8(o);if(l){var c=Math.ceil(i.length/l.pageSize);if(s>c)return{current:c}}return null}}]),t})(E.Component);function OCe(e){var t=e.placeholder,r=t===void 0?"":t,n=e.value,a=e.prefixCls,i=e.disabled,o=e.onChange,s=e.handleClear,l=E.useCallback(function(c){o?.(c),c.target.value===""&&s?.()},[o]);return E.createElement(jt,{placeholder:r,className:a,value:n,onChange:l,disabled:i,allowClear:!0,prefix:E.createElement(Xf,null)})}function Vrt(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var Jrt=function(){return null};function Wrt(e){return!!(e&&!gc(e)&&Object.prototype.toString.call(e)==="[object Object]")}function O1(e){return e.filter(function(t){return!t.disabled}).map(function(t){return t.key})}var Q6=(function(e){fa(t,e);function t(r){var n;return Vn(this,t),n=Vrt(this,t,[r]),n.defaultListBodyRef=E.createRef(),n.handleFilter=function(a){var i=n.props.handleFilter,o=a.target.value;n.setState({filterValue:o}),i(a)},n.handleClear=function(){var a=n.props.handleClear;n.setState({filterValue:""}),a()},n.matchFilter=function(a,i){var o=n.state.filterValue,s=n.props.filterOption;return s?s(o,i):a.includes(o)},n.renderListBody=function(a,i){var o=a?a(i):null,s=!!o;return s||(o=E.createElement(Krt,ge({ref:n.defaultListBodyRef},i))),{customize:s,bodyContent:o}},n.renderItem=function(a){var i=n.props.render,o=i===void 0?Jrt:i,s=o(a),l=Wrt(s);return{renderedText:l?s.value:s,renderedEl:l?s.label:s,item:a}},n.getSelectAllLabel=function(a,i){var o=n.props,s=o.itemsUnit,l=o.itemUnit,c=o.selectAllLabel;if(c)return typeof c=="function"?c({selectedCount:a,totalCount:i}):c;var A=i>1?s:l;return E.createElement(E.Fragment,null,(a>0?"".concat(a,"/"):"")+i," ",A)},n.state={filterValue:""},n}return Jn(t,[{key:"componentWillUnmount",value:function(){clearTimeout(this.triggerScrollTimer)}},{key:"getCheckStatus",value:function(n){var a=this.props.checkedKeys;return a.length===0?"none":n.every(function(i){return a.includes(i.key)||!!i.disabled})?"all":"part"}},{key:"getFilteredItems",value:function(n,a){var i=this,o=[],s=[];return n.forEach(function(l){var c=i.renderItem(l),A=c.renderedText;if(a&&!i.matchFilter(A,l))return null;o.push(l),s.push(c)}),{filteredItems:o,filteredRenderItems:s}}},{key:"getListBody",value:function(n,a,i,o,s,l,c,A,u,d){var f=this,h=u?E.createElement("div",{className:"".concat(n,"-body-search-wrapper")},E.createElement(OCe,{prefixCls:"".concat(n,"-search"),onChange:this.handleFilter,handleClear:this.handleClear,placeholder:a,value:i,disabled:d})):null,g=this.renderListBody(A,ge(ge({},ji(this.props,Grt)),{filteredItems:o,filteredRenderItems:l,selectedKeys:c})),p=g.bodyContent,m=g.customize,y=function(){var B=f.props.direction==="left"?0:1;return Array.isArray(s)?s[B]:s},C;return m?C=E.createElement("div",{className:"".concat(n,"-body-customize-wrapper")},p):C=o.length?p:E.createElement("div",{className:"".concat(n,"-body-not-found")},y()),E.createElement("div",{className:dt(u?"".concat(n,"-body ").concat(n,"-body-with-search"):"".concat(n,"-body"))},h,C)}},{key:"getCheckBox",value:function(n){var a=n.filteredItems,i=n.onItemSelectAll,o=n.disabled,s=n.prefixCls,l=this.getCheckStatus(a),c=l==="all",A=E.createElement(un,{disabled:o,checked:c,indeterminate:l==="part",className:"".concat(s,"-checkbox"),onChange:function(){i(a.filter(function(d){return!d.disabled}).map(function(d){var f=d.key;return f}),!c)}});return A}},{key:"render",value:function(){var n=this,a=this.state.filterValue,i=this.props,o=i.prefixCls,s=i.dataSource,l=s===void 0?[]:s,c=i.titleText,A=c===void 0?"":c,u=i.checkedKeys,d=i.disabled,f=i.footer,h=i.showSearch,g=h===void 0?!1:h,p=i.style,m=i.searchPlaceholder,y=i.notFoundContent,C=i.selectAll,w=i.selectCurrent,B=i.selectInvert,x=i.removeAll,M=i.removeCurrent,S=i.renderList,R=i.onItemSelectAll,b=i.onItemRemove,T=i.showSelectAll,D=T===void 0?!0:T,F=i.showRemove,N=i.pagination,_=i.direction,P=f&&(f.length<2?f(this.props):f(this.props,{direction:_})),k=dt(o,te(te({},"".concat(o,"-with-pagination"),!!N),"".concat(o,"-with-footer"),!!P)),j=this.getFilteredItems(l,a),Y=j.filteredItems,X=j.filteredRenderItems,K=this.getListBody(o,m,a,Y,y,X,u,S,g,d),U=P?E.createElement("div",{className:"".concat(o,"-footer")},P):null,H=!F&&!N&&this.getCheckBox({filteredItems:Y,onItemSelectAll:R,disabled:d,prefixCls:o}),L;F?L=[N?{key:"removeCurrent",onClick:function(){var ee,ae=O1((((ee=n.defaultListBodyRef.current)===null||ee===void 0?void 0:ee.getItems())||[]).map(function(ne){return ne.item}));b?.(ae)},label:M}:null,{key:"removeAll",onClick:function(){b?.(O1(Y))},label:x}].filter(function(J){return J}):L=[{key:"selectAll",onClick:function(){var ee=O1(Y);R(ee,ee.length!==u.length)},label:C},N?{key:"selectCurrent",onClick:function(){var ee,ae=((ee=n.defaultListBodyRef.current)===null||ee===void 0?void 0:ee.getItems())||[];R(O1(ae.map(function(ne){return ne.item})),!0)},label:w}:null,{key:"selectInvert",onClick:function(){var ee,ae=O1((((ee=n.defaultListBodyRef.current)===null||ee===void 0?void 0:ee.getItems())||[]).map(function(he){return he.item})),ne=new Set(u),fe=new Set(ne);ae.forEach(function(he){ne.has(he)?fe.delete(he):fe.add(he)}),R?.(Array.from(fe),"replace")},label:B}];var V=E.createElement(Yg,{className:"".concat(o,"-header-dropdown"),menu:{items:L},disabled:d},E.createElement(VB,null));return E.createElement("div",{className:k,style:p},E.createElement("div",{className:"".concat(o,"-header")},D?E.createElement(E.Fragment,null,H,V):null,E.createElement("span",{className:"".concat(o,"-header-selected")},this.getSelectAllLabel(u.length,Y.length)),E.createElement("span",{className:"".concat(o,"-header-title")},A)),K,U)}}]),t})(E.PureComponent),jCe=function(t){var r=t.disabled,n=t.moveToLeft,a=t.moveToRight,i=t.leftArrowText,o=i===void 0?"":i,s=t.rightArrowText,l=s===void 0?"":s,c=t.leftActive,A=t.rightActive,u=t.className,d=t.style,f=t.direction,h=t.oneWay;return E.createElement("div",{className:u,style:d},E.createElement(yt,{type:"primary",size:"small",disabled:r||!A,onClick:a,icon:f!=="rtl"?E.createElement(tB,null):E.createElement(Wj,null)},l),!h&&E.createElement(yt,{type:"primary",size:"small",disabled:r||!c,onClick:n,icon:f!=="rtl"?E.createElement(Wj,null):E.createElement(tB,null)},o))};function Xrt(e,t,r){return t=Pi(t),AA(e,Rd()?Reflect.construct(t,r||[],Pi(e).constructor):t.apply(e,r))}var B4=(function(e){fa(t,e);function t(r){var n;Vn(this,t),n=Xrt(this,t,[r]),n.separatedDataSource=null,n.setStateKeys=function(l,c){l==="left"?n.setState(function(A){var u=A.sourceSelectedKeys;return{sourceSelectedKeys:typeof c=="function"?c(u||[]):c}}):n.setState(function(A){var u=A.targetSelectedKeys;return{targetSelectedKeys:typeof c=="function"?c(u||[]):c}})},n.getLocale=function(l,c){var A=n.props.locale,u=A===void 0?{}:A;return ge(ge(ge({},l),{notFoundContent:c("Transfer")}),u)},n.moveTo=function(l){var c=n.props,A=c.targetKeys,u=A===void 0?[]:A,d=c.dataSource,f=d===void 0?[]:d,h=c.onChange,g=n.state,p=g.sourceSelectedKeys,m=g.targetSelectedKeys,y=l==="right"?p:m,C=y.filter(function(x){return!f.some(function(M){return!!(x===M.key&&M.disabled)})}),w=l==="right"?C.concat(u):u.filter(function(x){return!C.includes(x)}),B=l==="right"?"left":"right";n.setStateKeys(B,[]),n.handleSelectChange(B,[]),h?.(w,l,C)},n.moveToLeft=function(){return n.moveTo("left")},n.moveToRight=function(){return n.moveTo("right")},n.onItemSelectAll=function(l,c,A){n.setStateKeys(l,function(u){var d=[];return A==="replace"?d=c:A?d=Array.from(new Set([].concat(ir(u),ir(c)))):d=u.filter(function(f){return!c.includes(f)}),n.handleSelectChange(l,d),d})},n.onLeftItemSelectAll=function(l,c){return n.onItemSelectAll("left",l,c)},n.onRightItemSelectAll=function(l,c){return n.onItemSelectAll("right",l,c)},n.handleFilter=function(l,c){var A=n.props.onSearch,u=c.target.value;A?.(l,u)},n.handleLeftFilter=function(l){return n.handleFilter("left",l)},n.handleRightFilter=function(l){return n.handleFilter("right",l)},n.handleClear=function(l){var c=n.props.onSearch;c?.(l,"")},n.handleLeftClear=function(){return n.handleClear("left")},n.handleRightClear=function(){return n.handleClear("right")},n.onItemSelect=function(l,c,A){var u=n.state,d=u.sourceSelectedKeys,f=u.targetSelectedKeys,h=ir(l==="left"?d:f),g=h.indexOf(c);g>-1&&h.splice(g,1),A&&h.push(c),n.handleSelectChange(l,h),n.props.selectedKeys||n.setStateKeys(l,h)},n.onLeftItemSelect=function(l,c){return n.onItemSelect("left",l,c)},n.onRightItemSelect=function(l,c){return n.onItemSelect("right",l,c)},n.onRightItemRemove=function(l){var c=n.props,A=c.targetKeys,u=A===void 0?[]:A,d=c.onChange;n.setStateKeys("right",[]),d?.(u.filter(function(f){return!l.includes(f)}),"left",ir(l))},n.handleScroll=function(l,c){var A=n.props.onScroll;A?.(l,c)},n.handleLeftScroll=function(l){return n.handleScroll("left",l)},n.handleRightScroll=function(l){return n.handleScroll("right",l)},n.handleListStyle=function(l,c){return typeof l=="function"?l({direction:c}):l};var a=r.selectedKeys,i=a===void 0?[]:a,o=r.targetKeys,s=o===void 0?[]:o;return n.state={sourceSelectedKeys:i.filter(function(l){return!s.includes(l)}),targetSelectedKeys:i.filter(function(l){return s.includes(l)})},n}return Jn(t,[{key:"getTitles",value:function(n){var a,i;return(i=(a=this.props.titles)!==null&&a!==void 0?a:n.titles)!==null&&i!==void 0?i:[]}},{key:"handleSelectChange",value:function(n,a){var i=this.state,o=i.sourceSelectedKeys,s=i.targetSelectedKeys,l=this.props.onSelectChange;l&&(n==="left"?l(a,s):l(o,a))}},{key:"separateDataSource",value:function(){var n=this.props,a=n.dataSource,i=a===void 0?[]:a,o=n.rowKey,s=n.targetKeys,l=s===void 0?[]:s,c=[],A=new Array(l.length);return i.forEach(function(u){o&&(u=ge(ge({},u),{key:o(u)}));var d=l.indexOf(u.key);d!==-1?A[d]=u:c.push(u)}),{leftDataSource:c,rightDataSource:A}}},{key:"render",value:function(){var n=this;return E.createElement(Td,{componentName:"Transfer",defaultLocale:eA.Transfer},function(a){return E.createElement(Lg,null,function(i){var o=i.getPrefixCls,s=i.renderEmpty,l=i.direction;return E.createElement(fs.Consumer,null,function(c){var A=c.hasFeedback,u=c.status,d=n.props,f=d.prefixCls,h=d.className,g=d.disabled,p=d.operations,m=p===void 0?[]:p,y=d.showSearch,C=y===void 0?!1:y,w=d.footer,B=d.style,x=d.listStyle,M=x===void 0?{}:x,S=d.operationStyle,R=d.filterOption,b=d.render,T=d.children,D=d.showSelectAll,F=d.oneWay,N=d.pagination,_=d.status,P=o("transfer",f),k=n.getLocale(a,s||HQ),j=n.state,Y=j.sourceSelectedKeys,X=j.targetSelectedKeys,K=Zf(u,_),U=!T&&N,H=n.separateDataSource(),L=H.leftDataSource,V=H.rightDataSource,J=X.length>0,ee=Y.length>0,ae=dt(P,te(te(te({},"".concat(P,"-disabled"),g),"".concat(P,"-customize-list"),!!T),"".concat(P,"-rtl"),l==="rtl"),kl(P,K,A),h),ne=n.getTitles(k),fe=n.props.selectAllLabels||[];return E.createElement("div",{className:ae,style:B},E.createElement(Q6,ge({prefixCls:"".concat(P,"-list"),titleText:ne?.[0],dataSource:L,filterOption:R,style:n.handleListStyle(M,"left"),checkedKeys:Y,handleFilter:n.handleLeftFilter,handleClear:n.handleLeftClear,onItemSelect:n.onLeftItemSelect,onItemSelectAll:n.onLeftItemSelectAll,render:b,showSearch:C,renderList:T,footer:w,onScroll:n.handleLeftScroll,disabled:g,direction:l==="rtl"?"right":"left",showSelectAll:D,selectAllLabel:fe[0],pagination:U},k)),E.createElement(jCe,{className:"".concat(P,"-operation"),rightActive:ee,rightArrowText:m[0],moveToRight:n.moveToRight,leftActive:J,leftArrowText:m[1],moveToLeft:n.moveToLeft,style:S,disabled:g,direction:l,oneWay:F}),E.createElement(Q6,ge({prefixCls:"".concat(P,"-list"),titleText:ne?.[1],dataSource:V,filterOption:R,style:n.handleListStyle(M,"right"),checkedKeys:X,handleFilter:n.handleRightFilter,handleClear:n.handleRightClear,onItemSelect:n.onRightItemSelect,onItemSelectAll:n.onRightItemSelectAll,onItemRemove:n.onRightItemRemove,render:b,showSearch:C,renderList:T,footer:w,onScroll:n.handleRightScroll,disabled:g,direction:l==="rtl"?"left":"right",showSelectAll:D,selectAllLabel:fe[1],showRemove:F,pagination:U},k)))})})})}}],[{key:"getDerivedStateFromProps",value:function(n){var a=n.selectedKeys,i=n.targetKeys;if(n.pagination,n.children,a){var o=i||[];return{sourceSelectedKeys:a.filter(function(s){return!o.includes(s)}),targetSelectedKeys:a.filter(function(s){return o.includes(s)})}}return null}}]),t})(E.Component);B4.List=Q6;B4.Operation=jCe;B4.Search=OCe;var zCe=E.createContext(null),LCe=E.createContext(null);function qrt(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Zrt(e){var t=e||{},r=t.label,n=t.value,a=t.children,i=n||"value";return{_title:r?[r]:["title","label"],value:i,key:i,children:a||"children"}}function D6(e){return!e||e.disabled||e.disableCheckbox||e.checkable===!1}function $rt(e,t){var r=[];function n(a){a.forEach(function(i){var o=i[t.children];o&&(r.push(i[t.value]),n(o))})}return n(e),r}function tee(e){return e==null}var ent={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},tnt=function(t,r){var n=_0e(),a=n.prefixCls,i=n.multiple,o=n.searchValue,s=n.toggleOpen,l=n.open,c=n.notFoundContent,A=E.useContext(LCe),u=A.virtual,d=A.listHeight,f=A.listItemHeight,h=A.treeData,g=A.fieldNames,p=A.onSelect,m=A.dropdownMatchSelectWidth,y=A.treeExpandAction,C=E.useContext(zCe),w=C.checkable,B=C.checkedKeys,x=C.halfCheckedKeys,M=C.treeExpandedKeys,S=C.treeDefaultExpandAll,R=C.treeDefaultExpandedKeys,b=C.onTreeExpand,T=C.treeIcon,D=C.showTreeIcon,F=C.switcherIcon,N=C.treeLine,_=C.treeNodeFilterProp,P=C.loadData,k=C.treeLoadedKeys,j=C.treeMotion,Y=C.onTreeLoad,X=C.keyEntities,K=E.useRef(),U=am(function(){return h},[l,h],function(Ke,mt){return mt[0]&&Ke[1]!==mt[1]}),H=E.useMemo(function(){return w?{checked:B,halfChecked:x}:null},[w,B,x]);E.useEffect(function(){if(l&&!i&&B.length){var Ke;(Ke=K.current)===null||Ke===void 0||Ke.scrollTo({key:B[0]})}},[l]);var L=String(o).toLowerCase(),V=function(mt){return L?String(mt[_]).toLowerCase().includes(L):!1},J=E.useState(R),ee=Je(J,2),ae=ee[0],ne=ee[1],fe=E.useState(null),he=Je(fe,2),ye=he[0],be=he[1],Se=E.useMemo(function(){return M?ir(M):o?ye:ae},[ae,ye,M,o]);E.useEffect(function(){o&&be($rt(h,g))},[o]);var ve=function(mt){ne(mt),be(mt),b&&b(mt)},de=function(mt){mt.preventDefault()},Ue=function(mt,tt){var rt=tt.node;w&&D6(rt)||(p(rt.key,{selected:!B.includes(rt.key)}),i||s(!1))},at=E.useState(null),Ve=Je(at,2),Ie=Ve[0],we=Ve[1],Re=X[Ie];if(E.useImperativeHandle(r,function(){var Ke;return{scrollTo:(Ke=K.current)===null||Ke===void 0?void 0:Ke.scrollTo,onKeyDown:function(tt){var rt,lt=tt.which;switch(lt){case cr.UP:case cr.DOWN:case cr.LEFT:case cr.RIGHT:(rt=K.current)===null||rt===void 0||rt.onKeyDown(tt);break;case cr.ENTER:{if(Re){var At=Re?.node||{},$e=At.selectable,ce=At.value;$e!==!1&&Ue(null,{node:{key:Ie},selected:!B.includes(ce)})}break}case cr.ESC:s(!1)}},onKeyUp:function(){}}}),U.length===0)return E.createElement("div",{role:"listbox",className:"".concat(a,"-empty"),onMouseDown:de},c);var Te={fieldNames:g};return k&&(Te.loadedKeys=k),Se&&(Te.expandedKeys=Se),E.createElement("div",{onMouseDown:de},Re&&l&&E.createElement("span",{style:ent,"aria-live":"assertive"},Re.node.value),E.createElement(w4,ge({ref:K,focusable:!1,prefixCls:"".concat(a,"-tree"),treeData:U,height:d,itemHeight:f,virtual:u!==!1&&m!==!1,multiple:i,icon:T,showIcon:D,switcherIcon:F,showLine:N,loadData:o?null:P,motion:j,activeKey:Ie,checkable:w,checkStrictly:!0,checkedKeys:H,selectedKeys:w?[]:B,defaultExpandAll:S},Te,{onActiveChange:we,onSelect:Ue,onCheck:Ue,onExpand:ve,onLoad:Y,filterTreeNode:V,expandAction:y})))},YCe=E.forwardRef(tnt);YCe.displayName="OptionList";var xU=function(){return null},UCe="SHOW_ALL",MU="SHOW_PARENT",x4="SHOW_CHILD";function ree(e,t,r,n){var a=new Set(e);return t===x4?e.filter(function(i){var o=r[i];return!(o&&o.children&&o.children.some(function(s){var l=s.node;return a.has(l[n.value])})&&o.children.every(function(s){var l=s.node;return D6(l)||a.has(l[n.value])}))}):t===MU?e.filter(function(i){var o=r[i],s=o?o.parent:null;return!(s&&!D6(s.node)&&a.has(s.key))}):e}var rnt=["children","value"];function HCe(e){return Vo(e).map(function(t){if(!E.isValidElement(t)||!t.type)return null;var r=t,n=r.key,a=r.props,i=a.children,o=a.value,s=An(a,rnt),l=se({key:n,value:o},s),c=HCe(i);return c.length&&(l.children=c),l}).filter(function(t){return t})}function F6(e){if(!e)return e;var t=se({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return Ea(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function nnt(e,t,r,n,a,i){var o=null,s=null;function l(){function c(A){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return A.map(function(f,h){var g="".concat(u,"-").concat(h),p=f[i.value],m=r.includes(p),y=c(f[i.children]||[],g,m),C=E.createElement(xU,f,y.map(function(B){return B.node}));if(t===p&&(o=C),m){var w={pos:g,node:C,children:y};return d||s.push(w),w}return null}).filter(function(f){return f})}s||(s=[],c(n),s.sort(function(A,u){var d=A.node.props.value,f=u.node.props.value,h=r.indexOf(d),g=r.indexOf(f);return h-g}))}Object.defineProperty(e,"triggerNode",{get:function(){return Ea(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),l(),o}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return Ea(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),l(),a?s:s.map(function(A){var u=A.node;return u})}})}function ant(e,t){var r=t.id,n=t.pId,a=t.rootPId,i={},o=[],s=e.map(function(l){var c=se({},l),A=c[r];return i[A]=c,c.key=c.key||A,c});return s.forEach(function(l){var c=l[n],A=i[c];A&&(A.children=A.children||[],A.children.push(l)),(c===a||!A&&a===null)&&o.push(l)}),o}function int(e,t,r){return E.useMemo(function(){return e?r?ant(e,se({id:"id",pId:"pId",rootPId:null},r!==!0?r:{})):e:HCe(t)},[t,r,e])}const ont=(function(e){var t=E.useRef({valueLabels:new Map});return E.useMemo(function(){var r=t.current.valueLabels,n=new Map,a=e.map(function(i){var o,s=i.value,l=(o=i.label)!==null&&o!==void 0?o:r.get(s);return n.set(s,l),se(se({},i),{},{label:l})});return t.current.valueLabels=n,[a]},[e])});function nee(e){var t=E.useRef();t.current=e;var r=E.useCallback(function(){return t.current.apply(t,arguments)},[]);return r}const snt=(function(e,t){return E.useMemo(function(){var r=f4(e,{fieldNames:t,initWrapper:function(a){return se(se({},a),{},{valueEntities:new Map})},processEntity:function(a,i){var o=a.node[t.value];i.valueEntities.set(o,a)}});return r},[e,t])}),lnt=(function(e,t,r,n){return E.useMemo(function(){var a=e.map(function(l){var c=l.value;return c}),i=t.map(function(l){var c=l.value;return c}),o=a.filter(function(l){return!n[l]});if(r){var s=Uf(a,!0,n);a=s.checkedKeys,i=s.halfCheckedKeys}return[Array.from(new Set([].concat(ir(o),ir(a)))),i]},[e,t,r,n])}),cnt=(function(e,t,r){var n=r.treeNodeFilterProp,a=r.filterTreeNode,i=r.fieldNames,o=i.children;return E.useMemo(function(){if(!t||a===!1)return e;var s;if(typeof a=="function")s=a;else{var l=t.toUpperCase();s=function(u,d){var f=d[n];return String(f).toUpperCase().includes(l)}}function c(A){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return A.map(function(d){var f=d[o],h=u||s(t,F6(d)),g=c(f||[],h);return h||g.length?se(se({},d),{},te({isLeaf:void 0},o,g)):null}).filter(function(d){return d})}return c(e)},[e,t,o,n,a])});var Ant=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function unt(e){return!e||Ar(e)!=="object"}var dnt=E.forwardRef(function(e,t){var r=e.id,n=e.prefixCls,a=n===void 0?"rc-tree-select":n,i=e.value,o=e.defaultValue,s=e.onChange,l=e.onSelect,c=e.onDeselect,A=e.searchValue,u=e.inputValue,d=e.onSearch,f=e.autoClearSearchValue,h=f===void 0?!0:f,g=e.filterTreeNode,p=e.treeNodeFilterProp,m=p===void 0?"value":p,y=e.showCheckedStrategy,C=y===void 0?x4:y,w=e.treeNodeLabelProp,B=e.multiple,x=e.treeCheckable,M=e.treeCheckStrictly,S=e.labelInValue,R=e.fieldNames,b=e.treeDataSimpleMode,T=e.treeData,D=e.children,F=e.loadData,N=e.treeLoadedKeys,_=e.onTreeLoad,P=e.treeDefaultExpandAll,k=e.treeExpandedKeys,j=e.treeDefaultExpandedKeys,Y=e.onTreeExpand,X=e.treeExpandAction,K=e.virtual,U=e.listHeight,H=U===void 0?200:U,L=e.listItemHeight,V=L===void 0?20:L,J=e.onDropdownVisibleChange,ee=e.dropdownMatchSelectWidth,ae=ee===void 0?!0:ee,ne=e.treeLine,fe=e.treeIcon,he=e.showTreeIcon,ye=e.switcherIcon,be=e.treeMotion,Se=An(e,Ant),ve=iEe(r),de=x&&!M,Ue=x||M,at=M||S,Ve=Ue||B,Ie=Ia(o,{value:i}),we=Je(Ie,2),Re=we[0],Te=we[1],Ke=E.useMemo(function(){return Zrt(R)},[JSON.stringify(R)]),mt=Ia("",{value:A!==void 0?A:u,postState:function(xr){return xr||""}}),tt=Je(mt,2),rt=tt[0],lt=tt[1],At=function(xr){lt(xr),d?.(xr)},$e=int(T,D,b),ce=snt($e,Ke),qe=ce.keyEntities,ct=ce.valueEntities,Tt=E.useCallback(function(mr){var xr=[],Ir=[];return mr.forEach(function(Fr){ct.has(Fr)?Ir.push(Fr):xr.push(Fr)}),{missingRawValues:xr,existRawValues:Ir}},[ct]),He=cnt($e,rt,{fieldNames:Ke,treeNodeFilterProp:m,filterTreeNode:g}),Ge=E.useCallback(function(mr){if(mr){if(w)return mr[w];for(var xr=Ke._title,Ir=0;Ir<xr.length;Ir+=1){var Fr=mr[xr[Ir]];if(Fr!==void 0)return Fr}}},[Ke,w]),Ee=E.useCallback(function(mr){var xr=qrt(mr);return xr.map(function(Ir){return unt(Ir)?{value:Ir}:Ir})},[]),Et=E.useCallback(function(mr){var xr=Ee(mr);return xr.map(function(Ir){var Fr=Ir.label,br=Ir.value,Sr=Ir.halfChecked,fr,Cr=ct.get(br);if(Cr){var hr;Fr=(hr=Fr)!==null&&hr!==void 0?hr:Ge(Cr.node),fr=Cr.node.disabled}else if(Fr===void 0){var Ht=Ee(Re).find(function(Gt){return Gt.value===br});Fr=Ht.label}return{label:Fr,value:br,halfChecked:Sr,disabled:fr}})},[ct,Ge,Ee,Re]),Yt=E.useMemo(function(){return Ee(Re)},[Ee,Re]),$=E.useMemo(function(){var mr=[],xr=[];return Yt.forEach(function(Ir){Ir.halfChecked?xr.push(Ir):mr.push(Ir)}),[mr,xr]},[Yt]),Fe=Je($,2),je=Fe[0],ue=Fe[1],ie=E.useMemo(function(){return je.map(function(mr){return mr.value})},[je]),Be=lnt(je,ue,de,qe),Xe=Je(Be,2),Oe=Xe[0],ft=Xe[1],wt=E.useMemo(function(){var mr=ree(Oe,C,qe,Ke),xr=mr.map(function(Sr){var fr,Cr,hr;return(fr=(Cr=qe[Sr])===null||Cr===void 0||(hr=Cr.node)===null||hr===void 0?void 0:hr[Ke.value])!==null&&fr!==void 0?fr:Sr}),Ir=xr.map(function(Sr){var fr=je.find(function(Cr){return Cr.value===Sr});return{value:Sr,label:fr?.label}}),Fr=Et(Ir),br=Fr[0];return!Ve&&br&&tee(br.value)&&tee(br.label)?[]:Fr.map(function(Sr){var fr;return se(se({},Sr),{},{label:(fr=Sr.label)!==null&&fr!==void 0?fr:Sr.value})})},[Ke,Ve,Oe,je,Et,C,qe]),ot=ont(wt),it=Je(ot,1),vt=it[0],qt=nee(function(mr,xr,Ir){var Fr=Et(mr);if(Te(Fr),h&&lt(""),s){var br=mr;if(de){var Sr=ree(mr,C,qe,Ke);br=Sr.map(function(pn){var Qn=ct.get(pn);return Qn?Qn.node[Ke.value]:pn})}var fr=xr||{triggerValue:void 0,selected:void 0},Cr=fr.triggerValue,hr=fr.selected,Ht=br;if(M){var Gt=ue.filter(function(pn){return!br.includes(pn.value)});Ht=[].concat(ir(Ht),ir(Gt))}var er=Et(Ht),Qr={preValue:je,triggerValue:Cr},Hr=!0;(M||Ir==="selection"&&!hr)&&(Hr=!1),nnt(Qr,Cr,mr,$e,Hr,Ke),Ue?Qr.checked=hr:Qr.selected=hr;var vn=at?er:er.map(function(pn){return pn.value});s(Ve?vn:vn[0],at?null:er.map(function(pn){return pn.label}),Qr)}}),Xt=E.useCallback(function(mr,xr){var Ir,Fr=xr.selected,br=xr.source,Sr=qe[mr],fr=Sr?.node,Cr=(Ir=fr?.[Ke.value])!==null&&Ir!==void 0?Ir:mr;if(!Ve)qt([Cr],{selected:!0,triggerValue:Cr},"option");else{var hr=Fr?[].concat(ir(ie),[Cr]):Oe.filter(function(Qn){return Qn!==Cr});if(de){var Ht=Tt(hr),Gt=Ht.missingRawValues,er=Ht.existRawValues,Qr=er.map(function(Qn){return ct.get(Qn).key}),Hr;if(Fr){var vn=Uf(Qr,!0,qe);Hr=vn.checkedKeys}else{var pn=Uf(Qr,{halfCheckedKeys:ft},qe);Hr=pn.checkedKeys}hr=[].concat(ir(Gt),ir(Hr.map(function(Qn){return qe[Qn].node[Ke.value]})))}qt(hr,{selected:Fr,triggerValue:Cr},br||"option")}Fr||!Ve?l?.(Cr,F6(fr)):c?.(Cr,F6(fr))},[Tt,ct,qe,Ke,Ve,ie,qt,de,l,c,Oe,ft]),Tr=E.useCallback(function(mr){if(J){var xr={};Object.defineProperty(xr,"documentClickClose",{get:function(){return Ea(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),J(mr,xr)}},[J]),Kr=nee(function(mr,xr){var Ir=mr.map(function(Fr){return Fr.value});if(xr.type==="clear"){qt(Ir,{},"selection");return}xr.values.length&&Xt(xr.values[0].value,{selected:!1,source:"selection"})}),Vr=E.useMemo(function(){return{virtual:K,dropdownMatchSelectWidth:ae,listHeight:H,listItemHeight:V,treeData:He,fieldNames:Ke,onSelect:Xt,treeExpandAction:X}},[K,ae,H,V,He,Ke,Xt,X]),Pr=E.useMemo(function(){return{checkable:Ue,loadData:F,treeLoadedKeys:N,onTreeLoad:_,checkedKeys:Oe,halfCheckedKeys:ft,treeDefaultExpandAll:P,treeExpandedKeys:k,treeDefaultExpandedKeys:j,onTreeExpand:Y,treeIcon:fe,treeMotion:be,showTreeIcon:he,switcherIcon:ye,treeLine:ne,treeNodeFilterProp:m,keyEntities:qe}},[Ue,F,N,_,Oe,ft,P,k,j,Y,fe,be,he,ye,ne,m,qe]);return E.createElement(LCe.Provider,{value:Vr},E.createElement(zCe.Provider,{value:Pr},E.createElement(aEe,ge({ref:t},Se,{id:ve,prefixCls:a,mode:Ve?"multiple":void 0,displayValues:vt,onDisplayValuesChange:Kr,searchValue:rt,onSearch:At,OptionList:YCe,emptyOptions:!$e.length,onDropdownVisibleChange:Tr,dropdownMatchSelectWidth:ae}))))}),bx=dnt;bx.TreeNode=xU;bx.SHOW_ALL=UCe;bx.SHOW_PARENT=MU;bx.SHOW_CHILD=x4;var fnt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},hnt=function(t,r){var n=t.prefixCls,a=t.size,i=t.disabled,o=t.bordered,s=o===void 0?!0:o,l=t.className,c=t.treeCheckable,A=t.multiple,u=t.listHeight,d=u===void 0?256:u,f=t.listItemHeight,h=f===void 0?26:f,g=t.placement,p=t.notFoundContent,m=t.switcherIcon,y=t.treeLine,C=t.getPopupContainer,w=t.dropdownClassName,B=t.popupClassName,x=t.treeIcon,M=x===void 0?!1:x,S=t.transitionName,R=t.choiceTransitionName,b=R===void 0?"":R,T=t.status,D=t.showArrow,F=t.treeExpandAction,N=fnt(t,["prefixCls","size","disabled","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","dropdownClassName","popupClassName","treeIcon","transitionName","choiceTransitionName","status","showArrow","treeExpandAction"]),_=E.useContext(an),P=_.getPopupContainer,k=_.getPrefixCls,j=_.renderEmpty,Y=_.direction,X=_.virtual,K=_.dropdownMatchSelectWidth,U=E.useContext(ds),H=k("select",n),L=k("select-tree",n),V=k("tree-select",n),J=$f(H,Y),ee=J.compactSize,ae=J.compactItemClassnames,ne=dt(B||w,"".concat(V,"-dropdown"),te({},"".concat(V,"-dropdown-rtl"),Y==="rtl")),fe=!!(c||A),he=D!==void 0?D:N.loading||!fe,ye=E.useContext(fs),be=ye.status,Se=ye.hasFeedback,ve=ye.isFormItemInput,de=ye.feedbackIcon,Ue=Zf(be,T),at=yEe(ge(ge({},N),{multiple:fe,showArrow:he,hasFeedback:Se,feedbackIcon:de,prefixCls:H})),Ve=at.suffixIcon,Ie=at.removeIcon,we=at.clearIcon,Re;p!==void 0?Re=p:Re=(j||HQ)("Select");var Te=ji(N,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),Ke=function(){return g!==void 0?g:Y==="rtl"?"bottomRight":"bottomLeft"},mt=ee||a||U,tt=E.useContext(Ol),rt=i??tt,lt=dt(!n&&V,te(te(te(te(te({},"".concat(H,"-lg"),mt==="large"),"".concat(H,"-sm"),mt==="small"),"".concat(H,"-rtl"),Y==="rtl"),"".concat(H,"-borderless"),!s),"".concat(H,"-in-form-item"),ve),kl(H,Ue,Se),ae,l),At=k();return E.createElement(bx,ge({virtual:X,dropdownMatchSelectWidth:K,disabled:rt},Te,{ref:r,prefixCls:H,className:lt,listHeight:d,listItemHeight:h,treeCheckable:c&&E.createElement("span",{className:"".concat(H,"-tree-checkbox-inner")}),treeLine:!!y,inputIcon:Ve,multiple:A,placement:Ke(),removeIcon:Ie,clearIcon:we,switcherIcon:function(ce){return RCe(L,m,y,ce)},showTreeIcon:M,notFoundContent:Re,getPopupContainer:C||P,treeMotion:null,dropdownClassName:ne,choiceTransitionName:rA(At,"",b),transitionName:rA(At,EEe(g),S),showArrow:Se||D,treeExpandAction:F}))},gnt=E.forwardRef(hnt),_i=gnt;_i.TreeNode=xU;_i.SHOW_ALL=UCe;_i.SHOW_PARENT=MU;_i.SHOW_CHILD=x4;var k8,aee;function pnt(){return aee||(aee=1,k8=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(a){e.addRange(a)}),t&&t.focus()}}),k8}var P8,iee;function vnt(){if(iee)return P8;iee=1;var e=pnt(),t={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(i){var o=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return i.replace(/#{\s*key\s*}/g,o)}function a(i,o){var s,l,c,A,u,d,f=!1;o||(o={}),s=o.debug||!1;try{c=e(),A=document.createRange(),u=document.getSelection(),d=document.createElement("span"),d.textContent=i,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(g){if(g.stopPropagation(),o.format)if(g.preventDefault(),typeof g.clipboardData>"u"){s&&console.warn("unable to use e.clipboardData"),s&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var p=t[o.format]||t.default;window.clipboardData.setData(p,i)}else g.clipboardData.clearData(),g.clipboardData.setData(o.format,i);o.onCopy&&(g.preventDefault(),o.onCopy(g.clipboardData))}),document.body.appendChild(d),A.selectNodeContents(d),u.addRange(A);var h=document.execCommand("copy");if(!h)throw new Error("copy command was unsuccessful");f=!0}catch(g){s&&console.error("unable to copy using execCommand: ",g),s&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(o.format||"text",i),o.onCopy&&o.onCopy(window.clipboardData),f=!0}catch(p){s&&console.error("unable to copy using clipboardData: ",p),s&&console.error("falling back to prompt"),l=n("message"in o?o.message:r),window.prompt(l,i)}}finally{u&&(typeof u.removeRange=="function"?u.removeRange(A):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}return P8=a,P8}var mnt=vnt();const Ent=gn(mnt);var ynt=function(t){var r=t.prefixCls,n=t["aria-label"],a=t.className,i=t.style,o=t.direction,s=t.maxLength,l=t.autoSize,c=l===void 0?!0:l,A=t.value,u=t.onSave,d=t.onCancel,f=t.onEnd,h=t.component,g=t.enterIcon,p=g===void 0?E.createElement(eFe,null):g,m=E.useRef(null),y=E.useRef(!1),C=E.useRef(),w=E.useState(A),B=Je(w,2),x=B[0],M=B[1];E.useEffect(function(){M(A)},[A]),E.useEffect(function(){if(m.current&&m.current.resizableTextArea){var k=m.current.resizableTextArea.textArea;k.focus();var j=k.value.length;k.setSelectionRange(j,j)}},[]);var S=function(j){var Y=j.target;M(Y.value.replace(/[\n\r]/g,""))},R=function(){y.current=!0},b=function(){y.current=!1},T=function(j){var Y=j.keyCode;y.current||(C.current=Y)},D=function(){u(x.trim())},F=function(j){var Y=j.keyCode,X=j.ctrlKey,K=j.altKey,U=j.metaKey,H=j.shiftKey;C.current===Y&&!y.current&&!X&&!K&&!U&&!H&&(Y===cr.ENTER?(D(),f?.()):Y===cr.ESC&&d())},N=function(){D()},_=h?"".concat(r,"-").concat(h):"",P=dt(r,"".concat(r,"-edit-content"),te({},"".concat(r,"-rtl"),o==="rtl"),a,_);return E.createElement("div",{className:P,style:i},E.createElement(Y1e,{ref:m,maxLength:s,value:x,onChange:S,onKeyDown:T,onKeyUp:F,onCompositionStart:R,onCompositionEnd:b,onBlur:N,"aria-label":n,rows:1,autoSize:c}),p!==null?fi(p,{className:"".concat(r,"-edit-content-confirm")}):null)};function O8(e,t){return E.useMemo(function(){var r=!!e;return[r,ge(ge({},t),r&&Ar(e)==="object"?e:null)]},[e])}var Cnt=function(t,r){var n=E.useRef(!1);E.useEffect(function(){n.current?t():n.current=!0},r)},wnt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},GCe=E.forwardRef(function(e,t){var r=e.prefixCls,n=e.component,a=n===void 0?"article":n,i=e.className,o=e.setContentRef,s=e.children,l=e.direction,c=wnt(e,["prefixCls","component","className","setContentRef","children","direction"]),A=E.useContext(an),u=A.getPrefixCls,d=A.direction,f=l??d,h=t;o&&(h=Ec(t,o));var g=u("typography",r),p=dt(g,te({},"".concat(g,"-rtl"),f==="rtl"),i);return E.createElement(a,ge({className:p,ref:h},c),s)});function KCe(e){var t=Ar(e);return t==="string"||t==="number"}function Bnt(e){var t=0;return e.forEach(function(r){KCe(r)?t+=String(r).length:t+=1}),t}function oee(e,t){for(var r=0,n=[],a=0;a<e.length;a+=1){if(r===t)return n;var i=e[a],o=KCe(i),s=o?String(i).length:1,l=r+s;if(l>t){var c=t-r;return n.push(String(i).slice(0,c)),n}n.push(i),r=l}return e}var xnt=0,oI=1,see=2,j8=3,lee=4,Mnt=function(t){var r=t.enabledMeasure,n=t.children,a=t.text,i=t.width,o=t.fontSize,s=t.rows,l=t.onEllipsis,c=E.useState([0,0,0]),A=Je(c,2),u=Je(A[0],3),d=u[0],f=u[1],h=u[2],g=A[1],p=E.useState(xnt),m=Je(p,2),y=m[0],C=m[1],w=E.useState(0),B=Je(w,2),x=B[0],M=B[1],S=E.useRef(null),R=E.useRef(null),b=E.useMemo(function(){return Vo(a)},[a]),T=E.useMemo(function(){return Bnt(b)},[b]),D=E.useMemo(function(){return!r||y!==j8?n(b,!1):n(oee(b,f),f<T)},[r,y,n,b,f,T]);Wa(function(){r&&i&&o&&T&&(C(oI),g([0,Math.ceil(T/2),T]))},[r,i,o,a,T,s]),Wa(function(){var P;y===oI&&M(((P=S.current)===null||P===void 0?void 0:P.offsetHeight)||0)},[y]),Wa(function(){var P,k;if(x){if(y===oI){var j=((P=R.current)===null||P===void 0?void 0:P.offsetHeight)||0,Y=s*x;j<=Y?(C(lee),l(!1)):C(see)}else if(y===see)if(d!==h){var X=((k=R.current)===null||k===void 0?void 0:k.offsetHeight)||0,K=s*x,U=d,H=h;d===h-1?H=d:X<=K?U=f:H=f;var L=Math.ceil((U+H)/2);g([U,L,H])}else C(j8),l(!0)}},[y,d,h,s,x]);var F={width:i,whiteSpace:"normal",margin:0,padding:0},N=function(k,j,Y){return E.createElement("span",{"aria-hidden":!0,ref:j,style:ge({position:"fixed",display:"block",left:0,top:0,zIndex:-9999,visibility:"hidden",pointerEvents:"none",fontSize:Math.floor(o/2)*2},Y)},k)},_=function(k,j){var Y=oee(b,k);return N(n(Y,!0),j,F)};return E.createElement(E.Fragment,null,D,r&&y!==j8&&y!==lee&&E.createElement(E.Fragment,null,N("lg",S,{wordBreak:"keep-all",whiteSpace:"nowrap"}),y===oI?N(n(b,!1),R,F):_(f,R)))},Int=function(t){var r=t.enabledEllipsis,n=t.isEllipsis,a=t.children,i=t.tooltipProps;return!i?.title||!r?a:E.createElement(Mi,ge({open:n?void 0:!1},i),a)},bnt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Snt(e,t){var r=e.mark,n=e.code,a=e.underline,i=e.delete,o=e.strong,s=e.keyboard,l=e.italic,c=t;function A(u,d){u&&(c=E.createElement(d,{},c))}return A(o,"strong"),A(a,"u"),A(i,"del"),A(n,"code"),A(r,"mark"),A(s,"kbd"),A(l,"i"),c}function sI(e,t,r){return e===!0||e===void 0?t:e||r&&t}function cee(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}var Rnt="...",M4=E.forwardRef(function(e,t){var r,n,a,i=e.prefixCls,o=e.className,s=e.style,l=e.type,c=e.disabled,A=e.children,u=e.ellipsis,d=e.editable,f=e.copyable,h=e.component,g=e.title,p=bnt(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),m=E.useContext(an),y=m.getPrefixCls,C=m.direction,w=Lme("Text")[0],B=E.useRef(null),x=E.useRef(null),M=y("typography",i),S=ji(p,["mark","code","delete","underline","strong","keyboard","italic"]),R=O8(d),b=Je(R,2),T=b[0],D=b[1],F=Ia(!1,{value:D.editing}),N=Je(F,2),_=N[0],P=N[1],k=D.triggerType,j=k===void 0?["icon"]:k,Y=function(er){var Qr;er&&((Qr=D.onStart)===null||Qr===void 0||Qr.call(D)),P(er)};Cnt(function(){var Gt;_||(Gt=x.current)===null||Gt===void 0||Gt.focus()},[_]);var X=function(er){er?.preventDefault(),Y(!0)},K=function(er){var Qr;(Qr=D.onChange)===null||Qr===void 0||Qr.call(D,er),Y(!1)},U=function(){var er;(er=D.onCancel)===null||er===void 0||er.call(D),Y(!1)},H=O8(f),L=Je(H,2),V=L[0],J=L[1],ee=E.useState(!1),ae=Je(ee,2),ne=ae[0],fe=ae[1],he=E.useRef(),ye={};J.format&&(ye.format=J.format);var be=function(){window.clearTimeout(he.current)},Se=function(er){var Qr;er?.preventDefault(),er?.stopPropagation(),Ent(J.text||String(A)||"",ye),fe(!0),be(),he.current=window.setTimeout(function(){fe(!1)},3e3),(Qr=J.onCopy)===null||Qr===void 0||Qr.call(J,er)};E.useEffect(function(){return be},[]);var ve=E.useState(!1),de=Je(ve,2),Ue=de[0],at=de[1],Ve=E.useState(!1),Ie=Je(Ve,2),we=Ie[0],Re=Ie[1],Te=E.useState(!1),Ke=Je(Te,2),mt=Ke[0],tt=Ke[1],rt=E.useState(!1),lt=Je(rt,2),At=lt[0],$e=lt[1],ce=E.useState(!1),qe=Je(ce,2),ct=qe[0],Tt=qe[1],He=E.useState(!0),Ge=Je(He,2),Ee=Ge[0],Et=Ge[1],Yt=O8(u,{expandable:!1}),$=Je(Yt,2),Fe=$[0],je=$[1],ue=Fe&&!mt,ie=je.rows,Be=ie===void 0?1:ie,Xe=E.useMemo(function(){return!ue||je.suffix!==void 0||je.onEllipsis||je.expandable||T||V},[ue,je,T,V]);Wa(function(){Fe&&!Xe&&(at(Xz("webkitLineClamp")),Re(Xz("textOverflow")))},[Xe,Fe]);var Oe=E.useMemo(function(){return Xe?!1:Be===1?we:Ue},[Xe,we,Ue]),ft=ue&&(Oe?ct:At),wt=ue&&Be===1&&Oe,ot=ue&&Be>1&&Oe,it=function(er){var Qr;tt(!0),(Qr=je.onExpand)===null||Qr===void 0||Qr.call(je,er)},vt=E.useState(0),qt=Je(vt,2),Xt=qt[0],Tr=qt[1],Kr=E.useState(0),Vr=Je(Kr,2),Pr=Vr[0],mr=Vr[1],xr=function(er,Qr){var Hr=er.offsetWidth,vn;Tr(Hr),mr(parseInt((vn=window.getComputedStyle)===null||vn===void 0?void 0:vn.call(window,Qr).fontSize,10)||0)},Ir=function(er){var Qr;$e(er),At!==er&&((Qr=je.onEllipsis)===null||Qr===void 0||Qr.call(je,er))};E.useEffect(function(){var Gt=B.current;if(Fe&&Oe&&Gt){var er=ot?Gt.offsetHeight<Gt.scrollHeight:Gt.offsetWidth<Gt.scrollWidth;ct!==er&&Tt(er)}},[Fe,Oe,A,ot,Ee]),E.useEffect(function(){var Gt=B.current;if(!(typeof IntersectionObserver>"u"||!Gt||!Oe||!ue)){var er=new IntersectionObserver(function(){Et(!!Gt.offsetParent)});return er.observe(Gt),function(){er.disconnect()}}},[Oe,ue]);var Fr={};je.tooltip===!0?Fr={title:(r=D.text)!==null&&r!==void 0?r:A}:E.isValidElement(je.tooltip)?Fr={title:je.tooltip}:Ar(je.tooltip)==="object"?Fr=ge({title:(n=D.text)!==null&&n!==void 0?n:A},je.tooltip):Fr={title:je.tooltip};var br=E.useMemo(function(){var Gt=function(Qr){return["string","number"].includes(Ar(Qr))};if(!(!Fe||Oe)){if(Gt(D.text))return D.text;if(Gt(A))return A;if(Gt(g))return g;if(Gt(Fr.title))return Fr.title}},[Fe,Oe,g,Fr.title,ft]);if(_)return E.createElement(ynt,{value:(a=D.text)!==null&&a!==void 0?a:typeof A=="string"?A:"",onSave:K,onCancel:U,onEnd:D.onEnd,prefixCls:M,className:o,style:s,direction:C,component:h,maxLength:D.maxLength,autoSize:D.autoSize,enterIcon:D.enterIcon});var Sr=function(){var er=je.expandable,Qr=je.symbol;if(!er)return null;var Hr;return Qr?Hr=Qr:Hr=w.expand,E.createElement("a",{key:"expand",className:"".concat(M,"-expand"),onClick:it,"aria-label":w.expand},Hr)},fr=function(){if(T){var er=D.icon,Qr=D.tooltip,Hr=Vo(Qr)[0]||w.edit,vn=typeof Hr=="string"?Hr:"";return j.includes("icon")?E.createElement(Mi,{key:"edit",title:Qr===!1?"":Hr},E.createElement(E6,{ref:x,className:"".concat(M,"-edit"),onClick:X,"aria-label":vn},er||E.createElement(bY,{role:"button"}))):null}},Cr=function(){if(V){var er=J.tooltips,Qr=J.icon,Hr=cee(er),vn=cee(Qr),pn=ne?sI(Hr[1],w.copied):sI(Hr[0],w.copy),Qn=ne?w.copied:w.copy,pt=typeof pn=="string"?pn:Qn;return E.createElement(Mi,{key:"copy",title:pn},E.createElement(E6,{className:dt("".concat(M,"-copy"),ne&&"".concat(M,"-copy-success")),onClick:Se,"aria-label":pt},ne?sI(vn[1],E.createElement(lA,null),!0):sI(vn[0],E.createElement($v,null),!0)))}},hr=function(er){return[er&&Sr(),fr(),Cr()]},Ht=function(er){return[er&&E.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Rnt),je.suffix,hr(er)]};return E.createElement($c,{onResize:xr,disabled:!ue||Oe},function(Gt){return E.createElement(Int,{tooltipProps:Fr,enabledEllipsis:ue,isEllipsis:ft},E.createElement(GCe,ge({className:dt(te(te(te(te(te(te({},"".concat(M,"-").concat(l),l),"".concat(M,"-disabled"),c),"".concat(M,"-ellipsis"),Fe),"".concat(M,"-single-line"),ue&&Be===1),"".concat(M,"-ellipsis-single-line"),wt),"".concat(M,"-ellipsis-multiple-line"),ot),o),prefixCls:i,style:ge(ge({},s),{WebkitLineClamp:ot?Be:void 0}),component:h,ref:Ec(Gt,B,t),direction:C,onClick:j.includes("text")?X:void 0,"aria-label":br?.toString(),title:g},S),E.createElement(Mnt,{enabledMeasure:ue&&!Oe,text:A,rows:Be,width:Xt,fontSize:Pr,onEllipsis:Ir},function(er,Qr){var Hr=er;er.length&&Qr&&br&&(Hr=E.createElement("span",{key:"show-content","aria-hidden":!0},Hr));var vn=Snt(e,E.createElement(E.Fragment,null,Hr,Ht(Qr)));return vn})))})}),Tnt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Qnt=E.forwardRef(function(e,t){var r=e.ellipsis,n=e.rel,a=Tnt(e,["ellipsis","rel"]),i=ge(ge({},a),{rel:n===void 0&&a.target==="_blank"?"noopener noreferrer":n});return delete i.navigate,E.createElement(M4,ge({},i,{ref:t,ellipsis:!!r,component:"a"}))}),Dnt=E.forwardRef(function(e,t){return E.createElement(M4,ge({ref:t},e,{component:"div"}))}),Fnt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Nnt=function(t,r){var n=t.ellipsis,a=Fnt(t,["ellipsis"]),i=E.useMemo(function(){return n&&Ar(n)==="object"?ji(n,["expandable","rows"]):n},[n]);return E.createElement(M4,ge({ref:r},a,{ellipsis:i,component:"span"}))};const _nt=E.forwardRef(Nnt);var knt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r},Pnt=ZHe(1,2,3,4,5),Ont=E.forwardRef(function(e,t){var r=e.level,n=r===void 0?1:r,a=knt(e,["level"]),i;return Pnt.includes(n)?i="h".concat(n):i="h1",E.createElement(M4,ge({ref:t},a,{component:i}))}),Hg=GCe;Hg.Text=_nt;Hg.Link=Qnt;Hg.Title=Ont;Hg.Paragraph=Dnt;const I4=115,ya=({type:e="info",message:t="Accueil",description:r,key:n,icon:a,duration:i=4}={})=>{hc[e]({message:t,description:r,duration:i,placement:"topRight",top:I4,icon:a,key:n})},jnt=({description:e="",message:t="Une erreur s'est produite",key:r,icon:n,duration:a=4})=>{hc.warning({message:t,description:e,duration:a,placement:"topRight",top:I4,icon:n,key:r})},ll=({description:e="",message:t="Une erreur s'est produite",key:r,icon:n,duration:a=4})=>{hc.error({message:t,description:e,duration:a,placement:"topRight",top:I4,icon:n,key:r})},Gg=({description:e="",message:t="Succes",key:r,icon:n,duration:a=4})=>{hc.success({message:t,description:e,duration:a,placement:"topRight",top:I4,icon:n,key:r})},znt=(e,t,r)=>{ya({type:"error",message:t,description:r})};dz.registerLanguage("sql",aLe);function jn(e,t={}){const r=Ii()+e;let n=new FormData;for(const a in t)n.append(a,t[a]);return new Promise(async(a,i)=>{try{let o=await To({method:"post",url:r,data:n,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const s=o.headers["content-type"];let l=o.data;s.includes("application/json")||(l=Pg(o.data)),a(l)}catch(o){ya({message:"Erreur",description:"Erreur de communication avec le serveur veuillez recharger la page"}),i(o)}})}async function Vf(e,t="post",r={},n={"Content-Type":"multipart/form-data"}){let a;if(t==="post"&&n["Content-Type"]==="multipart/form-data"){a=new FormData;for(const i in r)a.append(i,r[i])}else a=r;try{const i=await To({method:t,url:Ii()+e,data:a,headers:n,responseType:"json"});let o=JSON.stringify(i.data);const s=Fge(o,Dge);return{data:JSON.parse(s),res:i}}catch{return!1}}async function Sf(e,t={},r=!0){let n=await To({method:"get",url:Ii()+e,params:t,responseType:"arraybuffer"});const i=new TextDecoder("iso-8859-15").decode(n.data);let o="",s=document.createElement("pre");s.style.wordWrap="break-word",s.style.whiteSpace="pre-wrap";let l=document.createElement("code");l.classList.add("language-sql"),r?(dz.highlightAll(),o=dz.highlight(i,{language:"sql"}).value,l.innerHTML=o):l.innerHTML=i,s.appendChild(l);const c=window.open("");c.document.title="CTI Santé";const A=document.createElement("link");A.id="id2",A.rel="stylesheet",A.href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.1.2/styles/default.min.css",c.document.head.append(A),c.document.body.appendChild(s)}const Aee=()=>async function(e,t){e(_R(!0));const{data:r}=await Vf("api/logs","get");e(D3e(r)),e(_R(!1))},uee=()=>async function(e){e(_R(!0));try{const{data:t}=await Vf("api/exploit-status","get");e(k3e(t))}catch(t){Ki(8900,"",t)}e(_R(!1))};function Lnt(e,t){Object.keys(t.log).length&&(sl.dispatch(l8e()),Object.values(t.log).forEach(r=>{console.warn(r.code,`Détecté ${r.count} fois`,e[r.code]?e[r.code]:"Erreur JiS non identifiée",r.text,r.error!==null?r.error:"")}),Vf("api/log","post",t,{"Content-Type":"application/json"}),t={log:{}})}const VCe={8100:"Erreur d'évaluation de l'actionScript",8101:"Erreur d'évaluation de l'actionScript - Globals manquants",8102:"Erreur lors de la construction de l'object SELECT ou VIEW - Globals manquants",8103:"Erreur lors de l'éval sur la visibilité d'un champs",8104:"Erreur lors de la récupération d'une valeur demandée dans l'eval",8105:"Return manquant dans l'eval",8200:"Erreur de traitements",8201:"Erreur lors du traitement des filtres avant envoi",8202:"Erreur lors du de la création du Tree",8300:"Erreur export",8301:"Erreur export Excel - Vue",8302:"Erreur export PDF - Vue",8400:"Erreur localForage",8401:"Erreur lors de la récupération du RUN du localForage",8402:"Erreur lors de la récupération du DESC du localForage",8403:"La vue demandée ne correspond pas au module en cours",8500:"Erreur retournée par le serveur",8510:"Temps de réponse serveur excessif",8600:"Erreur lors de la création du menu",8610:"swf manquant dans item du menu",8700:"Erreur de communication avec I-CTI Simulation",8701:"Erreur d'envoi des séjours non groupés",8702:"Erreur lors du téléchargement de la simulation",8800:"Erreur de communication avec le module references",8900:"Erreur de communication avec le module d'affichage des traces",8901:"Erreur de téléchargement de la trace",8902:"Erreur de visualisation de la trace"};var z8={exports:{}},L8={exports:{}},dee;function Ynt(){return dee||(dee=1,(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t={rotl:function(r,n){return r<<n|r>>>32-n},rotr:function(r,n){return r<<32-n|r>>>n},endian:function(r){if(r.constructor==Number)return t.rotl(r,8)&16711935|t.rotl(r,24)&4278255360;for(var n=0;n<r.length;n++)r[n]=t.endian(r[n]);return r},randomBytes:function(r){for(var n=[];r>0;r--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(r){for(var n=[],a=0,i=0;a<r.length;a++,i+=8)n[i>>>5]|=r[a]<<24-i%32;return n},wordsToBytes:function(r){for(var n=[],a=0;a<r.length*32;a+=8)n.push(r[a>>>5]>>>24-a%32&255);return n},bytesToHex:function(r){for(var n=[],a=0;a<r.length;a++)n.push((r[a]>>>4).toString(16)),n.push((r[a]&15).toString(16));return n.join("")},hexToBytes:function(r){for(var n=[],a=0;a<r.length;a+=2)n.push(parseInt(r.substr(a,2),16));return n},bytesToBase64:function(r){for(var n=[],a=0;a<r.length;a+=3)for(var i=r[a]<<16|r[a+1]<<8|r[a+2],o=0;o<4;o++)a*8+o*6<=r.length*8?n.push(e.charAt(i>>>6*(3-o)&63)):n.push("=");return n.join("")},base64ToBytes:function(r){r=r.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],a=0,i=0;a<r.length;i=++a%4)i!=0&&n.push((e.indexOf(r.charAt(a-1))&Math.pow(2,-2*i+8)-1)<<i*2|e.indexOf(r.charAt(a))>>>6-i*2);return n}};L8.exports=t})()),L8.exports}var Y8,fee;function hee(){if(fee)return Y8;fee=1;var e={utf8:{stringToBytes:function(t){return e.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(e.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var r=[],n=0;n<t.length;n++)r.push(t.charCodeAt(n)&255);return r},bytesToString:function(t){for(var r=[],n=0;n<t.length;n++)r.push(String.fromCharCode(t[n]));return r.join("")}}};return Y8=e,Y8}/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */var U8,gee;function Unt(){if(gee)return U8;gee=1,U8=function(r){return r!=null&&(e(r)||t(r)||!!r._isBuffer)};function e(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function t(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&e(r.slice(0,0))}return U8}var pee;function Hnt(){return pee||(pee=1,(function(){var e=Ynt(),t=hee().utf8,r=Unt(),n=hee().bin,a=function(i,o){i.constructor==String?o&&o.encoding==="binary"?i=n.stringToBytes(i):i=t.stringToBytes(i):r(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var s=e.bytesToWords(i),l=i.length*8,c=1732584193,A=-271733879,u=-1732584194,d=271733878,f=0;f<s.length;f++)s[f]=(s[f]<<8|s[f]>>>24)&16711935|(s[f]<<24|s[f]>>>8)&4278255360;s[l>>>5]|=128<<l%32,s[(l+64>>>9<<4)+14]=l;for(var h=a._ff,g=a._gg,p=a._hh,m=a._ii,f=0;f<s.length;f+=16){var y=c,C=A,w=u,B=d;c=h(c,A,u,d,s[f+0],7,-680876936),d=h(d,c,A,u,s[f+1],12,-389564586),u=h(u,d,c,A,s[f+2],17,606105819),A=h(A,u,d,c,s[f+3],22,-1044525330),c=h(c,A,u,d,s[f+4],7,-176418897),d=h(d,c,A,u,s[f+5],12,1200080426),u=h(u,d,c,A,s[f+6],17,-1473231341),A=h(A,u,d,c,s[f+7],22,-45705983),c=h(c,A,u,d,s[f+8],7,1770035416),d=h(d,c,A,u,s[f+9],12,-1958414417),u=h(u,d,c,A,s[f+10],17,-42063),A=h(A,u,d,c,s[f+11],22,-1990404162),c=h(c,A,u,d,s[f+12],7,1804603682),d=h(d,c,A,u,s[f+13],12,-40341101),u=h(u,d,c,A,s[f+14],17,-1502002290),A=h(A,u,d,c,s[f+15],22,1236535329),c=g(c,A,u,d,s[f+1],5,-165796510),d=g(d,c,A,u,s[f+6],9,-1069501632),u=g(u,d,c,A,s[f+11],14,643717713),A=g(A,u,d,c,s[f+0],20,-373897302),c=g(c,A,u,d,s[f+5],5,-701558691),d=g(d,c,A,u,s[f+10],9,38016083),u=g(u,d,c,A,s[f+15],14,-660478335),A=g(A,u,d,c,s[f+4],20,-405537848),c=g(c,A,u,d,s[f+9],5,568446438),d=g(d,c,A,u,s[f+14],9,-1019803690),u=g(u,d,c,A,s[f+3],14,-187363961),A=g(A,u,d,c,s[f+8],20,1163531501),c=g(c,A,u,d,s[f+13],5,-1444681467),d=g(d,c,A,u,s[f+2],9,-51403784),u=g(u,d,c,A,s[f+7],14,1735328473),A=g(A,u,d,c,s[f+12],20,-1926607734),c=p(c,A,u,d,s[f+5],4,-378558),d=p(d,c,A,u,s[f+8],11,-2022574463),u=p(u,d,c,A,s[f+11],16,1839030562),A=p(A,u,d,c,s[f+14],23,-35309556),c=p(c,A,u,d,s[f+1],4,-1530992060),d=p(d,c,A,u,s[f+4],11,1272893353),u=p(u,d,c,A,s[f+7],16,-155497632),A=p(A,u,d,c,s[f+10],23,-1094730640),c=p(c,A,u,d,s[f+13],4,681279174),d=p(d,c,A,u,s[f+0],11,-358537222),u=p(u,d,c,A,s[f+3],16,-722521979),A=p(A,u,d,c,s[f+6],23,76029189),c=p(c,A,u,d,s[f+9],4,-640364487),d=p(d,c,A,u,s[f+12],11,-421815835),u=p(u,d,c,A,s[f+15],16,530742520),A=p(A,u,d,c,s[f+2],23,-995338651),c=m(c,A,u,d,s[f+0],6,-198630844),d=m(d,c,A,u,s[f+7],10,1126891415),u=m(u,d,c,A,s[f+14],15,-1416354905),A=m(A,u,d,c,s[f+5],21,-57434055),c=m(c,A,u,d,s[f+12],6,1700485571),d=m(d,c,A,u,s[f+3],10,-1894986606),u=m(u,d,c,A,s[f+10],15,-1051523),A=m(A,u,d,c,s[f+1],21,-2054922799),c=m(c,A,u,d,s[f+8],6,1873313359),d=m(d,c,A,u,s[f+15],10,-30611744),u=m(u,d,c,A,s[f+6],15,-1560198380),A=m(A,u,d,c,s[f+13],21,1309151649),c=m(c,A,u,d,s[f+4],6,-145523070),d=m(d,c,A,u,s[f+11],10,-1120210379),u=m(u,d,c,A,s[f+2],15,718787259),A=m(A,u,d,c,s[f+9],21,-343485551),c=c+y>>>0,A=A+C>>>0,u=u+w>>>0,d=d+B>>>0}return e.endian([c,A,u,d])};a._ff=function(i,o,s,l,c,A,u){var d=i+(o&s|~o&l)+(c>>>0)+u;return(d<<A|d>>>32-A)+o},a._gg=function(i,o,s,l,c,A,u){var d=i+(o&l|s&~l)+(c>>>0)+u;return(d<<A|d>>>32-A)+o},a._hh=function(i,o,s,l,c,A,u){var d=i+(o^s^l)+(c>>>0)+u;return(d<<A|d>>>32-A)+o},a._ii=function(i,o,s,l,c,A,u){var d=i+(s^(o|~l))+(c>>>0)+u;return(d<<A|d>>>32-A)+o},a._blocksize=16,a._digestsize=16,z8.exports=function(i,o){if(i==null)throw new Error("Illegal argument "+i);var s=e.wordsToBytes(a(i,o));return o&&o.asBytes?s:o&&o.asString?n.bytesToString(s):e.bytesToHex(s)}})()),z8.exports}var Gnt=Hnt();const JCe=gn(Gnt),lw={log:{}};setInterval(Lnt(VCe,lw),6e3);const Ki=(e,t,r=null)=>{const n=sl.getState();let a="Unknown";const i=n.router.location.pathname;n.cti.settings.data&&(a=n.cti.settings.data.session.CONNECTEDUSER);const o={count:1,id:xze(),createdAt:ei().format("DD-MM-YYYY HH:mm"),code:e,text:t,error:r&&r!==null?r.message:"-",message:VCe[e],extra:{user:a,url:i}},s=JCe(e+t).substring(0,7);lw?.log[s]?lw.log[s].count=lw.log[s].count+1:lw.log[s]=o};var H8,vee;function WCe(){if(vee)return H8;vee=1;var e=nm(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return H8=t,H8}var G8,mee;function b4(){if(mee)return G8;mee=1;var e=WCe();function t(r,n,a){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:a,writable:!0}):r[n]=a}return G8=t,G8}var K8,Eee;function Knt(){if(Eee)return K8;Eee=1;var e=b4(),t=$ve(),r=Object.prototype,n=r.hasOwnProperty,a=t(function(i,o,s){n.call(i,s)?i[s].push(o):e(i,s,[o])});return K8=a,K8}var Vnt=Knt();const cl=gn(Vnt),vB=e=>(/ROW\./.test(e)&&(e=e?.replace(/ROW\./g,"ROW?.")),/\.indexOf\(/.test(e)&&(e=e.replace(/\.indexOf\(/gi,"?.indexOf(")),/return/gm.test(e)||(e="return ("+e+")"),new Function(e)()),ca=(e,t,r=null,n={},a=null)=>{if(!e)return!0;let i=sl.getState();const o=i.cti.viewlinks.cell,s=i.cti.viewlinks.row,l=i.cti.dynamicSelects,c=Number(i.cti.ui.tab);if(window.TABNAME="",window.ROW={},window.COLUMN={},window.TOTALROW=n??{},window.LINKVARIABLES={},t?.run.data){const h=Object.values(t.run.data).filter(g=>g.visible===!0)?.[c];h&&(window.TABNAME=h.name)}r?window.ROW=r:(s||o)&&(window.ROW=o.row?o.row:s),o.row!==null&&o.column!==null&&(window.COLUMN=o.column),window.getValue=function(h,g,p){p=p.replace("@","_");const y=i.cti.settings.data?.environment??{};let C=a??i.cti.globalVariables,w,B;switch(h){case"VIEW":w=C?.VIEW?.[`${g+p}`],!w&&p==="_LABEL"&&(w=C?.VIEW?.[`${g+p}_COURT`]);break;case"ENV":w=y?.[g]??"";break;case"SELECT":B=Object.values(l).find(M=>M.name===g),w=B?.value??C?.SELECT?.[`${g+p}`];break}let x=w;return x===void 0&&(Ki(8104,`${h}.${g}${p&&p!==""?"_"+p:""}`),x=""),x},window.String.prototype.ctiAs3Substr=function(h,g){let p="";return g?(Number(g)<0?p=this.slice(Number(h),Number(g)):p=this.substr(Number(h),Number(g)),p):this.substr(Number(h))},window.ctiCompare=function(h,g,p){const m=Number(h),y=Number(p);return g==="<"?m<y:g===">"?m>y:g==="<="?m<=y:g===">="?m>=y:!1};let A=Jnt(e),u="";try{var d=Ki;u=vB(A)}catch(f){console.log(A),console.error(f),Ki(8100,A,f)}return Object.keys(window.LINKVARIABLES).length>0?window.LINKVARIABLES:u};function Jnt(e){return/substr\((\s?-?\d)(,\s?-?\d)?\)/gm.test(e)&&(e=e.replace(/substr\((\s?-?\d)(,\s?-?\d)?\)/gm,"ctiAs3Substr($1 $2)")),/(ROW.[A-Za-z0-9_]*)\s*?(<|>|<=|>=)\s*?((ROW.([A-Za-z0-9_]*))|\d+)/gm.test(e)&&(e=e.replace(/(TOTALROW|ROW.[A-Za-z0-9_]*)\s*?(<|>|<=|>=)\s*?((TOTALROW|ROW.([A-Za-z0-9_]*))|\d+)/gm,'ctiCompare($1, "$2", $3)')),e=e.replace(/_LABEL_COURT/g,"@LABEL"),e=e.replace(/_LABEL/g,"@LABEL"),/(ENV|VIEW|SELECT)\.([A-Z0-9_]+)(@LABEL)?/g.test(e)&&(e=e.replace(/(ENV|VIEW|SELECT)\.([A-Z0-9_]+)(@LABEL)?/g,"getValue('$1', '$2', '$3')")),/#B#/gi.test(e)&&(e=e.replace(/#B#/gi,"<strong>").replace(/#\/B#/gi,"</strong>")),/#(GE|LE|LT)#/gi.test(e)&&(e=e.replace(/#GE#/gi,">=").replace(/#LE#/gi,"<=").replace(/#LT#/gi,"<=")),/&(gt|lt);/gi.test(e)&&(e=e.replace(/&gt;/gi,">=").replace(/&lt;/gi,"<=")),/\\n/g.test(e)&&(e=e.replace(/\\n/g,"<br/>")),/null/gm.test(e)&&(e=e.replace(/null/gm,'""')),/ AND /gm.test(e)&&(e=e.replace(/ AND /gm,"&&")),/(:\s?(String|boolean|int|RegExp|Array|Date)(\W))/gim.test(e)&&(e=e.replace(/(:\s?(String|boolean|int|RegExp|Array|Date)(\W))*/gimu,"$3")),/=?/.test(e)&&(e=e.replace(/=?/,"")),e}const N6=["BASE_NATIONALE","BASE_NATIONALE_QUALIFIEE","DESCRIPTION_1","LVL","TABD","OID1","OID2","OID3","PERIODE_REF","ROW_HEIGHT","PADDING","FONTSIZE","FONTWEIGHT","BORDER_THICK","COLOR","BKGD_COLOR","CODE","CODE_2","TEXTE","VIEWLINK","VIEWLINK_PARAM","LASTERR","LASTERR_2","DESCRIPTION_1","FORMAT_1","FORMATT_1","FORMATTM_1","FORMATMM_1","FORMATTB_1","PICTO_1","PICTOMP_1","PICTOMM_1","PICTOB_1","FORMATTBM_1","PICTOBM_1","DESCRIPTION_2","FORMAT_2","FORMATT_2","FORMATTM_2","FORMATMM_2","FORMATTB_2","PICTO_2","PICTOMP_2","PICTOMM_2","PICTOB_2","FORMATTBM_2","PICTOBM_2","DESCRIPTION_3","FORMAT_3","FORMATT_3","FORMATTM_3","FORMATMM_3","FORMATTB_3","PICTO_3","PICTOMP_3","PICTOMM_3","PICTOB_3","FORMATTBM_3","PICTOBM_3","DESCRIPTION_4","FORMAT_4","FORMATT_4","FORMATTM_4","FORMATMM_4","FORMATTB_4","PICTO_4","PICTOMP_4","PICTOMM_4","PICTOB_4","FORMATTBM_4","PICTOBM_4","DESCRIPTION_5","FORMAT_5","FORMATT_5","FORMATTM_5","FORMATMM_5","FORMATTB_5","PICTO_5","PICTOMP_5","PICTOMM_5","PICTOB_5","FORMATTBM_5","PICTOBM_5","DESCRIPTION_6","FORMAT_6","FORMATT_6","FORMATTM_6","FORMATMM_6","FORMATTB_6","PICTO_6","PICTOMP_6","PICTOMM_6","PICTOB_6","FORMATTBM_6","PICTOBM_6","DESCRIPTION_7","FORMAT_7","FORMATT_7","FORMATTM_7","FORMATMM_7","FORMATTB_7","PICTO_7","PICTOMP_7","PICTOMM_7","PICTOB_7","FORMATTBM_7","PICTOBM_7","DESCRIPTION_8","FORMAT_8","FORMATT_8","FORMATTM_8","FORMATMM_8","FORMATTB_8","PICTO_8","PICTOMP_8","PICTOMM_8","PICTOB_8","FORMATTBM_8","PICTOBM_8","DESCRIPTION_9","FORMAT_9","FORMATT_9","FORMATTM_9","FORMATMM_9","FORMATTB_9","PICTO_9","PICTOMP_9","PICTOMM_9","PICTOB_9","FORMATTBM_9","PICTOBM_9","PICTO_NAP100MCO","PICTO_NRP100MCO","PICTO_NUP100MCO","PICTO_NAP200MCO","PICTO_NRP200MCO","PICTO_NUP200MCO","PICTO_NAP300MCO","PICTO_NRP300MCO","PICTO_NUP300MCO","FORMAT_NAP100MCO","FORMAT_NRP100MCO","FORMAT_NUP100MCO","FORMAT_NAP200MCO","FORMAT_NRP200MCO","FORMAT_NUP200MCO","FORMAT_NAP300MCO","FORMAT_NRP300MCO","FORMAT_NUP300MCO","RAPPORT_ONGLET"],Wnt=20;function Xnt(e){const t=JSON.parse(JSON.stringify(e));let r=[];Object.values(t).forEach(a=>{$nt(a.datagrid.columns),Object.values(a.datagrid.columns).forEach(i=>{r.push(i)})});const n=cl(r,({dataField:a})=>a);return Object.values(n).forEach(a=>{let i=[];a.forEach(o=>{for(const s in o)s!=="width"&&delete a[s];i.push(o.width)}),a.width=Math.max(...i)}),n}function qnt(e,t){let r=300;const n=JSON.parse(JSON.stringify(t)),i=(Object.values(n)[0]?.data??[]).map(o=>(N6.map(s=>(delete o[s],s)),o));if(!N6.includes(e.dataField)){const o=eat(e,i);o&&(r=o*Wnt)}return r<80?r=80:r>300&&(r=400),r}function Znt(e,t,r){let n=150,a=e?.width,i=parseInt(e?.minWidth);return!a&&!i||(/^=/gm.test(a)&&(a=ca(a,t,null,null,r)),parseInt(a)&&(n=parseInt(a)),i&&i>n&&(n=i)),n}function $nt(e){return N6.map(t=>(delete e[t],t)),e}function eat(e,t){let r=cl(t,e.dataField);const i=Object.keys(r).map(s=>{if(!s||s.toLowerCase()==="undefined")return 0;if(isNaN(s))return s;let l=Number(s);return Math.floor(l)}).map(s=>s.toString().length);return Math.max(...i)}function tat(e,t,r){const n=yee(e,t,e.dataField),a=yee(r,t,r.dataField);return rat(n,a)}function yee(e,t,r){let n=[];const a=JSON.parse(JSON.stringify(t));return n=(Object.values(a)[0]?.data??[]).map(s=>s[r]).map(s=>Number(s)),n}function rat(e,t){let r=[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){let a;e[n]>t[n]?a="+":e[n]<t[n]?a="-":e[n]===t[n]&&(a="="),r.push(a)}return r}function nat(e,t,r){let n;if(e.tendencyPictogram=t.arrayComparison[r],e.sanitizedText==="-")return[];switch(e.tendencyPictogram){case"+":n=["triangle_up"];break;case"-":n=["triangle_down"];break;case"=":n=["equal"];break;default:n=[]}return n}const Cee=e=>{const t=e[0];let r=e[3],n;if(t)switch(t){case"femme":n="&#9792",r=Mn.pink;break;case"homme":n="&#9794;",r=Mn.lightBlue;break;case"triangle_down":n="&#9660;",r=Mn.red;break;case"triangle_up":n="&#9650;",r=Mn.green;break;case"rectangle":n="&#8213;";break;case"circle":n="&#9679;";break;case"equal":n="&#61;",r=Mn.lightBlue;break;default:n="&#10006;";break}return{style:{color:r,fontSize:"14px",paddingRight:"5px",float:"left"},html:n}};function aat(e,t,r){let n=e;return/=/.test(e)&&(n=n.replace(/=/gm,""),n=ca(n,t,null,null,r)),n}function iat(e){let t=!1;return e.dataField==="COD"||e.dataField==="COD1"||e.dataField==="TXT"||e.dataField==="TXT1"||e.dataField==="N"?t="left":e.frozen&&(t=e.frozen),t}const oat=(e,t={},r)=>{if(!e.description)return"";if(e.description.trim().slice(0,1)==="="){let a=e.description.replace(/=/,"");return ca(a,t,null,null,r).toString()}else return e.description};function sat(e){let t={};return e.textAlign!==void 0&&(t.textAlign=e.textAlign),t}function lat(e){let t="";return e.cellStyles&&e.cellStyles.forEach(r=>{r.name==="border_thickness"&&r.value==="1"&&(e.dataField==="NB0001"?t="firstColumnHeaderStyle":t="columnHeaderStyle")}),t}const cat=e=>{const t=i=>(i.reduce((s,l)=>{const c=l.titleText||"",A=(c.match(/<br>/g)||[]).length,u=(c.match(/@LF@/g)||[]).length,d=A+u;return Math.max(s,d)},0)+1)*30,n=(i=>{const o=i.every(c=>!c.headerText)?0:50,l=[...document.querySelectorAll(".col-header-height-detect")].reduce((c,A)=>A.offsetHeight>c?A.offsetHeight:c,0);return l*2>o?l*2:o})(e),a=t(e);return n>a?n:a};var V8,wee;function IU(){if(wee)return V8;wee=1;var e=b4(),t=ex(),r=Object.prototype,n=r.hasOwnProperty;function a(i,o,s){var l=i[o];(!(n.call(i,o)&&t(l,s))||s===void 0&&!(o in i))&&e(i,o,s)}return V8=a,V8}var J8,Bee;function Aat(){if(Bee)return J8;Bee=1;var e=IU(),t=t7(),r=BQ(),n=mc(),a=rx();function i(o,s,l,c){if(!n(o))return o;s=t(s,o);for(var A=-1,u=s.length,d=u-1,f=o;f!=null&&++A<u;){var h=a(s[A]),g=l;if(h==="__proto__"||h==="constructor"||h==="prototype")return o;if(A!=d){var p=f[h];g=c?c(p,h,f):void 0,g===void 0&&(g=n(p)?p:r(s[A+1])?[]:{})}e(f,h,g),f=f[h]}return o}return J8=i,J8}var W8,xee;function uat(){if(xee)return W8;xee=1;var e=Aat();function t(r,n,a){return r==null?r:e(r,n,a)}return W8=t,W8}var dat=uat();const fat=gn(dat),hat=e=>{const t=sl.getState();let r=!0;switch(e){case"ENV.TYPEETS != '1'":r=t.cti.settings.data.environment.TYPEETS!=="1";break;case"ENV.PMSISSRPROVIDER != ''":r=t.cti.settings.data.environment.PMSISSRPROVIDER!=="";break;case"ENV.RHPROVIDER != 'shspub'":r=t.cti.settings.data.environment.RHPROVIDER!=="shspub";break;case"ENV.RHPROVIDER == 'shspub'":r=t.cti.settings.data.environment.RHPROVIDER==="shspub";break}return r};function XCe(e){try{let t=e,r=[];r=Hf(e,r);let n=cl(r,a=>a.option.value);for(let a in n)n[a]=n[a].sort((i,o)=>i.position.length-o.position.length);return Object.values(n).forEach(a=>{if(a.length>1)for(let i=0;i<a.length-1;i++){const o=a[i].position;let s={...a[i].option};s.value="jsx-"+i+"_"+s.value,fat(t,o,s)}}),t}catch(t){Ki(8202,"",t)}}function Hf(e,t,r=0,n=[]){return e.forEach((a,i)=>{let o=[...n,i.toString()],s={option:a,position:o};a.children&&(o=[...o,"children"],t.concat(Hf(a.children,t,r++,o)),s.children=null),t.push(s)}),t.reverse()}function Sx(e){let t=[];return e.forEach(r=>{t.push(r),r.children&&(t=[...t,...Sx(r.children)])}),t}function um(e,t=!0,r=!1){if(!e.length)return e;let n=e.map(o=>({...o,value:o.data,treeLevel:Number(o.treeLevel),disabled:o.data==="-8"}));n=n.filter(o=>o.condition?hat(o.condition):!0);let a=[];const i=n[0]?.treeLevel;return i&&n.forEach((o,s)=>{const l=o.treeLevel;let c=s!==0?n[s-1]:null;if(l===i)o.parentId=null;else if(l>c.treeLevel)o.parentId=s-1;else if(l===c.treeLevel)o.parentId=c.parentId;else if(l<c.treeLevel){const A=n.slice(0,s-1);let u;A.forEach(d=>{d.treeLevel===l&&(u=d)}),o.parentId=u?.parentId}}),n.forEach(o=>{if(o.parentId===null){(r||o.label!=="")&&a.push(o);return}const s=n[o.parentId];s&&(s.children=[...s.children||[],o])}),t?XCe(a):a}function mB(e,t){let r;for(let n=0;n<t.length;n++){const a=t[n];a.children&&(a.children.some(i=>i.key===e)?r=a.key:mB(e,a.children)&&(r=mB(e,a.children)))}return r}function gat(e,t,r=[]){for(let n=0;n<t.length;n++){const a=t[n];a.children&&(a.children.some(i=>i.key===e)?r.push(a.key):mB(e,a.children)&&(r.push(a.key),r.push(mB(e,a.children))))}return r}function bU(e,t=[]){if(e&&e!==null)for(let r=0;r<e.length;r++){const n=e[r],{key:a,title:i}=n;t.push({key:a,title:i}),n.children&&bU(n.children,t)}return t}function pat(e,t,r){return Object.values(e).forEach(function(a){let i=!0;a.visibleCondition!==void 0&&(i=ca(a.visibleCondition,t,null,null,r)),a.visible=i;let o=Object.values(a.datagrid.columns).map(A=>A.dataField);a.datagrid.forceColonnes&&a.datagrid.forceColonnes!==""&&(o=a.datagrid.forceColonnes.split("|")),t?.desc?.attributes?.isFavorite==="true"&&(o=Object.values(a?.datagrid?.columns).sort((u,d)=>Number(u?.forcePosition)-Number(d?.forcePosition)).map(u=>u.dataField)),Object.values(a.datagrid.columns).forEach(function(u,d){if(u.order=o.indexOf(u.dataField),u.visible=u.visible!=="false",u.selectable=u.selectable==="true",u.symbols=u.cellStyles?u.cellStyles.filter(f=>f.name==="cellIndicator"):[],u.flexGrow=u.width===""||!u.width?1:0,a.excelLabel==="Essentiel"){u.width=qnt(u,a.similitabs);const f=Xnt(e);Object.keys(f).forEach(h=>{u.dataField===h&&(u.width=f[h].width)})}else u.width=Znt(u,t,r);if(u.sortable=a.datagrid.sortable,u.key=u.dataField,u.hidden=u.hide==="true"?!0:!u.visible,u.minWidth=u.minWidth?Number(u.minWidth):Number(u.width)<50?Number(u.width):50,u.NAME=u.dataField,u.DATA=u.columnData?aat(u.columnData,t,r):"",u.dataKey=u.dataField,u.description=oat(u,t,r),u.resizable=!0,u.ellipsis=!0,u.rawStyles=mat(u,a.datagrid.rowStyles),u.style=sat(u),u.headerClassName=lat(u),u.titleText=yat(u,t,r),u.frozen=iat(u),u.calc=u.calc==="true",u.comparedIndicatorId&&u.comparedIndicatorId!=="0"){let f={};Object.values(a.datagrid.columns).forEach(g=>{g.indicatorId===u.comparedIndicatorId&&(f=g)}),u.arrayComparison=tat(u,a.similitabs,f)}delete u.maxWidth});const s=Object.values(a.datagrid.columns),l=s.length;let c=a.datagrid.totalRowInRows;c&&(c=c.replace(/=/,"")),Object.values(a.similitabs).forEach(function(u){let d={},f=u.data;const h=f.length;let g=[],p={};p=u.data.filter(y=>{if(c)try{return window.ROW=y,vB(c)}catch(C){return console.log(c),console.log(C),!0}return!1})[0];for(let y=0;y<h;y++){const C=f[y];let w={key:y};if(C){C.TABD&&(w.TABD=C.TABD);for(let B=0;B<l;B++){const x=s[B];if(x.visible||x.calc){let M=C[x.dataKey],S={...C};if(x.calc){let _;if(x.type==="Number")if(x.calcs.length>1)if(x.calcs[0].condition){const P=x.calcs.find(k=>ca(k.condition,t,S,null,r));P&&(_=P.formula.replace(/(ROW|TOTALROW)\.([A-Z0-9_]+)?/g,"Number($1.$2)"))}else _=qCe(x.calcs);else x.calcs[0].formula&&(_=x.calcs[0].formula.replace(/(ROW|TOTALROW)\.([A-Z0-9_]+)?/g,"Number($1.$2)"),_.includes("return")||(_=_.replace(/{/gi,"{return ")));if(_){for(let P in w)w[P].sanitizedText?S[P]=w[P].text:S[P]=w[P];M=ca(_,t,S,p,r).toString(),w[x.dataKey]=M,S[x.dataKey]=M}}let R="",b={},T={};if(!M&&(!x.symbols||x.symbols&&!x.symbols.length))x.type==="Number"?T={text:"",sanitizedText:S?.CODE==="CTI_SEP"?"":"-",symbol:null}:T={text:"",sanitizedText:"",symbol:null};else{let _=x.outputFormat,P=C.outputFormat;if(_&&_!==""){let j=x.outputFormat.trim();/^=/gm.test(j)&&(j=ca(j,t,C,null,r)),R=TR({type:x.type,format:j,inputFormat:x.inputFormat,outputFormat:x.outputFormat,data:M,viewTitle:t.run.title}),x.type==="Number"&&R==="-"&&S?.CODE==="CTI_SEP"&&(R=""),["Number","Date","Interval","Tps_deci"].includes(x.type)||(R=M)}else x.dataKey==="VAL"&&P&&P!==""?R=TR({type:C.type,format:C.outputFormat,inputFormat:C.inputFormat,outputFormat:C.outputFormat,data:M,viewTitle:t.run.title}):R=M;M&&(M=M.replace(/ /g,""));let k=[];x.symbols&&C.symbols?k=x.symbols.concat(C.symbols):x.symbols?k=x.symbols:C.symbols&&(k=C.symbols),k.length&&k.forEach(j=>{if(ca(j.condition,t,S,null,r)&&(!j.column||j.column===x.dataField)&&(b=j.value,b.trim().slice(0,1)==="="&&(b=ca(b.trim().slice(1),t,S,null,r)),b)){const Y=b.split(",");b=Cee(Y)}}),T={text:M,sanitizedText:R,symbol:b}}if(x.comparedIndicatorId&&x.comparedIndicatorId!=="0"){let _=nat(T,x,y);T.symbol=Cee(_)}let D="";const F=Eat(x,S,t,r);let N=Object.keys(d).filter(function(P){return xo(d[P],F)});N.length?D=N[0]:(d[`Cell${B}-${y}`]=F,D=`Cell${B}-${y}`),T.class=D,w[x.dataKey]=T}else w[x.dataKey]=C[x.dataKey]?C[x.dataKey]:""}g.push(w)}}u.styles=d,u.data=g}),Object.values(a.similitabs).forEach(function(u){u.data.map(d=>{for(let f in d)switch(f){case"VIEWLINK_PARAM":d[f]&&(d[f]=vat(d[f],t,r));break}return d})})}),Object.values(e).forEach(n=>{let a=n.datagrid.totalRowInRows;a&&(a=a.replace(/=/,""));let i=n.datagrid.otherRowInRows??"";i!==""&&(i=i.replace(/=/,""),a+=`|| ${i}`);let o=n.datagrid.selectRowInRows??"";o!==""&&(o=o.replace(/=/,""),a+=`|| ${o}`),Object.values(n.similitabs).forEach(s=>{s.data=mze(s.data,l=>{window.ROW={};for(let c in l)window.ROW[c]=l?.[c].text?l[c].text:l[c];if(a)try{return!vB(a)}catch(c){return console.log(`return ${a}`),console.log(c),!0}return!0})})}),e}function vat(e,t,r){let n={};return e.split("&").forEach(i=>{const[o,...s]=i.split("="),l=s.join("=");let c=l;/VIEW|SELECT/.test(l)&&!/DATACOL/.test(o)&&(c=ca(l,t,null,null,r)),c&&(n[o]=c)}),n}function mat(e,t){let r=[];return t&&t.length>0&&t.forEach(function(a){if(!DJ.find(function(o){return xo(o,a)})){let i=a.value;i=i.replace("0x","#"),!isNaN(Number(a.value))&&!i.includes("#")&&(i+="px"),r.push({name:a.name,value:i,condition:a.condition||!0})}}),e.cellStyles&&e.cellStyles.forEach(n=>{if(!DJ.find(a=>xo(a,n))){let a=n.value;a=a.replace("0x","#"),!isNaN(Number(n.value))&&!a.includes("#")&&(a+="px"),r.push({name:n.name,value:a,condition:n.condition||!0})}}),r}const Eat=(e,t,r,n)=>{let a={height:"100%",width:"100%",paddingLeft:"7.5px",paddingRight:"7.5px",lineHeight:"25px",overflow:"hidden",textOverflow:"ellipsis"};return e.rawStyles.forEach(function(o){if(o.condition===!0||ca(o.condition,r,t,null,n)){let s=o.name.replace(/([A-Z])/g,"-$1").toLowerCase(),l=o.value;switch(/=/.test(o.value)&&(l=ca(o.value,r,t,null,n)),isNaN(l)||(l=`${l}px`),s){case"border_thickness":if(l==="1px"){const u=["left","right"];t.TXT==="TOTAL"&&u.push("bottom"),u.forEach(d=>{d==="left"&&e.key==="NB0001"?a["border-left"]="2px solid !important":a[`border-${d}`]="1px solid !important"})}break;case"border-thickness":const c=["top","bottom"],A=["left","right"];c.forEach(u=>a[`border-${u}`]="1px solid !important"),A.forEach(u=>a[`border-${u}`]="0px !important");break;case"background-color":if(l.length<7){const u=7-l.length;let d="#";for(let f=0;f<u;f++)d=d+"0";d=d+l.replace("#","").replace("0x",""),l=`${d.substring(0,7)}`}l=`${l} !important`;break;case"color":if(l.length<7){const u=7-l.length;let d="#";for(let f=0;f<u;f++)d=d+"0";d=d+l.replace("#","").replace("0x",""),l=`${d.substring(0,7)}`}else l=`${l}`;break}a[s]=l}}),a},SU=e=>{let t=[];return e&&Object.values(e).forEach(r=>{r.selections&&r.selections.forEach(n=>{t.push(n)})}),t};function yat(e,t,r){let n="";return e.headerTextCalc==="true"?n=ca(e.headerText,t,null,null,r):n=e.headerText,n=n?n.replace(/NaN/gm,"").replace(/@LF@/gm,"<br>"):"",n}function qCe(e){let t="";return e.forEach(r=>{r.operator&&r.operator!=="%+"&&(t=t+`${r.operator}`),r.dataField&&(r.dataField==="*calc"?t=t+`(${qCe(r.calcs)})`:r.dataField==="*constant"?t=t+`${r.value}`:r.operator==="%+"?t=`((ROW.${r.dataField} - ${t}) / ${t}) * 100`:t=t+`ROW.${r.dataField}`)}),t=t.replace(/(ROW|TOTALROW)\.([A-Z0-9_]+)?/g,"Number($1.$2)"),t.includes("return")||(t=t.replace(/{/gi,"{return ")),t}function S4(e){const r=sl.getState().cti.globals,n=e.desc.selections,a=PY(n);let i={...e.run.args},o={...e.run.properties},s={};return a.forEach(l=>{if((l.name==="PERIODE"||l.name==="TOPERIODE")&&i.ALIAS_PERIODE)return;let c=i[l.name]??l.value,A=l.treeData;A||(A=[],l.options&&l.options.length?l.options.forEach(f=>{A=A.concat(ZCe(f,r))}):l.globalListProvider&&(A=A.concat(RU(l.globalListProvider,r)))),A=Hf(A,[]).reverse();let u=A.find(f=>f.option.data===c);u||(u=A[0]);const d=u?u.option.label:l.label;s[l.name]=c,c.substring(0,2)==="C*"||c.substring(0,2)==="T*"?s[`${l.name}_LABEL`]=c.slice(2):s[`${l.name}_LABEL`]=d;for(let f=2;f<=6;f++){const h=u&&u.option["data"+f]?u.option["data"+f]:"";s[`${l.name}${f}`]=h}if(l.UI==="numberInterval"&&(s[`${l.name}2`]=i[`${l.name}2`]),l.name==="ALIAS_PERIODE"){let f=i.PERIODE,h=i.TOPERIODE;u?.option?.value&&u?.option?.value!=="-1"&&(f=u.option?.data2??i.PERIODE,h=u.option?.data3??i.TOPERIODE);const g=a.find(m=>m.name==="PERIODE"),p=a.find(m=>m.name==="TOPERIODE");if(g){let m=g.treeData;m=Hf(m,[]).reverse();let y=m.find(C=>C.option.data===f);y?(s.PERIODE=y.option.label?y.option.data:f,s.PERIODE_LABEL=y.option.label?y.option.label:u.option.data2):(s.PERIODE=f,s.PERIODE_LABEL=f)}if(p){let m=p.treeData;m=Hf(m,[]).reverse();let y=m.find(C=>C.option.data===h);y?(s.TOPERIODE=y.option.label?y.option.data:h,s.TOPERIODE_LABEL=y.option.label?y.option.label:h):(s.TOPERIODE=h,s.TOPERIODE_LABEL=h)}}}),{SELECT:s,VIEW:o}}const Cat=(e,t)=>{const r=sl.getState();let n=[];return Object.values(e).forEach(i=>{i.group.forEach(o=>{o.field&&(n=[...n,...o.field]),o.group&&o.group.forEach(s=>{n=[...n,...s.field]})})}),n.filter(i=>i.UI==="combo").forEach(i=>{i.treeData=wat(i,r.cti.globals,t)}),e};function wat(e,t,r={}){let n=[];e.options&&e.options.length?e.options.forEach(i=>{n=n.concat(ZCe(i,t))}):e.globalListProvider&&(n=n.concat(RU(e.globalListProvider,t))),r.CONTEXTE&&(n=n.filter(i=>!i.contexte||i.contexte===r.CONTEXTE));const a=XCe(n);return $Ce(a)}function ZCe(e,t){let r=[];if(!e.globalListProvider)r.push(e);else{let n=RU(e.globalListProvider,t);r=r.concat(n)}return r}function RU(e,t){const r=t.data.providers,n=r?.[e]?r[e]:null;return n&&n!==null?n.children:(n||Ki(8102,e),[])}function $Ce(e,t=[]){return e.map(r=>(r.parentKeys=t,r.children&&(t=[...t,r.value],r.children=$Ce(r.children,t),t=[]),delete r.key,r))}const Bat=e=>e.replace(/\s+/g," "),xat=e=>{for(let t in e)e[t]==="true"&&(e[t]=!0),e[t]==="false"&&(e[t]=!1);return e};function Mat(e){let t=l0(e.getElementsByTagName("SESSION")[0]),r=l0(e.getElementsByTagName("ENVIRONMENT")[0]),n=l0(e.getElementsByTagName("MAP")[0]),a=l0(e.getElementsByTagName("CHART")[0]),i=l0(e.getElementsByTagName("VERSION")[0]);const o=l0(e.getElementsByTagName("USERDISPLAYSETTINGS")[0]),s=o?.homePageDefaultModule??"accueil",l=o?.showGraphs??"always",c=o?.spreadSheetEditor??"EXCEL",A=o?.spreadSheetSeparator??";",u=o?.pmsiDefaultModule??null,d=o?.primaryColor??"#FF8801",f=o?.expandedRows??"ouvert",h={primaryColor:d},g={homePageDefaultModule:s,showGraphs:l,spreadSheetEditor:c,spreadSheetSeparator:A,pmsiDefaultModule:u,expandedRows:f},p={session:t,environment:r,map:n,chart:a,version:i,userDisplaySettings:o};return p.session===void 0?console.log("SETTINGS.SESSION is undefined"):xat(p.session),{uiSettings:h,settings:p,userSettings:g}}function l0(e){if(e===void 0)return;let t={};for(var r=0;r<e.getElementsByTagName("PROPERTY").length;r++){let n=Iat(e.getElementsByTagName("PROPERTY")[r]);t[n.name]=n.value}return t}function Iat(e){let t={};for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];[void 0,""].includes(n)||(t[n.name]=n.value)}return t}const ewe=()=>{let e=Ii();return async function(t,r){t(vV(!0));try{const n=await To({url:e+"modules/base/php/httpService_loader_getSettings.php",method:"get",responseType:"arraybuffer"}),a=Pg(n.data),{uiSettings:i,settings:o,userSettings:s}=Mat(a);t(Cge(i.primaryColor)),t(d8e(o)),t(Mge(s)),t(u8e(s.showGraphs))}catch(n){console.log(n)}t(vV(!1))}},twe=()=>{const e=Ii(),t=window.location.hostname;document.cookie=`CTISESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e.slice(0,-1)};`,document.cookie=`CTISESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e};`,document.cookie=`PHPSESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e.slice(0,-1)};`,document.cookie=`PHPSESSID= ; expires=Thu, 01 Jan 1970 00:00:00 GMT: domain=${t}; path=${e};`,window.location.reload()};function Mee(e,t,r,n,a,i){return async function(o,s){n(!0);let l=new FormData;l.append("profile",e),l.append("password",t),l.append("forceClientName",r);try{const c=await To({method:"post",url:Ii()+"modules/base/php/checkProfile.php",data:l,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});let A=Pg(c.data),u=bat(A);if(u.code==="OK")a(!0);else throw n(!1),i(u),new Error(u.code)}catch(c){console.log(c)}}}function bat(e){return Yr(e.getElementsByTagName("HTTP_SERVICE")[0].getElementsByTagName("RETURN")[0])}const Xr=({children:e,title:t,...r})=>v.jsx(Mi,{...r,mouseEnterDelay:1,title:t?v.jsx("div",{style:{width:"100%"},dangerouslySetInnerHTML:{__html:t}}):null,children:e});var X8,Iee;function Sat(){if(Iee)return X8;Iee=1;function e(s){return s&&typeof s=="object"&&"default"in s?s.default:s}var t=Ur(),r=e(t);function n(s,l,c){return l in s?Object.defineProperty(s,l,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[l]=c,s}function a(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var i=!!(typeof window<"u"&&window.document&&window.document.createElement);function o(s,l,c){if(typeof s!="function")throw new Error("Expected reducePropsToState to be a function.");if(typeof l!="function")throw new Error("Expected handleStateChangeOnClient to be a function.");if(typeof c<"u"&&typeof c!="function")throw new Error("Expected mapStateOnServer to either be undefined or a function.");function A(u){return u.displayName||u.name||"Component"}return function(d){if(typeof d!="function")throw new Error("Expected WrappedComponent to be a React component.");var f=[],h;function g(){h=s(f.map(function(m){return m.props})),p.canUseDOM?l(h):c&&(h=c(h))}var p=(function(m){a(y,m);function y(){return m.apply(this,arguments)||this}y.peek=function(){return h},y.rewind=function(){if(y.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var B=h;return h=void 0,f=[],B};var C=y.prototype;return C.UNSAFE_componentWillMount=function(){f.push(this),g()},C.componentDidUpdate=function(){g()},C.componentWillUnmount=function(){var B=f.indexOf(this);f.splice(B,1),g()},C.render=function(){return r.createElement(d,this.props)},y})(t.PureComponent);return n(p,"displayName","SideEffect("+A(d)+")"),n(p,"canUseDOM",i),p}}return X8=o,X8}var Rat=Sat();const Tat=gn(Rat);var q8,bee;function Qat(){if(bee)return q8;bee=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(i,o){if(i===o)return!0;if(i&&o&&typeof i=="object"&&typeof o=="object"){if(i.constructor!==o.constructor)return!1;var s,l,c;if(Array.isArray(i)){if(s=i.length,s!=o.length)return!1;for(l=s;l--!==0;)if(!a(i[l],o[l]))return!1;return!0}var A;if(t&&i instanceof Map&&o instanceof Map){if(i.size!==o.size)return!1;for(A=i.entries();!(l=A.next()).done;)if(!o.has(l.value[0]))return!1;for(A=i.entries();!(l=A.next()).done;)if(!a(l.value[1],o.get(l.value[0])))return!1;return!0}if(r&&i instanceof Set&&o instanceof Set){if(i.size!==o.size)return!1;for(A=i.entries();!(l=A.next()).done;)if(!o.has(l.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(i)&&ArrayBuffer.isView(o)){if(s=i.length,s!=o.length)return!1;for(l=s;l--!==0;)if(i[l]!==o[l])return!1;return!0}if(i.constructor===RegExp)return i.source===o.source&&i.flags===o.flags;if(i.valueOf!==Object.prototype.valueOf&&typeof i.valueOf=="function"&&typeof o.valueOf=="function")return i.valueOf()===o.valueOf();if(i.toString!==Object.prototype.toString&&typeof i.toString=="function"&&typeof o.toString=="function")return i.toString()===o.toString();if(c=Object.keys(i),s=c.length,s!==Object.keys(o).length)return!1;for(l=s;l--!==0;)if(!Object.prototype.hasOwnProperty.call(o,c[l]))return!1;if(e&&i instanceof Element)return!1;for(l=s;l--!==0;)if(!((c[l]==="_owner"||c[l]==="__v"||c[l]==="__o")&&i.$$typeof)&&!a(i[c[l]],o[c[l]]))return!1;return!0}return i!==i&&o!==o}return q8=function(o,s){try{return a(o,s)}catch(l){if((l.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw l}},q8}var Dat=Qat();const Fat=gn(Dat);var Nat=fQ();const _at=gn(Nat);var bv={BODY:"bodyAttributes",HTML:"htmlAttributes",TITLE:"titleAttributes"},Kn={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"};Object.keys(Kn).map(function(e){return Kn[e]});var wi={CHARSET:"charset",CSS_TEXT:"cssText",HREF:"href",HTTPEQUIV:"http-equiv",INNER_HTML:"innerHTML",ITEM_PROP:"itemprop",NAME:"name",PROPERTY:"property",REL:"rel",SRC:"src",TARGET:"target"},ET={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},EB={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate"},kat=Object.keys(ET).reduce(function(e,t){return e[ET[t]]=t,e},{}),Pat=[Kn.NOSCRIPT,Kn.SCRIPT,Kn.STYLE],ru="data-react-helmet",Oat=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jat=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},zat=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})(),Ml=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lat=function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},See=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},Yat=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e},_6=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return r===!1?String(t):String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")},Uat=function(t){var r=bE(t,Kn.TITLE),n=bE(t,EB.TITLE_TEMPLATE);if(n&&r)return n.replace(/%s/g,function(){return Array.isArray(r)?r.join(""):r});var a=bE(t,EB.DEFAULT_TITLE);return r||a||void 0},Hat=function(t){return bE(t,EB.ON_CHANGE_CLIENT_STATE)||function(){}},Z8=function(t,r){return r.filter(function(n){return typeof n[t]<"u"}).map(function(n){return n[t]}).reduce(function(n,a){return Ml({},n,a)},{})},Gat=function(t,r){return r.filter(function(n){return typeof n[Kn.BASE]<"u"}).map(function(n){return n[Kn.BASE]}).reverse().reduce(function(n,a){if(!n.length)for(var i=Object.keys(a),o=0;o<i.length;o++){var s=i[o],l=s.toLowerCase();if(t.indexOf(l)!==-1&&a[l])return n.concat(a)}return n},[])},j1=function(t,r,n){var a={};return n.filter(function(i){return Array.isArray(i[t])?!0:(typeof i[t]<"u"&&Wat("Helmet: "+t+' should be of type "Array". Instead found type "'+Oat(i[t])+'"'),!1)}).map(function(i){return i[t]}).reverse().reduce(function(i,o){var s={};o.filter(function(d){for(var f=void 0,h=Object.keys(d),g=0;g<h.length;g++){var p=h[g],m=p.toLowerCase();r.indexOf(m)!==-1&&!(f===wi.REL&&d[f].toLowerCase()==="canonical")&&!(m===wi.REL&&d[m].toLowerCase()==="stylesheet")&&(f=m),r.indexOf(p)!==-1&&(p===wi.INNER_HTML||p===wi.CSS_TEXT||p===wi.ITEM_PROP)&&(f=p)}if(!f||!d[f])return!1;var y=d[f].toLowerCase();return a[f]||(a[f]={}),s[f]||(s[f]={}),a[f][y]?!1:(s[f][y]=!0,!0)}).reverse().forEach(function(d){return i.push(d)});for(var l=Object.keys(s),c=0;c<l.length;c++){var A=l[c],u=_at({},a[A],s[A]);a[A]=u}return i},[]).reverse()},bE=function(t,r){for(var n=t.length-1;n>=0;n--){var a=t[n];if(a.hasOwnProperty(r))return a[r]}return null},Kat=function(t){return{baseTag:Gat([wi.HREF,wi.TARGET],t),bodyAttributes:Z8(bv.BODY,t),defer:bE(t,EB.DEFER),encode:bE(t,EB.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Z8(bv.HTML,t),linkTags:j1(Kn.LINK,[wi.REL,wi.HREF],t),metaTags:j1(Kn.META,[wi.NAME,wi.CHARSET,wi.HTTPEQUIV,wi.PROPERTY,wi.ITEM_PROP],t),noscriptTags:j1(Kn.NOSCRIPT,[wi.INNER_HTML],t),onChangeClientState:Hat(t),scriptTags:j1(Kn.SCRIPT,[wi.SRC,wi.INNER_HTML],t),styleTags:j1(Kn.STYLE,[wi.CSS_TEXT],t),title:Uat(t),titleAttributes:Z8(bv.TITLE,t)}},k6=(function(){var e=Date.now();return function(t){var r=Date.now();r-e>16?(e=r,t(r)):setTimeout(function(){k6(t)},0)}})(),Ree=function(t){return clearTimeout(t)},Vat=typeof window<"u"?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||k6:global.requestAnimationFrame||k6,Jat=typeof window<"u"?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||Ree:global.cancelAnimationFrame||Ree,Wat=function(t){return console&&typeof console.warn=="function"&&console.warn(t)},z1=null,Xat=function(t){z1&&Jat(z1),t.defer?z1=Vat(function(){Tee(t,function(){z1=null})}):(Tee(t),z1=null)},Tee=function(t,r){var n=t.baseTag,a=t.bodyAttributes,i=t.htmlAttributes,o=t.linkTags,s=t.metaTags,l=t.noscriptTags,c=t.onChangeClientState,A=t.scriptTags,u=t.styleTags,d=t.title,f=t.titleAttributes;P6(Kn.BODY,a),P6(Kn.HTML,i),qat(d,f);var h={baseTag:c0(Kn.BASE,n),linkTags:c0(Kn.LINK,o),metaTags:c0(Kn.META,s),noscriptTags:c0(Kn.NOSCRIPT,l),scriptTags:c0(Kn.SCRIPT,A),styleTags:c0(Kn.STYLE,u)},g={},p={};Object.keys(h).forEach(function(m){var y=h[m],C=y.newTags,w=y.oldTags;C.length&&(g[m]=C),w.length&&(p[m]=h[m].oldTags)}),r&&r(),c(t,g,p)},rwe=function(t){return Array.isArray(t)?t.join(""):t},qat=function(t,r){typeof t<"u"&&document.title!==t&&(document.title=rwe(t)),P6(Kn.TITLE,r)},P6=function(t,r){var n=document.getElementsByTagName(t)[0];if(n){for(var a=n.getAttribute(ru),i=a?a.split(","):[],o=[].concat(i),s=Object.keys(r),l=0;l<s.length;l++){var c=s[l],A=r[c]||"";n.getAttribute(c)!==A&&n.setAttribute(c,A),i.indexOf(c)===-1&&i.push(c);var u=o.indexOf(c);u!==-1&&o.splice(u,1)}for(var d=o.length-1;d>=0;d--)n.removeAttribute(o[d]);i.length===o.length?n.removeAttribute(ru):n.getAttribute(ru)!==s.join(",")&&n.setAttribute(ru,s.join(","))}},c0=function(t,r){var n=document.head||document.querySelector(Kn.HEAD),a=n.querySelectorAll(t+"["+ru+"]"),i=Array.prototype.slice.call(a),o=[],s=void 0;return r&&r.length&&r.forEach(function(l){var c=document.createElement(t);for(var A in l)if(l.hasOwnProperty(A))if(A===wi.INNER_HTML)c.innerHTML=l.innerHTML;else if(A===wi.CSS_TEXT)c.styleSheet?c.styleSheet.cssText=l.cssText:c.appendChild(document.createTextNode(l.cssText));else{var u=typeof l[A]>"u"?"":l[A];c.setAttribute(A,u)}c.setAttribute(ru,"true"),i.some(function(d,f){return s=f,c.isEqualNode(d)})?i.splice(s,1):o.push(c)}),i.forEach(function(l){return l.parentNode.removeChild(l)}),o.forEach(function(l){return n.appendChild(l)}),{oldTags:i,newTags:o}},nwe=function(t){return Object.keys(t).reduce(function(r,n){var a=typeof t[n]<"u"?n+'="'+t[n]+'"':""+n;return r?r+" "+a:a},"")},Zat=function(t,r,n,a){var i=nwe(n),o=rwe(r);return i?"<"+t+" "+ru+'="true" '+i+">"+_6(o,a)+"</"+t+">":"<"+t+" "+ru+'="true">'+_6(o,a)+"</"+t+">"},$at=function(t,r,n){return r.reduce(function(a,i){var o=Object.keys(i).filter(function(c){return!(c===wi.INNER_HTML||c===wi.CSS_TEXT)}).reduce(function(c,A){var u=typeof i[A]>"u"?A:A+'="'+_6(i[A],n)+'"';return c?c+" "+u:u},""),s=i.innerHTML||i.cssText||"",l=Pat.indexOf(t)===-1;return a+"<"+t+" "+ru+'="true" '+o+(l?"/>":">"+s+"</"+t+">")},"")},awe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,a){return n[ET[a]||a]=t[a],n},r)},eit=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.keys(t).reduce(function(n,a){return n[kat[a]||a]=t[a],n},r)},tit=function(t,r,n){var a,i=(a={key:r},a[ru]=!0,a),o=awe(n,i);return[le.createElement(Kn.TITLE,o,r)]},rit=function(t,r){return r.map(function(n,a){var i,o=(i={key:a},i[ru]=!0,i);return Object.keys(n).forEach(function(s){var l=ET[s]||s;if(l===wi.INNER_HTML||l===wi.CSS_TEXT){var c=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:c}}else o[l]=n[s]}),le.createElement(t,o)})},df=function(t,r,n){switch(t){case Kn.TITLE:return{toComponent:function(){return tit(t,r.title,r.titleAttributes)},toString:function(){return Zat(t,r.title,r.titleAttributes,n)}};case bv.BODY:case bv.HTML:return{toComponent:function(){return awe(r)},toString:function(){return nwe(r)}};default:return{toComponent:function(){return rit(t,r)},toString:function(){return $at(t,r,n)}}}},iwe=function(t){var r=t.baseTag,n=t.bodyAttributes,a=t.encode,i=t.htmlAttributes,o=t.linkTags,s=t.metaTags,l=t.noscriptTags,c=t.scriptTags,A=t.styleTags,u=t.title,d=u===void 0?"":u,f=t.titleAttributes;return{base:df(Kn.BASE,r,a),bodyAttributes:df(bv.BODY,n,a),htmlAttributes:df(bv.HTML,i,a),link:df(Kn.LINK,o,a),meta:df(Kn.META,s,a),noscript:df(Kn.NOSCRIPT,l,a),script:df(Kn.SCRIPT,c,a),style:df(Kn.STYLE,A,a),title:df(Kn.TITLE,{title:d,titleAttributes:f},a)}},nit=function(t){var r,n;return n=r=(function(a){Lat(i,a);function i(){return jat(this,i),Yat(this,a.apply(this,arguments))}return i.prototype.shouldComponentUpdate=function(s){return!Fat(this.props,s)},i.prototype.mapNestedChildrenToProps=function(s,l){if(!l)return null;switch(s.type){case Kn.SCRIPT:case Kn.NOSCRIPT:return{innerHTML:l};case Kn.STYLE:return{cssText:l}}throw new Error("<"+s.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},i.prototype.flattenArrayTypeChildren=function(s){var l,c=s.child,A=s.arrayTypeChildren,u=s.newChildProps,d=s.nestedChildren;return Ml({},A,(l={},l[c.type]=[].concat(A[c.type]||[],[Ml({},u,this.mapNestedChildrenToProps(c,d))]),l))},i.prototype.mapObjectTypeChildren=function(s){var l,c,A=s.child,u=s.newProps,d=s.newChildProps,f=s.nestedChildren;switch(A.type){case Kn.TITLE:return Ml({},u,(l={},l[A.type]=f,l.titleAttributes=Ml({},d),l));case Kn.BODY:return Ml({},u,{bodyAttributes:Ml({},d)});case Kn.HTML:return Ml({},u,{htmlAttributes:Ml({},d)})}return Ml({},u,(c={},c[A.type]=Ml({},d),c))},i.prototype.mapArrayTypeChildrenToProps=function(s,l){var c=Ml({},l);return Object.keys(s).forEach(function(A){var u;c=Ml({},c,(u={},u[A]=s[A],u))}),c},i.prototype.warnOnInvalidChildren=function(s,l){return!0},i.prototype.mapChildrenToProps=function(s,l){var c=this,A={};return le.Children.forEach(s,function(u){if(!(!u||!u.props)){var d=u.props,f=d.children,h=See(d,["children"]),g=eit(h);switch(c.warnOnInvalidChildren(u,f),u.type){case Kn.LINK:case Kn.META:case Kn.NOSCRIPT:case Kn.SCRIPT:case Kn.STYLE:A=c.flattenArrayTypeChildren({child:u,arrayTypeChildren:A,newChildProps:g,nestedChildren:f});break;default:l=c.mapObjectTypeChildren({child:u,newProps:l,newChildProps:g,nestedChildren:f});break}}}),l=this.mapArrayTypeChildrenToProps(A,l),l},i.prototype.render=function(){var s=this.props,l=s.children,c=See(s,["children"]),A=Ml({},c);return l&&(A=this.mapChildrenToProps(l,A)),le.createElement(t,A)},zat(i,null,[{key:"canUseDOM",set:function(s){t.canUseDOM=s}}]),i})(le.Component),r.propTypes={base:W.object,bodyAttributes:W.object,children:W.oneOfType([W.arrayOf(W.node),W.node]),defaultTitle:W.string,defer:W.bool,encodeSpecialCharacters:W.bool,htmlAttributes:W.object,link:W.arrayOf(W.object),meta:W.arrayOf(W.object),noscript:W.arrayOf(W.object),onChangeClientState:W.func,script:W.arrayOf(W.object),style:W.arrayOf(W.object),title:W.string,titleAttributes:W.object,titleTemplate:W.string},r.defaultProps={defer:!0,encodeSpecialCharacters:!0},r.peek=t.peek,r.rewind=function(){var a=t.rewind();return a||(a=iwe({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),a},n},ait=function(){return null},iit=Tat(Kat,Xat,iwe)(ait),io=nit(iit);io.renderStatic=io.rewind;le.Component;le.Component;var O6=function(t,r){return typeof t=="function"?t(r):t},j6=function(t,r){return typeof t=="string"?ol(t,null,null,r):t},TU=function(t){return t},ry=le.forwardRef;typeof ry>"u"&&(ry=TU);function oit(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}var sit=ry(function(e,t){var r=e.innerRef,n=e.navigate,a=e.onClick,i=Ai(e,["innerRef","navigate","onClick"]),o=i.target,s=ge({},i,{onClick:function(c){try{a&&a(c)}catch(A){throw c.preventDefault(),A}!c.defaultPrevented&&c.button===0&&(!o||o==="_self")&&!oit(c)&&(c.preventDefault(),n())}});return TU!==ry?s.ref=t||r:s.ref=r,le.createElement("a",s)}),yT=ry(function(e,t){var r=e.component,n=r===void 0?sit:r,a=e.replace,i=e.to,o=e.innerRef,s=Ai(e,["component","replace","to","innerRef"]);return le.createElement(wg.Consumer,null,function(l){l||Og();var c=l.history,A=j6(O6(i,l.location),l.location),u=A?c.createHref(A):"",d=ge({},s,{href:u,navigate:function(){var h=O6(i,l.location),g=Sl(l.location)===Sl(j6(h)),p=a||g?c.replace:c.push;p(h)}});return TU!==ry?d.ref=t||o:d.innerRef=o,le.createElement(n,d)})}),owe=function(t){return t},CT=le.forwardRef;typeof CT>"u"&&(CT=owe);function lit(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(function(n){return n}).join(" ")}CT(function(e,t){var r=e["aria-current"],n=r===void 0?"page":r,a=e.activeClassName,i=a===void 0?"active":a,o=e.activeStyle,s=e.className,l=e.exact,c=e.isActive,A=e.location,u=e.sensitive,d=e.strict,f=e.style,h=e.to,g=e.innerRef,p=Ai(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return le.createElement(wg.Consumer,null,function(m){m||Og();var y=A||m.location,C=j6(O6(h,y),y),w=C.pathname,B=w&&w.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),x=B?wQ(y.pathname,{path:B,exact:l,sensitive:u,strict:d}):null,M=!!(c?c(x,y):x),S=typeof s=="function"?s(M):s,R=typeof f=="function"?f(M):f;M&&(S=lit(S,i),R=ge({},R,o));var b=ge({"aria-current":M&&n||null,className:S,style:R,to:C},p);return owe!==CT?b.ref=t||g:b.innerRef=g,le.createElement(yT,b)})});function cit(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function Ait(e,t){e.classList?e.classList.add(t):cit(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function Qee(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function uit(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=Qee(e.className,t):e.setAttribute("class",Qee(e.className&&e.className.baseVal||"",t))}const Dee={disabled:!1},wT=le.createContext(null);var swe=function(t){return t.scrollTop},cw="unmounted",qp="exited",Zp="entering",P0="entered",z6="exiting",nh=(function(e){Vi(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=a,s=o&&!o.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=qp,i.appearStatus=Zp):l=P0:n.unmountOnExit||n.mountOnEnter?l=cw:l=qp,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(a,i){var o=a.in;return o&&i.status===cw?{status:qp}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(a){var i=null;if(a!==this.props){var o=this.state.status;this.props.in?o!==Zp&&o!==P0&&(i=Zp):(o===Zp||o===P0)&&(i=z6)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var a=this.props.timeout,i,o,s;return i=o=s=a,a!=null&&typeof a!="number"&&(i=a.exit,o=a.enter,s=a.appear!==void 0?a.appear:o),{exit:i,enter:o,appear:s}},r.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===Zp){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ql.findDOMNode(this);o&&swe(o)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===qp&&this.setState({status:cw})},r.performEnter=function(a){var i=this,o=this.props.enter,s=this.context?this.context.isMounting:a,l=this.props.nodeRef?[s]:[Ql.findDOMNode(this),s],c=l[0],A=l[1],u=this.getTimeouts(),d=s?u.appear:u.enter;if(!a&&!o||Dee.disabled){this.safeSetState({status:P0},function(){i.props.onEntered(c)});return}this.props.onEnter(c,A),this.safeSetState({status:Zp},function(){i.props.onEntering(c,A),i.onTransitionEnd(d,function(){i.safeSetState({status:P0},function(){i.props.onEntered(c,A)})})})},r.performExit=function(){var a=this,i=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:Ql.findDOMNode(this);if(!i||Dee.disabled){this.safeSetState({status:qp},function(){a.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:z6},function(){a.props.onExiting(s),a.onTransitionEnd(o.exit,function(){a.safeSetState({status:qp},function(){a.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},r.setNextCallback=function(a){var i=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,i.nextCallback=null,a(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(a,i){this.setNextCallback(i);var o=this.props.nodeRef?this.props.nodeRef.current:Ql.findDOMNode(this),s=a==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],c=l[0],A=l[1];this.props.addEndListener(c,A)}a!=null&&setTimeout(this.nextCallback,a)},r.render=function(){var a=this.state.status;if(a===cw)return null;var i=this.props,o=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=Ai(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return le.createElement(wT.Provider,{value:null},typeof o=="function"?o(a,s):le.cloneElement(le.Children.only(o),s))},t})(le.Component);nh.contextType=wT;nh.propTypes={};function A0(){}nh.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:A0,onEntering:A0,onEntered:A0,onExit:A0,onExiting:A0,onExited:A0};nh.UNMOUNTED=cw;nh.EXITED=qp;nh.ENTERING=Zp;nh.ENTERED=P0;nh.EXITING=z6;var dit=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return Ait(t,n)})},$8=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return uit(t,n)})},dm=(function(e){Vi(t,e);function t(){for(var n,a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var c=n.resolveArguments(s,l),A=c[0],u=c[1];n.removeClasses(A,"exit"),n.addClass(A,u?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var c=n.resolveArguments(s,l),A=c[0],u=c[1],d=u?"appear":"enter";n.addClass(A,d,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var c=n.resolveArguments(s,l),A=c[0],u=c[1],d=u?"appear":"enter";n.removeClasses(A,d),n.addClass(A,d,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,c=typeof l=="string",A=c&&l?l+"-":"",u=c?""+A+s:l[s],d=c?u+"-active":l[s+"Active"],f=c?u+"-done":l[s+"Done"];return{baseClassName:u,activeClassName:d,doneClassName:f}},n}var r=t.prototype;return r.addClass=function(a,i,o){var s=this.getClassNames(i)[o+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&o==="done"&&c&&(s+=" "+c),o==="active"&&a&&swe(a),s&&(this.appliedClasses[i][o]=s,dit(a,s))},r.removeClasses=function(a,i){var o=this.appliedClasses[i],s=o.base,l=o.active,c=o.done;this.appliedClasses[i]={},s&&$8(a,s),l&&$8(a,l),c&&$8(a,c)},r.render=function(){var a=this.props;a.classNames;var i=Ai(a,["classNames"]);return le.createElement(nh,ge({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(le.Component);dm.defaultProps={classNames:""};dm.propTypes={};function QU(e,t){var r=function(i){return t&&E.isValidElement(i)?t(i):i},n=Object.create(null);return e&&E.Children.map(e,function(a){return a}).forEach(function(a){n[a.key]=r(a)}),n}function fit(e,t){e=e||{},t=t||{};function r(A){return A in t?t[A]:e[A]}var n=Object.create(null),a=[];for(var i in e)i in t?a.length&&(n[i]=a,a=[]):a.push(i);var o,s={};for(var l in t){if(n[l])for(o=0;o<n[l].length;o++){var c=n[l][o];s[n[l][o]]=r(c)}s[l]=r(l)}for(o=0;o<a.length;o++)s[a[o]]=r(a[o]);return s}function hv(e,t,r){return r[t]!=null?r[t]:e.props[t]}function hit(e,t){return QU(e.children,function(r){return E.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:hv(r,"appear",e),enter:hv(r,"enter",e),exit:hv(r,"exit",e)})})}function git(e,t,r){var n=QU(e.children),a=fit(t,n);return Object.keys(a).forEach(function(i){var o=a[i];if(E.isValidElement(o)){var s=i in t,l=i in n,c=t[i],A=E.isValidElement(c)&&!c.props.in;l&&(!s||A)?a[i]=E.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:hv(o,"exit",e),enter:hv(o,"enter",e)}):!l&&s&&!A?a[i]=E.cloneElement(o,{in:!1}):l&&s&&E.isValidElement(c)&&(a[i]=E.cloneElement(o,{onExited:r.bind(null,o),in:c.props.in,exit:hv(o,"exit",e),enter:hv(o,"enter",e)}))}}),a}var pit=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},vit={component:"div",childFactory:function(t){return t}},Rx=(function(e){Vi(t,e);function t(n,a){var i;i=e.call(this,n,a)||this;var o=i.handleExited.bind(Bt(i));return i.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,i){var o=i.children,s=i.handleExited,l=i.firstRender;return{children:l?hit(a,s):git(a,o,s),firstRender:!1}},r.handleExited=function(a,i){var o=QU(this.props.children);a.key in o||(a.props.onExited&&a.props.onExited(i),this.mounted&&this.setState(function(s){var l=ge({},s.children);return delete l[a.key],{children:l}}))},r.render=function(){var a=this.props,i=a.component,o=a.childFactory,s=Ai(a,["component","childFactory"]),l=this.state.contextValue,c=pit(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,i===null?le.createElement(wT.Provider,{value:l},c):le.createElement(wT.Provider,{value:l},le.createElement(i,s,c))},t})(le.Component);Rx.propTypes={};Rx.defaultProps=vit;const lwe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlSpace:"preserve",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2},viewBox:"0 0 800 200",...e,children:[v.jsxs("g",{opacity:.92,children:[v.jsx("path",{d:"M37.291 1204.08a67.2 67.2 0 0 1-15.102 5.68c-5.239 1.27-10.705 1.91-16.399 1.91q-25.488 0-40.385-14.25t-14.896-38.64c0-16.31 4.965-29.21 14.896-38.71q14.897-14.25 40.385-14.25 8.54 0 16.399 1.92a66.7 66.7 0 0 1 15.102 5.67v21.11c-4.875-3.32-9.681-5.76-14.419-7.31-4.737-1.55-9.726-2.32-14.964-2.32-9.385 0-16.764 3-22.14 9.02q-8.063 9.015-8.063 24.87 0 15.78 8.063 24.81c5.376 6.01 12.755 9.02 22.14 9.02 5.238 0 10.227-.78 14.964-2.33 4.738-1.55 9.544-3.98 14.419-7.31zM50.098 1107.67h94.024v19.88h-33.824v82.14H83.99v-82.14H50.098z",style:{fill:"#012b43",fillRule:"nonzero"},transform:"translate(83.08 -1283.4)scale(1.19446)"}),v.jsx("path",{d:"M157.652 1107.67h26.308v102.019h-26.308z",style:{fill:"#012b43"},transform:"translate(83.08 -1283.4)scale(1.19446)"})]}),v.jsx("path",{d:"M282.263 1010.17a1.318 1.318 0 0 1 .822-.54c.177-.03.392-.05.646-.05.253 0 .556.03.909.08q.617.075.992.21c.25.08.421.18.511.29s.12.22.089.35q-.048.18-.25.36l-4.666 4.6c-.137.14-.259.24-.366.31-.107.08-.227.13-.358.17a2.3 2.3 0 0 1-.5.05c-.201 0-.448-.03-.742-.07-.323-.04-.577-.1-.763-.17-.185-.07-.313-.14-.384-.23a.28.28 0 0 1-.05-.29c.037-.12.118-.25.242-.4z",style:{fill:"#ff8801",fillRule:"nonzero"},transform:"translate(-299.395 -3669.24)scale(3.66951)"}),v.jsx("path",{d:"M192.719 1012.36v4.23c-1.647-.78-3.2-1.37-4.66-1.76-1.46-.38-2.871-.58-4.231-.58q-3.543 0-5.475 1.38c-1.275.91-1.912 2.22-1.912 3.9 0 1.42.423 2.5 1.267 3.23q1.289 1.065 4.853 1.74l2.62.53q4.853.93 7.151 3.27c1.546 1.54 2.319 3.62 2.319 6.22 0 3.11-1.045 5.47-3.135 7.07q-3.114 2.4-9.148 2.4-2.276 0-4.853-.51a36 36 0 0 1-5.304-1.53v-4.46c1.761.98 3.486 1.73 5.175 2.23q2.534.75 4.982.75c2.477 0 4.388-.48 5.734-1.46 1.345-.97 2.018-2.36 2.018-4.16 0-1.58-.486-2.81-1.46-3.7-.959-.88-2.541-1.55-4.746-2l-2.641-.51q-4.853-.96-7.022-3.03-2.169-2.055-2.169-5.73c0-2.84.995-5.07 2.985-6.7 2.004-1.63 4.76-2.45 8.268-2.45 1.503 0 3.035.14 4.595.41s3.157.68 4.789 1.22M212.174 1031.28c-3.192 0-5.404.37-6.635 1.1s-1.847 1.97-1.847 3.73c0 1.41.458 2.52 1.374 3.35q1.396 1.23 3.78 1.23c2.19 0 3.944-.78 5.261-2.32q1.997-2.34 1.997-6.21v-.88zm7.881-1.63v13.72h-3.951v-3.65q-1.353 2.19-3.371 3.24c-1.346.69-2.992 1.03-4.939 1.03-2.463 0-4.424-.68-5.884-2.06-1.446-1.39-2.169-3.24-2.169-5.56q0-4.065 2.705-6.12c1.819-1.37 4.524-2.06 8.118-2.06h5.54v-.39c0-1.82-.601-3.22-1.804-4.21q-1.782-1.5-5.025-1.5c-1.374 0-2.713.16-4.015.49a16 16 0 0 0-3.758 1.49v-3.65c1.446-.56 2.849-.98 4.209-1.25a19 19 0 0 1 3.972-.43c3.479 0 6.077.9 7.795 2.71 1.718 1.8 2.577 4.53 2.577 8.2M248.208 1028.86v14.51h-3.951v-14.39c0-2.27-.444-3.98-1.332-5.11-.887-1.13-2.219-1.69-3.994-1.69q-3.2 0-5.046 2.04c-1.232 1.36-1.847 3.21-1.847 5.56v13.59h-3.973v-24.05h3.973v3.74c.945-1.45 2.054-2.53 3.328-3.25 1.289-.71 2.77-1.07 4.445-1.07q4.145 0 6.271 2.58c1.417 1.7 2.126 4.21 2.126 7.54M260.04 1012.49v6.83h8.139v3.07h-8.139v13.06q0 2.94.795 3.78c.544.56 1.639.83 3.285.83h4.059v3.31h-4.059c-3.049 0-5.154-.56-6.313-1.7-1.16-1.14-1.74-3.22-1.74-6.22v-13.06h-2.899v-3.07h2.899v-6.83zM293.969 1030.36v1.93h-18.167c.172 2.72.988 4.8 2.448 6.23 1.475 1.41 3.522 2.12 6.142 2.12 1.517 0 2.985-.18 4.402-.55q2.148-.57 4.252-1.68v3.74c-1.417.6-2.871 1.06-4.359 1.37-1.489.32-3 .47-4.531.47-3.837 0-6.879-1.11-9.127-3.35q-3.35-3.345-3.35-9.06 0-5.91 3.178-9.36 3.2-3.48 8.611-3.48c3.236 0 5.791 1.04 7.667 3.14 1.889 2.07 2.834 4.9 2.834 8.48m-3.951-1.16c-.029-2.16-.637-3.89-1.825-5.18-1.174-1.28-2.735-1.93-4.682-1.93-2.204 0-3.972.62-5.304 1.87-1.317 1.24-2.076 3-2.276 5.26z",style:{fill:"#195c84",fillRule:"nonzero"},transform:"translate(-299.395 -3669.24)scale(3.66951)"})]}),cwe=(e,t)=>{const r="support@ctisante.com",n=`${e.ENVIRONMENT} (${e.FINESS}).Message pour CTI Santé`;let a=`Références:
Versions=`;return Object.keys(t).forEach(o=>{a=a+`
- ${o} v${t[o]}`}),a=a+`
 Environnement = ${e.ENVIRONMENT} (${e.FINESS})`,a=a+`
 URL = ${window.location.href}`,a=encodeURIComponent(a),`mailto:${r}?subject=${n}!&body=${a}`},{Text:Fee}=Hg,mit=e=>{const t=wn(),r=ut(N=>N.cti.settings.data.environment),n=ut(N=>N.cti.settings.data.session),[a,i]=E.useState(!1),o=ut(N=>N.router),[s,l]=E.useState(!1),[c,A]=E.useState(!1),[u,d]=E.useState(!1),[f,h]=E.useState(void 0),[g,p]=E.useState(void 0),[m,y]=E.useState(!1),[C,w]=E.useState(n?.HOMEVIEW??"accueil"),B=ut(N=>N.cti.settings.data.environment),x=ut(N=>N.cti.settings.data.version),M=le.useCallback(async()=>{const N=o?.location?.state?.referrer??"/";w(C&&(!N||N==="/"||N==="/accueil/")?C:N||"/accueil/")},[o,C]);E.useEffect(()=>{t(ewe())},[c,t]),E.useEffect(()=>{setTimeout(()=>i(!0),500)},[]),E.useEffect(()=>{M()},[M]);const S=N=>{a3e(),t(Mee(f,g,"false",l,A,d))},R=(N,_)=>{gi.confirm({title:N,content:_,centered:!0,onOk:()=>{t(Mee(f,g,"true",l,A,d)),d(!1)}})},b=({key:N})=>{let _=document.createElement("a");_.href=cwe(B,x),document.body.appendChild(_),_.click(),document.body.removeChild(_)},T=N=>{N.preventDefault(),y(!0)},D=N=>{N.preventDefault(),y(!1)},F=()=>{switch(u.code){case"LIC0001":R("Confirmez vous cette connexion ?","Le poste sera ajouté au gestionnaire de licences.");break;case"LIC0002":R("Confirmez vous cette connexion ?","Un mail vous sera envoyé pour valider cette connexion.");break;default:return v.jsx(zQ,{message:u.code,description:u.message,type:"error",showIcon:!0})}};return n&&n.CONNECTEDUSER.trim()!==""?n.HOMEVIEW!==""&&(C==="/"||C.startsWith("/accueil"))?v.jsx(vE,{to:{pathname:"/accueil/",state:{logged:!0,homeview:n.HOMEVIEW}}}):C==="/"?v.jsx(vE,{to:{pathname:"/accueil/",state:{logged:!0}}}):(t(eB("accueil")),v.jsx(vE,{to:{pathname:C,state:{logged:!0}}})):v.jsx("div",{className:"login-page",children:v.jsxs("div",{className:"login-container",children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Connexion"})}),a&&v.jsx(dm,{in:!0,classNames:"login-fade",appear:!0,timeout:300,children:v.jsx("div",{children:v.jsxs("div",{children:[v.jsxs(We,{onFinish:S,className:"login-form",children:[v.jsxs("div",{className:"login__form",children:[v.jsx(lwe,{}),v.jsx("div",{className:"login__formHeader",children:v.jsxs("div",{children:[v.jsx("br",{}),v.jsx(Fee,{className:"login__text--environnement",children:r&&r.ENVIRONMENT})," ",v.jsx("br",{}),v.jsx("br",{}),v.jsx(Fee,{className:"login__text--finess",type:"secondary",children:r&&r.FINESS}),v.jsx("br",{})]})})]}),v.jsx(We.Item,{children:v.jsx(jt,{name:"username",onChange:N=>h(N.target.value),prefix:v.jsx(t8e,{className:"login__item"}),className:"login__item",placeholder:"Identifiant",autoComplete:"off"})}),v.jsx(We.Item,{children:v.jsx(jt,{name:"password",type:m?"text":"password",suffix:m?v.jsx(RY,{onMouseDown:T,onMouseUp:D,className:"login__eye"}):v.jsx(TY,{onMouseDown:T,onMouseUp:D,className:"login__eye"}),onChange:N=>p(N.target.value),prefix:v.jsx(FY,{className:"login__item"}),className:"login__item",placeholder:"Mot de passe",autoComplete:"current-password"})}),v.jsx(We.Item,{children:v.jsx(yt,{type:"primary",htmlType:"submit",className:"login-form-button",loading:s,children:s?"":"Connexion"})})]},"a"),v.jsxs("div",{id:"links-container",children:[v.jsx(Xr,{title:"Accéder au site www.ctisante.com",placement:"bottom",children:v.jsx("a",{href:"https://www.ctisante.com",rel:"noopener noreferrer nofollow",target:"_blank",children:v.jsx(GFe,{})})}),v.jsx(Xr,{title:"Rapporter un bug",placement:"bottom",children:v.jsx(yt,{type:"link",className:"user-button",onClick:b,children:v.jsx(FS,{className:"login__svg--bug"})})})]}),v.jsx("div",{className:"login__error",children:u&&F()})]},"loginForm")})})]})})};var fo=function(){return fo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},fo.apply(this,arguments)},Nee={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},_ee={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},lI={width:"20px",height:"20px",position:"absolute",zIndex:1},Eit={top:fo(fo({},Nee),{top:"-5px"}),right:fo(fo({},_ee),{left:void 0,right:"-5px"}),bottom:fo(fo({},Nee),{top:void 0,bottom:"-5px"}),left:fo(fo({},_ee),{left:"-5px"}),topRight:fo(fo({},lI),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:fo(fo({},lI),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:fo(fo({},lI),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:fo(fo({},lI),{left:"-10px",top:"-10px",cursor:"nw-resize"})},yit=E.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,a=e.replaceStyles,i=e.className,o=E.useCallback(function(c){t(c,r)},[t,r]),s=E.useCallback(function(c){t(c,r)},[t,r]),l=E.useMemo(function(){return fo(fo({position:"absolute",userSelect:"none"},Eit[r]),a??{})},[a,r]);return v.jsx("div",{className:i||void 0,style:l,onMouseDown:o,onTouchStart:s,children:n})}),Cit=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var i in a)Object.prototype.hasOwnProperty.call(a,i)&&(n[i]=a[i])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),ud=function(){return ud=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ud.apply(this,arguments)},wit={width:"auto",height:"auto"},cI=function(e,t,r){return Math.max(Math.min(e,r),t)},kee=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},u0=function(e,t){return new RegExp(e,"i").test(t)},AI=function(e){return!!(e.touches&&e.touches.length)},Bit=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Pee=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(i,o,s){return Math.abs(o-e)<Math.abs(t[i]-e)?s:i},0),a=Math.abs(t[n]-e);return r===0||a<r?t[n]:e},ek=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},uI=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var a=Number(e.replace("%",""))/100;return t*a}if(e.endsWith("vw")){var a=Number(e.replace("vw",""))/100;return r*a}if(e.endsWith("vh")){var a=Number(e.replace("vh",""))/100;return n*a}}return e},xit=function(e,t,r,n,a,i,o){return n=uI(n,e.width,t,r),a=uI(a,e.height,t,r),i=uI(i,e.width,t,r),o=uI(o,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof a>"u"?void 0:Number(a),minWidth:typeof i>"u"?void 0:Number(i),minHeight:typeof o>"u"?void 0:Number(o)}},Mit=function(e){return Array.isArray(e)?e:[e,e]},Iit=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Oee="__resizable_base__",fm=(function(e){Cit(t,e);function t(r){var n,a,i,o,s=e.call(this,r)||this;return s.ratio=1,s.resizable=null,s.parentLeft=0,s.parentTop=0,s.resizableLeft=0,s.resizableRight=0,s.resizableTop=0,s.resizableBottom=0,s.targetLeft=0,s.targetTop=0,s.delta={width:0,height:0},s.appendBase=function(){if(!s.resizable||!s.window)return null;var l=s.parentNode;if(!l)return null;var c=s.window.document.createElement("div");return c.style.width="100%",c.style.height="100%",c.style.position="absolute",c.style.transform="scale(0, 0)",c.style.left="0",c.style.flex="0 0 100%",c.classList?c.classList.add(Oee):c.className+=Oee,l.appendChild(c),c},s.removeBase=function(l){var c=s.parentNode;c&&c.removeChild(l)},s.state={isResizing:!1,width:(a=(n=s.propsSize)===null||n===void 0?void 0:n.width)!==null&&a!==void 0?a:"auto",height:(o=(i=s.propsSize)===null||i===void 0?void 0:i.height)!==null&&o!==void 0?o:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},s.onResizeStart=s.onResizeStart.bind(s),s.onMouseMove=s.onMouseMove.bind(s),s.onMouseUp=s.onMouseUp.bind(s),s}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||wit},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var a=this.resizable.offsetWidth,i=this.resizable.offsetHeight,o=this.resizable.style.position;o!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:a,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:i,this.resizable.style.position=o}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,a=function(s){var l;if(typeof r.state[s]>"u"||r.state[s]==="auto")return"auto";if(r.propsSize&&r.propsSize[s]&&(!((l=r.propsSize[s])===null||l===void 0)&&l.toString().endsWith("%"))){if(r.state[s].toString().endsWith("%"))return r.state[s].toString();var c=r.getParentSize(),A=Number(r.state[s].toString().replace("px","")),u=A/c[s]*100;return"".concat(u,"%")}return ek(r.state[s])},i=n&&typeof n.width<"u"&&!this.state.isResizing?ek(n.width):a("width"),o=n&&typeof n.height<"u"&&!this.state.isResizing?ek(n.height):a("height");return{width:i,height:o}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,a=this.parentNode.style.flexWrap;a!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var i={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=a),this.removeBase(r),i},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var a=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof a>"u"||a==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var a=this.props.boundsByDirection,i=this.state.direction,o=a&&u0("left",i),s=a&&u0("top",i),l,c;if(this.props.bounds==="parent"){var A=this.parentNode;A&&(l=o?this.resizableRight-this.parentLeft:A.offsetWidth+(this.parentLeft-this.resizableLeft),c=s?this.resizableBottom-this.parentTop:A.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(l=o?this.resizableRight:this.window.innerWidth-this.resizableLeft,c=s?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(l=o?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),c=s?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return l&&Number.isFinite(l)&&(r=r&&r<l?r:l),c&&Number.isFinite(c)&&(n=n&&n<c?n:c),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var a=this.props.scale||1,i=Mit(this.props.resizeRatio||1),o=i[0],s=i[1],l=this.state,c=l.direction,A=l.original,u=this.props,d=u.lockAspectRatio,f=u.lockAspectRatioExtraHeight,h=u.lockAspectRatioExtraWidth,g=A.width,p=A.height,m=f||0,y=h||0;return u0("right",c)&&(g=A.width+(r-A.x)*o/a,d&&(p=(g-y)/this.ratio+m)),u0("left",c)&&(g=A.width-(r-A.x)*o/a,d&&(p=(g-y)/this.ratio+m)),u0("bottom",c)&&(p=A.height+(n-A.y)*s/a,d&&(g=(p-m)*this.ratio+y)),u0("top",c)&&(p=A.height-(n-A.y)*s/a,d&&(g=(p-m)*this.ratio+y)),{newWidth:g,newHeight:p}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,a,i){var o=this.props,s=o.lockAspectRatio,l=o.lockAspectRatioExtraHeight,c=o.lockAspectRatioExtraWidth,A=typeof i.width>"u"?10:i.width,u=typeof a.width>"u"||a.width<0?r:a.width,d=typeof i.height>"u"?10:i.height,f=typeof a.height>"u"||a.height<0?n:a.height,h=l||0,g=c||0;if(s){var p=(d-h)*this.ratio+g,m=(f-h)*this.ratio+g,y=(A-g)/this.ratio+h,C=(u-g)/this.ratio+h,w=Math.max(A,p),B=Math.min(u,m),x=Math.max(d,y),M=Math.min(f,C);r=cI(r,w,B),n=cI(n,x,M)}else r=cI(r,A,u),n=cI(n,d,f);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var a=n.getBoundingClientRect();this.parentLeft=a.left*r,this.parentTop=a.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var i=this.props.bounds.getBoundingClientRect();this.targetLeft=i.left*r,this.targetTop=i.top*r}if(this.resizable){var o=this.resizable.getBoundingClientRect(),s=o.left,l=o.top,c=o.right,A=o.bottom;this.resizableLeft=s*r,this.resizableRight=c*r,this.resizableTop=l*r,this.resizableBottom=A*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var a=0,i=0;if(r.nativeEvent&&Bit(r.nativeEvent)?(a=r.nativeEvent.clientX,i=r.nativeEvent.clientY):r.nativeEvent&&AI(r.nativeEvent)&&(a=r.nativeEvent.touches[0].clientX,i=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var o=this.props.onResizeStart(r,n,this.resizable);if(o===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var s,l=this.window.getComputedStyle(this.resizable);if(l.flexBasis!=="auto"){var c=this.parentNode;if(c){var A=this.window.getComputedStyle(c).flexDirection;this.flexDir=A.startsWith("row")?"row":"column",s=l.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var u={original:{x:a,y:i,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:ud(ud({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:s};this.setState(u)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&AI(r))try{r.preventDefault(),r.stopPropagation()}catch{}var a=this.props,i=a.maxWidth,o=a.maxHeight,s=a.minWidth,l=a.minHeight,c=AI(r)?r.touches[0].clientX:r.clientX,A=AI(r)?r.touches[0].clientY:r.clientY,u=this.state,d=u.direction,f=u.original,h=u.width,g=u.height,p=this.getParentSize(),m=xit(p,this.window.innerWidth,this.window.innerHeight,i,o,s,l);i=m.maxWidth,o=m.maxHeight,s=m.minWidth,l=m.minHeight;var y=this.calculateNewSizeFromDirection(c,A),C=y.newHeight,w=y.newWidth,B=this.calculateNewMaxFromBoundary(i,o);this.props.snap&&this.props.snap.x&&(w=Pee(w,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(C=Pee(C,this.props.snap.y,this.props.snapGap));var x=this.calculateNewSizeFromAspectRatio(w,C,{width:B.maxWidth,height:B.maxHeight},{width:s,height:l});if(w=x.newWidth,C=x.newHeight,this.props.grid){var M=kee(w,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),S=kee(C,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),R=this.props.snapGap||0,b=R===0||Math.abs(M-w)<=R?M:w,T=R===0||Math.abs(S-C)<=R?S:C;w=b,C=T}var D={width:w-f.width,height:C-f.height};if(this.delta=D,h&&typeof h=="string"){if(h.endsWith("%")){var F=w/p.width*100;w="".concat(F,"%")}else if(h.endsWith("vw")){var N=w/this.window.innerWidth*100;w="".concat(N,"vw")}else if(h.endsWith("vh")){var _=w/this.window.innerHeight*100;w="".concat(_,"vh")}}if(g&&typeof g=="string"){if(g.endsWith("%")){var F=C/p.height*100;C="".concat(F,"%")}else if(g.endsWith("vw")){var N=C/this.window.innerWidth*100;C="".concat(N,"vw")}else if(g.endsWith("vh")){var _=C/this.window.innerHeight*100;C="".concat(_,"vh")}}var P={width:this.createSizeForCssProperty(w,"width"),height:this.createSizeForCssProperty(C,"height")};this.flexDir==="row"?P.flexBasis=P.width:this.flexDir==="column"&&(P.flexBasis=P.height);var k=this.state.width!==P.width,j=this.state.height!==P.height,Y=this.state.flexBasis!==P.flexBasis,X=k||j||Y;X&&Ko.flushSync(function(){n.setState(P)}),this.props.onResize&&X&&this.props.onResize(r,d,this.resizable,D)}},t.prototype.onMouseUp=function(r){var n,a,i=this.state,o=i.isResizing,s=i.direction;i.original,!(!o||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,s,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(a=this.props.size.height)!==null&&a!==void 0?a:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:ud(ud({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,a;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(a=r.height)!==null&&a!==void 0?a:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,a=n.enable,i=n.handleStyles,o=n.handleClasses,s=n.handleWrapperStyle,l=n.handleWrapperClass,c=n.handleComponent;if(!a)return null;var A=Object.keys(a).map(function(u){return a[u]!==!1?v.jsx(yit,{direction:u,onResizeStart:r.onResizeStart,replaceStyles:i&&i[u],className:o&&o[u],children:c&&c[u]?c[u]:null},u):null});return v.jsx("div",{className:l,style:s,children:A})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(o,s){return Iit.indexOf(s)!==-1||(o[s]=r.props[s]),o},{}),a=ud(ud(ud({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(a.flexBasis=this.state.flexBasis);var i=this.props.as||"div";return v.jsxs(i,ud({style:a,className:this.props.className},n,{ref:function(o){o&&(r.resizable=o)},children:[this.state.isResizing&&v.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(E.PureComponent);let bit=class extends le.Component{constructor(t){super(t),this.state={error:!1,errorMessage:{}}}static getDerivedStateFromError(t){return{error:!0,errorMessage:t}}render(){return this.state.error?tl.error("Une erreur est survenue merci de bien vouloir recharger la page"):this.props.children}};const Sit=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0];let r=t.getElementsByTagName("MYFAVORITES")[0],n=t.getElementsByTagName("ALLVIEWS")[0],a=DU(r),i=Awe(n);return[a,i]},DU=(e,t=!1)=>{const r=Nt(e,"MENUITEM");let n={};return t&&(n=[]),r.length&&r.forEach((a,i)=>{let o=Yr(a),s=DU(a,!0);if(Object.keys(s).length&&(o.children=s),t){n.push(o);return}n[i]=o}),n},Awe=e=>{const t=Nt(e,"MENUITEM");let r={};return t.length&&t.forEach((n,a)=>{let i=Yr(n),o=Awe(n);Object.keys(o).length&&(i.children=o),r[a]=i}),r},Rit=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"PROFILE");let n=[];return r&&r.length&&r.forEach((a,i)=>{let o=Yr(a),s={};Object.entries(o).forEach(A=>{A[1]==="true"?s[A[0]]=!0:A[1]==="false"?s[A[0]]=!1:s[A[0]]=A[1]});const l=Nt(a,"AUT");s.auths=oa(l);const c=Nt(a,"FAVORITE")[0];s.favorites=[],c&&(s.favorites=DU(c,!0)),s.key=i,n.push(s)}),n},Tit=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"MODULES")[0],n=Nt(t,"SECURITY_LEVEL")[0],a=Nt(t,"CTIUSRDIR")[0],i=Nt(r,"MODULE");let o=[];return i&&i.length&&i.forEach((s,l)=>{let c=Yr(s);const A=Nt(s,"VIEW");let u=[];A&&A.length&&(u=oa(A)),c.views=u,c.key=l,o.push(c)}),{modules:o,securityLevels:oa(Nt(n,"RECORD")),envs:oa(Nt(a,"ENVIRONMENT")),ctiusrdir:Yr(a)}},BT=()=>async function(e,t){e(bJ(!0));const r=await jn("modules/outils/php/getUsers.php"),n=Rit(r);e(AOe(n)),e(bJ(!1))},jee=(e,t,r="save")=>async function(n,a){let i=new FormData;i.append("option",r),i.append("file",t),i.append("recordXML",e),await To({method:"post",url:Ii()+"modules/outils/php/setUser.php",data:i,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"}),n(BT())};function Qit(e,t){return new Promise(async(r,n)=>{try{let a=new FormData;a.append("user",e),t.theme===!0?t.theme="light":t.theme="dark",a.append("displaySettings",JSON.stringify(t));let i=Ii(),o=await To({method:"post",url:i+"modules/outils/php/httpService_usersManager_updateUserDisplaySettings.php",data:a,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const s=o.status,l=o.statusText;s===200?r(l):n(l)}catch(a){n(a)}})}function Dit(e,t,r){return new Promise(async(n,a)=>{try{let i=new FormData;i.append("user",e),i.append("password",t),i.append("newPassword",r);let o=Ii(),s=await To({method:"post",url:o+"modules/outils/php/httpService_passwordManager_update.php",data:i,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const c=Pg(s.data).getElementsByTagName("HTTP_SERVICE")[0],A=Yr(c);A.returnCode==="OK"?n(A):a(A)}catch(i){a(i)}})}const ny=({handleClick:e,disabledAction:t,toolTipTitle:r})=>v.jsx(Xr,{title:r,children:v.jsx(yt,{type:"primary",onClick:e,disabled:t,children:v.jsx(lA,{})})});ny.propTypes={handleClick:W.func,disabledAction:W.bool,toolTipTitle:W.string};var Cl={},d0={},tk,zee;function Fit(){if(zee)return tk;zee=1;var e=Zv(),t=Ps(),r=Sd(),n="[object String]";function a(i){return typeof i=="string"||!t(i)&&r(i)&&e(i)==n}return tk=a,tk}var rk,Lee;function Nit(){if(Lee)return rk;Lee=1;var e=nx();function t(r){return typeof r=="function"?r:e}return rk=t,rk}var nk,Yee;function FU(){if(Yee)return nk;Yee=1;var e=Yve(),t=Nit();function r(n,a){return n&&e(n,t(a))}return nk=r,nk}var ak,Uee;function NU(){if(Uee)return ak;Uee=1;var e=zve(),t=e(Object.getPrototypeOf,Object);return ak=t,ak}var ik,Hee;function uwe(){if(Hee)return ik;Hee=1;var e=Zv(),t=NU(),r=Sd(),n="[object Object]",a=Function.prototype,i=Object.prototype,o=a.toString,s=i.hasOwnProperty,l=o.call(Object);function c(A){if(!r(A)||e(A)!=n)return!1;var u=t(A);if(u===null)return!0;var d=s.call(u,"constructor")&&u.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==l}return ik=c,ik}var ok,Gee;function dwe(){if(Gee)return ok;Gee=1;var e=Uve(),t=jg();function r(n,a){var i=-1,o=t(n)?Array(n.length):[];return e(n,function(s,l,c){o[++i]=a(s,l,c)}),o}return ok=r,ok}var sk,Kee;function fwe(){if(Kee)return sk;Kee=1;var e=MY(),t=ax(),r=dwe(),n=Ps();function a(i,o){var s=n(i)?e:r;return s(i,t(o,3))}return sk=a,sk}var Vee;function _it(){if(Vee)return d0;Vee=1,Object.defineProperty(d0,"__esModule",{value:!0}),d0.flattenNames=void 0;var e=Fit(),t=l(e),r=FU(),n=l(r),a=uwe(),i=l(a),o=fwe(),s=l(o);function l(A){return A&&A.__esModule?A:{default:A}}var c=d0.flattenNames=function A(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],d=[];return(0,s.default)(u,function(f){Array.isArray(f)?A(f).map(function(h){return d.push(h)}):(0,i.default)(f)?(0,n.default)(f,function(h,g){h===!0&&d.push(g),d.push(g+"-"+h)}):(0,t.default)(f)&&d.push(f)}),d};return d0.default=c,d0}var f0={},lk,Jee;function kit(){if(Jee)return lk;Jee=1;function e(t,r){for(var n=-1,a=t==null?0:t.length;++n<a&&r(t[n],n,t)!==!1;);return t}return lk=e,lk}var ck,Wee;function Fy(){if(Wee)return ck;Wee=1;var e=IU(),t=b4();function r(n,a,i,o){var s=!i;i||(i={});for(var l=-1,c=a.length;++l<c;){var A=a[l],u=o?o(i[A],n[A],A,i,n):void 0;u===void 0&&(u=n[A]),s?t(i,A,u):e(i,A,u)}return i}return ck=r,ck}var Ak,Xee;function Pit(){if(Xee)return Ak;Xee=1;var e=Fy(),t=wy();function r(n,a){return n&&e(a,t(a),n)}return Ak=r,Ak}var uk,qee;function Oit(){if(qee)return uk;qee=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return uk=e,uk}var dk,Zee;function jit(){if(Zee)return dk;Zee=1;var e=mc(),t=IQ(),r=Oit(),n=Object.prototype,a=n.hasOwnProperty;function i(o){if(!e(o))return r(o);var s=t(o),l=[];for(var c in o)c=="constructor"&&(s||!a.call(o,c))||l.push(c);return l}return dk=i,dk}var fk,$ee;function Ny(){if($ee)return fk;$ee=1;var e=jve(),t=jit(),r=jg();function n(a){return r(a)?e(a,!0):t(a)}return fk=n,fk}var hk,ete;function zit(){if(ete)return hk;ete=1;var e=Fy(),t=Ny();function r(n,a){return n&&e(a,t(a),n)}return hk=r,hk}var Aw={exports:{}};Aw.exports;var tte;function hwe(){return tte||(tte=1,(function(e,t){var r=du(),n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(c,A){if(A)return c.slice();var u=c.length,d=s?s(u):new c.constructor(u);return c.copy(d),d}e.exports=l})(Aw,Aw.exports)),Aw.exports}var gk,rte;function gwe(){if(rte)return gk;rte=1;function e(t,r){var n=-1,a=t.length;for(r||(r=Array(a));++n<a;)r[n]=t[n];return r}return gk=e,gk}var pk,nte;function Lit(){if(nte)return pk;nte=1;var e=Fy(),t=ZY();function r(n,a){return e(n,t(n),a)}return pk=r,pk}var vk,ate;function pwe(){if(ate)return vk;ate=1;var e=qY(),t=NU(),r=ZY(),n=Jve(),a=Object.getOwnPropertySymbols,i=a?function(o){for(var s=[];o;)e(s,r(o)),o=t(o);return s}:n;return vk=i,vk}var mk,ite;function Yit(){if(ite)return mk;ite=1;var e=Fy(),t=pwe();function r(n,a){return e(n,t(n),a)}return mk=r,mk}var Ek,ote;function Uit(){if(ote)return Ek;ote=1;var e=Vve(),t=pwe(),r=Ny();function n(a){return e(a,r,t)}return Ek=n,Ek}var yk,ste;function Hit(){if(ste)return yk;ste=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var a=n.length,i=new n.constructor(a);return a&&typeof n[0]=="string"&&t.call(n,"index")&&(i.index=n.index,i.input=n.input),i}return yk=r,yk}var Ck,lte;function _U(){if(lte)return Ck;lte=1;var e=Kve();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Ck=t,Ck}var wk,cte;function Git(){if(cte)return wk;cte=1;var e=_U();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.byteLength)}return wk=t,wk}var Bk,Ate;function Kit(){if(Ate)return Bk;Ate=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return Bk=t,Bk}var xk,ute;function Vit(){if(ute)return xk;ute=1;var e=py(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(a){return r?Object(r.call(a)):{}}return xk=n,xk}var Mk,dte;function vwe(){if(dte)return Mk;dte=1;var e=_U();function t(r,n){var a=n?e(r.buffer):r.buffer;return new r.constructor(a,r.byteOffset,r.length)}return Mk=t,Mk}var Ik,fte;function Jit(){if(fte)return Ik;fte=1;var e=_U(),t=Git(),r=Kit(),n=Vit(),a=vwe(),i="[object Boolean]",o="[object Date]",s="[object Map]",l="[object Number]",c="[object RegExp]",A="[object Set]",u="[object String]",d="[object Symbol]",f="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",p="[object Float64Array]",m="[object Int8Array]",y="[object Int16Array]",C="[object Int32Array]",w="[object Uint8Array]",B="[object Uint8ClampedArray]",x="[object Uint16Array]",M="[object Uint32Array]";function S(R,b,T){var D=R.constructor;switch(b){case f:return e(R);case i:case o:return new D(+R);case h:return t(R,T);case g:case p:case m:case y:case C:case w:case B:case x:case M:return a(R,T);case s:return new D;case l:case u:return new D(R);case c:return r(R);case A:return new D;case d:return n(R)}}return Ik=S,Ik}var bk,hte;function Wit(){if(hte)return bk;hte=1;var e=mc(),t=Object.create,r=(function(){function n(){}return function(a){if(!e(a))return{};if(t)return t(a);n.prototype=a;var i=new n;return n.prototype=void 0,i}})();return bk=r,bk}var Sk,gte;function mwe(){if(gte)return Sk;gte=1;var e=Wit(),t=NU(),r=IQ();function n(a){return typeof a.constructor=="function"&&!r(a)?e(t(a)):{}}return Sk=n,Sk}var Rk,pte;function Xit(){if(pte)return Rk;pte=1;var e=tx(),t=Sd(),r="[object Map]";function n(a){return t(a)&&e(a)==r}return Rk=n,Rk}var Tk,vte;function qit(){if(vte)return Tk;vte=1;var e=Xit(),t=xQ(),r=VY(),n=r&&r.isMap,a=n?t(n):e;return Tk=a,Tk}var Qk,mte;function Zit(){if(mte)return Qk;mte=1;var e=tx(),t=Sd(),r="[object Set]";function n(a){return t(a)&&e(a)==r}return Qk=n,Qk}var Dk,Ete;function $it(){if(Ete)return Dk;Ete=1;var e=Zit(),t=xQ(),r=VY(),n=r&&r.isSet,a=n?t(n):e;return Dk=a,Dk}var Fk,yte;function eot(){if(yte)return Fk;yte=1;var e=QQ(),t=kit(),r=IU(),n=Pit(),a=zit(),i=hwe(),o=gwe(),s=Lit(),l=Yit(),c=Wve(),A=Uit(),u=tx(),d=Hit(),f=Jit(),h=mwe(),g=Ps(),p=$B(),m=qit(),y=mc(),C=$it(),w=wy(),B=Ny(),x=1,M=2,S=4,R="[object Arguments]",b="[object Array]",T="[object Boolean]",D="[object Date]",F="[object Error]",N="[object Function]",_="[object GeneratorFunction]",P="[object Map]",k="[object Number]",j="[object Object]",Y="[object RegExp]",X="[object Set]",K="[object String]",U="[object Symbol]",H="[object WeakMap]",L="[object ArrayBuffer]",V="[object DataView]",J="[object Float32Array]",ee="[object Float64Array]",ae="[object Int8Array]",ne="[object Int16Array]",fe="[object Int32Array]",he="[object Uint8Array]",ye="[object Uint8ClampedArray]",be="[object Uint16Array]",Se="[object Uint32Array]",ve={};ve[R]=ve[b]=ve[L]=ve[V]=ve[T]=ve[D]=ve[J]=ve[ee]=ve[ae]=ve[ne]=ve[fe]=ve[P]=ve[k]=ve[j]=ve[Y]=ve[X]=ve[K]=ve[U]=ve[he]=ve[ye]=ve[be]=ve[Se]=!0,ve[F]=ve[N]=ve[H]=!1;function de(Ue,at,Ve,Ie,we,Re){var Te,Ke=at&x,mt=at&M,tt=at&S;if(Ve&&(Te=we?Ve(Ue,Ie,we,Re):Ve(Ue)),Te!==void 0)return Te;if(!y(Ue))return Ue;var rt=g(Ue);if(rt){if(Te=d(Ue),!Ke)return o(Ue,Te)}else{var lt=u(Ue),At=lt==N||lt==_;if(p(Ue))return i(Ue,Ke);if(lt==j||lt==R||At&&!we){if(Te=mt||At?{}:h(Ue),!Ke)return mt?l(Ue,a(Te,Ue)):s(Ue,n(Te,Ue))}else{if(!ve[lt])return we?Ue:{};Te=f(Ue,lt,Ke)}}Re||(Re=new e);var $e=Re.get(Ue);if($e)return $e;Re.set(Ue,Te),C(Ue)?Ue.forEach(function(ct){Te.add(de(ct,at,Ve,ct,Ue,Re))}):m(Ue)&&Ue.forEach(function(ct,Tt){Te.set(Tt,de(ct,at,Ve,Tt,Ue,Re))});var ce=tt?mt?A:c:mt?B:w,qe=rt?void 0:ce(Ue);return t(qe||Ue,function(ct,Tt){qe&&(Tt=ct,ct=Ue[Tt]),r(Te,Tt,de(ct,at,Ve,Tt,Ue,Re))}),Te}return Fk=de,Fk}var Nk,Cte;function Ewe(){if(Cte)return Nk;Cte=1;var e=eot(),t=1,r=4;function n(a){return e(a,t|r)}return Nk=n,Nk}var wte;function tot(){if(wte)return f0;wte=1,Object.defineProperty(f0,"__esModule",{value:!0}),f0.mergeClasses=void 0;var e=FU(),t=i(e),r=Ewe(),n=i(r),a=Object.assign||function(s){for(var l=1;l<arguments.length;l++){var c=arguments[l];for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(s[A]=c[A])}return s};function i(s){return s&&s.__esModule?s:{default:s}}var o=f0.mergeClasses=function(l){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],A=l.default&&(0,n.default)(l.default)||{};return c.map(function(u){var d=l[u];return d&&(0,t.default)(d,function(f,h){A[h]||(A[h]={}),A[h]=a({},A[h],d[h])}),u}),A};return f0.default=o,f0}var h0={},Bte;function rot(){if(Bte)return h0;Bte=1,Object.defineProperty(h0,"__esModule",{value:!0}),h0.autoprefix=void 0;var e=FU(),t=n(e),r=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(o[c]=l[c])}return o};function n(o){return o&&o.__esModule?o:{default:o}}var a={borderRadius:function(s){return{msBorderRadius:s,MozBorderRadius:s,OBorderRadius:s,WebkitBorderRadius:s,borderRadius:s}},boxShadow:function(s){return{msBoxShadow:s,MozBoxShadow:s,OBoxShadow:s,WebkitBoxShadow:s,boxShadow:s}},userSelect:function(s){return{WebkitTouchCallout:s,KhtmlUserSelect:s,MozUserSelect:s,msUserSelect:s,WebkitUserSelect:s,userSelect:s}},flex:function(s){return{WebkitBoxFlex:s,MozBoxFlex:s,WebkitFlex:s,msFlex:s,flex:s}},flexBasis:function(s){return{WebkitFlexBasis:s,flexBasis:s}},justifyContent:function(s){return{WebkitJustifyContent:s,justifyContent:s}},transition:function(s){return{msTransition:s,MozTransition:s,OTransition:s,WebkitTransition:s,transition:s}},transform:function(s){return{msTransform:s,MozTransform:s,OTransform:s,WebkitTransform:s,transform:s}},absolute:function(s){var l=s&&s.split(" ");return{position:"absolute",top:l&&l[0],right:l&&l[1],bottom:l&&l[2],left:l&&l[3]}},extend:function(s,l){var c=l[s];return c||{extend:s}}},i=h0.autoprefix=function(s){var l={};return(0,t.default)(s,function(c,A){var u={};(0,t.default)(c,function(d,f){var h=a[f];h?u=r({},u,h(d)):u[f]=d}),l[A]=u}),l};return h0.default=i,h0}var g0={},xte;function not(){if(xte)return g0;xte=1,Object.defineProperty(g0,"__esModule",{value:!0}),g0.hover=void 0;var e=Object.assign||function(l){for(var c=1;c<arguments.length;c++){var A=arguments[c];for(var u in A)Object.prototype.hasOwnProperty.call(A,u)&&(l[u]=A[u])}return l},t=Ur(),r=n(t);function n(l){return l&&l.__esModule?l:{default:l}}function a(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function i(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:l}function o(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}var s=g0.hover=function(c){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){o(d,u);function d(){var f,h,g,p;a(this,d);for(var m=arguments.length,y=Array(m),C=0;C<m;C++)y[C]=arguments[C];return p=(h=(g=i(this,(f=d.__proto__||Object.getPrototypeOf(d)).call.apply(f,[this].concat(y))),g),g.state={hover:!1},g.handleMouseOver=function(){return g.setState({hover:!0})},g.handleMouseOut=function(){return g.setState({hover:!1})},g.render=function(){return r.default.createElement(A,{onMouseOver:g.handleMouseOver,onMouseOut:g.handleMouseOut},r.default.createElement(c,e({},g.props,g.state)))},h),i(g,p)}return d})(r.default.Component)};return g0.default=s,g0}var p0={},Mte;function aot(){if(Mte)return p0;Mte=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.active=void 0;var e=Object.assign||function(l){for(var c=1;c<arguments.length;c++){var A=arguments[c];for(var u in A)Object.prototype.hasOwnProperty.call(A,u)&&(l[u]=A[u])}return l},t=Ur(),r=n(t);function n(l){return l&&l.__esModule?l:{default:l}}function a(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")}function i(l,c){if(!l)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return c&&(typeof c=="object"||typeof c=="function")?c:l}function o(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof c);l.prototype=Object.create(c&&c.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),c&&(Object.setPrototypeOf?Object.setPrototypeOf(l,c):l.__proto__=c)}var s=p0.active=function(c){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(u){o(d,u);function d(){var f,h,g,p;a(this,d);for(var m=arguments.length,y=Array(m),C=0;C<m;C++)y[C]=arguments[C];return p=(h=(g=i(this,(f=d.__proto__||Object.getPrototypeOf(d)).call.apply(f,[this].concat(y))),g),g.state={active:!1},g.handleMouseDown=function(){return g.setState({active:!0})},g.handleMouseUp=function(){return g.setState({active:!1})},g.render=function(){return r.default.createElement(A,{onMouseDown:g.handleMouseDown,onMouseUp:g.handleMouseUp},r.default.createElement(c,e({},g.props,g.state)))},h),i(g,p)}return d})(r.default.Component)};return p0.default=s,p0}var dI={},Ite;function iot(){if(Ite)return dI;Ite=1,Object.defineProperty(dI,"__esModule",{value:!0});var e=function(r,n){var a={},i=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;a[s]=l};return r===0&&i("first-child"),r===n-1&&i("last-child"),(r===0||r%2===0)&&i("even"),Math.abs(r%2)===1&&i("odd"),i("nth-child",r),a};return dI.default=e,dI}var bte;function oot(){if(bte)return Cl;bte=1,Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.ReactCSS=Cl.loop=Cl.handleActive=Cl.handleHover=Cl.hover=void 0;var e=_it(),t=d(e),r=tot(),n=d(r),a=rot(),i=d(a),o=not(),s=d(o),l=aot(),c=d(l),A=iot(),u=d(A);function d(h){return h&&h.__esModule?h:{default:h}}Cl.hover=s.default,Cl.handleHover=s.default,Cl.handleActive=c.default,Cl.loop=u.default;var f=Cl.ReactCSS=function(g){for(var p=arguments.length,m=Array(p>1?p-1:0),y=1;y<p;y++)m[y-1]=arguments[y];var C=(0,t.default)(m),w=(0,n.default)(g,C);return(0,i.default)(w)};return Cl.default=f,Cl}var kU=oot();const _n=gn(kU);var sot=function(t,r,n,a,i){var o=i.clientWidth,s=i.clientHeight,l=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,c=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,A=l-(i.getBoundingClientRect().left+window.pageXOffset),u=c-(i.getBoundingClientRect().top+window.pageYOffset);if(n==="vertical"){var d=void 0;if(u<0?d=0:u>s?d=1:d=Math.round(u*100/s)/100,r.a!==d)return{h:r.h,s:r.s,l:r.l,a:d,source:"rgb"}}else{var f=void 0;if(A<0?f=0:A>o?f=1:f=Math.round(A*100/o)/100,a!==f)return{h:r.h,s:r.s,l:r.l,a:f,source:"rgb"}}return null},_k={},lot=function(t,r,n,a){if(typeof document>"u"&&!a)return null;var i=a?new a:document.createElement("canvas");i.width=n*2,i.height=n*2;var o=i.getContext("2d");return o?(o.fillStyle=t,o.fillRect(0,0,i.width,i.height),o.fillStyle=r,o.fillRect(0,0,n,n),o.translate(n,n),o.fillRect(0,0,n,n),i.toDataURL()):null},cot=function(t,r,n,a){var i=t+"-"+r+"-"+n+(a?"-server":"");if(_k[i])return _k[i];var o=lot(t,r,n,a);return _k[i]=o,o},Ste=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},_y=function(t){var r=t.white,n=t.grey,a=t.size,i=t.renderers,o=t.borderRadius,s=t.boxShadow,l=t.children,c=_n({default:{grid:{borderRadius:o,boxShadow:s,absolute:"0px 0px 0px 0px",background:"url("+cot(r,n,a,i.canvas)+") center left"}}});return E.isValidElement(l)?le.cloneElement(l,Ste({},l.props,{style:Ste({},l.props.style,c.grid)})):le.createElement("div",{style:c.grid})};_y.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};var Aot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},uot=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function dot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rte(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function fot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var PU=(function(e){fot(t,e);function t(){var r,n,a,i;dot(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return i=(n=(a=Rte(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(c){var A=sot(c,a.props.hsl,a.props.direction,a.props.a,a.container);A&&typeof a.props.onChange=="function"&&a.props.onChange(A,c)},a.handleMouseDown=function(c){a.handleChange(c),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},a.unbindEventListeners=function(){window.removeEventListener("mousemove",a.handleChange),window.removeEventListener("mouseup",a.handleMouseUp)},n),Rte(a,i)}return uot(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var n=this,a=this.props.rgb,i=_n({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("+a.r+","+a.g+","+a.b+`, 0) 0%,
           rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:a.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("+a.r+","+a.g+","+a.b+`, 0) 0%,
           rgba(`+a.r+","+a.g+","+a.b+", 1) 100%)"},pointer:{left:0,top:a.a*100+"%"}},overwrite:Aot({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return le.createElement("div",{style:i.alpha},le.createElement("div",{style:i.checkboard},le.createElement(_y,{renderers:this.props.renderers})),le.createElement("div",{style:i.gradient}),le.createElement("div",{style:i.container,ref:function(s){return n.container=s},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},le.createElement("div",{style:i.pointer},this.props.pointer?le.createElement(this.props.pointer,this.props):le.createElement("div",{style:i.slider}))))}}]),t})(E.PureComponent||E.Component),hot=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function got(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vot(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function mot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Eot=1,ywe=38,yot=40,Cot=[ywe,yot],wot=function(t){return Cot.indexOf(t)>-1},Bot=function(t){return Number(String(t).replace(/%/g,""))},xot=1,ga=(function(e){mot(t,e);function t(r){pot(this,t);var n=vot(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.handleBlur=function(){n.state.blurValue&&n.setState({value:n.state.blurValue,blurValue:null})},n.handleChange=function(a){n.setUpdatedValue(a.target.value,a)},n.handleKeyDown=function(a){var i=Bot(a.target.value);if(!isNaN(i)&&wot(a.keyCode)){var o=n.getArrowOffset(),s=a.keyCode===ywe?i+o:i-o;n.setUpdatedValue(s,a)}},n.handleDrag=function(a){if(n.props.dragLabel){var i=Math.round(n.props.value+a.movementX);i>=0&&i<=n.props.dragMax&&n.props.onChange&&n.props.onChange(n.getValueObjectWithLabel(i),a)}},n.handleMouseDown=function(a){n.props.dragLabel&&(a.preventDefault(),n.handleDrag(a),window.addEventListener("mousemove",n.handleDrag),window.addEventListener("mouseup",n.handleMouseUp))},n.handleMouseUp=function(){n.unbindEventListeners()},n.unbindEventListeners=function(){window.removeEventListener("mousemove",n.handleDrag),window.removeEventListener("mouseup",n.handleMouseUp)},n.state={value:String(r.value).toUpperCase(),blurValue:String(r.value).toUpperCase()},n.inputId="rc-editable-input-"+xot++,n}return hot(t,[{key:"componentDidUpdate",value:function(n,a){this.props.value!==this.state.value&&(n.value!==this.props.value||a.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(n){return got({},this.props.label,n)}},{key:"getArrowOffset",value:function(){return this.props.arrowOffset||Eot}},{key:"setUpdatedValue",value:function(n,a){var i=this.props.label?this.getValueObjectWithLabel(n):n;this.props.onChange&&this.props.onChange(i,a),this.setState({value:n})}},{key:"render",value:function(){var n=this,a=_n({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 le.createElement("div",{style:a.wrap},le.createElement("input",{id:this.inputId,style:a.input,ref:function(o){return n.input=o},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?le.createElement("label",{htmlFor:this.inputId,style:a.label,onMouseDown:this.handleMouseDown},this.props.label):null)}}]),t})(E.PureComponent||E.Component),Mot=function(t,r,n,a){var i=a.clientWidth,o=a.clientHeight,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(a.getBoundingClientRect().left+window.pageXOffset),A=l-(a.getBoundingClientRect().top+window.pageYOffset);if(r==="vertical"){var u=void 0;if(A<0)u=359;else if(A>o)u=0;else{var d=-(A*100/o)+100;u=360*d/100}if(n.h!==u)return{h:u,s:n.s,l:n.l,a:n.a,source:"hsl"}}else{var f=void 0;if(c<0)f=0;else if(c>i)f=359;else{var h=c*100/i;f=360*h/100}if(n.h!==f)return{h:f,s:n.s,l:n.l,a:n.a,source:"hsl"}}return null},Iot=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function bot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tte(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Sot(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ky=(function(e){Sot(t,e);function t(){var r,n,a,i;bot(this,t);for(var o=arguments.length,s=Array(o),l=0;l<o;l++)s[l]=arguments[l];return i=(n=(a=Tte(this,(r=t.__proto__||Object.getPrototypeOf(t)).call.apply(r,[this].concat(s))),a),a.handleChange=function(c){var A=Mot(c,a.props.direction,a.props.hsl,a.container);A&&typeof a.props.onChange=="function"&&a.props.onChange(A,c)},a.handleMouseDown=function(c){a.handleChange(c),window.addEventListener("mousemove",a.handleChange),window.addEventListener("mouseup",a.handleMouseUp)},a.handleMouseUp=function(){a.unbindEventListeners()},n),Tte(a,i)}return Iot(t,[{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 n=this,a=this.props.direction,i=a===void 0?"horizontal":a,o=_n({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:i==="vertical"});return le.createElement("div",{style:o.hue},le.createElement("div",{className:"hue-"+i,style:o.container,ref:function(l){return n.container=l},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},le.createElement("style",null,`
            .hue-horizontal {
              background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
                33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              background: -webkit-linear-gradient(to right, #f00 0%, #ff0
                17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
            }

            .hue-vertical {
              background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,
                #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
              background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,
                #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
            }
          `),le.createElement("div",{style:o.pointer},this.props.pointer?le.createElement(this.props.pointer,this.props):le.createElement("div",{style:o.slider}))))}}]),t})(E.PureComponent||E.Component);function Rot(){this.__data__=[],this.size=0}function Tx(e,t){return e===t||e!==e&&t!==t}function R4(e,t){for(var r=e.length;r--;)if(Tx(e[r][0],t))return r;return-1}var Tot=Array.prototype,Qot=Tot.splice;function Dot(e){var t=this.__data__,r=R4(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():Qot.call(t,r,1),--this.size,!0}function Fot(e){var t=this.__data__,r=R4(t,e);return r<0?void 0:t[r][1]}function Not(e){return R4(this.__data__,e)>-1}function _ot(e,t){var r=this.__data__,n=R4(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ah(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ah.prototype.clear=Rot;ah.prototype.delete=Dot;ah.prototype.get=Fot;ah.prototype.has=Not;ah.prototype.set=_ot;function kot(){this.__data__=new ah,this.size=0}function Pot(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}function Oot(e){return this.__data__.get(e)}function jot(e){return this.__data__.has(e)}var Cwe=typeof global=="object"&&global&&global.Object===Object&&global,zot=typeof self=="object"&&self&&self.Object===Object&&self,pu=Cwe||zot||Function("return this")(),Ig=pu.Symbol,wwe=Object.prototype,Lot=wwe.hasOwnProperty,Yot=wwe.toString,L1=Ig?Ig.toStringTag:void 0;function Uot(e){var t=Lot.call(e,L1),r=e[L1];try{e[L1]=void 0;var n=!0}catch{}var a=Yot.call(e);return n&&(t?e[L1]=r:delete e[L1]),a}var Hot=Object.prototype,Got=Hot.toString;function Kot(e){return Got.call(e)}var Vot="[object Null]",Jot="[object Undefined]",Qte=Ig?Ig.toStringTag:void 0;function hm(e){return e==null?e===void 0?Jot:Vot:Qte&&Qte in Object(e)?Uot(e):Kot(e)}function nA(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Wot="[object AsyncFunction]",Xot="[object Function]",qot="[object GeneratorFunction]",Zot="[object Proxy]";function OU(e){if(!nA(e))return!1;var t=hm(e);return t==Xot||t==qot||t==Wot||t==Zot}var kk=pu["__core-js_shared__"],Dte=(function(){var e=/[^.]+$/.exec(kk&&kk.keys&&kk.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function $ot(e){return!!Dte&&Dte in e}var est=Function.prototype,tst=est.toString;function gm(e){if(e!=null){try{return tst.call(e)}catch{}try{return e+""}catch{}}return""}var rst=/[\\^$.*+?()[\]{}|]/g,nst=/^\[object .+?Constructor\]$/,ast=Function.prototype,ist=Object.prototype,ost=ast.toString,sst=ist.hasOwnProperty,lst=RegExp("^"+ost.call(sst).replace(rst,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cst(e){if(!nA(e)||$ot(e))return!1;var t=OU(e)?lst:nst;return t.test(gm(e))}function Ast(e,t){return e?.[t]}function pm(e,t){var r=Ast(e,t);return cst(r)?r:void 0}var yB=pm(pu,"Map"),CB=pm(Object,"create");function ust(){this.__data__=CB?CB(null):{},this.size=0}function dst(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var fst="__lodash_hash_undefined__",hst=Object.prototype,gst=hst.hasOwnProperty;function pst(e){var t=this.__data__;if(CB){var r=t[e];return r===fst?void 0:r}return gst.call(t,e)?t[e]:void 0}var vst=Object.prototype,mst=vst.hasOwnProperty;function Est(e){var t=this.__data__;return CB?t[e]!==void 0:mst.call(t,e)}var yst="__lodash_hash_undefined__";function Cst(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=CB&&t===void 0?yst:t,this}function Lv(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Lv.prototype.clear=ust;Lv.prototype.delete=dst;Lv.prototype.get=pst;Lv.prototype.has=Est;Lv.prototype.set=Cst;function wst(){this.size=0,this.__data__={hash:new Lv,map:new(yB||ah),string:new Lv}}function Bst(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function T4(e,t){var r=e.__data__;return Bst(t)?r[typeof t=="string"?"string":"hash"]:r.map}function xst(e){var t=T4(this,e).delete(e);return this.size-=t?1:0,t}function Mst(e){return T4(this,e).get(e)}function Ist(e){return T4(this,e).has(e)}function bst(e,t){var r=T4(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}function ih(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ih.prototype.clear=wst;ih.prototype.delete=xst;ih.prototype.get=Mst;ih.prototype.has=Ist;ih.prototype.set=bst;var Sst=200;function Rst(e,t){var r=this.__data__;if(r instanceof ah){var n=r.__data__;if(!yB||n.length<Sst-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new ih(n)}return r.set(e,t),this.size=r.size,this}function md(e){var t=this.__data__=new ah(e);this.size=t.size}md.prototype.clear=kot;md.prototype.delete=Pot;md.prototype.get=Oot;md.prototype.has=jot;md.prototype.set=Rst;var xT=(function(){try{var e=pm(Object,"defineProperty");return e({},"",{}),e}catch{}})();function jU(e,t,r){t=="__proto__"&&xT?xT(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function L6(e,t,r){(r!==void 0&&!Tx(e[t],r)||r===void 0&&!(t in e))&&jU(e,t,r)}function Tst(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[++a];if(r(i[l],l,i)===!1)break}return t}}var Bwe=Tst(),xwe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fte=xwe&&typeof module=="object"&&module&&!module.nodeType&&module,Qst=Fte&&Fte.exports===xwe,Nte=Qst?pu.Buffer:void 0;Nte&&Nte.allocUnsafe;function Dst(e,t){return e.slice()}var MT=pu.Uint8Array;function Fst(e){var t=new e.constructor(e.byteLength);return new MT(t).set(new MT(e)),t}function Nst(e,t){var r=Fst(e.buffer);return new e.constructor(r,e.byteOffset,e.length)}function _st(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var _te=Object.create,kst=(function(){function e(){}return function(t){if(!nA(t))return{};if(_te)return _te(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}})();function Mwe(e,t){return function(r){return e(t(r))}}var Iwe=Mwe(Object.getPrototypeOf,Object),Pst=Object.prototype;function zU(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Pst;return e===r}function Ost(e){return typeof e.constructor=="function"&&!zU(e)?kst(Iwe(e)):{}}function bg(e){return e!=null&&typeof e=="object"}var jst="[object Arguments]";function kte(e){return bg(e)&&hm(e)==jst}var bwe=Object.prototype,zst=bwe.hasOwnProperty,Lst=bwe.propertyIsEnumerable,IT=kte((function(){return arguments})())?kte:function(e){return bg(e)&&zst.call(e,"callee")&&!Lst.call(e,"callee")},vc=Array.isArray,Yst=9007199254740991;function LU(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yst}function Py(e){return e!=null&&LU(e.length)&&!OU(e)}function Ust(e){return bg(e)&&Py(e)}function Hst(){return!1}var Swe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Pte=Swe&&typeof module=="object"&&module&&!module.nodeType&&module,Gst=Pte&&Pte.exports===Swe,Ote=Gst?pu.Buffer:void 0,Kst=Ote?Ote.isBuffer:void 0,bT=Kst||Hst,Vst="[object Object]",Jst=Function.prototype,Wst=Object.prototype,Rwe=Jst.toString,Xst=Wst.hasOwnProperty,qst=Rwe.call(Object);function Zst(e){if(!bg(e)||hm(e)!=Vst)return!1;var t=Iwe(e);if(t===null)return!0;var r=Xst.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&Rwe.call(r)==qst}var $st="[object Arguments]",elt="[object Array]",tlt="[object Boolean]",rlt="[object Date]",nlt="[object Error]",alt="[object Function]",ilt="[object Map]",olt="[object Number]",slt="[object Object]",llt="[object RegExp]",clt="[object Set]",Alt="[object String]",ult="[object WeakMap]",dlt="[object ArrayBuffer]",flt="[object DataView]",hlt="[object Float32Array]",glt="[object Float64Array]",plt="[object Int8Array]",vlt="[object Int16Array]",mlt="[object Int32Array]",Elt="[object Uint8Array]",ylt="[object Uint8ClampedArray]",Clt="[object Uint16Array]",wlt="[object Uint32Array]",ci={};ci[hlt]=ci[glt]=ci[plt]=ci[vlt]=ci[mlt]=ci[Elt]=ci[ylt]=ci[Clt]=ci[wlt]=!0;ci[$st]=ci[elt]=ci[dlt]=ci[tlt]=ci[flt]=ci[rlt]=ci[nlt]=ci[alt]=ci[ilt]=ci[olt]=ci[slt]=ci[llt]=ci[clt]=ci[Alt]=ci[ult]=!1;function Blt(e){return bg(e)&&LU(e.length)&&!!ci[hm(e)]}function xlt(e){return function(t){return e(t)}}var Twe=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ow=Twe&&typeof module=="object"&&module&&!module.nodeType&&module,Mlt=Ow&&Ow.exports===Twe,Pk=Mlt&&Cwe.process,jte=(function(){try{var e=Ow&&Ow.require&&Ow.require("util").types;return e||Pk&&Pk.binding&&Pk.binding("util")}catch{}})(),zte=jte&&jte.isTypedArray,YU=zte?xlt(zte):Blt;function Y6(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}var Ilt=Object.prototype,blt=Ilt.hasOwnProperty;function Slt(e,t,r){var n=e[t];(!(blt.call(e,t)&&Tx(n,r))||r===void 0&&!(t in e))&&jU(e,t,r)}function Rlt(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=void 0;l===void 0&&(l=e[s]),a?jU(r,s,l):Slt(r,s,l)}return r}function Tlt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Qlt=9007199254740991,Dlt=/^(?:0|[1-9]\d*)$/;function UU(e,t){var r=typeof e;return t=t??Qlt,!!t&&(r=="number"||r!="symbol"&&Dlt.test(e))&&e>-1&&e%1==0&&e<t}var Flt=Object.prototype,Nlt=Flt.hasOwnProperty;function Qwe(e,t){var r=vc(e),n=!r&&IT(e),a=!r&&!n&&bT(e),i=!r&&!n&&!a&&YU(e),o=r||n||a||i,s=o?Tlt(e.length,String):[],l=s.length;for(var c in e)(t||Nlt.call(e,c))&&!(o&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||UU(c,l)))&&s.push(c);return s}function _lt(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var klt=Object.prototype,Plt=klt.hasOwnProperty;function Olt(e){if(!nA(e))return _lt(e);var t=zU(e),r=[];for(var n in e)n=="constructor"&&(t||!Plt.call(e,n))||r.push(n);return r}function Dwe(e){return Py(e)?Qwe(e,!0):Olt(e)}function jlt(e){return Rlt(e,Dwe(e))}function zlt(e,t,r,n,a,i,o){var s=Y6(e,r),l=Y6(t,r),c=o.get(l);if(c){L6(e,r,c);return}var A=i?i(s,l,r+"",e,t,o):void 0,u=A===void 0;if(u){var d=vc(l),f=!d&&bT(l),h=!d&&!f&&YU(l);A=l,d||f||h?vc(s)?A=s:Ust(s)?A=_st(s):f?(u=!1,A=Dst(l)):h?(u=!1,A=Nst(l)):A=[]:Zst(l)||IT(l)?(A=s,IT(s)?A=jlt(s):(!nA(s)||OU(s))&&(A=Ost(l))):u=!1}u&&(o.set(l,A),a(A,l,n,i,o),o.delete(l)),L6(e,r,A)}function Fwe(e,t,r,n,a){e!==t&&Bwe(t,function(i,o){if(a||(a=new md),nA(i))zlt(e,t,o,r,Fwe,n,a);else{var s=n?n(Y6(e,o),i,o+"",e,t,a):void 0;s===void 0&&(s=i),L6(e,o,s)}},Dwe)}function Q4(e){return e}function Llt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Lte=Math.max;function Ylt(e,t,r){return t=Lte(t===void 0?e.length-1:t,0),function(){for(var n=arguments,a=-1,i=Lte(n.length-t,0),o=Array(i);++a<i;)o[a]=n[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=n[a];return s[t]=r(o),Llt(e,this,s)}}function Ult(e){return function(){return e}}var Hlt=xT?function(e,t){return xT(e,"toString",{configurable:!0,enumerable:!1,value:Ult(t),writable:!0})}:Q4,Glt=800,Klt=16,Vlt=Date.now;function Jlt(e){var t=0,r=0;return function(){var n=Vlt(),a=Klt-(n-r);if(r=n,a>0){if(++t>=Glt)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Wlt=Jlt(Hlt);function Xlt(e,t){return Wlt(Ylt(e,t,Q4),e+"")}function qlt(e,t,r){if(!nA(r))return!1;var n=typeof t;return(n=="number"?Py(r)&&UU(t,r.length):n=="string"&&t in r)?Tx(r[t],e):!1}function Zlt(e){return Xlt(function(t,r){var n=-1,a=r.length,i=a>1?r[a-1]:void 0,o=a>2?r[2]:void 0;for(i=e.length>3&&typeof i=="function"?(a--,i):void 0,o&&qlt(r[0],r[1],o)&&(i=a<3?void 0:i,a=1),t=Object(t);++n<a;){var s=r[n];s&&e(t,s,n,i)}return t})}var zl=Zlt(function(e,t,r){Fwe(e,t,r)}),Qx=function(t){var r=t.zDepth,n=t.radius,a=t.background,i=t.children,o=t.styles,s=o===void 0?{}:o,l=_n(zl({default:{wrap:{position:"relative",display:"inline-block"},content:{position:"relative"},bg:{absolute:"0px 0px 0px 0px",boxShadow:"0 "+r+"px "+r*4+"px rgba(0,0,0,.24)",borderRadius:n,background:a}},"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%"}}},s),{"zDepth-1":r===1});return le.createElement("div",{style:l.wrap},le.createElement("div",{style:l.bg}),le.createElement("div",{style:l.content},i))};Qx.propTypes={background:W.string,zDepth:W.oneOf([0,1,2,3,4,5]),radius:W.number,styles:W.object};Qx.defaultProps={background:"#fff",zDepth:1,radius:2,styles:{}};var Ok=function(){return pu.Date.now()},$lt=/\s/;function ect(e){for(var t=e.length;t--&&$lt.test(e.charAt(t)););return t}var tct=/^\s+/;function rct(e){return e&&e.slice(0,ect(e)+1).replace(tct,"")}var nct="[object Symbol]";function D4(e){return typeof e=="symbol"||bg(e)&&hm(e)==nct}var Yte=NaN,act=/^[-+]0x[0-9a-f]+$/i,ict=/^0b[01]+$/i,oct=/^0o[0-7]+$/i,sct=parseInt;function Ute(e){if(typeof e=="number")return e;if(D4(e))return Yte;if(nA(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=nA(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rct(e);var r=ict.test(e);return r||oct.test(e)?sct(e.slice(2),r?2:8):act.test(e)?Yte:+e}var lct="Expected a function",cct=Math.max,Act=Math.min;function Nwe(e,t,r){var n,a,i,o,s,l,c=0,A=!1,u=!1,d=!0;if(typeof e!="function")throw new TypeError(lct);t=Ute(t)||0,nA(r)&&(A=!!r.leading,u="maxWait"in r,i=u?cct(Ute(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function f(x){var M=n,S=a;return n=a=void 0,c=x,o=e.apply(S,M),o}function h(x){return c=x,s=setTimeout(m,t),A?f(x):o}function g(x){var M=x-l,S=x-c,R=t-M;return u?Act(R,i-S):R}function p(x){var M=x-l,S=x-c;return l===void 0||M>=t||M<0||u&&S>=i}function m(){var x=Ok();if(p(x))return y(x);s=setTimeout(m,g(x))}function y(x){return s=void 0,d&&n?f(x):(n=a=void 0,o)}function C(){s!==void 0&&clearTimeout(s),c=0,n=l=a=s=void 0}function w(){return s===void 0?o:y(Ok())}function B(){var x=Ok(),M=p(x);if(n=arguments,a=this,l=x,M){if(s===void 0)return h(l);if(u)return clearTimeout(s),s=setTimeout(m,t),f(l)}return s===void 0&&(s=setTimeout(m,t)),o}return B.cancel=C,B.flush=w,B}var uct="Expected a function";function dct(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(uct);return nA(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),Nwe(e,t,{leading:n,maxWait:t,trailing:a})}var fct=function(t,r,n){var a=n.getBoundingClientRect(),i=a.width,o=a.height,s=typeof t.pageX=="number"?t.pageX:t.touches[0].pageX,l=typeof t.pageY=="number"?t.pageY:t.touches[0].pageY,c=s-(n.getBoundingClientRect().left+window.pageXOffset),A=l-(n.getBoundingClientRect().top+window.pageYOffset);c<0?c=0:c>i&&(c=i),A<0?A=0:A>o&&(A=o);var u=c/i,d=1-A/o;return{h:r.h,s:u,v:d,a:r.a,source:"hsv"}},hct=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function gct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pct(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function vct(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var F4=(function(e){vct(t,e);function t(r){gct(this,t);var n=pct(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r));return n.handleChange=function(a){typeof n.props.onChange=="function"&&n.throttle(n.props.onChange,fct(a,n.props.hsl,n.container),a)},n.handleMouseDown=function(a){n.handleChange(a);var i=n.getContainerRenderWindow();i.addEventListener("mousemove",n.handleChange),i.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},n.throttle=dct(function(a,i,o){a(i,o)},50),n}return hct(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var n=this.container,a=window;!a.document.contains(n)&&a.parent!==a;)a=a.parent;return a}},{key:"unbindEventListeners",value:function(){var n=this.getContainerRenderWindow();n.removeEventListener("mousemove",this.handleChange),n.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var n=this,a=this.props.style||{},i=a.color,o=a.white,s=a.black,l=a.pointer,c=a.circle,A=_n({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:i,white:o,black:s,pointer:l,circle:c}},{custom:!!this.props.style});return le.createElement("div",{style:A.color,ref:function(d){return n.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},le.createElement("style",null,`
          .saturation-white {
            background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
            background: linear-gradient(to right, #fff, rgba(255,255,255,0));
          }
          .saturation-black {
            background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));
            background: linear-gradient(to top, #000, rgba(0,0,0,0));
          }
        `),le.createElement("div",{style:A.white,className:"saturation-white"},le.createElement("div",{style:A.black,className:"saturation-black"}),le.createElement("div",{style:A.pointer},this.props.pointer?le.createElement(this.props.pointer,this.props):le.createElement("div",{style:A.circle}))))}}]),t})(E.PureComponent||E.Component);function mct(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var Ect=Mwe(Object.keys,Object),yct=Object.prototype,Cct=yct.hasOwnProperty;function wct(e){if(!zU(e))return Ect(e);var t=[];for(var r in Object(e))Cct.call(e,r)&&r!="constructor"&&t.push(r);return t}function HU(e){return Py(e)?Qwe(e):wct(e)}function Bct(e,t){return e&&Bwe(e,t,HU)}function xct(e,t){return function(r,n){if(r==null)return r;if(!Py(r))return e(r,n);for(var a=r.length,i=-1,o=Object(r);++i<a&&n(o[i],i,o)!==!1;);return r}}var _we=xct(Bct);function Mct(e){return typeof e=="function"?e:Q4}function Ict(e,t){var r=vc(e)?mct:_we;return r(e,Mct(t))}function ST(e){"@babel/helpers - typeof";return ST=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ST(e)}var bct=/^\s+/,Sct=/\s+$/;function fn(e,t){if(e=e||"",t=t||{},e instanceof fn)return e;if(!(this instanceof fn))return new fn(e,t);var r=Rct(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=r.ok}fn.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},getLuminance:function(){var t=this.toRgb(),r,n,a,i,o,s;return r=t.r/255,n=t.g/255,a=t.b/255,r<=.03928?i=r/12.92:i=Math.pow((r+.055)/1.055,2.4),n<=.03928?o=n/12.92:o=Math.pow((n+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),.2126*i+.7152*o+.0722*s},setAlpha:function(t){return this._a=kwe(t),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var t=Gte(this._r,this._g,this._b);return{h:t.h*360,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=Gte(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.v*100);return this._a==1?"hsv("+r+", "+n+"%, "+a+"%)":"hsva("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHsl:function(){var t=Hte(this._r,this._g,this._b);return{h:t.h*360,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=Hte(this._r,this._g,this._b),r=Math.round(t.h*360),n=Math.round(t.s*100),a=Math.round(t.l*100);return this._a==1?"hsl("+r+", "+n+"%, "+a+"%)":"hsla("+r+", "+n+"%, "+a+"%, "+this._roundA+")"},toHex:function(t){return Kte(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return Fct(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(Bi(this._r,255)*100)+"%",g:Math.round(Bi(this._g,255)*100)+"%",b:Math.round(Bi(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(Bi(this._r,255)*100)+"%, "+Math.round(Bi(this._g,255)*100)+"%, "+Math.round(Bi(this._b,255)*100)+"%)":"rgba("+Math.round(Bi(this._r,255)*100)+"%, "+Math.round(Bi(this._g,255)*100)+"%, "+Math.round(Bi(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:Gct[Kte(this._r,this._g,this._b,!0)]||!1},toFilter:function(t){var r="#"+Vte(this._r,this._g,this._b,this._a),n=r,a=this._gradientType?"GradientType = 1, ":"";if(t){var i=fn(t);n="#"+Vte(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+a+"startColorstr="+r+",endColorstr="+n+")"},toString:function(t){var r=!!t;t=t||this._format;var n=!1,a=this._a<1&&this._a>=0,i=!r&&a&&(t==="hex"||t==="hex6"||t==="hex3"||t==="hex4"||t==="hex8"||t==="name");return i?t==="name"&&this._a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return fn(this.toString())},_applyModification:function(t,r){var n=t.apply(null,[this].concat([].slice.call(r)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(Pct,arguments)},brighten:function(){return this._applyModification(Oct,arguments)},darken:function(){return this._applyModification(jct,arguments)},desaturate:function(){return this._applyModification(Nct,arguments)},saturate:function(){return this._applyModification(_ct,arguments)},greyscale:function(){return this._applyModification(kct,arguments)},spin:function(){return this._applyModification(zct,arguments)},_applyCombination:function(t,r){return t.apply(null,[this].concat([].slice.call(r)))},analogous:function(){return this._applyCombination(Uct,arguments)},complement:function(){return this._applyCombination(Lct,arguments)},monochromatic:function(){return this._applyCombination(Hct,arguments)},splitcomplement:function(){return this._applyCombination(Yct,arguments)},triad:function(){return this._applyCombination(Jte,[3])},tetrad:function(){return this._applyCombination(Jte,[4])}};fn.fromRatio=function(e,t){if(ST(e)=="object"){var r={};for(var n in e)e.hasOwnProperty(n)&&(n==="a"?r[n]=e[n]:r[n]=uw(e[n]));e=r}return fn(e,t)};function Rct(e){var t={r:0,g:0,b:0},r=1,n=null,a=null,i=null,o=!1,s=!1;return typeof e=="string"&&(e=Wct(e)),ST(e)=="object"&&(ff(e.r)&&ff(e.g)&&ff(e.b)?(t=Tct(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ff(e.h)&&ff(e.s)&&ff(e.v)?(n=uw(e.s),a=uw(e.v),t=Dct(e.h,n,a),o=!0,s="hsv"):ff(e.h)&&ff(e.s)&&ff(e.l)&&(n=uw(e.s),i=uw(e.l),t=Qct(e.h,n,i),o=!0,s="hsl"),e.hasOwnProperty("a")&&(r=e.a)),r=kwe(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}function Tct(e,t,r){return{r:Bi(e,255)*255,g:Bi(t,255)*255,b:Bi(r,255)*255}}function Hte(e,t,r){e=Bi(e,255),t=Bi(t,255),r=Bi(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=(n+a)/2;if(n==a)i=o=0;else{var l=n-a;switch(o=s>.5?l/(2-n-a):l/(n+a),n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,l:s}}function Qct(e,t,r){var n,a,i;e=Bi(e,360),t=Bi(t,100),r=Bi(r,100);function o(c,A,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?c+(A-c)*6*u:u<1/2?A:u<2/3?c+(A-c)*(2/3-u)*6:c}if(t===0)n=a=i=r;else{var s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;n=o(l,s,e+1/3),a=o(l,s,e),i=o(l,s,e-1/3)}return{r:n*255,g:a*255,b:i*255}}function Gte(e,t,r){e=Bi(e,255),t=Bi(t,255),r=Bi(r,255);var n=Math.max(e,t,r),a=Math.min(e,t,r),i,o,s=n,l=n-a;if(o=n===0?0:l/n,n==a)i=0;else{switch(n){case e:i=(t-r)/l+(t<r?6:0);break;case t:i=(r-e)/l+2;break;case r:i=(e-t)/l+4;break}i/=6}return{h:i,s:o,v:s}}function Dct(e,t,r){e=Bi(e,360)*6,t=Bi(t,100),r=Bi(r,100);var n=Math.floor(e),a=e-n,i=r*(1-t),o=r*(1-a*t),s=r*(1-(1-a)*t),l=n%6,c=[r,o,i,i,s,r][l],A=[s,r,r,o,i,i][l],u=[i,i,s,r,r,o][l];return{r:c*255,g:A*255,b:u*255}}function Kte(e,t,r,n){var a=[nu(Math.round(e).toString(16)),nu(Math.round(t).toString(16)),nu(Math.round(r).toString(16))];return n&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function Fct(e,t,r,n,a){var i=[nu(Math.round(e).toString(16)),nu(Math.round(t).toString(16)),nu(Math.round(r).toString(16)),nu(Pwe(n))];return a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Vte(e,t,r,n){var a=[nu(Pwe(n)),nu(Math.round(e).toString(16)),nu(Math.round(t).toString(16)),nu(Math.round(r).toString(16))];return a.join("")}fn.equals=function(e,t){return!e||!t?!1:fn(e).toRgbString()==fn(t).toRgbString()};fn.random=function(){return fn.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function Nct(e,t){t=t===0?0:t||10;var r=fn(e).toHsl();return r.s-=t/100,r.s=N4(r.s),fn(r)}function _ct(e,t){t=t===0?0:t||10;var r=fn(e).toHsl();return r.s+=t/100,r.s=N4(r.s),fn(r)}function kct(e){return fn(e).desaturate(100)}function Pct(e,t){t=t===0?0:t||10;var r=fn(e).toHsl();return r.l+=t/100,r.l=N4(r.l),fn(r)}function Oct(e,t){t=t===0?0:t||10;var r=fn(e).toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),fn(r)}function jct(e,t){t=t===0?0:t||10;var r=fn(e).toHsl();return r.l-=t/100,r.l=N4(r.l),fn(r)}function zct(e,t){var r=fn(e).toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,fn(r)}function Lct(e){var t=fn(e).toHsl();return t.h=(t.h+180)%360,fn(t)}function Jte(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var r=fn(e).toHsl(),n=[fn(e)],a=360/t,i=1;i<t;i++)n.push(fn({h:(r.h+i*a)%360,s:r.s,l:r.l}));return n}function Yct(e){var t=fn(e).toHsl(),r=t.h;return[fn(e),fn({h:(r+72)%360,s:t.s,l:t.l}),fn({h:(r+216)%360,s:t.s,l:t.l})]}function Uct(e,t,r){t=t||6,r=r||30;var n=fn(e).toHsl(),a=360/r,i=[fn(e)];for(n.h=(n.h-(a*t>>1)+720)%360;--t;)n.h=(n.h+a)%360,i.push(fn(n));return i}function Hct(e,t){t=t||6;for(var r=fn(e).toHsv(),n=r.h,a=r.s,i=r.v,o=[],s=1/t;t--;)o.push(fn({h:n,s:a,v:i})),i=(i+s)%1;return o}fn.mix=function(e,t,r){r=r===0?0:r||50;var n=fn(e).toRgb(),a=fn(t).toRgb(),i=r/100,o={r:(a.r-n.r)*i+n.r,g:(a.g-n.g)*i+n.g,b:(a.b-n.b)*i+n.b,a:(a.a-n.a)*i+n.a};return fn(o)};fn.readability=function(e,t){var r=fn(e),n=fn(t);return(Math.max(r.getLuminance(),n.getLuminance())+.05)/(Math.min(r.getLuminance(),n.getLuminance())+.05)};fn.isReadable=function(e,t,r){var n=fn.readability(e,t),a,i;switch(i=!1,a=Xct(r),a.level+a.size){case"AAsmall":case"AAAlarge":i=n>=4.5;break;case"AAlarge":i=n>=3;break;case"AAAsmall":i=n>=7;break}return i};fn.mostReadable=function(e,t,r){var n=null,a=0,i,o,s,l;r=r||{},o=r.includeFallbackColors,s=r.level,l=r.size;for(var c=0;c<t.length;c++)i=fn.readability(e,t[c]),i>a&&(a=i,n=fn(t[c]));return fn.isReadable(e,n,{level:s,size:l})||!o?n:(r.includeFallbackColors=!1,fn.mostReadable(e,["#fff","#000"],r))};var U6=fn.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"},Gct=fn.hexNames=Kct(U6);function Kct(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}function kwe(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bi(e,t){Vct(e)&&(e="100%");var r=Jct(e);return e=Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function N4(e){return Math.min(1,Math.max(0,e))}function sc(e){return parseInt(e,16)}function Vct(e){return typeof e=="string"&&e.indexOf(".")!=-1&&parseFloat(e)===1}function Jct(e){return typeof e=="string"&&e.indexOf("%")!=-1}function nu(e){return e.length==1?"0"+e:""+e}function uw(e){return e<=1&&(e=e*100+"%"),e}function Pwe(e){return Math.round(parseFloat(e)*255).toString(16)}function Wte(e){return sc(e)/255}var YA=(function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",r="(?:"+t+")|(?:"+e+")",n="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?",a="[\\s|\\(]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")[,|\\s]+("+r+")\\s*\\)?";return{CSS_UNIT:new RegExp(r),rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+a),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+a),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"+a),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 ff(e){return!!YA.CSS_UNIT.exec(e)}function Wct(e){e=e.replace(bct,"").replace(Sct,"").toLowerCase();var t=!1;if(U6[e])e=U6[e],t=!0;else if(e=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r;return(r=YA.rgb.exec(e))?{r:r[1],g:r[2],b:r[3]}:(r=YA.rgba.exec(e))?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=YA.hsl.exec(e))?{h:r[1],s:r[2],l:r[3]}:(r=YA.hsla.exec(e))?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=YA.hsv.exec(e))?{h:r[1],s:r[2],v:r[3]}:(r=YA.hsva.exec(e))?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=YA.hex8.exec(e))?{r:sc(r[1]),g:sc(r[2]),b:sc(r[3]),a:Wte(r[4]),format:t?"name":"hex8"}:(r=YA.hex6.exec(e))?{r:sc(r[1]),g:sc(r[2]),b:sc(r[3]),format:t?"name":"hex"}:(r=YA.hex4.exec(e))?{r:sc(r[1]+""+r[1]),g:sc(r[2]+""+r[2]),b:sc(r[3]+""+r[3]),a:Wte(r[4]+""+r[4]),format:t?"name":"hex8"}:(r=YA.hex3.exec(e))?{r:sc(r[1]+""+r[1]),g:sc(r[2]+""+r[2]),b:sc(r[3]+""+r[3]),format:t?"name":"hex"}:!1}function Xct(e){var t,r;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),t!=="AA"&&t!=="AAA"&&(t="AA"),r!=="small"&&r!=="large"&&(r="small"),{level:t,size:r}}var Xte=function(t){var r=["r","g","b","a","h","s","l","v"],n=0,a=0;return Ict(r,function(i){if(t[i]&&(n+=1,isNaN(t[i])||(a+=1),i==="s"||i==="l")){var o=/^\d+%$/;o.test(t[i])&&(a+=1)}}),n===a?t:!1},dw=function(t,r){var n=t.hex?fn(t.hex):fn(t),a=n.toHsl(),i=n.toHsv(),o=n.toRgb(),s=n.toHex();a.s===0&&(a.h=r||0,i.h=r||0);var l=s==="000000"&&o.a===0;return{hsl:a,hex:l?"transparent":"#"+s,rgb:o,hsv:i,oldHue:t.h||r||a.h,source:t.source}},Kg=function(t){if(t==="transparent")return!0;var r=String(t).charAt(0)==="#"?1:0;return t.length!==4+r&&t.length<7+r&&fn(t).isValid()},GU=function(t){if(!t)return"#fff";var r=dw(t);if(r.hex==="transparent")return"rgba(0,0,0,0.4)";var n=(r.rgb.r*299+r.rgb.g*587+r.rgb.b*114)/1e3;return n>=128?"#000":"#fff"},jk=function(t,r){var n=t.replace("°","");return fn(r+" ("+n+")")._ok},Y1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qct=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function Zct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $ct(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function eAt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Ll=function(t){var r=(function(n){eAt(a,n);function a(i){Zct(this,a);var o=$ct(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return o.handleChange=function(s,l){var c=Xte(s);if(c){var A=dw(s,s.h||o.state.oldHue);o.setState(A),o.props.onChangeComplete&&o.debounce(o.props.onChangeComplete,A,l),o.props.onChange&&o.props.onChange(A,l)}},o.handleSwatchHover=function(s,l){var c=Xte(s);if(c){var A=dw(s,s.h||o.state.oldHue);o.props.onSwatchHover&&o.props.onSwatchHover(A,l)}},o.state=Y1({},dw(i.color,0)),o.debounce=Nwe(function(s,l,c){s(l,c)},100),o}return qct(a,[{key:"render",value:function(){var o={};return this.props.onSwatchHover&&(o.onSwatchHover=this.handleSwatchHover),le.createElement(t,Y1({},this.props,this.state,{onChange:this.handleChange},o))}}],[{key:"getDerivedStateFromProps",value:function(o,s){return Y1({},dw(o.color,s.oldHue))}}]),a})(E.PureComponent||E.Component);return r.propTypes=Y1({},t.propTypes),r.defaultProps=Y1({},t.defaultProps,{color:{h:250,s:.5,l:.2,a:1}}),r},tAt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rAt=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function nAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qte(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function aAt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var iAt=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"span";return(function(n){aAt(a,n);function a(){var i,o,s,l;nAt(this,a);for(var c=arguments.length,A=Array(c),u=0;u<c;u++)A[u]=arguments[u];return l=(o=(s=qte(this,(i=a.__proto__||Object.getPrototypeOf(a)).call.apply(i,[this].concat(A))),s),s.state={focus:!1},s.handleFocus=function(){return s.setState({focus:!0})},s.handleBlur=function(){return s.setState({focus:!1})},o),qte(s,l)}return rAt(a,[{key:"render",value:function(){return le.createElement(r,{onFocus:this.handleFocus,onBlur:this.handleBlur},le.createElement(t,tAt({},this.props,this.state)))}}]),a})(le.Component)},Zte=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},oAt=13,sAt=function(t){var r=t.color,n=t.style,a=t.onClick,i=a===void 0?function(){}:a,o=t.onHover,s=t.title,l=s===void 0?r:s,c=t.children,A=t.focus,u=t.focusStyle,d=u===void 0?{}:u,f=r==="transparent",h=_n({default:{swatch:Zte({background:r,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},n,A?d:{})}}),g=function(w){return i(r,w)},p=function(w){return w.keyCode===oAt&&i(r,w)},m=function(w){return o(r,w)},y={};return o&&(y.onMouseOver=m),le.createElement("div",Zte({style:h.swatch,onClick:g,title:l,tabIndex:0,onKeyDown:p},y),c,f&&le.createElement(_y,{borderRadius:h.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const vm=iAt(sAt);var lAt=function(t){var r=t.direction,n=_n({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:r==="vertical"});return le.createElement("div",{style:n.picker})},cAt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Owe=function(t){var r=t.rgb,n=t.hsl,a=t.width,i=t.height,o=t.onChange,s=t.direction,l=t.style,c=t.renderers,A=t.pointer,u=t.className,d=u===void 0?"":u,f=_n({default:{picker:{position:"relative",width:a,height:i},alpha:{radius:"2px",style:l}}});return le.createElement("div",{style:f.picker,className:"alpha-picker "+d},le.createElement(PU,cAt({},f.alpha,{rgb:r,hsl:n,pointer:A,renderers:c,onChange:o,direction:s})))};Owe.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:lAt};Ll(Owe);function jwe(e,t){for(var r=-1,n=e==null?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a}var AAt="__lodash_hash_undefined__";function uAt(e){return this.__data__.set(e,AAt),this}function dAt(e){return this.__data__.has(e)}function RT(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new ih;++t<r;)this.add(e[t])}RT.prototype.add=RT.prototype.push=uAt;RT.prototype.has=dAt;function fAt(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function hAt(e,t){return e.has(t)}var gAt=1,pAt=2;function zwe(e,t,r,n,a,i){var o=r&gAt,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e),A=i.get(t);if(c&&A)return c==t&&A==e;var u=-1,d=!0,f=r&pAt?new RT:void 0;for(i.set(e,t),i.set(t,e);++u<s;){var h=e[u],g=t[u];if(n)var p=o?n(g,h,u,t,e,i):n(h,g,u,e,t,i);if(p!==void 0){if(p)continue;d=!1;break}if(f){if(!fAt(t,function(m,y){if(!hAt(f,y)&&(h===m||a(h,m,r,n,i)))return f.push(y)})){d=!1;break}}else if(!(h===g||a(h,g,r,n,i))){d=!1;break}}return i.delete(e),i.delete(t),d}function vAt(e){var t=-1,r=Array(e.size);return e.forEach(function(n,a){r[++t]=[a,n]}),r}function mAt(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var EAt=1,yAt=2,CAt="[object Boolean]",wAt="[object Date]",BAt="[object Error]",xAt="[object Map]",MAt="[object Number]",IAt="[object RegExp]",bAt="[object Set]",SAt="[object String]",RAt="[object Symbol]",TAt="[object ArrayBuffer]",QAt="[object DataView]",$te=Ig?Ig.prototype:void 0,zk=$te?$te.valueOf:void 0;function DAt(e,t,r,n,a,i,o){switch(r){case QAt:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case TAt:return!(e.byteLength!=t.byteLength||!i(new MT(e),new MT(t)));case CAt:case wAt:case MAt:return Tx(+e,+t);case BAt:return e.name==t.name&&e.message==t.message;case IAt:case SAt:return e==t+"";case xAt:var s=vAt;case bAt:var l=n&EAt;if(s||(s=mAt),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=yAt,o.set(e,t);var A=zwe(s(e),s(t),n,a,i,o);return o.delete(e),A;case RAt:if(zk)return zk.call(e)==zk.call(t)}return!1}function FAt(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}function NAt(e,t,r){var n=t(e);return vc(e)?n:FAt(n,r(e))}function _At(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}function kAt(){return[]}var PAt=Object.prototype,OAt=PAt.propertyIsEnumerable,ere=Object.getOwnPropertySymbols,jAt=ere?function(e){return e==null?[]:(e=Object(e),_At(ere(e),function(t){return OAt.call(e,t)}))}:kAt;function tre(e){return NAt(e,HU,jAt)}var zAt=1,LAt=Object.prototype,YAt=LAt.hasOwnProperty;function UAt(e,t,r,n,a,i){var o=r&zAt,s=tre(e),l=s.length,c=tre(t),A=c.length;if(l!=A&&!o)return!1;for(var u=l;u--;){var d=s[u];if(!(o?d in t:YAt.call(t,d)))return!1}var f=i.get(e),h=i.get(t);if(f&&h)return f==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var p=o;++u<l;){d=s[u];var m=e[d],y=t[d];if(n)var C=o?n(y,m,d,t,e,i):n(m,y,d,e,t,i);if(!(C===void 0?m===y||a(m,y,r,n,i):C)){g=!1;break}p||(p=d=="constructor")}if(g&&!p){var w=e.constructor,B=t.constructor;w!=B&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof B=="function"&&B instanceof B)&&(g=!1)}return i.delete(e),i.delete(t),g}var H6=pm(pu,"DataView"),G6=pm(pu,"Promise"),K6=pm(pu,"Set"),V6=pm(pu,"WeakMap"),rre="[object Map]",HAt="[object Object]",nre="[object Promise]",are="[object Set]",ire="[object WeakMap]",ore="[object DataView]",GAt=gm(H6),KAt=gm(yB),VAt=gm(G6),JAt=gm(K6),WAt=gm(V6),eg=hm;(H6&&eg(new H6(new ArrayBuffer(1)))!=ore||yB&&eg(new yB)!=rre||G6&&eg(G6.resolve())!=nre||K6&&eg(new K6)!=are||V6&&eg(new V6)!=ire)&&(eg=function(e){var t=hm(e),r=t==HAt?e.constructor:void 0,n=r?gm(r):"";if(n)switch(n){case GAt:return ore;case KAt:return rre;case VAt:return nre;case JAt:return are;case WAt:return ire}return t});var XAt=1,sre="[object Arguments]",lre="[object Array]",fI="[object Object]",qAt=Object.prototype,cre=qAt.hasOwnProperty;function ZAt(e,t,r,n,a,i){var o=vc(e),s=vc(t),l=o?lre:eg(e),c=s?lre:eg(t);l=l==sre?fI:l,c=c==sre?fI:c;var A=l==fI,u=c==fI,d=l==c;if(d&&bT(e)){if(!bT(t))return!1;o=!0,A=!1}if(d&&!A)return i||(i=new md),o||YU(e)?zwe(e,t,r,n,a,i):DAt(e,t,l,r,n,a,i);if(!(r&XAt)){var f=A&&cre.call(e,"__wrapped__"),h=u&&cre.call(t,"__wrapped__");if(f||h){var g=f?e.value():e,p=h?t.value():t;return i||(i=new md),a(g,p,r,n,i)}}return d?(i||(i=new md),UAt(e,t,r,n,a,i)):!1}function KU(e,t,r,n,a){return e===t?!0:e==null||t==null||!bg(e)&&!bg(t)?e!==e&&t!==t:ZAt(e,t,r,n,KU,a)}var $At=1,eut=2;function tut(e,t,r,n){var a=r.length,i=a;if(e==null)return!i;for(e=Object(e);a--;){var o=r[a];if(o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=r[a];var s=o[0],l=e[s],c=o[1];if(o[2]){if(l===void 0&&!(s in e))return!1}else{var A=new md,u;if(!(u===void 0?KU(c,l,$At|eut,n,A):u))return!1}}return!0}function Lwe(e){return e===e&&!nA(e)}function rut(e){for(var t=HU(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Lwe(a)]}return t}function Ywe(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}function nut(e){var t=rut(e);return t.length==1&&t[0][2]?Ywe(t[0][0],t[0][1]):function(r){return r===e||tut(r,e,t)}}var aut=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iut=/^\w*$/;function VU(e,t){if(vc(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||D4(e)?!0:iut.test(e)||!aut.test(e)||t!=null&&e in Object(t)}var out="Expected a function";function JU(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(out);var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(JU.Cache||ih),r}JU.Cache=ih;var sut=500;function lut(e){var t=JU(e,function(n){return r.size===sut&&r.clear(),n}),r=t.cache;return t}var cut=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Aut=/\\(\\)?/g,uut=lut(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(cut,function(r,n,a,i){t.push(a?i.replace(Aut,"$1"):n||r)}),t}),Are=Ig?Ig.prototype:void 0,ure=Are?Are.toString:void 0;function Uwe(e){if(typeof e=="string")return e;if(vc(e))return jwe(e,Uwe)+"";if(D4(e))return ure?ure.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function dut(e){return e==null?"":Uwe(e)}function Hwe(e,t){return vc(e)?e:VU(e,t)?[e]:uut(dut(e))}function _4(e){if(typeof e=="string"||D4(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Gwe(e,t){t=Hwe(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[_4(t[r++])];return r&&r==n?e:void 0}function fut(e,t,r){var n=e==null?void 0:Gwe(e,t);return n===void 0?r:n}function hut(e,t){return e!=null&&t in Object(e)}function gut(e,t,r){t=Hwe(t,e);for(var n=-1,a=t.length,i=!1;++n<a;){var o=_4(t[n]);if(!(i=e!=null&&r(e,o)))break;e=e[o]}return i||++n!=a?i:(a=e==null?0:e.length,!!a&&LU(a)&&UU(o,a)&&(vc(e)||IT(e)))}function put(e,t){return e!=null&&gut(e,t,hut)}var vut=1,mut=2;function Eut(e,t){return VU(e)&&Lwe(t)?Ywe(_4(e),t):function(r){var n=fut(r,e);return n===void 0&&n===t?put(r,e):KU(t,n,vut|mut)}}function yut(e){return function(t){return t?.[e]}}function Cut(e){return function(t){return Gwe(t,e)}}function wut(e){return VU(e)?yut(_4(e)):Cut(e)}function But(e){return typeof e=="function"?e:e==null?Q4:typeof e=="object"?vc(e)?Eut(e[0],e[1]):nut(e):wut(e)}function xut(e,t){var r=-1,n=Py(e)?Array(e.length):[];return _we(e,function(a,i,o){n[++r]=t(a,i,o)}),n}function mm(e,t){var r=vc(e)?jwe:xut;return r(e,But(t))}var Mut=function(t){var r=t.colors,n=t.onClick,a=t.onSwatchHover,i=_n({default:{swatches:{marginRight:"-10px"},swatch:{width:"22px",height:"22px",float:"left",marginRight:"10px",marginBottom:"10px",borderRadius:"4px"},clear:{clear:"both"}}});return le.createElement("div",{style:i.swatches},mm(r,function(o){return le.createElement(vm,{key:o,color:o,style:i.swatch,onClick:n,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}})}),le.createElement("div",{style:i.clear}))},WU=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,l=t.styles,c=l===void 0?{}:l,A=t.className,u=A===void 0?"":A,d=a==="transparent",f=function(p,m){Kg(p)&&r({hex:p,source:"hex"},m)},h=_n(zl({default:{card:{width:o,background:"#fff",boxShadow:"0 1px rgba(0,0,0,.1)",borderRadius:"6px",position:"relative"},head:{height:"110px",background:a,borderRadius:"6px 6px 0 0",display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},body:{padding:"10px"},label:{fontSize:"18px",color:GU(a),position:"relative"},triangle:{width:"0px",height:"0px",borderStyle:"solid",borderWidth:"0 10px 10px 10px",borderColor:"transparent transparent "+a+" 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"}}},c),{"hide-triangle":s==="hide"});return le.createElement("div",{style:h.card,className:"block-picker "+u},le.createElement("div",{style:h.triangle}),le.createElement("div",{style:h.head},d&&le.createElement(_y,{borderRadius:"6px 6px 0 0"}),le.createElement("div",{style:h.label},a)),le.createElement("div",{style:h.body},le.createElement(Mut,{colors:i,onClick:f,onSwatchHover:n}),le.createElement(ga,{style:{input:h.input},value:a,onChange:f})))};WU.propTypes={width:W.oneOfType([W.string,W.number]),colors:W.arrayOf(W.string),triangle:W.oneOf(["top","hide"]),styles:W.object};WU.defaultProps={width:170,colors:["#D9E3F0","#F47373","#697689","#37D67A","#2CCCE4","#555555","#dce775","#ff8a65","#ba68c8"],triangle:"top",styles:{}};const Iut=Ll(WU);var O0={100:"#ffcdd2",300:"#e57373",500:"#f44336",700:"#d32f2f",900:"#b71c1c"},j0={100:"#f8bbd0",300:"#f06292",500:"#e91e63",700:"#c2185b",900:"#880e4f"},z0={100:"#e1bee7",300:"#ba68c8",500:"#9c27b0",700:"#7b1fa2",900:"#4a148c"},L0={100:"#d1c4e9",300:"#9575cd",500:"#673ab7",700:"#512da8",900:"#311b92"},Y0={100:"#c5cae9",300:"#7986cb",500:"#3f51b5",700:"#303f9f",900:"#1a237e"},U0={100:"#bbdefb",300:"#64b5f6",500:"#2196f3",700:"#1976d2",900:"#0d47a1"},H0={100:"#b3e5fc",300:"#4fc3f7",500:"#03a9f4",700:"#0288d1",900:"#01579b"},G0={100:"#b2ebf2",300:"#4dd0e1",500:"#00bcd4",700:"#0097a7",900:"#006064"},K0={100:"#b2dfdb",300:"#4db6ac",500:"#009688",700:"#00796b",900:"#004d40"},fw={100:"#c8e6c9",300:"#81c784",500:"#4caf50",700:"#388e3c"},V0={100:"#dcedc8",300:"#aed581",500:"#8bc34a",700:"#689f38",900:"#33691e"},J0={100:"#f0f4c3",300:"#dce775",500:"#cddc39",700:"#afb42b",900:"#827717"},W0={100:"#fff9c4",300:"#fff176",500:"#ffeb3b",700:"#fbc02d",900:"#f57f17"},X0={100:"#ffecb3",300:"#ffd54f",500:"#ffc107",700:"#ffa000",900:"#ff6f00"},q0={100:"#ffe0b2",300:"#ffb74d",500:"#ff9800",700:"#f57c00",900:"#e65100"},Z0={100:"#ffccbc",300:"#ff8a65",500:"#ff5722",700:"#e64a19",900:"#bf360c"},$0={100:"#d7ccc8",300:"#a1887f",500:"#795548",700:"#5d4037",900:"#3e2723"},eE={100:"#cfd8dc",300:"#90a4ae",500:"#607d8b",700:"#455a64",900:"#263238"},Kwe=function(t){var r=t.color,n=t.onClick,a=t.onSwatchHover,i=t.hover,o=t.active,s=t.circleSize,l=t.circleSpacing,c=_n({default:{swatch:{width:s,height:s,marginRight:l,marginBottom:l,transform:"scale(1)",transition:"100ms transform ease"},Swatch:{borderRadius:"50%",background:"transparent",boxShadow:"inset 0 0 0 "+(s/2+1)+"px "+r,transition:"100ms box-shadow ease"}},hover:{swatch:{transform:"scale(1.2)"}},active:{Swatch:{boxShadow:"inset 0 0 0 3px "+r}}},{hover:i,active:o});return le.createElement("div",{style:c.swatch},le.createElement(vm,{style:c.Swatch,color:r,onClick:n,onHover:a,focusStyle:{boxShadow:c.Swatch.boxShadow+", 0 0 5px "+r}}))};Kwe.defaultProps={circleSize:28,circleSpacing:14};const but=kU.handleHover(Kwe);var XU=function(t){var r=t.width,n=t.onChange,a=t.onSwatchHover,i=t.colors,o=t.hex,s=t.circleSize,l=t.styles,c=l===void 0?{}:l,A=t.circleSpacing,u=t.className,d=u===void 0?"":u,f=_n(zl({default:{card:{width:r,display:"flex",flexWrap:"wrap",marginRight:-A,marginBottom:-A}}},c)),h=function(p,m){return n({hex:p,source:"hex"},m)};return le.createElement("div",{style:f.card,className:"circle-picker "+d},mm(i,function(g){return le.createElement(but,{key:g,color:g,onClick:h,onSwatchHover:a,active:o===g.toLowerCase(),circleSize:s,circleSpacing:A})}))};XU.propTypes={width:W.oneOfType([W.string,W.number]),circleSize:W.number,circleSpacing:W.number,styles:W.object};XU.defaultProps={width:252,circleSize:28,circleSpacing:14,colors:[O0[500],j0[500],z0[500],L0[500],Y0[500],U0[500],H0[500],G0[500],K0[500],fw[500],V0[500],J0[500],W0[500],X0[500],q0[500],Z0[500],$0[500],eE[500]],styles:{}};Ll(XU);function dre(e){return e===void 0}var hI={},fre;function Sut(){if(fre)return hI;fre=1,Object.defineProperty(hI,"__esModule",{value:!0});var e=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(o[c]=l[c])}return o},t=Ur(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}function a(o,s){var l={};for(var c in o)s.indexOf(c)>=0||Object.prototype.hasOwnProperty.call(o,c)&&(l[c]=o[c]);return l}var i=24;return hI.default=function(o){var s=o.fill,l=s===void 0?"currentColor":s,c=o.width,A=c===void 0?i:c,u=o.height,d=u===void 0?i:u,f=o.style,h=f===void 0?{}:f,g=a(o,["fill","width","height","style"]);return r.default.createElement("svg",e({viewBox:"0 0 "+i+" "+i,style:e({fill:l,width:A,height:d},h)},g),r.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"}))},hI}var Rut=Sut();const Tut=gn(Rut);var Qut=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function Dut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fut(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Nut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var Vwe=(function(e){Nut(t,e);function t(r){Dut(this,t);var n=Fut(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.toggleViews=function(){n.state.view==="hex"?n.setState({view:"rgb"}):n.state.view==="rgb"?n.setState({view:"hsl"}):n.state.view==="hsl"&&(n.props.hsl.a===1?n.setState({view:"hex"}):n.setState({view:"rgb"}))},n.handleChange=function(a,i){a.hex?Kg(a.hex)&&n.props.onChange({hex:a.hex,source:"hex"},i):a.r||a.g||a.b?n.props.onChange({r:a.r||n.props.rgb.r,g:a.g||n.props.rgb.g,b:a.b||n.props.rgb.b,source:"rgb"},i):a.a?(a.a<0?a.a=0:a.a>1&&(a.a=1),n.props.onChange({h:n.props.hsl.h,s:n.props.hsl.s,l:n.props.hsl.l,a:Math.round(a.a*100)/100,source:"rgb"},i)):(a.h||a.s||a.l)&&(typeof a.s=="string"&&a.s.includes("%")&&(a.s=a.s.replace("%","")),typeof a.l=="string"&&a.l.includes("%")&&(a.l=a.l.replace("%","")),a.s==1?a.s=.01:a.l==1&&(a.l=.01),n.props.onChange({h:a.h||n.props.hsl.h,s:Number(dre(a.s)?n.props.hsl.s:a.s),l:Number(dre(a.l)?n.props.hsl.l:a.l),source:"hsl"},i))},n.showHighlight=function(a){a.currentTarget.style.background="#eee"},n.hideHighlight=function(a){a.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?n.state={view:"rgb"}:n.state={view:r.view},n}return Qut(t,[{key:"render",value:function(){var n=this,a=_n({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),i=void 0;return this.state.view==="hex"?i=le.createElement("div",{style:a.fields,className:"flexbox-fix"},le.createElement("div",{style:a.field},le.createElement(ga,{style:{input:a.input,label:a.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?i=le.createElement("div",{style:a.fields,className:"flexbox-fix"},le.createElement("div",{style:a.field},le.createElement(ga,{style:{input:a.input,label:a.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),le.createElement("div",{style:a.field},le.createElement(ga,{style:{input:a.input,label:a.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),le.createElement("div",{style:a.field},le.createElement(ga,{style:{input:a.input,label:a.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),le.createElement("div",{style:a.alpha},le.createElement(ga,{style:{input:a.input,label:a.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(i=le.createElement("div",{style:a.fields,className:"flexbox-fix"},le.createElement("div",{style:a.field},le.createElement(ga,{style:{input:a.input,label:a.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),le.createElement("div",{style:a.field},le.createElement(ga,{style:{input:a.input,label:a.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),le.createElement("div",{style:a.field},le.createElement(ga,{style:{input:a.input,label:a.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),le.createElement("div",{style:a.alpha},le.createElement(ga,{style:{input:a.input,label:a.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),le.createElement("div",{style:a.wrap,className:"flexbox-fix"},i,le.createElement("div",{style:a.toggle},le.createElement("div",{style:a.icon,onClick:this.toggleViews,ref:function(s){return n.icon=s}},le.createElement(Tut,{style:a.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(n,a){return n.hsl.a!==1&&a.view==="hex"?{view:"rgb"}:null}}]),t})(le.Component);Vwe.defaultProps={view:"hex"};var hre=function(){var t=_n({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 le.createElement("div",{style:t.picker})},_ut=function(){var t=_n({default:{picker:{width:"12px",height:"12px",borderRadius:"6px",boxShadow:"inset 0 0 0 1px #fff",transform:"translate(-6px, -6px)"}}});return le.createElement("div",{style:t.picker})},qU=function(t){var r=t.width,n=t.onChange,a=t.disableAlpha,i=t.rgb,o=t.hsl,s=t.hsv,l=t.hex,c=t.renderers,A=t.styles,u=A===void 0?{}:A,d=t.className,f=d===void 0?"":d,h=t.defaultView,g=_n(zl({default:{picker:{width:r,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("+i.r+", "+i.g+", "+i.b+", "+i.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"}}},u),{disableAlpha:a});return le.createElement("div",{style:g.picker,className:"chrome-picker "+f},le.createElement("div",{style:g.saturation},le.createElement(F4,{style:g.Saturation,hsl:o,hsv:s,pointer:_ut,onChange:n})),le.createElement("div",{style:g.body},le.createElement("div",{style:g.controls,className:"flexbox-fix"},le.createElement("div",{style:g.color},le.createElement("div",{style:g.swatch},le.createElement("div",{style:g.active}),le.createElement(_y,{renderers:c}))),le.createElement("div",{style:g.toggles},le.createElement("div",{style:g.hue},le.createElement(ky,{style:g.Hue,hsl:o,pointer:hre,onChange:n})),le.createElement("div",{style:g.alpha},le.createElement(PU,{style:g.Alpha,rgb:i,hsl:o,pointer:hre,renderers:c,onChange:n})))),le.createElement(Vwe,{rgb:i,hsl:o,hex:l,view:h,onChange:n,disableAlpha:a})))};qU.propTypes={width:W.oneOfType([W.string,W.number]),disableAlpha:W.bool,styles:W.object,defaultView:W.oneOf(["hex","rgb","hsl"])};qU.defaultProps={width:225,disableAlpha:!1,styles:{}};Ll(qU);var kut=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.active,s=_n({default:{color:{background:r,width:"15px",height:"15px",float:"left",marginRight:"5px",marginBottom:"5px",position:"relative",cursor:"pointer"},dot:{absolute:"5px 5px 5px 5px",background:GU(r),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:o,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return le.createElement(vm,{style:s.color,color:r,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},le.createElement("div",{style:s.dot}))},Put=function(t){var r=t.hex,n=t.rgb,a=t.onChange,i=_n({default:{fields:{display:"flex",paddingBottom:"6px",paddingRight:"5px",position:"relative"},active:{position:"absolute",top:"6px",left:"5px",height:"9px",width:"9px",background:r},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"}}}),o=function(l,c){l.r||l.g||l.b?a({r:l.r||n.r,g:l.g||n.g,b:l.b||n.b,source:"rgb"},c):a({hex:l.hex,source:"hex"},c)};return le.createElement("div",{style:i.fields,className:"flexbox-fix"},le.createElement("div",{style:i.active}),le.createElement(ga,{style:{wrap:i.HEXwrap,input:i.HEXinput,label:i.HEXlabel},label:"hex",value:r,onChange:o}),le.createElement(ga,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"r",value:n.r,onChange:o}),le.createElement(ga,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"g",value:n.g,onChange:o}),le.createElement(ga,{style:{wrap:i.RGBwrap,input:i.RGBinput,label:i.RGBlabel},label:"b",value:n.b,onChange:o}))},ZU=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.colors,i=t.hex,o=t.rgb,s=t.styles,l=s===void 0?{}:s,c=t.className,A=c===void 0?"":c,u=_n(zl({default:{Compact:{background:"#f6f6f6",radius:"4px"},compact:{paddingTop:"5px",paddingLeft:"5px",boxSizing:"initial",width:"240px"},clear:{clear:"both"}}},l)),d=function(h,g){h.hex?Kg(h.hex)&&r({hex:h.hex,source:"hex"},g):r(h,g)};return le.createElement(Qx,{style:u.Compact,styles:l},le.createElement("div",{style:u.compact,className:"compact-picker "+A},le.createElement("div",null,mm(a,function(f){return le.createElement(kut,{key:f,color:f,active:f.toLowerCase()===i,onClick:d,onSwatchHover:n})}),le.createElement("div",{style:u.clear})),le.createElement(Put,{hex:i,rgb:o,onChange:d})))};ZU.propTypes={colors:W.arrayOf(W.string),styles:W.object};ZU.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:{}};Ll(ZU);var Out=function(t){var r=t.hover,n=t.color,a=t.onClick,i=t.onSwatchHover,o={position:"relative",zIndex:"2",outline:"2px solid #fff",boxShadow:"0 0 5px 2px rgba(0,0,0,0.25)"},s=_n({default:{swatch:{width:"25px",height:"25px",fontSize:"0"}},hover:{swatch:o}},{hover:r});return le.createElement("div",{style:s.swatch},le.createElement(vm,{color:n,onClick:a,onHover:i,focusStyle:o}))};const jut=kU.handleHover(Out);var $U=function(t){var r=t.width,n=t.colors,a=t.onChange,i=t.onSwatchHover,o=t.triangle,s=t.styles,l=s===void 0?{}:s,c=t.className,A=c===void 0?"":c,u=_n(zl({default:{card:{width:r,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)"}}},l),{"hide-triangle":o==="hide","top-left-triangle":o==="top-left","top-right-triangle":o==="top-right","bottom-left-triangle":o==="bottom-left","bottom-right-triangle":o==="bottom-right"}),d=function(h,g){return a({hex:h,source:"hex"},g)};return le.createElement("div",{style:u.card,className:"github-picker "+A},le.createElement("div",{style:u.triangleShadow}),le.createElement("div",{style:u.triangle}),mm(n,function(f){return le.createElement(jut,{color:f,key:f,onClick:d,onSwatchHover:i})}))};$U.propTypes={width:W.oneOfType([W.string,W.number]),colors:W.arrayOf(W.string),triangle:W.oneOf(["hide","top-left","top-right","bottom-left","bottom-right"]),styles:W.object};$U.defaultProps={width:200,colors:["#B80000","#DB3E00","#FCCB00","#008B02","#006B76","#1273DE","#004DCF","#5300EB","#EB9694","#FAD0C3","#FEF3BD","#C1E1C5","#BEDADC","#C4DEF6","#BED3F3","#D4C4FB"],triangle:"top-left",styles:{}};Ll($U);var zut=function(t){var r=t.direction,n=_n({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:r==="vertical"});return le.createElement("div",{style:n.picker})},Lut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},eH=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.hsl,o=t.direction,s=t.pointer,l=t.styles,c=l===void 0?{}:l,A=t.className,u=A===void 0?"":A,d=_n(zl({default:{picker:{position:"relative",width:r,height:n},hue:{radius:"2px"}}},c)),f=function(g){return a({a:1,h:g.h,l:.5,s:1})};return le.createElement("div",{style:d.picker,className:"hue-picker "+u},le.createElement(ky,Lut({},d.hue,{hsl:i,pointer:s,onChange:f,direction:o})))};eH.propTypes={styles:W.object};eH.defaultProps={width:"316px",height:"16px",direction:"horizontal",pointer:zut,styles:{}};Ll(eH);var Yut=function(t){var r=t.onChange,n=t.hex,a=t.rgb,i=t.styles,o=i===void 0?{}:i,s=t.className,l=s===void 0?"":s,c=_n(zl({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 "+n,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"}}},o)),A=function(d,f){d.hex?Kg(d.hex)&&r({hex:d.hex,source:"hex"},f):(d.r||d.g||d.b)&&r({r:d.r||a.r,g:d.g||a.g,b:d.b||a.b,source:"rgb"},f)};return le.createElement(Qx,{styles:o},le.createElement("div",{style:c.material,className:"material-picker "+l},le.createElement(ga,{style:{wrap:c.HEXwrap,input:c.HEXinput,label:c.HEXlabel},label:"hex",value:n,onChange:A}),le.createElement("div",{style:c.split,className:"flexbox-fix"},le.createElement("div",{style:c.third},le.createElement(ga,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"r",value:a.r,onChange:A})),le.createElement("div",{style:c.third},le.createElement(ga,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"g",value:a.g,onChange:A})),le.createElement("div",{style:c.third},le.createElement(ga,{style:{wrap:c.RGBwrap,input:c.RGBinput,label:c.RGBlabel},label:"b",value:a.b,onChange:A})))))};Ll(Yut);var Uut=function(t){var r=t.onChange,n=t.rgb,a=t.hsv,i=t.hex,o=_n({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"}}}),s=function(c,A){c["#"]?Kg(c["#"])&&r({hex:c["#"],source:"hex"},A):c.r||c.g||c.b?r({r:c.r||n.r,g:c.g||n.g,b:c.b||n.b,source:"rgb"},A):(c.h||c.s||c.v)&&r({h:c.h||a.h,s:c.s||a.s,v:c.v||a.v,source:"hsv"},A)};return le.createElement("div",{style:o.fields},le.createElement(ga,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"h",value:Math.round(a.h),onChange:s}),le.createElement(ga,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"s",value:Math.round(a.s*100),onChange:s}),le.createElement(ga,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"v",value:Math.round(a.v*100),onChange:s}),le.createElement("div",{style:o.divider}),le.createElement(ga,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"r",value:n.r,onChange:s}),le.createElement(ga,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"g",value:n.g,onChange:s}),le.createElement(ga,{style:{wrap:o.RGBwrap,input:o.RGBinput,label:o.RGBlabel},label:"b",value:n.b,onChange:s}),le.createElement("div",{style:o.divider}),le.createElement(ga,{style:{wrap:o.HEXwrap,input:o.HEXinput,label:o.HEXlabel},label:"#",value:i.replace("#",""),onChange:s}),le.createElement("div",{style:o.fieldSymbols},le.createElement("div",{style:o.symbol},"°"),le.createElement("div",{style:o.symbol},"%"),le.createElement("div",{style:o.symbol},"%")))},Hut=function(t){var r=t.hsl,n=_n({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":r.l>.5});return le.createElement("div",{style:n.picker})},Gut=function(){var t=_n({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 le.createElement("div",{style:t.pointer},le.createElement("div",{style:t.left},le.createElement("div",{style:t.leftInside})),le.createElement("div",{style:t.right},le.createElement("div",{style:t.rightInside})))},gre=function(t){var r=t.onClick,n=t.label,a=t.children,i=t.active,o=_n({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:i});return le.createElement("div",{style:o.button,onClick:r},n||a)},Kut=function(t){var r=t.rgb,n=t.currentColor,a=_n({default:{swatches:{border:"1px solid #B3B3B3",borderBottom:"1px solid #F0F0F0",marginBottom:"2px",marginTop:"1px"},new:{height:"34px",background:"rgb("+r.r+","+r.g+", "+r.b+")",boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"},current:{height:"34px",background:n,boxShadow:"inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"},label:{fontSize:"14px",color:"#000",textAlign:"center"}}});return le.createElement("div",null,le.createElement("div",{style:a.label},"new"),le.createElement("div",{style:a.swatches},le.createElement("div",{style:a.new}),le.createElement("div",{style:a.current})),le.createElement("div",{style:a.label},"current"))},Vut=(function(){function e(t,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}})();function Jut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wut(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:e}function Xut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var tH=(function(e){Xut(t,e);function t(r){Jut(this,t);var n=Wut(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.state={currentColor:r.hex},n}return Vut(t,[{key:"render",value:function(){var n=this.props,a=n.styles,i=a===void 0?{}:a,o=n.className,s=o===void 0?"":o,l=_n(zl({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"}}},i));return le.createElement("div",{style:l.picker,className:"photoshop-picker "+s},le.createElement("div",{style:l.head},this.props.header),le.createElement("div",{style:l.body,className:"flexbox-fix"},le.createElement("div",{style:l.saturation},le.createElement(F4,{hsl:this.props.hsl,hsv:this.props.hsv,pointer:Hut,onChange:this.props.onChange})),le.createElement("div",{style:l.hue},le.createElement(ky,{direction:"vertical",hsl:this.props.hsl,pointer:Gut,onChange:this.props.onChange})),le.createElement("div",{style:l.controls},le.createElement("div",{style:l.top,className:"flexbox-fix"},le.createElement("div",{style:l.previews},le.createElement(Kut,{rgb:this.props.rgb,currentColor:this.state.currentColor})),le.createElement("div",{style:l.actions},le.createElement(gre,{label:"OK",onClick:this.props.onAccept,active:!0}),le.createElement(gre,{label:"Cancel",onClick:this.props.onCancel}),le.createElement(Uut,{onChange:this.props.onChange,rgb:this.props.rgb,hsv:this.props.hsv,hex:this.props.hex}))))))}}]),t})(le.Component);tH.propTypes={header:W.string,styles:W.object};tH.defaultProps={header:"Color Picker",styles:{}};Ll(tH);var qut=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.disableAlpha,s=_n({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:o}),l=function(A,u){A.hex?Kg(A.hex)&&r({hex:A.hex,source:"hex"},u):A.r||A.g||A.b?r({r:A.r||n.r,g:A.g||n.g,b:A.b||n.b,a:n.a,source:"rgb"},u):A.a&&(A.a<0?A.a=0:A.a>100&&(A.a=100),A.a/=100,r({h:a.h,s:a.s,l:a.l,a:A.a,source:"rgb"},u))};return le.createElement("div",{style:s.fields,className:"flexbox-fix"},le.createElement("div",{style:s.double},le.createElement(ga,{style:{input:s.input,label:s.label},label:"hex",value:i.replace("#",""),onChange:l})),le.createElement("div",{style:s.single},le.createElement(ga,{style:{input:s.input,label:s.label},label:"r",value:n.r,onChange:l,dragLabel:"true",dragMax:"255"})),le.createElement("div",{style:s.single},le.createElement(ga,{style:{input:s.input,label:s.label},label:"g",value:n.g,onChange:l,dragLabel:"true",dragMax:"255"})),le.createElement("div",{style:s.single},le.createElement(ga,{style:{input:s.input,label:s.label},label:"b",value:n.b,onChange:l,dragLabel:"true",dragMax:"255"})),le.createElement("div",{style:s.alpha},le.createElement(ga,{style:{input:s.input,label:s.label},label:"a",value:Math.round(n.a*100),onChange:l,dragLabel:"true",dragMax:"100"})))},Zut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jwe=function(t){var r=t.colors,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=_n({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":!r||!r.length}),s=function(c,A){a({hex:c,source:"hex"},A)};return le.createElement("div",{style:o.colors,className:"flexbox-fix"},r.map(function(l){var c=typeof l=="string"?{color:l}:l,A=""+c.color+(c.title||"");return le.createElement("div",{key:A,style:o.swatchWrap},le.createElement(vm,Zut({},c,{style:o.swatch,onClick:s,onHover:i,focusStyle:{boxShadow:"inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px "+c.color}})))}))};Jwe.propTypes={colors:W.arrayOf(W.oneOfType([W.string,W.shape({color:W.string,title:W.string})])).isRequired};var $ut=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rH=function(t){var r=t.width,n=t.rgb,a=t.hex,i=t.hsv,o=t.hsl,s=t.onChange,l=t.onSwatchHover,c=t.disableAlpha,A=t.presetColors,u=t.renderers,d=t.styles,f=d===void 0?{}:d,h=t.className,g=h===void 0?"":h,p=_n(zl({default:$ut({picker:{width:r,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("+n.r+","+n.g+","+n.b+","+n.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)"}},f),disableAlpha:{color:{height:"10px"},hue:{height:"10px"},alpha:{display:"none"}}},f),{disableAlpha:c});return le.createElement("div",{style:p.picker,className:"sketch-picker "+g},le.createElement("div",{style:p.saturation},le.createElement(F4,{style:p.Saturation,hsl:o,hsv:i,onChange:s})),le.createElement("div",{style:p.controls,className:"flexbox-fix"},le.createElement("div",{style:p.sliders},le.createElement("div",{style:p.hue},le.createElement(ky,{style:p.Hue,hsl:o,onChange:s})),le.createElement("div",{style:p.alpha},le.createElement(PU,{style:p.Alpha,rgb:n,hsl:o,renderers:u,onChange:s}))),le.createElement("div",{style:p.color},le.createElement(_y,null),le.createElement("div",{style:p.activeColor}))),le.createElement(qut,{rgb:n,hsl:o,hex:a,onChange:s,disableAlpha:c}),le.createElement(Jwe,{colors:A,onClick:s,onSwatchHover:l}))};rH.propTypes={disableAlpha:W.bool,width:W.oneOfType([W.string,W.number]),styles:W.object};rH.defaultProps={disableAlpha:!1,width:200,styles:{},presetColors:["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]};Ll(rH);var U1=function(t){var r=t.hsl,n=t.offset,a=t.onClick,i=a===void 0?function(){}:a,o=t.active,s=t.first,l=t.last,c=_n({default:{swatch:{height:"12px",background:"hsl("+r.h+", 50%, "+n*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:o,first:s,last:l}),A=function(d){return i({h:r.h,s:.5,l:n,source:"hsl"},d)};return le.createElement("div",{style:c.swatch,onClick:A})},edt=function(t){var r=t.onClick,n=t.hsl,a=_n({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),i=.1;return le.createElement("div",{style:a.swatches},le.createElement("div",{style:a.swatch},le.createElement(U1,{hsl:n,offset:".80",active:Math.abs(n.l-.8)<i&&Math.abs(n.s-.5)<i,onClick:r,first:!0})),le.createElement("div",{style:a.swatch},le.createElement(U1,{hsl:n,offset:".65",active:Math.abs(n.l-.65)<i&&Math.abs(n.s-.5)<i,onClick:r})),le.createElement("div",{style:a.swatch},le.createElement(U1,{hsl:n,offset:".50",active:Math.abs(n.l-.5)<i&&Math.abs(n.s-.5)<i,onClick:r})),le.createElement("div",{style:a.swatch},le.createElement(U1,{hsl:n,offset:".35",active:Math.abs(n.l-.35)<i&&Math.abs(n.s-.5)<i,onClick:r})),le.createElement("div",{style:a.swatch},le.createElement(U1,{hsl:n,offset:".20",active:Math.abs(n.l-.2)<i&&Math.abs(n.s-.5)<i,onClick:r,last:!0})),le.createElement("div",{style:a.clear}))},tdt=function(){var t=_n({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 le.createElement("div",{style:t.picker})},nH=function(t){var r=t.hsl,n=t.onChange,a=t.pointer,i=t.styles,o=i===void 0?{}:i,s=t.className,l=s===void 0?"":s,c=_n(zl({default:{hue:{height:"12px",position:"relative"},Hue:{radius:"2px"}}},o));return le.createElement("div",{style:c.wrap||{},className:"slider-picker "+l},le.createElement("div",{style:c.hue},le.createElement(ky,{style:c.Hue,hsl:r,pointer:a,onChange:n})),le.createElement("div",{style:c.swatches},le.createElement(edt,{hsl:r,onClick:n})))};nH.propTypes={styles:W.object};nH.defaultProps={pointer:tdt,styles:{}};Ll(nH);var gI={},pre;function rdt(){if(pre)return gI;pre=1,Object.defineProperty(gI,"__esModule",{value:!0});var e=Object.assign||function(o){for(var s=1;s<arguments.length;s++){var l=arguments[s];for(var c in l)Object.prototype.hasOwnProperty.call(l,c)&&(o[c]=l[c])}return o},t=Ur(),r=n(t);function n(o){return o&&o.__esModule?o:{default:o}}function a(o,s){var l={};for(var c in o)s.indexOf(c)>=0||Object.prototype.hasOwnProperty.call(o,c)&&(l[c]=o[c]);return l}var i=24;return gI.default=function(o){var s=o.fill,l=s===void 0?"currentColor":s,c=o.width,A=c===void 0?i:c,u=o.height,d=u===void 0?i:u,f=o.style,h=f===void 0?{}:f,g=a(o,["fill","width","height","style"]);return r.default.createElement("svg",e({viewBox:"0 0 "+i+" "+i,style:e({fill:l,width:A,height:d},h)},g),r.default.createElement("path",{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}))},gI}var ndt=rdt();const adt=gn(ndt);var idt=function(t){var r=t.color,n=t.onClick,a=n===void 0?function(){}:n,i=t.onSwatchHover,o=t.first,s=t.last,l=t.active,c=_n({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:r,marginBottom:"1px"},check:{color:GU(r),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:o,last:s,active:l,"color-#FFFFFF":r==="#FFFFFF",transparent:r==="transparent"});return le.createElement(vm,{color:r,style:c.color,onClick:a,onHover:i,focusStyle:{boxShadow:"0 0 4px "+r}},le.createElement("div",{style:c.check},le.createElement(adt,null)))},odt=function(t){var r=t.onClick,n=t.onSwatchHover,a=t.group,i=t.active,o=_n({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return le.createElement("div",{style:o.group},mm(a,function(s,l){return le.createElement(idt,{key:s,color:s,active:s.toLowerCase()===i,first:l===0,last:l===a.length-1,onClick:r,onSwatchHover:n})}))},aH=function(t){var r=t.width,n=t.height,a=t.onChange,i=t.onSwatchHover,o=t.colors,s=t.hex,l=t.styles,c=l===void 0?{}:l,A=t.className,u=A===void 0?"":A,d=_n(zl({default:{picker:{width:r,height:n},overflow:{height:n,overflowY:"scroll"},body:{padding:"16px 0 6px 16px"},clear:{clear:"both"}}},c)),f=function(g,p){return a({hex:g,source:"hex"},p)};return le.createElement("div",{style:d.picker,className:"swatches-picker "+u},le.createElement(Qx,null,le.createElement("div",{style:d.overflow},le.createElement("div",{style:d.body},mm(o,function(h){return le.createElement(odt,{key:h.toString(),group:h,active:s,onClick:f,onSwatchHover:i})}),le.createElement("div",{style:d.clear})))))};aH.propTypes={width:W.oneOfType([W.string,W.number]),height:W.oneOfType([W.string,W.number]),colors:W.arrayOf(W.arrayOf(W.string)),styles:W.object};aH.defaultProps={width:320,height:240,colors:[[O0[900],O0[700],O0[500],O0[300],O0[100]],[j0[900],j0[700],j0[500],j0[300],j0[100]],[z0[900],z0[700],z0[500],z0[300],z0[100]],[L0[900],L0[700],L0[500],L0[300],L0[100]],[Y0[900],Y0[700],Y0[500],Y0[300],Y0[100]],[U0[900],U0[700],U0[500],U0[300],U0[100]],[H0[900],H0[700],H0[500],H0[300],H0[100]],[G0[900],G0[700],G0[500],G0[300],G0[100]],[K0[900],K0[700],K0[500],K0[300],K0[100]],["#194D33",fw[700],fw[500],fw[300],fw[100]],[V0[900],V0[700],V0[500],V0[300],V0[100]],[J0[900],J0[700],J0[500],J0[300],J0[100]],[W0[900],W0[700],W0[500],W0[300],W0[100]],[X0[900],X0[700],X0[500],X0[300],X0[100]],[q0[900],q0[700],q0[500],q0[300],q0[100]],[Z0[900],Z0[700],Z0[500],Z0[300],Z0[100]],[$0[900],$0[700],$0[500],$0[300],$0[100]],[eE[900],eE[700],eE[500],eE[300],eE[100]],["#000000","#525252","#969696","#D9D9D9","#FFFFFF"]],styles:{}};Ll(aH);var iH=function(t){var r=t.onChange,n=t.onSwatchHover,a=t.hex,i=t.colors,o=t.width,s=t.triangle,l=t.styles,c=l===void 0?{}:l,A=t.className,u=A===void 0?"":A,d=_n(zl({default:{card:{width:o,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"}}},c),{"hide-triangle":s==="hide","top-left-triangle":s==="top-left","top-right-triangle":s==="top-right"}),f=function(g,p){Kg(g)&&r({hex:g,source:"hex"},p)};return le.createElement("div",{style:d.card,className:"twitter-picker "+u},le.createElement("div",{style:d.triangleShadow}),le.createElement("div",{style:d.triangle}),le.createElement("div",{style:d.body},mm(i,function(h,g){return le.createElement(vm,{key:g,color:h,hex:h,style:d.swatch,onClick:f,onHover:n,focusStyle:{boxShadow:"0 0 4px "+h}})}),le.createElement("div",{style:d.hash},"#"),le.createElement(ga,{label:null,style:{input:d.input},value:a.replace("#",""),onChange:f}),le.createElement("div",{style:d.clear})))};iH.propTypes={width:W.oneOfType([W.string,W.number]),triangle:W.oneOf(["hide","top-left","top-right"]),colors:W.arrayOf(W.string),styles:W.object};iH.defaultProps={width:276,colors:["#FF6900","#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#9900EF"],triangle:"top-left",styles:{}};Ll(iH);var oH=function(t){var r=_n({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",border:"2px #fff solid",transform:"translate(-12px, -13px)",background:"hsl("+Math.round(t.hsl.h)+", "+Math.round(t.hsl.s*100)+"%, "+Math.round(t.hsl.l*100)+"%)"}}});return le.createElement("div",{style:r.picker})};oH.propTypes={hsl:W.shape({h:W.number,s:W.number,l:W.number,a:W.number})};oH.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var sH=function(t){var r=_n({default:{picker:{width:"20px",height:"20px",borderRadius:"22px",transform:"translate(-10px, -7px)",background:"hsl("+Math.round(t.hsl.h)+", 100%, 50%)",border:"2px white solid"}}});return le.createElement("div",{style:r.picker})};sH.propTypes={hsl:W.shape({h:W.number,s:W.number,l:W.number,a:W.number})};sH.defaultProps={hsl:{a:1,h:249.94,l:.2,s:.5}};var sdt=function(t){var r=t.onChange,n=t.rgb,a=t.hsl,i=t.hex,o=t.hsv,s=function(f,h){if(f.hex)Kg(f.hex)&&r({hex:f.hex,source:"hex"},h);else if(f.rgb){var g=f.rgb.split(",");jk(f.rgb,"rgb")&&r({r:g[0],g:g[1],b:g[2],a:1,source:"rgb"},h)}else if(f.hsv){var p=f.hsv.split(",");jk(f.hsv,"hsv")&&(p[2]=p[2].replace("%",""),p[1]=p[1].replace("%",""),p[0]=p[0].replace("°",""),p[1]==1?p[1]=.01:p[2]==1&&(p[2]=.01),r({h:Number(p[0]),s:Number(p[1]),v:Number(p[2]),source:"hsv"},h))}else if(f.hsl){var m=f.hsl.split(",");jk(f.hsl,"hsl")&&(m[2]=m[2].replace("%",""),m[1]=m[1].replace("%",""),m[0]=m[0].replace("°",""),u[1]==1?u[1]=.01:u[2]==1&&(u[2]=.01),r({h:Number(m[0]),s:Number(m[1]),v:Number(m[2]),source:"hsl"},h))}},l=_n({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"}}}),c=n.r+", "+n.g+", "+n.b,A=Math.round(a.h)+"°, "+Math.round(a.s*100)+"%, "+Math.round(a.l*100)+"%",u=Math.round(o.h)+"°, "+Math.round(o.s*100)+"%, "+Math.round(o.v*100)+"%";return le.createElement("div",{style:l.wrap,className:"flexbox-fix"},le.createElement("div",{style:l.fields},le.createElement("div",{style:l.double},le.createElement(ga,{style:{input:l.input,label:l.label},label:"hex",value:i,onChange:s})),le.createElement("div",{style:l.column},le.createElement("div",{style:l.single},le.createElement(ga,{style:{input:l.input2,label:l.label2},label:"rgb",value:c,onChange:s})),le.createElement("div",{style:l.single},le.createElement(ga,{style:{input:l.input2,label:l.label2},label:"hsv",value:u,onChange:s})),le.createElement("div",{style:l.single},le.createElement(ga,{style:{input:l.input2,label:l.label2},label:"hsl",value:A,onChange:s})))))},lH=function(t){var r=t.width,n=t.onChange,a=t.rgb,i=t.hsl,o=t.hsv,s=t.hex,l=t.header,c=t.styles,A=c===void 0?{}:c,u=t.className,d=u===void 0?"":u,f=_n(zl({default:{picker:{width:r,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("+a.r+", "+a.g+", "+a.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"}}},A));return le.createElement("div",{style:f.picker,className:"google-picker "+d},le.createElement("div",{style:f.head},l),le.createElement("div",{style:f.swatch}),le.createElement("div",{style:f.saturation},le.createElement(F4,{hsl:i,hsv:o,pointer:oH,onChange:n})),le.createElement("div",{style:f.body},le.createElement("div",{style:f.controls,className:"flexbox-fix"},le.createElement("div",{style:f.hue},le.createElement(ky,{style:f.Hue,hsl:i,radius:"4px",pointer:sH,onChange:n}))),le.createElement(sdt,{rgb:a,hsl:i,hex:s,hsv:o,onChange:n})))};lH.propTypes={width:W.oneOfType([W.string,W.number]),styles:W.object,header:W.string};lH.defaultProps={width:652,styles:{},header:"Color picker"};Ll(lH);const wB=({onChange:e,color:t,style:r,triangle:n,buttonStyle:a,position:i="bottom"})=>{const o=ut(g=>g.cti.ui.primaryColor),[s,l]=E.useState(!1),c=new Event("onChange"),A=["#FCB900","#7BDCB5","#00D084","#8ED1FC","#0693E3","#ABB8C3","#EB144C","#F78DA7","#FF8801"],u=Array.from(new Set([o,...A])),d=()=>{l(!s)},f=(g,p)=>{l(!1),e(g,p),dispatchEvent(c)};let h="";return i==="top"&&(h="translateY(-200px)"),v.jsxs("div",{className:"color-picker-container",children:[v.jsxs("div",{className:"color-button",style:a,children:[v.jsx("div",{onClick:d,style:{width:"36px",height:"14px",borderRadius:"2px",backgroundColor:t}}),s?v.jsx("div",{className:"wrapper",style:{...r,transform:h},children:v.jsx(Iut,{triangle:n,colors:u,color:t,onChangeComplete:f,style:r})}):null]}),v.jsx("div",{style:a,className:"reset-button",children:t?v.jsx(Mi,{placement:"top",title:"Supprimer la couleur",children:v.jsx(yt,{type:"danger",icon:v.jsx(ki,{}),onClick:f,size:"small"})}):null})]})},{Option:v0}=sn,Wwe=()=>{const[e,t]=E.useState(!1),r=ut(x=>x.cti.ui.primaryColor),n=ut(x=>x.cti.settings.data.session),a=ut(x=>x.cti.settings.user.homePageDefaultModule),i=ut(x=>x.cti.settings.user.showGraphs),o=ut(x=>x.cti.settings.user.spreadsheetEditor),s=ut(x=>x.cti.settings.user.spreadsheetSeparator),l=ut(x=>x.cti.settings.user.pmsiDefaultModule),c=ut(x=>x.cti.menu.modules),A=ut(x=>x.cti.settings.user.expandedRows),[u]=We.useForm(),d=wn(),f=n.CONNECTEDUSER,[h,g]=E.useState(r);let p=A==="ouvert";const m=async x=>{x.expandedRows===!0?x.expandedRows="ouvert":x.expandedRows="fermé";let{...M}=x;d(Mge(M)),t(!0),x.primaryColor===void 0?x.primaryColor=h:x.primaryColor=x.primaryColor?.hex,d(Cge(x.primaryColor));try{await Qit(f,x),ya({type:"success",message:"Succès",description:"Modification des settings utilisateur réussie !"}),u.resetFields()}catch{ya({type:"error",message:"Erreur",description:"Une erreur est survenue pendant la mise à jour des settings utilisateur..."})}},y=x=>{g(x.hex),t(!0)},C=(x,M)=>{t(!0)},w=()=>{t(!1),u.submit(),ya({type:"success",message:"Paramètres",description:"Paramètres enregistrés"})},B=Object.values(c).filter(x=>x.name.toUpperCase().includes("PMSI"));return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"page-header",children:[v.jsx("h1",{className:"header-title",children:"Options"}),v.jsx("div",{className:"header-actions",children:v.jsx(ny,{handleClick:w,disabledAction:!e,toolTipTitle:"Enregistrer"})})]}),v.jsx("div",{className:"page-content",style:{overflow:"scroll"},children:v.jsxs(We,{form:u,onValuesChange:C,onFinish:m,initialValues:{pmsiDefaultModule:l,homePageDefaultModule:a,spreadsheetSeparator:s,spreadsheetEditor:o,showGraphs:i,primaryColor:r,expandedRows:p},children:[v.jsxs("div",{className:"options-section",children:[v.jsx("h2",{className:"section-title",children:"Paramètres d'affichage "}),v.jsx(tu,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsxs("div",{className:"section-body",children:[v.jsxs(Uo,{children:[v.jsx(Ta,{span:4,children:v.jsx("span",{className:"first-label",children:"Principale"})}),v.jsx(Ta,{span:6,children:v.jsx(We.Item,{name:"primaryColor",className:"form-item-element",children:v.jsx(wB,{color:h,onChange:y,style:{right:"120px",top:"24px",position:"relative"}})})})]}),v.jsxs(Uo,{children:[v.jsx(Ta,{span:4,children:v.jsx("span",{className:"first-label",children:"Affichage des graphiques "})}),v.jsx(We.Item,{name:"showGraphs",className:"form-item-element",children:v.jsx(sn,{style:{width:160},options:[{value:"always",label:"toujours"},{value:"hidden",label:"masqués"},{value:"never",label:"jamais"}]})})]})]})]}),v.jsxs("div",{className:"options-section-middle",children:[v.jsx("h2",{className:"section-title",children:"Paramètres de l'export EXCEL "}),v.jsx(tu,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsxs("div",{className:"section-body",children:[v.jsxs(Uo,{children:[v.jsx(Ta,{span:4,children:v.jsx("span",{className:"first-label",children:"Editeur CSV "})}),v.jsx(Ta,{span:6,children:v.jsx(We.Item,{name:"spreadsheetEditor",className:"form-item-element",children:v.jsxs(sn,{style:{width:160},children:[v.jsx(v0,{value:"EXCEL",children:"Microsoft Excel"}),v.jsx(v0,{value:"CSV",children:"Open Office"})]})})})]}),v.jsxs(Uo,{children:[v.jsx(Ta,{span:4,children:v.jsx("span",{className:"first-label",children:"Séparateur "})}),v.jsx(Ta,{span:6,children:v.jsx(We.Item,{name:"spreadsheetSeparator",className:"form-item-element",children:v.jsxs(sn,{style:{width:80},children:[v.jsx(v0,{value:";",children:";"}),v.jsx(v0,{value:",",children:","})]})})})]})]})]}),v.jsxs("div",{className:"options-section-middle",children:[v.jsx("h2",{className:"section-title",children:"Paramètres des menus "}),v.jsx(tu,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsxs("div",{className:"section-body",children:[v.jsxs(Uo,{children:[v.jsx(Ta,{span:4,children:v.jsx("span",{className:"first-label",children:"Module à ouvrir "})}),v.jsx(Ta,{span:6,children:v.jsx(We.Item,{name:"homePageDefaultModule",className:"form-item-element",children:v.jsx(sn,{style:{width:160},children:Object.values(c).map(({name:x,label:M},S)=>v.jsx(v0,{value:x.toLowerCase(),children:M},S))})})})]}),B.length>1?v.jsxs(Uo,{children:[v.jsx(Ta,{span:4,children:v.jsx("span",{className:"first-label",children:"Module PMSI par défaut"})}),v.jsx(Ta,{span:6,children:v.jsx(We.Item,{name:"pmsiDefaultModule",className:"form-item-element",children:v.jsx(sn,{style:{width:160},children:B.map((x,M)=>v.jsx(v0,{value:x.name.toLowerCase(),children:x.label},M))})})})]}):null]})]}),v.jsxs("div",{className:"options-section-middle",children:[v.jsx("h2",{className:"section-title",children:"Paramètres des Tableaux"}),v.jsx(tu,{style:{marginTop:"0px",marginBottom:"10px"}}),v.jsx("div",{className:"section-body",children:v.jsxs(Uo,{children:[v.jsx(Ta,{span:4,children:v.jsx("span",{className:"first-label",children:"Ouverture par défaut des regroupements"})}),v.jsx(Ta,{span:6,children:v.jsx(We.Item,{className:"form-item-element",name:"expandedRows",valuePropName:"checked",children:v.jsx(bo,{defaultChecked:p})})})]})})]})]})})]})},aR=({status:e,env:t,provider:r,module:n,duration:a,start:i,running:o})=>{const s=ut(h=>h.cti.settings.data),l=window.location,c=l.origin,A=l.pathname.replace(s.environment.ICTIDIR,`iCTI_${t.code}`);let u="exploit-env",d="",f="";switch(e){case 0:d="rgb(240, 255, 241)",f="3px solid rgb(124, 217, 146)";break;case 1:d="rgb(254, 255, 240)",f="3px solid rgb(247, 228, 99)";break;case 2:d="rgb(255, 242, 240)",f="3px solid rgb(235, 96, 96)";break;case-1:d="rgb(211,211,211)",f="3px solid rgb(122, 122, 122)";break}return v.jsx("a",{href:c+A,target:"_blank",rel:"noreferrer",children:v.jsxs("div",{className:u,style:{backgroundColor:d,border:f},children:[v.jsxs("div",{className:"exploit-label",children:[o===1&&v.jsx(tm,{className:"exploit__icon",spin:!0}),n??`${t.code} - ${t.trig&&t.trig!==""?t.trig+" - ":""}${t.comment}`]}),i&&v.jsxs("div",{className:"exploit-duration",children:["Débuté le ",ei(i).format("DD/MM/YYYY à HH:mm")]}),a&&v.jsxs("div",{className:"exploit-duration",children:["Durée: ",a]}),v.jsx("div",{className:"exploit-provider",children:r})]},n||t.code)})};aR.propTypes={status:W.number,env:W.object,provider:W.string,module:W.string,duration:W.string,start:W.string,running:W.number};const vre={iCTI_activite:"ADMPROVIDER",iCTI_pmsi:"PMSIPROVIDER",iCTI_pmsipsy:"PMSIPSYPROVIDER",iCTI_pmsihad:"PMSIHADPROVIDER",iCTI_pmsissr:"PMSISSRPROVIDER",iCTI_rh:"RHPROVIDER",iCTI_compta:"COMPTAPROVIDER",iCTI_eco:"ECOPROVIDER",iCTI_dpi:"DPIPROVIDER"},Xwe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.094 13.281a2.35 2.35 0 0 0-2.21 1.563H16.97l-1.384-4.153a.78.78 0 0 0-1.492.032l-2.174 7.605L9.364 2.996a.781.781 0 0 0-1.528-.06L4.859 14.843H2.344a.781.781 0 1 0 0 1.562h3.125a.78.78 0 0 0 .758-.591L8.44 6.959l2.508 15.045a.78.78 0 0 0 .727.652h.044a.78.78 0 0 0 .75-.566l2.432-8.51.764 2.292a.78.78 0 0 0 .741.534h2.478a2.344 2.344 0 1 0 2.21-3.125"})}),qwe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 15.875h3.125l3.125-12.5 3.125 18.75 3.125-10.937 1.562 4.687h3.125"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21.094 17.188a1.562 1.562 0 1 0 0-3.125 1.562 1.562 0 0 0 0 3.124"})]}),Zwe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M4.663 5.078h15.625q.274 0 .546.035A3.224 3.224 0 0 0 17.049 2.4L4.2 4.594h-.014A3.22 3.22 0 0 0 2.179 5.87a4.28 4.28 0 0 1 2.484-.792M20.288 6.25H4.663a3.13 3.13 0 0 0-3.125 3.125v9.375a3.13 3.13 0 0 0 3.125 3.125h15.625a3.13 3.13 0 0 0 3.125-3.125V9.375a3.13 3.13 0 0 0-3.125-3.125m-2.32 9.375a1.562 1.562 0 1 1 0-3.125 1.562 1.562 0 0 1 0 3.125"}),v.jsx("path",{fill:"currentColor",d:"M1.563 12.67V7.814c0-1.059.585-2.833 2.62-3.217 1.725-.324 3.434-.324 3.434-.324s1.123.782.196.782c-.928 0-.904 1.196 0 1.196.903 0 0 1.147 0 1.147l-3.638 4.126z"})]}),$we=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M20.313 7.031H4.688a2.344 2.344 0 0 0-2.344 2.344v9.375a2.344 2.344 0 0 0 2.344 2.344h15.625a2.344 2.344 0 0 0 2.343-2.344V9.375a2.344 2.344 0 0 0-2.343-2.344Z"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M20.086 7.031V5.566a2.442 2.442 0 0 0-2.898-2.397L4.328 5.364a2.44 2.44 0 0 0-1.984 2.4v2.392"}),v.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:2,d:"M17.969 14.625a.563.563 0 1 1 0-1.125.563.563 0 0 1 0 1.125Z"})]}),eBe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M17.969 2.344h-.557a.39.39 0 0 1-.364-.248A2.06 2.06 0 0 0 15.13.78H9.87a2.06 2.06 0 0 0-1.918 1.315.39.39 0 0 1-.364.248h-.557a3.125 3.125 0 0 0-3.125 3.125v15.625a3.125 3.125 0 0 0 3.125 3.125H17.97a3.125 3.125 0 0 0 3.125-3.125V5.469a3.125 3.125 0 0 0-3.125-3.125m-2.35 3.125H9.38a.781.781 0 1 1 0-1.563h6.238a.781.781 0 1 1 0 1.563"})}),tBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M16.406 3.125h1.563a2.343 2.343 0 0 1 2.343 2.344v15.625a2.343 2.343 0 0 1-2.343 2.343H7.03a2.344 2.344 0 0 1-2.343-2.343V5.469A2.344 2.344 0 0 1 7.03 3.125h1.563"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M15.13 1.563H9.87c-.705 0-1.276.57-1.276 1.275v.574c0 .704.571 1.276 1.276 1.276h5.26c.705 0 1.276-.572 1.276-1.276v-.574c0-.704-.571-1.275-1.276-1.275Z"})]}),rBe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.528 6.655a.195.195 0 0 0 0-.337L14.07 1.985a3.13 3.13 0 0 0-3.14 0L3.472 6.318a.195.195 0 0 0 0 .337l8.93 5.253a.2.2 0 0 0 .198 0zM2.637 7.984a.195.195 0 0 0-.293.17v8.491a2.34 2.34 0 0 0 1.164 2.021l7.918 4.748a.196.196 0 0 0 .293-.17v-9.85a.2.2 0 0 0-.098-.17zm10.644 5.444v9.814a.195.195 0 0 0 .293.17l7.918-4.748a2.34 2.34 0 0 0 1.164-2.019v-8.49a.196.196 0 0 0-.293-.17L13.38 13.26a.2.2 0 0 0-.098.169"})}),nBe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21.875 16.668V8.331a1.56 1.56 0 0 0-.776-1.349l-7.422-4.319a2.34 2.34 0 0 0-2.355 0L3.9 6.983a1.56 1.56 0 0 0-.776 1.348v8.337a1.56 1.56 0 0 0 .776 1.35l7.422 4.319a2.34 2.34 0 0 0 2.355 0l7.422-4.32a1.56 1.56 0 0 0 .775-1.349M3.37 7.519l9.13 5.371m0 0 9.13-5.371M12.5 12.89v9.766"})}),aBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M12.889 9.89a.195.195 0 0 0 .222 0 7.42 7.42 0 0 1 6.272-.997.195.195 0 0 0 .251-.196A6.65 6.65 0 0 0 13 2.344a6.65 6.65 0 0 0-6.634 6.355.195.195 0 0 0 .251.195 7.42 7.42 0 0 1 6.272.997zm7.402.489a7.45 7.45 0 0 1-4.057 5.285.2.2 0 0 0-.111.18l.002.172a7.4 7.4 0 0 1-2.302 5.368.195.195 0 0 0 .031.308 6.6 6.6 0 0 0 3.443.964c3.519 0 6.548-2.943 6.64-6.462a6.64 6.64 0 0 0-3.357-5.95.194.194 0 0 0-.252.05.2.2 0 0 0-.037.085"}),v.jsx("path",{fill:"currentColor",d:"M19.57 9.945a.195.195 0 0 0-.13-.215 6.63 6.63 0 0 0-5.587.61.2.2 0 0 0-.09.146.2.2 0 0 0 .06.161 7.4 7.4 0 0 1 2.17 3.975.196.196 0 0 0 .29.132 6.66 6.66 0 0 0 3.288-4.81m-9.695 6.07q0-.086.002-.171a.2.2 0 0 0-.11-.18 7.45 7.45 0 0 1-4.058-5.285.195.195 0 0 0-.287-.135 6.64 6.64 0 0 0-3.357 5.95c.095 3.519 3.122 6.462 6.64 6.462a6.6 6.6 0 0 0 3.441-.964.195.195 0 0 0 .031-.308 7.4 7.4 0 0 1-2.302-5.368"}),v.jsx("path",{fill:"currentColor",d:"M8.703 9.375c-.729 0-1.453.12-2.142.355a.195.195 0 0 0-.132.215 6.66 6.66 0 0 0 3.287 4.81.195.195 0 0 0 .29-.133 7.4 7.4 0 0 1 2.172-3.975.195.195 0 0 0-.032-.307 6.6 6.6 0 0 0-3.443-.965M13 16.406c-.706 0-1.408-.1-2.086-.299a.195.195 0 0 0-.251.196 6.63 6.63 0 0 0 2.206 4.658.195.195 0 0 0 .262 0 6.63 6.63 0 0 0 2.206-4.658.196.196 0 0 0-.251-.196c-.678.2-1.38.3-2.086.3m2.274-1.35a6.64 6.64 0 0 0-2.142-3.984.2.2 0 0 0-.264 0 6.64 6.64 0 0 0-2.142 3.983.195.195 0 0 0 .131.215 6.64 6.64 0 0 0 4.286 0 .195.195 0 0 0 .13-.215"})]}),iBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 14.844a5.86 5.86 0 1 0 0-11.72 5.86 5.86 0 0 0 0 11.72Z"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M16.797 21.875a5.86 5.86 0 1 0 0-11.719 5.86 5.86 0 0 0 0 11.719Z"}),v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M8.203 21.875a5.86 5.86 0 1 0 0-11.719 5.86 5.86 0 0 0 0 11.719Z"})]}),oBe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 22",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.531 9.358a3.9 3.9 0 0 0-1.562-.327H5.906A3.91 3.91 0 0 0 2 12.937v5.47a.781.781 0 1 0 1.563 0v-.391a.396.396 0 0 1 .39-.391h17.969a.396.396 0 0 1 .39.39v.391a.781.781 0 1 0 1.563 0v-5.468a3.91 3.91 0 0 0-2.344-3.58M18.797 2H7.078a2.734 2.734 0 0 0-2.734 2.734V8.25a.195.195 0 0 0 .25.188 4.7 4.7 0 0 1 1.312-.188h.207a.195.195 0 0 0 .195-.173 1.56 1.56 0 0 1 1.551-1.39h2.735a1.56 1.56 0 0 1 1.553 1.39.195.195 0 0 0 .195.173h1.194a.195.195 0 0 0 .195-.173 1.563 1.563 0 0 1 1.55-1.39h2.735a1.56 1.56 0 0 1 1.552 1.39.195.195 0 0 0 .196.173h.205c.444 0 .886.063 1.313.188a.195.195 0 0 0 .25-.188V4.734A2.734 2.734 0 0 0 18.796 2"})}),sBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 20.313v-5.47a3.135 3.135 0 0 1 3.125-3.124H19.53a3.134 3.134 0 0 1 3.125 3.125v5.469m-3.906-8.594H4.688V6.64A1.96 1.96 0 0 1 6.64 4.688h11.718a1.96 1.96 0 0 1 1.953 1.953v5.078z"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 20.313v-.391a1.176 1.176 0 0 1 1.172-1.172h17.968a1.176 1.176 0 0 1 1.172 1.172v.39M5.47 11.72v-.781A1.567 1.567 0 0 1 7.03 9.375h3.907a1.567 1.567 0 0 1 1.562 1.563m0 0v.78m0-.78a1.567 1.567 0 0 1 1.563-1.563h3.906a1.567 1.567 0 0 1 1.562 1.563v.78"})]}),lBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M9.458 7.463a.781.781 0 0 1 1.447.125l1.777 5.926 1.465-2.926a.78.78 0 0 1 1.397 0l1.345 2.693h4.725a10.4 10.4 0 0 0 1.042-4.656c-.03-3.032-2.464-5.5-5.424-5.5-2.348 0-3.906 1.442-4.732 2.49-.824-1.05-2.384-2.49-4.732-2.49-2.96 0-5.393 2.468-5.424 5.5-.013 1.048.134 2.09.436 3.094h4.55z"}),v.jsx("path",{fill:"currentColor",d:"m15.708 14.412-.864-1.727-1.645 3.29a.782.782 0 0 1-1.45-.125L9.972 9.924 8.507 12.85a.78.78 0 0 1-.694.431H3.386a14 14 0 0 0 1.82 2.816c.917 1.117 2.578 2.903 6.416 5.508a1.555 1.555 0 0 0 1.757 0c3.838-2.605 5.5-4.391 6.416-5.508q.495-.603.928-1.253h-4.317a.78.78 0 0 1-.698-.432m6.948-1.13h-1.042q-.39.812-.891 1.562h1.933a.781.781 0 1 0 0-1.563M2.344 11.718a.781.781 0 0 0 0 1.562h1.042a11 11 0 0 1-.606-1.562z"})]}),cBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M17.232 3.906c-3.17 0-4.732 3.125-4.732 3.125s-1.562-3.125-4.732-3.125c-2.577 0-4.617 2.156-4.643 4.727-.054 5.339 4.235 9.135 8.936 12.326a.78.78 0 0 0 .879 0c4.7-3.19 8.988-6.987 8.935-12.326-.026-2.571-2.066-4.727-4.643-4.727"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2.344 12.5h5.469l2.343-4.687 2.344 7.812 2.344-4.687 1.562 3.124h6.25"})]}),ldt=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M21.875 4.688a3.125 3.125 0 1 0-4.703 2.695c-.087 1.02-.56 1.86-1.41 2.505-.866.659-2.086 1.05-3.262 1.05s-2.396-.391-3.263-1.05c-.85-.644-1.322-1.486-1.41-2.505a3.125 3.125 0 1 0-3.13.014c.102 1.996 1.034 3.754 2.652 4.981 1.015.77 2.27 1.303 3.589 1.542v3.688a3.125 3.125 0 1 0 3.124 0V13.92c1.319-.239 2.574-.772 3.589-1.542 1.618-1.227 2.55-2.985 2.652-4.98a3.13 3.13 0 0 0 1.572-2.71M6.25 3.125a1.563 1.563 0 1 1 0 3.125 1.563 1.563 0 0 1 0-3.125m6.25 18.75a1.563 1.563 0 1 1 0-3.125 1.563 1.563 0 0 1 0 3.125M18.75 6.25a1.563 1.563 0 1 1 0-3.126 1.563 1.563 0 0 1 0 3.126"})}),ABe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.25 7.031a2.344 2.344 0 1 0 0-4.687 2.344 2.344 0 0 0 0 4.687M12.5 22.656a2.344 2.344 0 1 0 0-4.687 2.344 2.344 0 0 0 0 4.687M12.5 12.5v5.469M18.75 7.031a2.344 2.344 0 1 0 0-4.687 2.344 2.344 0 0 0 0 4.687"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6.25 7.031c0 3.646 3.365 5.469 6.25 5.469s6.25-1.823 6.25-5.469"})]}),J6=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M13.135 16.387a8.4 8.4 0 0 1-1.382-.01 8.6 8.6 0 0 1-6.233-3.562.195.195 0 0 0-.331.017L1.673 19.15c-.133.245-.154.538-.013.776a.82.82 0 0 0 .694.387h3.81a.75.75 0 0 1 .664.357l1.888 3.158a.8.8 0 0 0 .671.39c.29-.015.59-.204.711-.468l3.228-7.087a.195.195 0 0 0-.191-.276m10.187 2.748-3.492-6.307a.195.195 0 0 0-.33-.018 8.6 8.6 0 0 1-3.823 3 .79.79 0 0 0-.426.402l-1.8 3.96a.39.39 0 0 0 0 .322l1.478 3.252c.12.264.42.457.71.473a.8.8 0 0 0 .668-.397l1.882-3.153c.14-.237.396-.358.672-.357h3.846c.326 0 .573-.17.684-.488a.83.83 0 0 0-.069-.69M12.513 10.156a2.344 2.344 0 1 0 0-4.688 2.344 2.344 0 0 0 0 4.688"}),v.jsx("path",{fill:"currentColor",d:"M12.513.781A7.04 7.04 0 0 0 5.48 7.813a7.04 7.04 0 0 0 7.032 7.03 7.04 7.04 0 0 0 7.03-7.03A7.04 7.04 0 0 0 12.514.78m0 10.938a3.906 3.906 0 1 1 0-7.812 3.906 3.906 0 0 1 0 7.812"})]}),cdt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 14.063a6.25 6.25 0 1 0 0-12.5 6.25 6.25 0 0 0 0 12.5"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m7.014 11.124-4.67 8.407 4.241-.02a.78.78 0 0 1 .675.38l2.115 3.547 4.313-9.489M17.898 10.938l4.758 8.593-4.241-.02a.78.78 0 0 0-.675.38l-2.115 3.547-3.125-6.875M12.5 10.938a3.125 3.125 0 1 0 0-6.25 3.125 3.125 0 0 0 0 6.25"})]}),uBe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M16.406 12.5c-1.004 0-1.974-.448-2.734-1.262a4.88 4.88 0 0 1-1.27-2.978c-.085-1.202.282-2.308 1.033-3.114.75-.805 1.8-1.24 2.971-1.24 1.164 0 2.216.443 2.964 1.246.755.812 1.123 1.915 1.038 3.107-.081 1.129-.532 2.186-1.27 2.979-.757.814-1.727 1.262-2.732 1.262m6.437 8.594H9.97a1.35 1.35 0 0 1-1.074-.521 1.48 1.48 0 0 1-.257-1.26c.41-1.65 1.43-3.02 2.945-3.958 1.345-.834 3.058-1.293 4.822-1.293 1.8 0 3.467.44 4.82 1.273 1.52.934 2.54 2.31 2.948 3.981a1.48 1.48 0 0 1-.26 1.26 1.35 1.35 0 0 1-1.07.518M7.178 12.695c-1.719 0-3.23-1.597-3.37-3.56-.069-1.007.245-1.937.88-2.619.627-.675 1.513-1.047 2.49-1.047.976 0 1.855.374 2.487 1.053.64.687.952 1.616.879 2.613-.14 1.963-1.65 3.56-3.366 3.56m3.206 1.536c-.86-.42-1.974-.63-3.206-.63-1.438 0-2.835.375-3.934 1.056C2 15.43 1.161 16.555.822 17.914a1.34 1.34 0 0 0 .234 1.14 1.24 1.24 0 0 0 .981.477h5.42a.39.39 0 0 0 .384-.32l.02-.092c.414-1.663 1.385-3.069 2.818-4.093a.392.392 0 0 0-.03-.654 4 4 0 0 0-.265-.141"})}),dBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19.629 8.203c-.143 1.986-1.616 3.516-3.223 3.516s-3.082-1.53-3.222-3.516c-.147-2.066 1.287-3.515 3.222-3.515s3.37 1.487 3.223 3.515"}),v.jsx("path",{stroke:"currentColor",strokeMiterlimit:10,strokeWidth:2,d:"M16.406 14.844c-3.182 0-6.242 1.58-7.009 4.658-.101.408.154.81.573.81h12.873c.419 0 .673-.402.573-.81-.767-3.127-3.827-4.658-7.01-4.658Z"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9.766 9.08c-.115 1.585-1.305 2.834-2.588 2.834S4.702 10.666 4.59 9.08C4.473 7.43 5.632 6.25 7.178 6.25s2.704 1.21 2.588 2.83"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:2,d:"M10.059 14.941c-.882-.403-1.852-.559-2.881-.559-2.54 0-4.986 1.263-5.598 3.721-.081.325.123.647.457.647H7.52"})]}),fBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M3.728 17.432a.78.78 0 0 1-.714-.462A10.937 10.937 0 0 1 13 1.563a.78.78 0 0 1 .781.78V12.5a.78.78 0 0 1-.462.713l-9.273 4.148a.8.8 0 0 1-.318.07"}),v.jsx("path",{fill:"currentColor",d:"M15.812 3.33a.39.39 0 0 0-.468.38v8.79a2.35 2.35 0 0 1-1.387 2.14l-8.421 3.768a.39.39 0 0 0-.164.577c.645.948 1.445 1.78 2.366 2.461a10.07 10.07 0 0 0 6.043 1.991c5.6 0 10.157-4.556 10.157-10.156 0-4.905-3.496-9.009-8.126-9.952"})]}),hBe=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:2,d:"M12.502 3.938q.385-.032.78-.032c5.175 0 9.374 4.2 9.374 9.375 0 5.176-4.199 9.375-9.375 9.375a9.38 9.38 0 0 1-8.93-6.511"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 2.344C6.89 2.344 2.344 6.89 2.344 12.5c-.002 1.43.299 2.845.883 4.15L12.5 12.5z"})]}),W6=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M16.406 16.406H1.563a.78.78 0 0 1-.684-1.162L8.3 1.962a.781.781 0 0 1 1.364 0l7.422 13.282a.78.78 0 0 1-.68 1.162"}),v.jsx("path",{fill:"currentColor",d:"M16.406 7.813c-.534 0-1.067.054-1.59.162l3.636 6.507a2.344 2.344 0 0 1-2.046 3.487H8.952a7.813 7.813 0 1 0 7.454-10.157"})]}),gBe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M12.955 9.498a7.031 7.031 0 1 1-3.58 6.127m7.031 0H1.563L8.984 2.344z"})}),pBe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M22.927 5.885a.782.782 0 0 0-1.247-.196l-3 3.002a.787.787 0 0 1-1.105 0l-1.297-1.298a.78.78 0 0 1 0-1.105L19.265 3.3a.782.782 0 0 0-.233-1.266c-2.257-1.009-5.073-.482-6.849 1.28-1.509 1.499-1.958 3.84-1.233 6.423a.78.78 0 0 1-.219.781l-8.129 7.424a3.133 3.133 0 1 0 4.424 4.426l7.504-8.147a.78.78 0 0 1 .77-.223 8.8 8.8 0 0 0 2.257.311c1.63 0 3.062-.528 4.094-1.545 1.912-1.883 2.203-5.077 1.276-6.88M4.857 21.834a1.563 1.563 0 1 1-.339-3.107 1.563 1.563 0 0 1 .34 3.107"})}),cH=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 26",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeMiterlimit:10,strokeWidth:2,d:"M20.196 9.777a1.567 1.567 0 0 1-2.21 0L16.69 8.48a1.567 1.567 0 0 1 0-2.21l2.937-2.938a.05.05 0 0 0 .014-.044.05.05 0 0 0-.029-.036c-1.895-.812-4.353-.398-5.913 1.15-1.494 1.483-1.578 3.712-1.032 5.657a1.56 1.56 0 0 1-.442 1.567L4.09 19.055a2.352 2.352 0 1 0 3.32 3.32l7.513-8.154a1.56 1.56 0 0 1 1.543-.446c1.93.517 4.128.42 5.602-1.035 1.586-1.562 1.928-4.324 1.16-5.904a.05.05 0 0 0-.036-.027.05.05 0 0 0-.043.014z"}),v.jsx("path",{fill:"currentColor",d:"M5.652 21.594a.781.781 0 1 0 0-1.563.781.781 0 0 0 0 1.563"})]}),vBe=[{label:"Outils",key:"outils",icon:v.jsx(pBe,{}),index:300,iconOutline:v.jsx(cH,{})},{label:"E.I.S",key:"eis",index:0,icon:v.jsx(aBe,{}),iconOutline:v.jsx(iBe,{})},{label:"PMSI MCO",key:"pmsi",index:1,icon:v.jsx(lBe,{}),iconOutline:v.jsx(cBe,{})},{label:"PMSI SMR",key:"pmsissr",index:2,icon:v.jsx(W6,{}),iconOutline:v.jsx(gBe,{})},{label:"PMSI HAD",key:"pmsihad",index:3,icon:v.jsx(oBe,{}),iconOutline:v.jsx(sBe,{})},{label:"PMSI PSY",key:"pmsipsy",index:4,icon:v.jsx(ldt,{}),iconOutline:v.jsx(ABe,{})},{label:"Activité",key:"activite",index:5,icon:v.jsx(Xwe,{}),iconOutline:v.jsx(qwe,{})},{label:"Ressources Humaines - Paie",key:"rh",index:6,icon:v.jsx(uBe,{}),iconOutline:v.jsx(dBe,{})},{label:"DPI",key:"dpi",index:7,icon:v.jsx(eBe,{}),iconOutline:v.jsx(tBe,{})},{label:"Gestion Économique",key:"eco",index:8,icon:v.jsx(rBe,{}),iconOutline:v.jsx(nBe,{})},{label:"Comptabilité",key:"compta",index:9,icon:v.jsx(Zwe,{}),iconOutline:v.jsx($we,{})},{label:"SSAE",key:"ssae",index:13,icon:v.jsx(fBe,{}),iconOutline:v.jsx(hBe,{})},{label:"Qualite",key:"qualite",index:14,icon:v.jsx(J6,{}),iconOutline:v.jsx(cdt,{})}],hf={activite:{label:"Activite",module:"iCTI_activite"},rhs_rsf:{label:"SSR",module:"iCTI_pmsissr"},rss_rsf:{label:"PMSI",module:"iCTI_pmsi"},rss_rsf_en_cours:{label:"PMSI - Fil de l'eau",module:"iCTI_pmsi"},compta:{label:"Compta",module:"iCTI_compta"},rh:{label:"RH",module:"iCTI_rh"},planning:{label:"Planning",module:"iCTI_rh"},eco:{label:"Eco",module:"iCTI_eco"},dpi:{label:"Dpi",module:"iCTI_dpi"},aggregateCtiIndicators:{label:"Essentiels",module:"iCTI_XXX"}},mre={dpi:"DPI",pmsi:"PMSI",pmsissr:"PMSISSR",pmsiHAD:"PMSIHAD",pmsipsy:"PMSIPSY",activite:"ACTI",rh:"RH",eco:"ECO",compta:"COMPTA",ssae:"SSAE",outils:"TOOL"},Adt=["Présentation i-CTI","EHTRACE"],udt=()=>{const[e,t]=E.useState(["Synthèse"]),[r,n]=E.useState(!1),a=wn(),i=ut(f=>f.cti.components.logs.data.exploit),o=ut(f=>f.cti.components.logs.data.timestamp),s=ut(f=>f.cti.components.logs.loading),l=ut(f=>f.cti.settings.data);E.useEffect(()=>{a(uee())},[a]),E.useEffect(()=>{if(i.length){let f=[];i.forEach(h=>{h.jobs.forEach(g=>{let p="";switch(g.job){case"iCTI_consolidation_pmsi":p="iCTI_pmsi";break;case"iCTI_import_activite_consolidation":p="iCTI_activite";break;default:p=g.job.replace(/iCTI_(import_)?/,"");break}hf[p]&&!f.includes(p)&&f.push(p)})}),t(f)}},[i]);const c=()=>{a(uee())},A=f=>i.filter(g=>g.jobs.some(p=>f==="rss_rsf_en_cours"&&p.job.includes("pmsi")?!0:p.job.includes(f))).sort((g,p)=>g.code.localeCompare(p.code)).map(g=>{const p=g.jobs.find(m=>f==="rss_rsf"?m.job.includes(f)&&!m.job.includes("en_cours"):f==="rss_rsf_en_cours"&&m.job.includes("pmsi")?!0:m.job.includes(f));if(p){const m=p.status,y=p.running,C=Object.keys(g.settings).length?g.settings[vre[hf[f].module]]:"";return v.jsx(aR,{status:m,running:y,env:g,provider:C,duration:p.duration,start:p.start},g.code)}else return null}),u=()=>{let f=[];return l.environment.ISEXPLOIT==="1"&&(f=e.map(h=>({label:hf[h]?.label??h,key:h,children:v.jsx("div",{className:"exploit-module",children:A(h)})}))),f},d=f=>{if(f)return i.sort((h,g)=>h.code.localeCompare(g.code)).map(h=>{const g=h.jobs.map(m=>m.status).includes(-1)?-1:h.jobs.reduce((m,y)=>(r||hf[y.module])&&y.status>m?y.status:m,0);return v.jsx(aR,{status:g,running:0,env:h,provider:""},h.code)});{const h=i.find(g=>g.code===l.environment.ICTIDIR.replace("iCTI_",""));if(h)return h.jobs.map(g=>{const p=g.module!==g.job?g.module:g.job.replace(/iCTI_(import_)?/,""),m=Object.keys(h.settings).length&&hf[g.module]?h.settings[vre[hf[g.module].module]]:null;return r||hf[p]?v.jsx(aR,{status:g.status,running:g.running,env:h,provider:m,duration:g.duration,start:g.start,module:hf[p]?hf[p].label:p},g.job):null})}};return!s&&!l.environment.ISEXPLOIT?v.jsx(Ug,{icon:v.jsx(Cy,{}),title:"Cette fonctionnalité n'est pas encore disponible sur votre serveur."}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:[l.environment.ISEXPLOIT==="1"?"Résumé Exploitation Serveur ":"Résumé Exploitation ","(dernière mise à jour: ",ei(o).format("HH:mm"),")"]}),v.jsxs("div",{className:"header-actions",children:[v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"actions-label",children:"Afficher les jobs CTI:"}),v.jsx(bo,{checked:r,onChange:f=>n(f)})]}),v.jsx(yt,{onClick:c,type:"primary",loading:s,disabled:s,icon:v.jsx(gE,{}),children:"Rafraichir"})]})]}),v.jsx("div",{className:"component-content",children:v.jsx(Oi,{items:[{label:"Synthèse",key:"total",children:v.jsx("div",{className:"exploit-module",children:d(l.environment.ISEXPLOIT==="1")})},{tabsItems:u}]})})]})};var ddt=Ewe();const fdt=gn(ddt);var Ere=Number.isNaN||function(t){return typeof t=="number"&&t!==t};function hdt(e,t){return!!(e===t||Ere(e)&&Ere(t))}function gdt(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!hdt(e[r],t[r]))return!1;return!0}function al(e,t){t===void 0&&(t=gdt);var r,n=[],a,i=!1;function o(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];return i&&r===this&&t(s,n)||(a=e.apply(this,s),i=!0,r=this,n=s),a}return o}const pdt=Object.freeze(Object.defineProperty({__proto__:null,default:al},Symbol.toStringTag,{value:"Module"}));var vdt=typeof performance=="object"&&typeof performance.now=="function",yre=vdt?function(){return performance.now()}:function(){return Date.now()};function TT(e){cancelAnimationFrame(e.id)}function mBe(e,t){var r=yre();function n(){yre()-r>=t?e.call(null):a.id=requestAnimationFrame(n)}var a={id:requestAnimationFrame(n)};return a}var Lk=-1;function X6(e){if(e===void 0&&(e=!1),Lk===-1||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),Lk=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Lk}var m0=null;function QT(e){if(e===void 0&&(e=!1),m0===null||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),a=n.style;return a.width="100px",a.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?m0="positive-descending":(t.scrollLeft=1,t.scrollLeft===0?m0="negative":m0="positive-ascending"),document.body.removeChild(t),m0}return m0}var mdt=150,Edt=function(t){var r=t.columnIndex;t.data;var n=t.rowIndex;return n+":"+r};function EBe(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,a=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,o=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,A=e.getRowHeight,u=e.getRowOffset,d=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,p=e.validateProps;return t=(function(m){Vi(y,m);function y(w){var B;return B=m.call(this,w)||this,B._instanceProps=h(B.props,Bt(B)),B._resetIsScrollingTimeoutId=null,B._outerRef=void 0,B.state={instance:Bt(B),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:typeof B.props.initialScrollLeft=="number"?B.props.initialScrollLeft:0,scrollTop:typeof B.props.initialScrollTop=="number"?B.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},B._callOnItemsRendered=void 0,B._callOnItemsRendered=al(function(x,M,S,R,b,T,D,F){return B.props.onItemsRendered({overscanColumnStartIndex:x,overscanColumnStopIndex:M,overscanRowStartIndex:S,overscanRowStopIndex:R,visibleColumnStartIndex:b,visibleColumnStopIndex:T,visibleRowStartIndex:D,visibleRowStopIndex:F})}),B._callOnScroll=void 0,B._callOnScroll=al(function(x,M,S,R,b){return B.props.onScroll({horizontalScrollDirection:S,scrollLeft:x,scrollTop:M,verticalScrollDirection:R,scrollUpdateWasRequested:b})}),B._getItemStyle=void 0,B._getItemStyle=function(x,M){var S=B.props,R=S.columnWidth,b=S.direction,T=S.rowHeight,D=B._getItemStyleCache(g&&R,g&&b,g&&T),F=x+":"+M,N;if(D.hasOwnProperty(F))N=D[F];else{var _=r(B.props,M,B._instanceProps),P=b==="rtl";D[F]=N={position:"absolute",left:P?void 0:_,right:P?_:void 0,top:u(B.props,x,B._instanceProps),height:A(B.props,x,B._instanceProps),width:i(B.props,M,B._instanceProps)}}return N},B._getItemStyleCache=void 0,B._getItemStyleCache=al(function(x,M,S){return{}}),B._onScroll=function(x){var M=x.currentTarget,S=M.clientHeight,R=M.clientWidth,b=M.scrollLeft,T=M.scrollTop,D=M.scrollHeight,F=M.scrollWidth;B.setState(function(N){if(N.scrollLeft===b&&N.scrollTop===T)return null;var _=B.props.direction,P=b;if(_==="rtl")switch(QT()){case"negative":P=-b;break;case"positive-descending":P=F-R-b;break}P=Math.max(0,Math.min(P,F-R));var k=Math.max(0,Math.min(T,D-S));return{isScrolling:!0,horizontalScrollDirection:N.scrollLeft<b?"forward":"backward",scrollLeft:P,scrollTop:k,verticalScrollDirection:N.scrollTop<T?"forward":"backward",scrollUpdateWasRequested:!1}},B._resetIsScrollingDebounced)},B._outerRefSetter=function(x){var M=B.props.outerRef;B._outerRef=x,typeof M=="function"?M(x):M!=null&&typeof M=="object"&&M.hasOwnProperty("current")&&(M.current=x)},B._resetIsScrollingDebounced=function(){B._resetIsScrollingTimeoutId!==null&&TT(B._resetIsScrollingTimeoutId),B._resetIsScrollingTimeoutId=mBe(B._resetIsScrolling,mdt)},B._resetIsScrolling=function(){B._resetIsScrollingTimeoutId=null,B.setState({isScrolling:!1},function(){B._getItemStyleCache(-1)})},B}y.getDerivedStateFromProps=function(B,x){return ydt(B,x),p(B),null};var C=y.prototype;return C.scrollTo=function(B){var x=B.scrollLeft,M=B.scrollTop;x!==void 0&&(x=Math.max(0,x)),M!==void 0&&(M=Math.max(0,M)),this.setState(function(S){return x===void 0&&(x=S.scrollLeft),M===void 0&&(M=S.scrollTop),S.scrollLeft===x&&S.scrollTop===M?null:{horizontalScrollDirection:S.scrollLeft<x?"forward":"backward",scrollLeft:x,scrollTop:M,scrollUpdateWasRequested:!0,verticalScrollDirection:S.scrollTop<M?"forward":"backward"}},this._resetIsScrollingDebounced)},C.scrollToItem=function(B){var x=B.align,M=x===void 0?"auto":x,S=B.columnIndex,R=B.rowIndex,b=this.props,T=b.columnCount,D=b.height,F=b.rowCount,N=b.width,_=this.state,P=_.scrollLeft,k=_.scrollTop,j=X6();S!==void 0&&(S=Math.max(0,Math.min(S,T-1))),R!==void 0&&(R=Math.max(0,Math.min(R,F-1)));var Y=o(this.props,this._instanceProps),X=s(this.props,this._instanceProps),K=X>N?j:0,U=Y>D?j:0;this.scrollTo({scrollLeft:S!==void 0?l(this.props,S,M,P,this._instanceProps,U):P,scrollTop:R!==void 0?c(this.props,R,M,k,this._instanceProps,K):k})},C.componentDidMount=function(){var B=this.props,x=B.initialScrollLeft,M=B.initialScrollTop;if(this._outerRef!=null){var S=this._outerRef;typeof x=="number"&&(S.scrollLeft=x),typeof M=="number"&&(S.scrollTop=M)}this._callPropsCallbacks()},C.componentDidUpdate=function(){var B=this.props.direction,x=this.state,M=x.scrollLeft,S=x.scrollTop,R=x.scrollUpdateWasRequested;if(R&&this._outerRef!=null){var b=this._outerRef;if(B==="rtl")switch(QT()){case"negative":b.scrollLeft=-M;break;case"positive-ascending":b.scrollLeft=M;break;default:var T=b.clientWidth,D=b.scrollWidth;b.scrollLeft=D-T-M;break}else b.scrollLeft=Math.max(0,M);b.scrollTop=Math.max(0,S)}this._callPropsCallbacks()},C.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&TT(this._resetIsScrollingTimeoutId)},C.render=function(){var B=this.props,x=B.children,M=B.className,S=B.columnCount,R=B.direction,b=B.height,T=B.innerRef,D=B.innerElementType,F=B.innerTagName,N=B.itemData,_=B.itemKey,P=_===void 0?Edt:_,k=B.outerElementType,j=B.outerTagName,Y=B.rowCount,X=B.style,K=B.useIsScrolling,U=B.width,H=this.state.isScrolling,L=this._getHorizontalRangeToRender(),V=L[0],J=L[1],ee=this._getVerticalRangeToRender(),ae=ee[0],ne=ee[1],fe=[];if(S>0&&Y)for(var he=ae;he<=ne;he++)for(var ye=V;ye<=J;ye++)fe.push(E.createElement(x,{columnIndex:ye,data:N,isScrolling:K?H:void 0,key:P({columnIndex:ye,data:N,rowIndex:he}),rowIndex:he,style:this._getItemStyle(he,ye)}));var be=o(this.props,this._instanceProps),Se=s(this.props,this._instanceProps);return E.createElement(k||j||"div",{className:M,onScroll:this._onScroll,ref:this._outerRefSetter,style:ge({position:"relative",height:b,width:U,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:R},X)},E.createElement(D||F||"div",{children:fe,ref:T,style:{height:be,pointerEvents:H?"none":void 0,width:Se}}))},C._callPropsCallbacks=function(){var B=this.props,x=B.columnCount,M=B.onItemsRendered,S=B.onScroll,R=B.rowCount;if(typeof M=="function"&&x>0&&R>0){var b=this._getHorizontalRangeToRender(),T=b[0],D=b[1],F=b[2],N=b[3],_=this._getVerticalRangeToRender(),P=_[0],k=_[1],j=_[2],Y=_[3];this._callOnItemsRendered(T,D,P,k,F,N,j,Y)}if(typeof S=="function"){var X=this.state,K=X.horizontalScrollDirection,U=X.scrollLeft,H=X.scrollTop,L=X.scrollUpdateWasRequested,V=X.verticalScrollDirection;this._callOnScroll(U,H,K,V,L)}},C._getHorizontalRangeToRender=function(){var B=this.props,x=B.columnCount,M=B.overscanColumnCount,S=B.overscanColumnsCount,R=B.overscanCount,b=B.rowCount,T=this.state,D=T.horizontalScrollDirection,F=T.isScrolling,N=T.scrollLeft,_=M||S||R||1;if(x===0||b===0)return[0,0,0,0];var P=n(this.props,N,this._instanceProps),k=a(this.props,P,N,this._instanceProps),j=!F||D==="backward"?Math.max(1,_):1,Y=!F||D==="forward"?Math.max(1,_):1;return[Math.max(0,P-j),Math.max(0,Math.min(x-1,k+Y)),P,k]},C._getVerticalRangeToRender=function(){var B=this.props,x=B.columnCount,M=B.overscanCount,S=B.overscanRowCount,R=B.overscanRowsCount,b=B.rowCount,T=this.state,D=T.isScrolling,F=T.verticalScrollDirection,N=T.scrollTop,_=S||R||M||1;if(x===0||b===0)return[0,0,0,0];var P=d(this.props,N,this._instanceProps),k=f(this.props,P,N,this._instanceProps),j=!D||F==="backward"?Math.max(1,_):1,Y=!D||F==="forward"?Math.max(1,_):1;return[Math.max(0,P-j),Math.max(0,Math.min(b-1,k+Y)),P,k]},y})(E.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var ydt=function(t,r){t.children,t.direction,t.height,t.innerTagName,t.outerTagName,t.overscanColumnsCount,t.overscanCount,t.overscanRowsCount,t.width,r.instance},Cre=50,yBe=function(t,r){var n=t.rowCount,a=r.rowMetadataMap,i=r.estimatedRowHeight,o=r.lastMeasuredRowIndex,s=0;if(o>=n&&(o=n-1),o>=0){var l=a[o];s=l.offset+l.size}var c=n-o-1,A=c*i;return s+A},CBe=function(t,r){var n=t.columnCount,a=r.columnMetadataMap,i=r.estimatedColumnWidth,o=r.lastMeasuredColumnIndex,s=0;if(o>=n&&(o=n-1),o>=0){var l=a[o];s=l.offset+l.size}var c=n-o-1,A=c*i;return s+A},bf=function(t,r,n,a){var i,o,s;if(t==="column"?(i=a.columnMetadataMap,o=r.columnWidth,s=a.lastMeasuredColumnIndex):(i=a.rowMetadataMap,o=r.rowHeight,s=a.lastMeasuredRowIndex),n>s){var l=0;if(s>=0){var c=i[s];l=c.offset+c.size}for(var A=s+1;A<=n;A++){var u=o(A);i[A]={offset:l,size:u},l+=u}t==="column"?a.lastMeasuredColumnIndex=n:a.lastMeasuredRowIndex=n}return i[n]},wre=function(t,r,n,a){var i,o;t==="column"?(i=n.columnMetadataMap,o=n.lastMeasuredColumnIndex):(i=n.rowMetadataMap,o=n.lastMeasuredRowIndex);var s=o>0?i[o].offset:0;return s>=a?wBe(t,r,n,o,0,a):Cdt(t,r,n,Math.max(0,o),a)},wBe=function(t,r,n,a,i,o){for(;i<=a;){var s=i+Math.floor((a-i)/2),l=bf(t,r,s,n).offset;if(l===o)return s;l<o?i=s+1:l>o&&(a=s-1)}return i>0?i-1:0},Cdt=function(t,r,n,a,i){for(var o=t==="column"?r.columnCount:r.rowCount,s=1;a<o&&bf(t,r,a,n).offset<i;)a+=s,s*=2;return wBe(t,r,n,Math.min(a,o-1),Math.floor(a/2),i)},Bre=function(t,r,n,a,i,o,s){var l=t==="column"?r.width:r.height,c=bf(t,r,n,o),A=t==="column"?CBe(r,o):yBe(r,o),u=Math.max(0,Math.min(A-l,c.offset)),d=Math.max(0,c.offset-l+s+c.size);switch(a==="smart"&&(i>=d-l&&i<=u+l?a="auto":a="center"),a){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);case"auto":default:return i>=d&&i<=u?i:d>u||i<d?d:u}},BBe=EBe({getColumnOffset:function(t,r,n){return bf("column",t,r,n).offset},getColumnStartIndexForOffset:function(t,r,n){return wre("column",t,n,r)},getColumnStopIndexForStartIndex:function(t,r,n,a){for(var i=t.columnCount,o=t.width,s=bf("column",t,r,a),l=n+o,c=s.offset+s.size,A=r;A<i-1&&c<l;)A++,c+=bf("column",t,A,a).size;return A},getColumnWidth:function(t,r,n){return n.columnMetadataMap[r].size},getEstimatedTotalHeight:yBe,getEstimatedTotalWidth:CBe,getOffsetForColumnAndAlignment:function(t,r,n,a,i,o){return Bre("column",t,r,n,a,i,o)},getOffsetForRowAndAlignment:function(t,r,n,a,i,o){return Bre("row",t,r,n,a,i,o)},getRowOffset:function(t,r,n){return bf("row",t,r,n).offset},getRowHeight:function(t,r,n){return n.rowMetadataMap[r].size},getRowStartIndexForOffset:function(t,r,n){return wre("row",t,n,r)},getRowStopIndexForStartIndex:function(t,r,n,a){for(var i=t.rowCount,o=t.height,s=bf("row",t,r,a),l=n+o,c=s.offset+s.size,A=r;A<i-1&&c<l;)A++,c+=bf("row",t,A,a).size;return A},initInstanceProps:function(t,r){var n=t,a=n.estimatedColumnWidth,i=n.estimatedRowHeight,o={columnMetadataMap:{},estimatedColumnWidth:a||Cre,estimatedRowHeight:i||Cre,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return r.resetAfterColumnIndex=function(s,l){l===void 0&&(l=!0),r.resetAfterIndices({columnIndex:s,shouldForceUpdate:l})},r.resetAfterRowIndex=function(s,l){l===void 0&&(l=!0),r.resetAfterIndices({rowIndex:s,shouldForceUpdate:l})},r.resetAfterIndices=function(s){var l=s.columnIndex,c=s.rowIndex,A=s.shouldForceUpdate,u=A===void 0?!0:A;typeof l=="number"&&(o.lastMeasuredColumnIndex=Math.min(o.lastMeasuredColumnIndex,l-1)),typeof c=="number"&&(o.lastMeasuredRowIndex=Math.min(o.lastMeasuredRowIndex,c-1)),r._getItemStyleCache(-1),u&&r.forceUpdate()},o},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.columnWidth,t.rowHeight}}),wdt=150,Bdt=function(t,r){return t};function xBe(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,a=e.getItemSize,i=e.getOffsetForIndexAndAlignment,o=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,A=e.validateProps;return t=(function(u){Vi(d,u);function d(h){var g;return g=u.call(this,h)||this,g._instanceProps=l(g.props,Bt(g)),g._outerRef=void 0,g._resetIsScrollingTimeoutId=null,g.state={instance:Bt(g),isScrolling:!1,scrollDirection:"forward",scrollOffset:typeof g.props.initialScrollOffset=="number"?g.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},g._callOnItemsRendered=void 0,g._callOnItemsRendered=al(function(p,m,y,C){return g.props.onItemsRendered({overscanStartIndex:p,overscanStopIndex:m,visibleStartIndex:y,visibleStopIndex:C})}),g._callOnScroll=void 0,g._callOnScroll=al(function(p,m,y){return g.props.onScroll({scrollDirection:p,scrollOffset:m,scrollUpdateWasRequested:y})}),g._getItemStyle=void 0,g._getItemStyle=function(p){var m=g.props,y=m.direction,C=m.itemSize,w=m.layout,B=g._getItemStyleCache(c&&C,c&&w,c&&y),x;if(B.hasOwnProperty(p))x=B[p];else{var M=r(g.props,p,g._instanceProps),S=a(g.props,p,g._instanceProps),R=y==="horizontal"||w==="horizontal",b=y==="rtl",T=R?M:0;B[p]=x={position:"absolute",left:b?void 0:T,right:b?T:void 0,top:R?0:M,height:R?"100%":S,width:R?S:"100%"}}return x},g._getItemStyleCache=void 0,g._getItemStyleCache=al(function(p,m,y){return{}}),g._onScrollHorizontal=function(p){var m=p.currentTarget,y=m.clientWidth,C=m.scrollLeft,w=m.scrollWidth;g.setState(function(B){if(B.scrollOffset===C)return null;var x=g.props.direction,M=C;if(x==="rtl")switch(QT()){case"negative":M=-C;break;case"positive-descending":M=w-y-C;break}return M=Math.max(0,Math.min(M,w-y)),{isScrolling:!0,scrollDirection:B.scrollOffset<M?"forward":"backward",scrollOffset:M,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._onScrollVertical=function(p){var m=p.currentTarget,y=m.clientHeight,C=m.scrollHeight,w=m.scrollTop;g.setState(function(B){if(B.scrollOffset===w)return null;var x=Math.max(0,Math.min(w,C-y));return{isScrolling:!0,scrollDirection:B.scrollOffset<x?"forward":"backward",scrollOffset:x,scrollUpdateWasRequested:!1}},g._resetIsScrollingDebounced)},g._outerRefSetter=function(p){var m=g.props.outerRef;g._outerRef=p,typeof m=="function"?m(p):m!=null&&typeof m=="object"&&m.hasOwnProperty("current")&&(m.current=p)},g._resetIsScrollingDebounced=function(){g._resetIsScrollingTimeoutId!==null&&TT(g._resetIsScrollingTimeoutId),g._resetIsScrollingTimeoutId=mBe(g._resetIsScrolling,wdt)},g._resetIsScrolling=function(){g._resetIsScrollingTimeoutId=null,g.setState({isScrolling:!1},function(){g._getItemStyleCache(-1,null)})},g}d.getDerivedStateFromProps=function(g,p){return xdt(g,p),A(g),null};var f=d.prototype;return f.scrollTo=function(g){g=Math.max(0,g),this.setState(function(p){return p.scrollOffset===g?null:{scrollDirection:p.scrollOffset<g?"forward":"backward",scrollOffset:g,scrollUpdateWasRequested:!0}},this._resetIsScrollingDebounced)},f.scrollToItem=function(g,p){p===void 0&&(p="auto");var m=this.props,y=m.itemCount,C=m.layout,w=this.state.scrollOffset;g=Math.max(0,Math.min(g,y-1));var B=0;if(this._outerRef){var x=this._outerRef;C==="vertical"?B=x.scrollWidth>x.clientWidth?X6():0:B=x.scrollHeight>x.clientHeight?X6():0}this.scrollTo(i(this.props,g,p,w,this._instanceProps,B))},f.componentDidMount=function(){var g=this.props,p=g.direction,m=g.initialScrollOffset,y=g.layout;if(typeof m=="number"&&this._outerRef!=null){var C=this._outerRef;p==="horizontal"||y==="horizontal"?C.scrollLeft=m:C.scrollTop=m}this._callPropsCallbacks()},f.componentDidUpdate=function(){var g=this.props,p=g.direction,m=g.layout,y=this.state,C=y.scrollOffset,w=y.scrollUpdateWasRequested;if(w&&this._outerRef!=null){var B=this._outerRef;if(p==="horizontal"||m==="horizontal")if(p==="rtl")switch(QT()){case"negative":B.scrollLeft=-C;break;case"positive-ascending":B.scrollLeft=C;break;default:var x=B.clientWidth,M=B.scrollWidth;B.scrollLeft=M-x-C;break}else B.scrollLeft=C;else B.scrollTop=C}this._callPropsCallbacks()},f.componentWillUnmount=function(){this._resetIsScrollingTimeoutId!==null&&TT(this._resetIsScrollingTimeoutId)},f.render=function(){var g=this.props,p=g.children,m=g.className,y=g.direction,C=g.height,w=g.innerRef,B=g.innerElementType,x=g.innerTagName,M=g.itemCount,S=g.itemData,R=g.itemKey,b=R===void 0?Bdt:R,T=g.layout,D=g.outerElementType,F=g.outerTagName,N=g.style,_=g.useIsScrolling,P=g.width,k=this.state.isScrolling,j=y==="horizontal"||T==="horizontal",Y=j?this._onScrollHorizontal:this._onScrollVertical,X=this._getRangeToRender(),K=X[0],U=X[1],H=[];if(M>0)for(var L=K;L<=U;L++)H.push(E.createElement(p,{data:S,key:b(L,S),index:L,isScrolling:_?k:void 0,style:this._getItemStyle(L)}));var V=n(this.props,this._instanceProps);return E.createElement(D||F||"div",{className:m,onScroll:Y,ref:this._outerRefSetter,style:ge({position:"relative",height:C,width:P,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:y},N)},E.createElement(B||x||"div",{children:H,ref:w,style:{height:j?"100%":V,pointerEvents:k?"none":void 0,width:j?V:"100%"}}))},f._callPropsCallbacks=function(){if(typeof this.props.onItemsRendered=="function"){var g=this.props.itemCount;if(g>0){var p=this._getRangeToRender(),m=p[0],y=p[1],C=p[2],w=p[3];this._callOnItemsRendered(m,y,C,w)}}if(typeof this.props.onScroll=="function"){var B=this.state,x=B.scrollDirection,M=B.scrollOffset,S=B.scrollUpdateWasRequested;this._callOnScroll(x,M,S)}},f._getRangeToRender=function(){var g=this.props,p=g.itemCount,m=g.overscanCount,y=this.state,C=y.isScrolling,w=y.scrollDirection,B=y.scrollOffset;if(p===0)return[0,0,0,0];var x=o(this.props,B,this._instanceProps),M=s(this.props,x,B,this._instanceProps),S=!C||w==="backward"?Math.max(1,m):1,R=!C||w==="forward"?Math.max(1,m):1;return[Math.max(0,x-S),Math.max(0,Math.min(p-1,M+R)),x,M]},d})(E.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var xdt=function(t,r){t.children,t.direction,t.height,t.layout,t.innerTagName,t.outerTagName,t.width,r.instance},Mdt=50,uE=function(t,r,n){var a=t,i=a.itemSize,o=n.itemMetadataMap,s=n.lastMeasuredIndex;if(r>s){var l=0;if(s>=0){var c=o[s];l=c.offset+c.size}for(var A=s+1;A<=r;A++){var u=i(A);o[A]={offset:l,size:u},l+=u}n.lastMeasuredIndex=r}return o[r]},Idt=function(t,r,n){var a=r.itemMetadataMap,i=r.lastMeasuredIndex,o=i>0?a[i].offset:0;return o>=n?MBe(t,r,i,0,n):bdt(t,r,Math.max(0,i),n)},MBe=function(t,r,n,a,i){for(;a<=n;){var o=a+Math.floor((n-a)/2),s=uE(t,o,r).offset;if(s===i)return o;s<i?a=o+1:s>i&&(n=o-1)}return a>0?a-1:0},bdt=function(t,r,n,a){for(var i=t.itemCount,o=1;n<i&&uE(t,n,r).offset<a;)n+=o,o*=2;return MBe(t,r,Math.min(n,i-1),Math.floor(n/2),a)},xre=function(t,r){var n=t.itemCount,a=r.itemMetadataMap,i=r.estimatedItemSize,o=r.lastMeasuredIndex,s=0;if(o>=n&&(o=n-1),o>=0){var l=a[o];s=l.offset+l.size}var c=n-o-1,A=c*i;return s+A},Sdt=xBe({getItemOffset:function(t,r,n){return uE(t,r,n).offset},getItemSize:function(t,r,n){return n.itemMetadataMap[r].size},getEstimatedTotalSize:xre,getOffsetForIndexAndAlignment:function(t,r,n,a,i,o){var s=t.direction,l=t.height,c=t.layout,A=t.width,u=s==="horizontal"||c==="horizontal",d=u?A:l,f=uE(t,r,i),h=xre(t,i),g=Math.max(0,Math.min(h-d,f.offset)),p=Math.max(0,f.offset-d+f.size+o);switch(n==="smart"&&(a>=p-d&&a<=g+d?n="auto":n="center"),n){case"start":return g;case"end":return p;case"center":return Math.round(p+(g-p)/2);case"auto":default:return a>=p&&a<=g?a:a<p?p:g}},getStartIndexForOffset:function(t,r,n){return Idt(t,n,r)},getStopIndexForStartIndex:function(t,r,n,a){for(var i=t.direction,o=t.height,s=t.itemCount,l=t.layout,c=t.width,A=i==="horizontal"||l==="horizontal",u=A?c:o,d=uE(t,r,a),f=n+u,h=d.offset+d.size,g=r;g<s-1&&h<f;)g++,h+=uE(t,g,a).size;return g},initInstanceProps:function(t,r){var n=t,a=n.estimatedItemSize,i={itemMetadataMap:{},estimatedItemSize:a||Mdt,lastMeasuredIndex:-1};return r.resetAfterIndex=function(o,s){s===void 0&&(s=!0),i.lastMeasuredIndex=Math.min(i.lastMeasuredIndex,o-1),r._getItemStyleCache(-1),s&&r.forceUpdate()},i},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(t){t.itemSize}}),IBe=EBe({getColumnOffset:function(t,r){var n=t.columnWidth;return r*n},getColumnWidth:function(t,r){var n=t.columnWidth;return n},getRowOffset:function(t,r){var n=t.rowHeight;return r*n},getRowHeight:function(t,r){var n=t.rowHeight;return n},getEstimatedTotalHeight:function(t){var r=t.rowCount,n=t.rowHeight;return n*r},getEstimatedTotalWidth:function(t){var r=t.columnCount,n=t.columnWidth;return n*r},getOffsetForColumnAndAlignment:function(t,r,n,a,i,o){var s=t.columnCount,l=t.columnWidth,c=t.width,A=Math.max(0,s*l-c),u=Math.min(A,r*l),d=Math.max(0,r*l-c+o+l);switch(n==="smart"&&(a>=d-c&&a<=u+c?n="auto":n="center"),n){case"start":return u;case"end":return d;case"center":var f=Math.round(d+(u-d)/2);return f<Math.ceil(c/2)?0:f>A+Math.floor(c/2)?A:f;case"auto":default:return a>=d&&a<=u?a:d>u||a<d?d:u}},getOffsetForRowAndAlignment:function(t,r,n,a,i,o){var s=t.rowHeight,l=t.height,c=t.rowCount,A=Math.max(0,c*s-l),u=Math.min(A,r*s),d=Math.max(0,r*s-l+o+s);switch(n==="smart"&&(a>=d-l&&a<=u+l?n="auto":n="center"),n){case"start":return u;case"end":return d;case"center":var f=Math.round(d+(u-d)/2);return f<Math.ceil(l/2)?0:f>A+Math.floor(l/2)?A:f;case"auto":default:return a>=d&&a<=u?a:d>u||a<d?d:u}},getColumnStartIndexForOffset:function(t,r){var n=t.columnWidth,a=t.columnCount;return Math.max(0,Math.min(a-1,Math.floor(r/n)))},getColumnStopIndexForStartIndex:function(t,r,n){var a=t.columnWidth,i=t.columnCount,o=t.width,s=r*a,l=Math.ceil((o+n-s)/a);return Math.max(0,Math.min(i-1,r+l-1))},getRowStartIndexForOffset:function(t,r){var n=t.rowHeight,a=t.rowCount;return Math.max(0,Math.min(a-1,Math.floor(r/n)))},getRowStopIndexForStartIndex:function(t,r,n){var a=t.rowHeight,i=t.rowCount,o=t.height,s=r*a,l=Math.ceil((o+n-s)/a);return Math.max(0,Math.min(i-1,r+l-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.columnWidth,t.rowHeight}}),Rdt=xBe({getItemOffset:function(t,r){var n=t.itemSize;return r*n},getItemSize:function(t,r){var n=t.itemSize;return n},getEstimatedTotalSize:function(t){var r=t.itemCount,n=t.itemSize;return n*r},getOffsetForIndexAndAlignment:function(t,r,n,a,i,o){var s=t.direction,l=t.height,c=t.itemCount,A=t.itemSize,u=t.layout,d=t.width,f=s==="horizontal"||u==="horizontal",h=f?d:l,g=Math.max(0,c*A-h),p=Math.min(g,r*A),m=Math.max(0,r*A-h+A+o);switch(n==="smart"&&(a>=m-h&&a<=p+h?n="auto":n="center"),n){case"start":return p;case"end":return m;case"center":{var y=Math.round(m+(p-m)/2);return y<Math.ceil(h/2)?0:y>g+Math.floor(h/2)?g:y}case"auto":default:return a>=m&&a<=p?a:a<m?m:p}},getStartIndexForOffset:function(t,r){var n=t.itemCount,a=t.itemSize;return Math.max(0,Math.min(n-1,Math.floor(r/a)))},getStopIndexForStartIndex:function(t,r,n){var a=t.direction,i=t.height,o=t.itemCount,s=t.itemSize,l=t.layout,c=t.width,A=a==="horizontal"||l==="horizontal",u=r*s,d=A?c:i,f=Math.ceil((d+n-u)/s);return Math.max(0,Math.min(o-1,r+f-1))},initInstanceProps:function(t){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(t){t.itemSize}});function q6(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var Tdt=["style"],Qdt=["style"];function bBe(e,t){var r=e.style,n=Ai(e,Tdt),a=t.style,i=Ai(t,Qdt);return!q6(r,a)&&!q6(n,i)}function Ddt(e,t){return!bBe(this.props,e)||q6(this.state,t)}const Fdt=Object.freeze(Object.defineProperty({__proto__:null,FixedSizeGrid:IBe,FixedSizeList:Rdt,VariableSizeGrid:BBe,VariableSizeList:Sdt,areEqual:bBe,shouldComponentUpdate:Ddt},Symbol.toStringTag,{value:"Module"}));var SBe=(function(e){Vi(t,e);function t(n){var a;return a=e.call(this,n)||this,a.renderHeaderRow=a.renderHeaderRow.bind(Bt(a)),a.renderFrozenRow=a.renderFrozenRow.bind(Bt(a)),a._setRef=a._setRef.bind(Bt(a)),a}var r=t.prototype;return r.scrollTo=function(a){var i=this;requestAnimationFrame(function(){i.headerRef&&(i.headerRef.scrollLeft=a)})},r.renderHeaderRow=function(a,i){var o=this.props,s=o.columns,l=o.headerRenderer;if(a<=0)return null;var c={width:"100%",height:a};return l({style:c,columns:s,headerIndex:i})},r.renderFrozenRow=function(a,i){var o=this.props,s=o.columns,l=o.rowHeight,c=o.rowRenderer,A={width:"100%",height:l},u=-i-1;return c({style:A,columns:s,rowData:a,rowIndex:u})},r.render=function(){var a=this.props,i=a.className,o=a.width,s=a.height,l=a.rowWidth,c=a.headerHeight,A=a.frozenData;if(s<=0)return null;var u={width:o,height:s,position:"relative",overflow:"hidden"},d={width:l,height:s},f=Array.isArray(c)?c:[c];return le.createElement("div",{role:"grid",ref:this._setRef,className:i,style:u},le.createElement("div",{role:"rowgroup",style:d},f.map(this.renderHeaderRow),A.map(this.renderFrozenRow)))},r._setRef=function(a){this.headerRef=a},t})(le.PureComponent);SBe.propTypes={className:W.string,width:W.number.isRequired,height:W.number.isRequired,headerHeight:W.oneOfType([W.number,W.arrayOf(W.number)]).isRequired,rowWidth:W.number.isRequired,rowHeight:W.number.isRequired,columns:W.arrayOf(W.object).isRequired,data:W.array.isRequired,frozenData:W.array,headerRenderer:W.func.isRequired,rowRenderer:W.func.isRequired};function Mre(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function RBe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mre(r,!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mre(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iv(e,t){return le.isValidElement(e)?t?le.cloneElement(e,t):e:typeof e=="function"?e.prototype&&e.prototype.isReactComponent?le.createElement(e,t):e.defaultProps?e(RBe({},e.defaultProps,{},t)):e(t):null}function Ndt(e){var t=[];return le.Children.forEach(e,function(r){if(le.isValidElement(r)&&r.key){var n=RBe({},r.props,{key:r.key});t.push(n)}}),t}function TBe(e,t,r){if(r===void 0&&(r=!0),e===t||e===null&&t===null)return!0;if(e===null||t===null||typeof e!="object"||typeof t!="object")return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!(o==="_owner"&&e.$$typeof)){var s=e[o],l=t[o],c=typeof s;if(c!==typeof l)return!1;if(!(c==="function"&&r)){if(c==="object"){if(TBe(s,l,r))continue;return!1}if(s!==l)return!1}}}return!0}function UA(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return typeof e=="function"?e.apply(void 0,r):e}function _dt(e){return Array.isArray(e.children)&&e.children.length>0}function kdt(e,t,r,n){if(r===void 0&&(r={}),n===void 0&&(n="id"),!t||!t.length)return e;var a=[],i=new Set;t.forEach(function(l){return i.add(l)});var o=[].concat(e);o.forEach(function(l){return r[l[n]]=0});for(var s=function(){var c=o.shift();a.push(c),i.has(c[n])&&Array.isArray(c.children)&&c.children.length>0&&(o=[].concat(c.children,o),c.children.forEach(function(A){return r[A[n]]=r[c[n]]+1}))};o.length>0;)s();return a}function Yk(e){return Array.isArray(e)?[].concat(e):[]}function lc(){}function Pdt(e){return typeof e=="string"?e:e==null?"":e.toString?e.toString():""}function Odt(e){for(var t=e.split("."),r=[],n=0;n<t.length;n++){for(var a=t[n];a[a.length-1]==="\\"&&t[n+1]!==void 0;)a=a.slice(0,-1)+".",a+=t[++n];r.push(a)}return r}function jdt(e,t,r){if(e===null||typeof e!="object"||typeof t!="string")return r;for(var n=Odt(t),a=0;a<n.length;a++){if(!Object.prototype.propertyIsEnumerable.call(e,n[a]))return r;if(e=e[n[a]],e==null){if(a!==n.length-1)return r;break}}return e}var zdt=function(t,r){var n;return function(){for(var a=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];clearTimeout(n),n=setTimeout(function(){return t.apply(a,o)},r)}},Ldt=function(t,r){var n,a,i;return function(){var o=this,s=arguments;n?(clearTimeout(a),a=setTimeout(function(){Date.now()-i>=r&&(t.apply(o,s),i=Date.now())},Math.max(r-(Date.now()-i),0))):(t.apply(o,s),i=Date.now(),n=!0)}},pI;function Ydt(e){if((!pI&&pI!==0||e)&&typeof window<"u"&&window.document&&window.document.createElement){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),pI=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return pI}function Udt(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)"+t+"(?!\\S)"))||(e.className+=" "+t)}function Hdt(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)"+t+"(?!\\S)","g"),"")}function QBe(e,t){return typeof t=="function"?e.reduce(function(r,n,a){return r+t({rowData:n,rowIndex:a})},0):e.length*t}function Ire(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Gdt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Ire(r,!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ire(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var iR=(function(e){Vi(t,e);function t(n){var a;return a=e.call(this,n)||this,a._setHeaderRef=a._setHeaderRef.bind(Bt(a)),a._setBodyRef=a._setBodyRef.bind(Bt(a)),a._setInnerRef=a._setInnerRef.bind(Bt(a)),a._itemKey=a._itemKey.bind(Bt(a)),a._getBodyWidth=a._getBodyWidth.bind(Bt(a)),a._handleItemsRendered=a._handleItemsRendered.bind(Bt(a)),a._resetColumnWidthCache=al(function(i){a.props.estimatedRowHeight&&a.bodyRef&&a.bodyRef.resetAfterColumnIndex(0,!1)}),a._getEstimatedTotalRowsHeight=al(QBe),a.renderRow=a.renderRow.bind(Bt(a)),a}var r=t.prototype;return r.resetAfterRowIndex=function(a,i){a===void 0&&(a=0),this.props.estimatedRowHeight&&this.bodyRef&&this.bodyRef.resetAfterRowIndex(a,i)},r.forceUpdateTable=function(){this.headerRef&&this.headerRef.forceUpdate(),this.bodyRef&&this.bodyRef.forceUpdate()},r.scrollToPosition=function(a){this.headerRef&&this.headerRef.scrollTo(a.scrollLeft),this.bodyRef&&this.bodyRef.scrollTo(a)},r.scrollToTop=function(a){this.bodyRef&&this.bodyRef.scrollTo({scrollTop:a})},r.scrollToLeft=function(a){this.headerRef&&this.headerRef.scrollTo(a),this.bodyRef&&this.bodyRef.scrollToPosition({scrollLeft:a})},r.scrollToRow=function(a,i){a===void 0&&(a=0),i===void 0&&(i="auto"),this.bodyRef&&this.bodyRef.scrollToItem({rowIndex:a,align:i})},r.getTotalRowsHeight=function(){var a=this.props,i=a.data,o=a.rowHeight,s=a.estimatedRowHeight;return s?this.innerRef&&this.innerRef.clientHeight||this._getEstimatedTotalRowsHeight(i,s):i.length*o},r.renderRow=function(a){var i=this.props,o=i.data,s=i.columns,l=i.rowRenderer,c=o[a.rowIndex];return l(Gdt({},a,{columns:s,rowData:c}))},r.render=function(){var a=this.props,i=a.containerStyle,o=a.classPrefix,s=a.className,l=a.data,c=a.frozenData,A=a.width,u=a.height,d=a.rowHeight,f=a.estimatedRowHeight,h=a.getRowHeight,g=a.headerWidth,p=a.bodyWidth,m=a.useIsScrolling,y=a.onScroll,C=a.hoveredRowKey,w=a.overscanRowCount;a.style,a.onScrollbarPresenceChange;var B=Ai(a,["containerStyle","classPrefix","className","data","frozenData","width","height","rowHeight","estimatedRowHeight","getRowHeight","headerWidth","bodyWidth","useIsScrolling","onScroll","hoveredRowKey","overscanRowCount","style","onScrollbarPresenceChange"]),x=this._getHeaderHeight(),M=c.length,S=d*M,R=dt(o+"__table",s),b=i?{style:i}:null,T=f?BBe:IBe;return this._resetColumnWidthCache(p),le.createElement("div",ge({role:"table",className:R},b),le.createElement(T,ge({},B,{className:o+"__body",ref:this._setBodyRef,innerRef:this._setInnerRef,itemKey:this._itemKey,data:l,frozenData:c,width:A,height:Math.max(u-x-S,0),rowHeight:f?h:d,estimatedRowHeight:typeof f=="function"?void 0:f,rowCount:l.length,overscanRowCount:w,columnWidth:f?this._getBodyWidth:p,columnCount:1,overscanColumnCount:0,useIsScrolling:m,hoveredRowKey:C,onScroll:y,onItemsRendered:this._handleItemsRendered,children:this.renderRow})),x+S>0&&le.createElement(SBe,ge({},B,{className:o+"__header",ref:this._setHeaderRef,data:l,frozenData:c,width:A,height:Math.min(x+S,u),rowWidth:g,rowHeight:d,headerHeight:this.props.headerHeight,headerRenderer:this.props.headerRenderer,rowRenderer:this.props.rowRenderer,hoveredRowKey:M>0?C:null})))},r._setHeaderRef=function(a){this.headerRef=a},r._setBodyRef=function(a){this.bodyRef=a},r._setInnerRef=function(a){this.innerRef=a},r._itemKey=function(a){var i=a.rowIndex,o=this.props,s=o.data,l=o.rowKey;return s[i][l]},r._getHeaderHeight=function(){var a=this.props.headerHeight;return Array.isArray(a)?a.reduce(function(i,o){return i+o},0):a},r._getBodyWidth=function(){return this.props.bodyWidth},r._handleItemsRendered=function(a){var i=a.overscanRowStartIndex,o=a.overscanRowStopIndex,s=a.visibleRowStartIndex,l=a.visibleRowStopIndex;this.props.onRowsRendered({overscanStartIndex:i,overscanStopIndex:o,startIndex:s,stopIndex:l})},t})(le.PureComponent);iR.propTypes={containerStyle:W.object,classPrefix:W.string,className:W.string,width:W.number.isRequired,height:W.number.isRequired,headerHeight:W.oneOfType([W.number,W.arrayOf(W.number)]).isRequired,headerWidth:W.number.isRequired,bodyWidth:W.number.isRequired,rowHeight:W.number.isRequired,estimatedRowHeight:W.oneOfType([W.func,W.number]),getRowHeight:W.func,columns:W.arrayOf(W.object).isRequired,data:W.array.isRequired,frozenData:W.array,rowKey:W.oneOfType([W.string,W.number]).isRequired,useIsScrolling:W.bool,overscanRowCount:W.number,hoveredRowKey:W.oneOfType([W.string,W.number]),style:W.object,onScrollbarPresenceChange:W.func,onScroll:W.func,onRowsRendered:W.func,headerRenderer:W.func.isRequired,rowRenderer:W.func.isRequired};var AH=function(t){var r=t.className,n=t.style,a=t.columns,i=t.headerIndex,o=t.cellRenderer,s=t.headerRenderer,l=t.expandColumnKey,c=t.expandIcon,A=t.tagName,u=Ai(t,["className","style","columns","headerIndex","cellRenderer","headerRenderer","expandColumnKey","expandIcon","tagName"]),d=a.map(function(f,h){return o({columns:a,column:f,columnIndex:h,headerIndex:i,expandIcon:f.key===l&&le.createElement(c,null)})});return s&&(d=iv(s,{cells:d,columns:a,headerIndex:i})),le.createElement(A,ge({},u,{className:r,style:n}),d)};AH.defaultProps={tagName:"div"};AH.propTypes={isScrolling:W.bool,className:W.string,style:W.object,columns:W.arrayOf(W.object).isRequired,headerIndex:W.number,cellRenderer:W.func,headerRenderer:W.oneOfType([W.func,W.element]),expandColumnKey:W.string,expandIcon:W.func,tagName:W.elementType};var uH=(function(e){Vi(t,e);function t(n){var a;return a=e.call(this,n)||this,a.state={measured:!1},a._setRef=a._setRef.bind(Bt(a)),a._handleExpand=a._handleExpand.bind(Bt(a)),a}var r=t.prototype;return r.componentDidMount=function(){this.props.estimatedRowHeight&&this.props.rowIndex>=0&&this._measureHeight(!0)},r.componentDidUpdate=function(a,i){var o=this;this.props.estimatedRowHeight&&this.props.rowIndex>=0&&!this.props.getIsResetting()&&this.state.measured&&i.measured&&this.setState({measured:!1},function(){return o._measureHeight()})},r.render=function(){var a=this.props,i=a.isScrolling,o=a.className,s=a.style,l=a.columns,c=a.rowIndex,A=a.rowData,u=a.expandColumnKey,d=a.depth,f=a.rowEventHandlers,h=a.estimatedRowHeight,g=a.rowRenderer,p=a.cellRenderer,m=a.expandIconRenderer,y=a.tagName;a.rowKey,a.getIsResetting,a.onRowHover,a.onRowExpand,a.onRowHeightChange;var C=Ai(a,["isScrolling","className","style","columns","rowIndex","rowData","expandColumnKey","depth","rowEventHandlers","estimatedRowHeight","rowRenderer","cellRenderer","expandIconRenderer","tagName","rowKey","getIsResetting","onRowHover","onRowExpand","onRowHeightChange"]),w=m({rowData:A,rowIndex:c,depth:d,onExpand:this._handleExpand}),B=l.map(function(S,R){return p({isScrolling:i,columns:l,column:S,columnIndex:R,rowData:A,rowIndex:c,expandIcon:S.key===u&&w})});g&&(B=iv(g,{isScrolling:i,cells:B,columns:l,rowData:A,rowIndex:c,depth:d}));var x=this._getEventHandlers(f);if(h&&c>=0){s.height;var M=Ai(s,["height"]);return le.createElement(y,ge({},C,{ref:this._setRef,className:o,style:this.state.measured?s:M},this.state.measured&&x),B)}return le.createElement(y,ge({},C,{className:o,style:s},x),B)},r._setRef=function(a){this.ref=a},r._handleExpand=function(a){var i=this.props,o=i.onRowExpand,s=i.rowData,l=i.rowIndex,c=i.rowKey;o&&o({expanded:a,rowData:s,rowIndex:l,rowKey:c})},r._measureHeight=function(a){if(this.ref){var i=this.props,o=i.style,s=i.rowKey,l=i.onRowHeightChange,c=i.rowIndex,A=i.columns,u=this.ref.getBoundingClientRect().height;this.setState({measured:!0},function(){(a||u!==o.height)&&l(s,u,c,A[0]&&!A[0].__placeholder__&&A[0].frozen)})}},r._getEventHandlers=function(a){a===void 0&&(a={});var i=this.props,o=i.rowData,s=i.rowIndex,l=i.rowKey,c=i.onRowHover,A={};if(Object.keys(a).forEach(function(f){var h=a[f];typeof h=="function"&&(A[f]=function(g){h({rowData:o,rowIndex:s,rowKey:l,event:g})})}),c){var u=A.onMouseEnter;A.onMouseEnter=function(f){c({hovered:!0,rowData:o,rowIndex:s,rowKey:l,event:f}),u&&u(f)};var d=A.onMouseLeave;A.onMouseLeave=function(f){c({hovered:!1,rowData:o,rowIndex:s,rowKey:l,event:f}),d&&d(f)}}return A},t})(le.PureComponent);uH.defaultProps={tagName:"div"};uH.propTypes={isScrolling:W.bool,className:W.string,style:W.object,columns:W.arrayOf(W.object).isRequired,rowData:W.object.isRequired,rowIndex:W.number.isRequired,rowKey:W.oneOfType([W.string,W.number]),expandColumnKey:W.string,depth:W.number,rowEventHandlers:W.object,rowRenderer:W.oneOfType([W.func,W.element]),cellRenderer:W.func,expandIconRenderer:W.func,estimatedRowHeight:W.oneOfType([W.number,W.func]),getIsResetting:W.func,onRowHover:W.func,onRowExpand:W.func,onRowHeightChange:W.func,tagName:W.elementType};var DBe=function(t){var r=t.className,n=t.column;return t.columnIndex,le.createElement("div",{className:r},n.title)};DBe.propTypes={className:W.string,column:W.object,columnIndex:W.number};var FBe=function(t){var r=t.className,n=t.cellData;return t.column,t.columnIndex,t.rowData,t.rowIndex,le.createElement("div",{className:r},le.isValidElement(n)?n:Pdt(n))};FBe.propTypes={className:W.string,cellData:W.any,column:W.object,columnIndex:W.number,rowData:W.object,rowIndex:W.number};var hw={LEFT:"left",CENTER:"center",RIGHT:"right"},gv={LEFT:"left",RIGHT:"right",DEFAULT:!0,NONE:!1},Oy=(function(e){Vi(t,e);function t(){return e.apply(this,arguments)||this}return t})(le.Component);Oy.propTypes={className:W.oneOfType([W.string,W.func]),headerClassName:W.oneOfType([W.string,W.func]),style:W.object,title:W.node,dataKey:W.string,dataGetter:W.func,align:W.oneOf(["left","center","right"]),flexGrow:W.number,flexShrink:W.number,width:W.number.isRequired,maxWidth:W.number,minWidth:W.number,frozen:W.oneOf(["left","right",!0,!1]),hidden:W.bool,resizable:W.bool,sortable:W.bool,cellRenderer:W.oneOfType([W.func,W.element]),headerRenderer:W.oneOfType([W.func,W.element])};Oy.Alignment=hw;Oy.FrozenDirection=gv;var zo={ASC:"asc",DESC:"desc"},dH=(function(e){Vi(t,e);function t(n){var a;return a=e.call(this,n)||this,a._handleClick=a._handleClick.bind(Bt(a)),a}var r=t.prototype;return r.render=function(){var a=this.props,i=a.expandable,o=a.expanded,s=a.indentSize,l=a.depth,c=a.onExpand,A=Ai(a,["expandable","expanded","indentSize","depth","onExpand"]);if(!i&&s===0)return null;var u=dt("BaseTable__expand-icon",{"BaseTable__expand-icon--expanded":o});return le.createElement("div",ge({},A,{className:u,onClick:i&&c?this._handleClick:null,style:{fontFamily:"initial",cursor:"pointer",userSelect:"none",width:"16px",minWidth:"16px",height:"16px",lineHeight:"16px",fontSize:"16px",textAlign:"center",transition:"transform 0.15s ease-out",transform:"rotate("+(i&&o?90:0)+"deg)",marginLeft:l*s}}),i&&"▸")},r._handleClick=function(a){a.stopPropagation(),a.preventDefault();var i=this.props,o=i.onExpand,s=i.expanded;o(!s)},t})(le.PureComponent);dH.defaultProps={depth:0,indentSize:16};dH.propTypes={expandable:W.bool,expanded:W.bool,indentSize:W.number,depth:W.number,onExpand:W.func};function bre(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Kdt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bre(r,!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bre(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var NBe=function(t){var r=t.sortOrder,n=t.className,a=t.style,i=dt("BaseTable__sort-indicator",n,{"BaseTable__sort-indicator--descending":r===zo.DESC});return le.createElement("div",{className:i,style:Kdt({userSelect:"none",width:"16px",height:"16px",lineHeight:"16px",textAlign:"center"},a)},r===zo.DESC?"↓":"↑")};NBe.propTypes={sortOrder:W.oneOf([zo.ASC,zo.DESC]),className:W.string,style:W.object};function Sre(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function Vdt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sre(r,!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sre(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Uk=null;function Jdt(e){if(e){var t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&Udt(e.body,"react-draggable-transparent-selection")}}function Rre(e){if(e)try{if(e.body&&Hdt(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{var t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}var cd={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},Th=cd.mouse,fH=(function(e){Vi(t,e);function t(n){var a;return a=e.call(this,n)||this,a.isDragging=!1,a.lastX=Uk,a.width=0,a._setHandleRef=a._setHandleRef.bind(Bt(a)),a._handleClick=a._handleClick.bind(Bt(a)),a._handleMouseDown=a._handleMouseDown.bind(Bt(a)),a._handleMouseUp=a._handleMouseUp.bind(Bt(a)),a._handleTouchStart=a._handleTouchStart.bind(Bt(a)),a._handleTouchEnd=a._handleTouchEnd.bind(Bt(a)),a._handleDragStart=a._handleDragStart.bind(Bt(a)),a._handleDragStop=a._handleDragStop.bind(Bt(a)),a._handleDrag=a._handleDrag.bind(Bt(a)),a}var r=t.prototype;return r.componentWillUnmount=function(){if(this.handleRef){var a=this.handleRef.ownerDocument;a.removeEventListener(cd.mouse.move,this._handleDrag),a.removeEventListener(cd.mouse.stop,this._handleDragStop),a.removeEventListener(cd.touch.move,this._handleDrag),a.removeEventListener(cd.touch.stop,this._handleDragStop),Rre(a)}},r.render=function(){var a=this.props,i=a.style;a.column,a.onResizeStart,a.onResize,a.onResizeStop,a.minWidth;var o=Ai(a,["style","column","onResizeStart","onResize","onResizeStop","minWidth"]);return le.createElement("div",ge({},o,{ref:this._setHandleRef,onClick:this._handleClick,onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,style:Vdt({userSelect:"none",touchAction:"none",position:"absolute",top:0,bottom:0,right:0,cursor:"col-resize"},i)}))},r._setHandleRef=function(a){this.handleRef=a},r._handleClick=function(a){a.stopPropagation()},r._handleMouseDown=function(a){Th=cd.mouse,this._handleDragStart(a)},r._handleMouseUp=function(a){Th=cd.mouse,this._handleDragStop(a)},r._handleTouchStart=function(a){Th=cd.touch,this._handleDragStart(a)},r._handleTouchEnd=function(a){Th=cd.touch,this._handleDragStop(a)},r._handleDragStart=function(a){if(!(typeof a.button=="number"&&a.button!==0)){this.isDragging=!0,this.lastX=Uk,this.width=this.props.column.width,this.props.onResizeStart(this.props.column);var i=this.handleRef.ownerDocument;Jdt(i),i.addEventListener(Th.move,this._handleDrag),i.addEventListener(Th.stop,this._handleDragStop)}},r._handleDragStop=function(a){if(this.isDragging){this.isDragging=!1,this.props.onResizeStop(this.props.column);var i=this.handleRef.ownerDocument;Rre(i),i.removeEventListener(Th.move,this._handleDrag),i.removeEventListener(Th.stop,this._handleDragStop)}},r._handleDrag=function(a){var i=a.clientX;a.type===cd.touch.move&&(a.preventDefault(),a.targetTouches&&a.targetTouches[0]&&(i=a.targetTouches[0].clientX));var o=this.handleRef.offsetParent,s=o.getBoundingClientRect(),l=i+o.scrollLeft-s.left;if(this.lastX===Uk){this.lastX=l;return}var c=this.props,A=c.column,u=c.minWidth,d=A.width,f=A.maxWidth,h=A.minWidth,g=h===void 0?u:h,p=l-this.lastX;if(p){this.width=this.width+p,this.lastX=l;var m=this.width;f&&m>f?m=f:m<g&&(m=g),m!==d&&this.props.onResize(A,m)}},t})(le.PureComponent);fH.defaultProps={onResizeStart:lc,onResize:lc,onResizeStop:lc,minWidth:30};fH.propTypes={style:W.object,column:W.object,onResizeStart:W.func,onResize:W.func,onResizeStop:W.func,minWidth:W.number};function Tre(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function vI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tre(r,!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tre(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var jw=(function(){function e(r,n){this._origColumns=[],this.reset(r,n)}var t=e.prototype;return t._cache=function(n,a){return n in this._cached?this._cached[n]:(this._cached[n]=a(),this._cached[n])},t.reset=function(n,a){var i=this;this._columns=n.map(function(o){var s=o.width;if(o.resizable){var l=i._origColumns.findIndex(function(c){return c.key===o.key});l>=0&&i._origColumns[l].width===o.width&&(s=i._columns[l].width)}return vI({},o,{width:s})}),this._origColumns=n,this._fixed=a,this._cached={},this._columnStyles=this.recomputeColumnStyles()},t.resetCache=function(){this._cached={}},t.getOriginalColumns=function(){return this._origColumns},t.getColumns=function(){return this._columns},t.getVisibleColumns=function(){var n=this;return this._cache("visibleColumns",function(){return n._columns.filter(function(a){return!a.hidden})})},t.hasFrozenColumns=function(){var n=this;return this._cache("hasFrozenColumns",function(){return n._fixed&&n.getVisibleColumns().some(function(a){return!!a.frozen})})},t.hasLeftFrozenColumns=function(){var n=this;return this._cache("hasLeftFrozenColumns",function(){return n._fixed&&n.getVisibleColumns().some(function(a){return a.frozen===gv.LEFT||a.frozen===!0})})},t.hasRightFrozenColumns=function(){var n=this;return this._cache("hasRightFrozenColumns",function(){return n._fixed&&n.getVisibleColumns().some(function(a){return a.frozen===gv.RIGHT})})},t.getMainColumns=function(){var n=this;return this._cache("mainColumns",function(){var a=n.getVisibleColumns();if(!n.hasFrozenColumns())return a;var i=[];return n.getLeftFrozenColumns().forEach(function(o){var s;i.push(vI({},o,(s={},s[e.PlaceholderKey]=!0,s)))}),n.getVisibleColumns().forEach(function(o){o.frozen||i.push(o)}),n.getRightFrozenColumns().forEach(function(o){var s;i.push(vI({},o,(s={},s[e.PlaceholderKey]=!0,s)))}),i})},t.getLeftFrozenColumns=function(){var n=this;return this._cache("leftFrozenColumns",function(){return n._fixed?n.getVisibleColumns().filter(function(a){return a.frozen===gv.LEFT||a.frozen===!0}):[]})},t.getRightFrozenColumns=function(){var n=this;return this._cache("rightFrozenColumns",function(){return n._fixed?n.getVisibleColumns().filter(function(a){return a.frozen===gv.RIGHT}):[]})},t.getColumn=function(n){var a=this._columns.findIndex(function(i){return i.key===n});return this._columns[a]},t.getColumnsWidth=function(){var n=this;return this._cache("columnsWidth",function(){return n.recomputeColumnsWidth(n.getVisibleColumns())})},t.getLeftFrozenColumnsWidth=function(){var n=this;return this._cache("leftFrozenColumnsWidth",function(){return n.recomputeColumnsWidth(n.getLeftFrozenColumns())})},t.getRightFrozenColumnsWidth=function(){var n=this;return this._cache("rightFrozenColumnsWidth",function(){return n.recomputeColumnsWidth(n.getRightFrozenColumns())})},t.recomputeColumnsWidth=function(n){return n.reduce(function(a,i){return a+i.width},0)},t.setColumnWidth=function(n,a){var i=this.getColumn(n);i.width=a,this._cached={},this._columnStyles[i.key]=this.recomputeColumnStyle(i)},t.getColumnStyle=function(n){return this._columnStyles[n]},t.getColumnStyles=function(){return this._columnStyles},t.recomputeColumnStyle=function(n){var a=0,i=0;this._fixed||(a=typeof n.flexGrow=="number"?n.flexGrow:0,i=typeof n.flexShrink=="number"?n.flexShrink:1);var o=a+" "+i+" auto",s=vI({},n.style,{flex:o,msFlex:o,WebkitFlex:o,width:n.width,overflow:"hidden"});return!this._fixed&&n.maxWidth&&(s.maxWidth=n.maxWidth),!this._fixed&&n.minWidth&&(s.minWidth=n.minWidth),s},t.recomputeColumnStyles=function(){var n=this;return this._columns.reduce(function(a,i){return a[i.key]=n.recomputeColumnStyle(i),a},{})},e})();jw.PlaceholderKey="__placeholder__";function Qre(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,n)}return r}function mI(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qre(r,!0).forEach(function(n){te(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qre(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Dre=al(function(e,t){return e||Ndt(t)}),Fre=function(t,r,n){return{width:t,maxWidth:r,height:n,overflow:"hidden"}},Wdt={TableCell:FBe,TableHeaderCell:DBe,ExpandIcon:dH,SortIndicator:NBe},Xdt=50,qdt=[],ay=(function(e){Vi(t,e);function t(n){var a;a=e.call(this,n)||this;var i=n.columns,o=n.children,s=n.defaultExpandedRowKeys;return a.state={scrollbarSize:0,hoveredRowKey:null,resizingKey:null,resizingWidth:0,expandedRowKeys:Yk(s)},a.columnManager=new jw(Dre(i,o),n.fixed),a._setContainerRef=a._setContainerRef.bind(Bt(a)),a._setMainTableRef=a._setMainTableRef.bind(Bt(a)),a._setLeftTableRef=a._setLeftTableRef.bind(Bt(a)),a._setRightTableRef=a._setRightTableRef.bind(Bt(a)),a.renderExpandIcon=a.renderExpandIcon.bind(Bt(a)),a.renderRow=a.renderRow.bind(Bt(a)),a.renderRowCell=a.renderRowCell.bind(Bt(a)),a.renderHeader=a.renderHeader.bind(Bt(a)),a.renderHeaderCell=a.renderHeaderCell.bind(Bt(a)),a._handleScroll=a._handleScroll.bind(Bt(a)),a._handleVerticalScroll=a._handleVerticalScroll.bind(Bt(a)),a._handleRowsRendered=a._handleRowsRendered.bind(Bt(a)),a._handleRowHover=a._handleRowHover.bind(Bt(a)),a._handleRowExpand=a._handleRowExpand.bind(Bt(a)),a._handleColumnResize=Ldt(a._handleColumnResize.bind(Bt(a)),Xdt),a._handleColumnResizeStart=a._handleColumnResizeStart.bind(Bt(a)),a._handleColumnResizeStop=a._handleColumnResizeStop.bind(Bt(a)),a._handleColumnSort=a._handleColumnSort.bind(Bt(a)),a._handleFrozenRowHeightChange=a._handleFrozenRowHeightChange.bind(Bt(a)),a._handleRowHeightChange=a._handleRowHeightChange.bind(Bt(a)),a._getLeftTableContainerStyle=al(Fre),a._getRightTableContainerStyle=al(Fre),a._flattenOnKeys=al(function(l,c,A){return a._depthMap={},kdt(l,c,a._depthMap,A)}),a._resetColumnManager=al(function(l,c){a.columnManager.reset(l,c),a.props.estimatedRowHeight&&c&&(a.columnManager.hasLeftFrozenColumns()||(a._leftRowHeightMap={}),a.columnManager.hasRightFrozenColumns()||(a._rightRowHeightMap={}))},function(l,c){return TBe(l,c,a.props.ignoreFunctionInColumnCompare)}),a._isResetting=!1,a._resetIndex=null,a._rowHeightMap={},a._rowHeightMapBuffer={},a._mainRowHeightMap={},a._leftRowHeightMap={},a._rightRowHeightMap={},a._getEstimatedTotalRowsHeight=al(QBe),a._getRowHeight=a._getRowHeight.bind(Bt(a)),a._updateRowHeights=zdt(function(){a._isResetting=!0,a._rowHeightMap=mI({},a._rowHeightMap,{},a._rowHeightMapBuffer),a.resetAfterRowIndex(a._resetIndex,!1),a._rowHeightMapBuffer={},a._resetIndex=null,a.forceUpdateTable(),a.forceUpdate(),a._isResetting=!1},0),a._scroll={scrollLeft:0,scrollTop:0},a._scrollHeight=0,a._lastScannedRowIndex=-1,a._hasDataChangedSinceEndReached=!0,a._data=n.data,a._depthMap={},a._horizontalScrollbarSize=0,a._verticalScrollbarSize=0,a._scrollbarPresenceChanged=!1,a}var r=t.prototype;return r.getDOMNode=function(){return this.tableNode},r.getColumnManager=function(){return this.columnManager},r.getExpandedRowKeys=function(){var a=this.props.expandedRowKeys;return a!==void 0?a||qdt:this.state.expandedRowKeys},r.getExpandedState=function(){return{expandedData:this._data,expandedRowKeys:this.getExpandedRowKeys(),expandedDepthMap:this._depthMap}},r.getTotalRowsHeight=function(){var a=this.props,i=a.rowHeight,o=a.estimatedRowHeight;return o?this.table?this.table.getTotalRowsHeight():this._getEstimatedTotalRowsHeight(this._data,o):this._data.length*i},r.getTotalColumnsWidth=function(){return this.columnManager.getColumnsWidth()},r.forceUpdateTable=function(){this.table&&this.table.forceUpdateTable(),this.leftTable&&this.leftTable.forceUpdateTable(),this.rightTable&&this.rightTable.forceUpdateTable()},r.resetAfterRowIndex=function(a,i){a===void 0&&(a=0),i===void 0&&(i=!0),this.props.estimatedRowHeight&&(this.table&&this.table.resetAfterRowIndex(a,i),this.leftTable&&this.leftTable.resetAfterRowIndex(a,i),this.rightTable&&this.rightTable.resetAfterRowIndex(a,i))},r.resetRowHeightCache=function(){this.props.estimatedRowHeight&&(this._resetIndex=null,this._rowHeightMapBuffer={},this._rowHeightMap={},this._mainRowHeightMap={},this._leftRowHeightMap={},this._rightRowHeightMap={})},r.scrollToPosition=function(a){this._scroll=a,this.table&&this.table.scrollToPosition(a),this.leftTable&&this.leftTable.scrollToTop(a.scrollTop),this.rightTable&&this.rightTable.scrollToTop(a.scrollTop)},r.scrollToTop=function(a){this._scroll.scrollTop=a,this.table&&this.table.scrollToPosition(this._scroll),this.leftTable&&this.leftTable.scrollToTop(a),this.rightTable&&this.rightTable.scrollToTop(a)},r.scrollToLeft=function(a){this._scroll.scrollLeft=a,this.table&&this.table.scrollToPosition(this._scroll)},r.scrollToRow=function(a,i){a===void 0&&(a=0),i===void 0&&(i="auto"),this.table&&this.table.scrollToRow(a,i),this.leftTable&&this.leftTable.scrollToRow(a,i),this.rightTable&&this.rightTable.scrollToRow(a,i)},r.setExpandedRowKeys=function(a){this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:Yk(a)})},r.renderExpandIcon=function(a){var i=a.rowData,o=a.rowIndex,s=a.depth,l=a.onExpand,c=this.props,A=c.rowKey,u=c.expandColumnKey,d=c.expandIconProps;if(!u)return null;var f=o>=0&&_dt(i),h=o>=0&&this.getExpandedRowKeys().indexOf(i[A])>=0,g=UA(d,{rowData:i,rowIndex:o,depth:s,expandable:f,expanded:h}),p=this._getComponent("ExpandIcon");return le.createElement(p,ge({depth:s,expandable:f,expanded:h},g,{onExpand:l}))},r.renderRow=function(a){var i,o=a.isScrolling,s=a.columns,l=a.rowData,c=a.rowIndex,A=a.style,u=this.props,d=u.rowClassName,f=u.rowRenderer,h=u.rowEventHandlers,g=u.expandColumnKey,p=u.estimatedRowHeight,m=UA(d,{columns:s,rowData:l,rowIndex:c}),y=UA(this.props.rowProps,{columns:s,rowData:l,rowIndex:c}),C=l[this.props.rowKey],w=this._depthMap[C]||0,B=dt(this._prefixClass("row"),m,(i={},i[this._prefixClass("row--depth-"+w)]=!!g&&c>=0,i[this._prefixClass("row--expanded")]=!!g&&this.getExpandedRowKeys().indexOf(C)>=0,i[this._prefixClass("row--hovered")]=!o&&C===this.state.hoveredRowKey,i[this._prefixClass("row--frozen")]=w===0&&c<0,i[this._prefixClass("row--customized")]=f,i)),x=this.columnManager.hasFrozenColumns(),M=mI({},y,{role:"row",key:"row-"+C,isScrolling:o,className:B,style:A,columns:s,rowIndex:c,rowData:l,rowKey:C,expandColumnKey:g,depth:w,rowEventHandlers:h,rowRenderer:f,estimatedRowHeight:c>=0?p:void 0,getIsResetting:this._getIsResetting,cellRenderer:this.renderRowCell,expandIconRenderer:this.renderExpandIcon,onRowExpand:this._handleRowExpand,onRowHover:x?this._handleRowHover:null,onRowHeightChange:x?this._handleFrozenRowHeightChange:this._handleRowHeightChange});return le.createElement(uH,M)},r.renderRowCell=function(a){var i,o=a.isScrolling,s=a.columns,l=a.column,c=a.columnIndex,A=a.rowData,u=a.rowIndex,d=a.expandIcon;if(l[jw.PlaceholderKey])return le.createElement("div",{key:"row-"+A[this.props.rowKey]+"-cell-"+l.key+"-placeholder",className:this._prefixClass("row-cell-placeholder"),style:this.columnManager.getColumnStyle(l.key)});var f=l.className,h=l.dataKey,g=l.dataGetter,p=l.cellRenderer,m=this._getComponent("TableCell"),y=g?g({columns:s,column:l,columnIndex:c,rowData:A,rowIndex:u}):jdt(A,h),C={isScrolling:o,cellData:y,columns:s,column:l,columnIndex:c,rowData:A,rowIndex:u,container:this},w=iv(p||le.createElement(m,{className:this._prefixClass("row-cell-text")}),C),B=UA(f,{cellData:y,columns:s,column:l,columnIndex:c,rowData:A,rowIndex:u}),x=dt(this._prefixClass("row-cell"),B,(i={},i[this._prefixClass("row-cell--align-center")]=l.align===hw.CENTER,i[this._prefixClass("row-cell--align-right")]=l.align===hw.RIGHT,i)),M=UA(this.props.cellProps,{columns:s,column:l,columnIndex:c,rowData:A,rowIndex:u}),S=M||{},R=S.tagName,b=Ai(S,["tagName"]),T=R||"div";return le.createElement(T,ge({role:"gridcell",key:"row-"+A[this.props.rowKey]+"-cell-"+l.key},b,{className:x,style:this.columnManager.getColumnStyle(l.key)}),d,w)},r.renderHeader=function(a){var i,o=a.columns,s=a.headerIndex,l=a.style,c=this.props,A=c.headerClassName,u=c.headerRenderer,d=UA(A,{columns:o,headerIndex:s}),f=UA(this.props.headerProps,{columns:o,headerIndex:s}),h=dt(this._prefixClass("header-row"),d,(i={},i[this._prefixClass("header-row--resizing")]=!!this.state.resizingKey,i[this._prefixClass("header-row--customized")]=u,i)),g=mI({},f,{role:"row",key:"header-"+s,className:h,style:l,columns:o,headerIndex:s,headerRenderer:u,cellRenderer:this.renderHeaderCell,expandColumnKey:this.props.expandColumnKey,expandIcon:this._getComponent("ExpandIcon")});return le.createElement(AH,g)},r.renderHeaderCell=function(a){var i,o,s=a.columns,l=a.column,c=a.columnIndex,A=a.headerIndex,u=a.expandIcon;if(l[jw.PlaceholderKey])return le.createElement("div",{key:"header-"+A+"-cell-"+l.key+"-placeholder",className:this._prefixClass("header-cell-placeholder"),style:this.columnManager.getColumnStyle(l.key)});var d=l.headerClassName,f=l.headerRenderer,h=this.props,g=h.sortBy,p=h.sortState,m=h.headerCellProps,y=this._getComponent("TableHeaderCell"),C=this._getComponent("SortIndicator"),w={columns:s,column:l,columnIndex:c,headerIndex:A,container:this},B=iv(f||le.createElement(y,{className:this._prefixClass("header-cell-text")}),w),x,M;if(p){var S=p[l.key];x=S===zo.ASC||S===zo.DESC,M=x?S:zo.ASC}else x=l.key===g.key,M=x?g.order:zo.ASC;var R=UA(d,{columns:s,column:l,columnIndex:c,headerIndex:A}),b=dt(this._prefixClass("header-cell"),R,(i={},i[this._prefixClass("header-cell--align-center")]=l.align===hw.CENTER,i[this._prefixClass("header-cell--align-right")]=l.align===hw.RIGHT,i[this._prefixClass("header-cell--sortable")]=l.sortable,i[this._prefixClass("header-cell--sorting")]=x,i[this._prefixClass("header-cell--resizing")]=l.key===this.state.resizingKey,i)),T=UA(m,{columns:s,column:l,columnIndex:c,headerIndex:A}),D=T||{},F=D.tagName,N=Ai(D,["tagName"]),_=F||"div";return le.createElement(_,ge({role:"gridcell",key:"header-"+A+"-cell-"+l.key,onClick:l.sortable?this._handleColumnSort:null},N,{className:b,style:this.columnManager.getColumnStyle(l.key),"data-key":l.key}),u,B,l.sortable&&le.createElement(C,{sorting:x,sortOrder:M,className:dt(this._prefixClass("sort-indicator"),(o={},o[this._prefixClass("sort-indicator--descending")]=M===zo.DESC,o))}),l.resizable&&le.createElement(fH,{className:this._prefixClass("column-resizer"),column:l,onResizeStart:this._handleColumnResizeStart,onResizeStop:this._handleColumnResizeStop,onResize:this._handleColumnResize}))},r.renderMainTable=function(){var a=this.props,i=a.width,o=a.headerHeight,s=a.rowHeight,l=a.fixed,c=a.estimatedRowHeight,A=Ai(a,["width","headerHeight","rowHeight","fixed","estimatedRowHeight"]),u=this._getTableHeight(),d=i-this._verticalScrollbarSize;if(l){var f=this.columnManager.getColumnsWidth();d=Math.max(Math.round(f),d)}return le.createElement(iR,ge({},A,this.state,{className:this._prefixClass("table-main"),ref:this._setMainTableRef,data:this._data,columns:this.columnManager.getMainColumns(),width:i,height:u,headerHeight:o,rowHeight:s,estimatedRowHeight:c,getRowHeight:c?this._getRowHeight:void 0,headerWidth:d+(l?this._verticalScrollbarSize:0),bodyWidth:d,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleScroll,onRowsRendered:this._handleRowsRendered}))},r.renderLeftTable=function(){if(!this.columnManager.hasLeftFrozenColumns())return null;var a=this.props,i=a.width,o=a.headerHeight,s=a.rowHeight,l=a.estimatedRowHeight,c=Ai(a,["width","headerHeight","rowHeight","estimatedRowHeight"]),A=this._getFrozenContainerHeight(),u=this._verticalScrollbarSize||20,d=this.columnManager.getLeftFrozenColumnsWidth();return le.createElement(iR,ge({},c,this.state,{containerStyle:this._getLeftTableContainerStyle(d,i,A),className:this._prefixClass("table-frozen-left"),ref:this._setLeftTableRef,data:this._data,columns:this.columnManager.getLeftFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:d+u,height:A,headerHeight:o,rowHeight:s,estimatedRowHeight:l,getRowHeight:l?this._getRowHeight:void 0,headerWidth:d+u,bodyWidth:d+u,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:lc}))},r.renderRightTable=function(){if(!this.columnManager.hasRightFrozenColumns())return null;var a=this.props,i=a.width,o=a.headerHeight,s=a.rowHeight,l=a.estimatedRowHeight,c=Ai(a,["width","headerHeight","rowHeight","estimatedRowHeight"]),A=this._getFrozenContainerHeight(),u=this.columnManager.getRightFrozenColumnsWidth(),d=this._verticalScrollbarSize;return le.createElement(iR,ge({},c,this.state,{containerStyle:this._getLeftTableContainerStyle(u+d,i,A),className:this._prefixClass("table-frozen-right"),ref:this._setRightTableRef,data:this._data,columns:this.columnManager.getRightFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:u+d,height:A,headerHeight:o,rowHeight:s,estimatedRowHeight:l,getRowHeight:l?this._getRowHeight:void 0,headerWidth:u+d,bodyWidth:u,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:lc}))},r.renderResizingLine=function(){var a=this.props,i=a.width,o=a.fixed,s=this.state.resizingKey;if(!o||!s)return null;var l=this.columnManager.getMainColumns(),c=l.findIndex(function(m){return m.key===s}),A=l[c],u=A.width,d=A.frozen,f=this.columnManager.recomputeColumnsWidth(l.slice(0,c)),h=f+u;if(!d)h-=this._scroll.scrollLeft;else if(d===gv.RIGHT){var g=this.columnManager.recomputeColumnsWidth(l.slice(c+1));g+u>i-this._verticalScrollbarSize?h=u:h=i-this._verticalScrollbarSize-g}var p={left:h,height:this._getTableHeight()-this._horizontalScrollbarSize};return le.createElement("div",{className:this._prefixClass("resizing-line"),style:p})},r.renderFooter=function(){var a=this.props,i=a.footerHeight,o=a.footerRenderer;return i===0?null:le.createElement("div",{className:this._prefixClass("footer"),style:{height:i}},iv(o))},r.renderEmptyLayer=function(){var a=this.props,i=a.data,o=a.frozenData,s=a.footerHeight,l=a.emptyRenderer;if(i&&i.length||o&&o.length)return null;var c=this._getHeaderHeight();return le.createElement("div",{className:this._prefixClass("empty-layer"),style:{top:c,bottom:s}},iv(l))},r.renderOverlay=function(){var a=this.props.overlayRenderer;return le.createElement("div",{className:this._prefixClass("overlay")},!!a&&iv(a))},r.render=function(){var a,i=this.props,o=i.columns,s=i.children,l=i.width,c=i.fixed,A=i.data,u=i.frozenData,d=i.expandColumnKey,f=i.disabled,h=i.className,g=i.style,p=i.footerHeight,m=i.classPrefix,y=i.estimatedRowHeight;this._resetColumnManager(Dre(o,s),c);var C=d?this._flattenOnKeys(A,this.getExpandedRowKeys(),this.props.rowKey):A;this._data!==C&&(this.resetAfterRowIndex(0,!1),this._data=C),this._calcScrollbarSizes(),this._totalRowsHeight=this.getTotalRowsHeight();var w=mI({},g,{width:l,height:this._getTableHeight()+p,position:"relative"}),B=dt(m,h,(a={},a[m+"--fixed"]=c,a[m+"--expandable"]=!!d,a[m+"--empty"]=A.length===0,a[m+"--has-frozen-rows"]=u.length>0,a[m+"--has-frozen-columns"]=this.columnManager.hasFrozenColumns(),a[m+"--disabled"]=f,a[m+"--dynamic"]=!!y,a));return le.createElement("div",{ref:this._setContainerRef,className:B,style:w},this.renderFooter(),this.renderMainTable(),this.renderLeftTable(),this.renderRightTable(),this.renderResizingLine(),this.renderEmptyLayer(),this.renderOverlay())},r.componentDidMount=function(){var a=this.props.getScrollbarSize();a>0&&this.setState({scrollbarSize:a})},r.componentDidUpdate=function(a,i){var o=this.props,s=o.data,l=o.height,c=o.maxHeight,A=o.estimatedRowHeight;s!==a.data&&(this._lastScannedRowIndex=-1,this._hasDataChangedSinceEndReached=!0),(c!==a.maxHeight||l!==a.height)&&this._maybeCallOnEndReached(),this._maybeScrollbarPresenceChange(),A&&this.getTotalRowsHeight()!==this._totalRowsHeight&&this.forceUpdate()},r._prefixClass=function(a){return this.props.classPrefix+"__"+a},r._setContainerRef=function(a){this.tableNode=a},r._setMainTableRef=function(a){this.table=a},r._setLeftTableRef=function(a){this.leftTable=a},r._setRightTableRef=function(a){this.rightTable=a},r._getComponent=function(a){return this.props.components&&this.props.components[a]?this.props.components[a]:Wdt[a]},r._getRowHeight=function(a){var i=this.props,o=i.estimatedRowHeight,s=i.rowKey;return this._rowHeightMap[this._data[a][s]]||UA(o,{rowData:this._data[a],rowIndex:a})},r._getIsResetting=function(){return this._isResetting},r._getHeaderHeight=function(){var a=this.props.headerHeight;return Array.isArray(a)?a.reduce(function(i,o){return i+o},0):a},r._getFrozenRowsHeight=function(){var a=this.props,i=a.frozenData,o=a.rowHeight;return i.length*o},r._getTableHeight=function(){var a=this.props,i=a.height,o=a.maxHeight,s=a.footerHeight,l=i-s;if(o>0){var c=this._getFrozenRowsHeight(),A=this.getTotalRowsHeight(),u=this._getHeaderHeight(),d=u+c+A+this._horizontalScrollbarSize;l=Math.min(d,o-s)}return l},r._getBodyHeight=function(){return this._getTableHeight()-this._getHeaderHeight()-this._getFrozenRowsHeight()},r._getFrozenContainerHeight=function(){var a=this.props.maxHeight,i=this._getTableHeight()-(this._data.length>0?this._horizontalScrollbarSize:0);if(a>0)return i;var o=this.getTotalRowsHeight()+this._getHeaderHeight()+this._getFrozenRowsHeight();return Math.min(i,o)},r._calcScrollbarSizes=function(){var a=this.props,i=a.fixed,o=a.width,s=this.state.scrollbarSize,l=this.getTotalRowsHeight(),c=this.getTotalColumnsWidth(),A=this._horizontalScrollbarSize,u=this._verticalScrollbarSize;s===0?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0):!i||c<=o-s?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=l>this._getBodyHeight()?s:0):c>o?(this._horizontalScrollbarSize=s,this._verticalScrollbarSize=l>this._getBodyHeight()-this._horizontalScrollbarSize?s:0):(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0,l>this._getBodyHeight()&&(this._horizontalScrollbarSize=s,this._verticalScrollbarSize=s)),(A!==this._horizontalScrollbarSize||u!==this._verticalScrollbarSize)&&(this._scrollbarPresenceChanged=!0)},r._maybeScrollbarPresenceChange=function(){if(this._scrollbarPresenceChanged){var a=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,a({size:this.state.scrollbarSize,horizontal:this._horizontalScrollbarSize>0,vertical:this._verticalScrollbarSize>0})}},r._maybeCallOnEndReached=function(){var a=this.props,i=a.onEndReached,o=a.onEndReachedThreshold,s=this._scroll.scrollTop,l=this.getTotalRowsHeight(),c=this._getBodyHeight();if(!(!i||!c||!l)){var A=l-s-c+this._horizontalScrollbarSize;this._lastScannedRowIndex>=0&&A<=o&&(this._hasDataChangedSinceEndReached||l!==this._scrollHeight)&&(this._hasDataChangedSinceEndReached=!1,this._scrollHeight=l,i({distanceFromEnd:A}))}},r._handleScroll=function(a){var i=this._scroll.scrollTop;this.scrollToPosition(a),this.props.onScroll(a),a.scrollTop>i&&this._maybeCallOnEndReached()},r._handleVerticalScroll=function(a){var i=a.scrollTop,o=this._scroll.scrollTop;i!==o&&this.scrollToTop(i),i>o&&this._maybeCallOnEndReached()},r._handleRowsRendered=function(a){this.props.onRowsRendered(a),a.overscanStopIndex>this._lastScannedRowIndex&&(this._lastScannedRowIndex=a.overscanStopIndex,this._maybeCallOnEndReached())},r._handleRowHover=function(a){var i=a.hovered,o=a.rowKey;this.setState({hoveredRowKey:i?o:null})},r._handleRowExpand=function(a){var i=a.expanded,o=a.rowData,s=a.rowIndex,l=a.rowKey,c=Yk(this.getExpandedRowKeys());if(i)!c.indexOf(l)>=0&&c.push(l);else{var A=c.indexOf(l);A>-1&&c.splice(A,1)}this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:c}),this.props.onRowExpand({expanded:i,rowData:o,rowIndex:s,rowKey:l}),this.props.onExpandedRowsChange(c)},r._handleColumnResize=function(a,i){var o=a.key;this.columnManager.setColumnWidth(o,i),this.setState({resizingWidth:i});var s=this.columnManager.getColumn(o);this.props.onColumnResize({column:s,width:i})},r._handleColumnResizeStart=function(a){var i=a.key;this.setState({resizingKey:i})},r._handleColumnResizeStop=function(){var a=this.state,i=a.resizingKey,o=a.resizingWidth;if(this.setState({resizingKey:null,resizingWidth:0}),!(!i||!o)){var s=this.columnManager.getColumn(i);this.props.onColumnResizeEnd({column:s,width:o})}},r._handleColumnSort=function(a){var i=a.currentTarget.dataset.key,o=this.props,s=o.sortBy,l=o.sortState,c=o.onColumnSort,A=zo.ASC;l?A=l[i]===zo.ASC?zo.DESC:zo.ASC:i===s.key&&(A=s.order===zo.ASC?zo.DESC:zo.ASC);var u=this.columnManager.getColumn(i);c({column:u,key:i,order:A})},r._handleFrozenRowHeightChange=function(a,i,o,s){s?s===gv.RIGHT?this._rightRowHeightMap[a]=i:this._leftRowHeightMap[a]=i:this._mainRowHeightMap[a]=i;var l=Math.max(this._mainRowHeightMap[a]||0,this._leftRowHeightMap[a]||0,this._rightRowHeightMap[a]||0);this._rowHeightMap[a]!==l&&this._handleRowHeightChange(a,l,o)},r._handleRowHeightChange=function(a,i,o){this._resetIndex===null?this._resetIndex=o:this._resetIndex>o&&(this._resetIndex=o),this._rowHeightMapBuffer[a]=i,this._updateRowHeights()},t})(le.PureComponent);ay.Column=Oy;ay.PlaceholderKey=jw.PlaceholderKey;ay.defaultProps={classPrefix:"BaseTable",rowKey:"id",data:[],frozenData:[],fixed:!1,headerHeight:50,rowHeight:50,footerHeight:0,defaultExpandedRowKeys:[],sortBy:{},useIsScrolling:!1,overscanRowCount:1,onEndReachedThreshold:500,getScrollbarSize:Ydt,ignoreFunctionInColumnCompare:!0,onScroll:lc,onRowsRendered:lc,onScrollbarPresenceChange:lc,onRowExpand:lc,onExpandedRowsChange:lc,onColumnSort:lc,onColumnResize:lc,onColumnResizeEnd:lc};ay.propTypes={classPrefix:W.string,className:W.string,style:W.object,children:W.node,columns:W.arrayOf(W.shape(Oy.propTypes)),data:W.array.isRequired,frozenData:W.array,rowKey:W.oneOfType([W.string,W.number]).isRequired,width:W.number.isRequired,height:W.number,maxHeight:W.number,rowHeight:W.number,estimatedRowHeight:W.oneOfType([W.number,W.func]),headerHeight:W.oneOfType([W.number,W.arrayOf(W.number)]).isRequired,footerHeight:W.number,fixed:W.bool,disabled:W.bool,overlayRenderer:W.oneOfType([W.func,W.element]),emptyRenderer:W.oneOfType([W.func,W.element]),footerRenderer:W.oneOfType([W.func,W.element]),headerRenderer:W.oneOfType([W.func,W.element]),rowRenderer:W.oneOfType([W.func,W.element]),headerClassName:W.oneOfType([W.string,W.func]),rowClassName:W.oneOfType([W.string,W.func]),headerProps:W.oneOfType([W.object,W.func]),headerCellProps:W.oneOfType([W.object,W.func]),rowProps:W.oneOfType([W.object,W.func]),cellProps:W.oneOfType([W.object,W.func]),expandIconProps:W.oneOfType([W.object,W.func]),expandColumnKey:W.string,defaultExpandedRowKeys:W.arrayOf(W.oneOfType([W.string,W.number])),expandedRowKeys:W.arrayOf(W.oneOfType([W.string,W.number])),onRowExpand:W.func,onExpandedRowsChange:W.func,sortBy:W.shape({key:W.string,order:W.oneOf([zo.ASC,zo.DESC])}),sortState:W.object,onColumnSort:W.func,onColumnResize:W.func,onColumnResizeEnd:W.func,useIsScrolling:W.bool,overscanRowCount:W.number,getScrollbarSize:W.func,onScroll:W.func,onEndReached:W.func,onEndReachedThreshold:W.number,onRowsRendered:W.func,onScrollbarPresenceChange:W.func,rowEventHandlers:W.object,ignoreFunctionInColumnCompare:W.bool,components:W.shape({TableCell:W.elementType,TableHeaderCell:W.elementType,ExpandIcon:W.elementType,SortIndicator:W.elementType})};let qc;typeof window<"u"?qc=window:typeof self<"u"?qc=self:qc=global;let Z6=null,$6=null;const Nre=20,Hk=qc.clearTimeout,_re=qc.setTimeout,Gk=qc.cancelAnimationFrame||qc.mozCancelAnimationFrame||qc.webkitCancelAnimationFrame,kre=qc.requestAnimationFrame||qc.mozRequestAnimationFrame||qc.webkitRequestAnimationFrame;Gk==null||kre==null?(Z6=Hk,$6=function(t){return _re(t,Nre)}):(Z6=function([t,r]){Gk(t),Hk(r)},$6=function(t){const r=kre(function(){Hk(n),t()}),n=_re(function(){Gk(r),t()},Nre);return[r,n]});function Zdt(e){let t,r,n,a,i,o,s;const l=typeof document<"u"&&document.attachEvent;if(!l){o=function(m){const y=m.__resizeTriggers__,C=y.firstElementChild,w=y.lastElementChild,B=C.firstElementChild;w.scrollLeft=w.scrollWidth,w.scrollTop=w.scrollHeight,B.style.width=C.offsetWidth+1+"px",B.style.height=C.offsetHeight+1+"px",C.scrollLeft=C.scrollWidth,C.scrollTop=C.scrollHeight},i=function(m){return m.offsetWidth!==m.__resizeLast__.width||m.offsetHeight!==m.__resizeLast__.height},s=function(m){if(m.target.className&&typeof m.target.className.indexOf=="function"&&m.target.className.indexOf("contract-trigger")<0&&m.target.className.indexOf("expand-trigger")<0)return;const y=this;o(this),this.__resizeRAF__&&Z6(this.__resizeRAF__),this.__resizeRAF__=$6(function(){i(y)&&(y.__resizeLast__.width=y.offsetWidth,y.__resizeLast__.height=y.offsetHeight,y.__resizeListeners__.forEach(function(B){B.call(y,m)}))})};let d=!1,f="";n="animationstart";const h="Webkit Moz O ms".split(" ");let g="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),p="";{const m=document.createElement("fakeelement");if(m.style.animationName!==void 0&&(d=!0),d===!1){for(let y=0;y<h.length;y++)if(m.style[h[y]+"AnimationName"]!==void 0){p=h[y],f="-"+p.toLowerCase()+"-",n=g[y],d=!0;break}}}r="resizeanim",t="@"+f+"keyframes "+r+" { from { opacity: 0; } to { opacity: 0; } } ",a=f+"animation: 1ms "+r+"; "}const c=function(d){if(!d.getElementById("detectElementResize")){const f=(t||"")+".resize-triggers { "+(a||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',h=d.head||d.getElementsByTagName("head")[0],g=d.createElement("style");g.id="detectElementResize",g.type="text/css",e!=null&&g.setAttribute("nonce",e),g.styleSheet?g.styleSheet.cssText=f:g.appendChild(d.createTextNode(f)),h.appendChild(g)}};return{addResizeListener:function(d,f){if(l)d.attachEvent("onresize",f);else{if(!d.__resizeTriggers__){const h=d.ownerDocument,g=qc.getComputedStyle(d);g&&g.position==="static"&&(d.style.position="relative"),c(h),d.__resizeLast__={},d.__resizeListeners__=[],(d.__resizeTriggers__=h.createElement("div")).className="resize-triggers";const p=h.createElement("div");p.className="expand-trigger",p.appendChild(h.createElement("div"));const m=h.createElement("div");m.className="contract-trigger",d.__resizeTriggers__.appendChild(p),d.__resizeTriggers__.appendChild(m),d.appendChild(d.__resizeTriggers__),o(d),d.addEventListener("scroll",s,!0),n&&(d.__resizeTriggers__.__animationListener__=function(C){C.animationName===r&&o(d)},d.__resizeTriggers__.addEventListener(n,d.__resizeTriggers__.__animationListener__))}d.__resizeListeners__.push(f)}},removeResizeListener:function(d,f){if(l)d.detachEvent("onresize",f);else if(d.__resizeListeners__.splice(d.__resizeListeners__.indexOf(f),1),!d.__resizeListeners__.length){d.removeEventListener("scroll",s,!0),d.__resizeTriggers__.__animationListener__&&(d.__resizeTriggers__.removeEventListener(n,d.__resizeTriggers__.__animationListener__),d.__resizeTriggers__.__animationListener__=null);try{d.__resizeTriggers__=!d.removeChild(d.__resizeTriggers__)}catch{}}}}}class $dt extends E.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._didLogDeprecationWarning=!1,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:r,disableWidth:n,onResize:a}=this.props;if(this._parentNode){const i=window.getComputedStyle(this._parentNode)||{},o=parseFloat(i.paddingLeft||"0"),s=parseFloat(i.paddingRight||"0"),l=parseFloat(i.paddingTop||"0"),c=parseFloat(i.paddingBottom||"0"),A=this._parentNode.getBoundingClientRect(),u=A.height-l-c,d=A.width-o-s;if(!r&&this.state.height!==u||!n&&this.state.width!==d){this.setState({height:u,width:d});const f=()=>{this._didLogDeprecationWarning||(this._didLogDeprecationWarning=!0,console.warn("scaledWidth and scaledHeight parameters have been deprecated; use width and height instead"))};typeof a=="function"&&a({height:u,width:d,get scaledHeight(){return f(),u},get scaledWidth(){return f(),d}})}}},this._setRef=r=>{this._autoSizer=r}}componentDidMount(){const{nonce:t}=this.props,r=this._autoSizer?this._autoSizer.parentNode:null;if(r!=null&&r.ownerDocument&&r.ownerDocument.defaultView&&r instanceof r.ownerDocument.defaultView.HTMLElement){this._parentNode=r;const n=r.ownerDocument.defaultView.ResizeObserver;n!=null?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(r)):(this._detectElementResize=Zdt(t),this._detectElementResize.addResizeListener(r,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:t,defaultHeight:r,defaultWidth:n,disableHeight:a=!1,disableWidth:i=!1,doNotBailOutOnEmptyChildren:o=!1,nonce:s,onResize:l,style:c={},tagName:A="div",...u}=this.props,{height:d,width:f}=this.state,h={overflow:"visible"},g={};let p=!1;return a||(d===0&&(p=!0),h.height=0,g.height=d,g.scaledHeight=d),i||(f===0&&(p=!0),h.width=0,g.width=f,g.scaledWidth=f),o&&(p=!1),E.createElement(A,{ref:this._setRef,style:{...h,...c},...u},!p&&t(g))}}var cu=function(t){var r=t.className,n=t.width,a=t.height,i=t.children,o=t.onResize,s=typeof n=="number",l=typeof a=="number";return s&&l?le.createElement("div",{className:r,style:{width:n,height:a,position:"relative"}},i({width:n,height:a})):le.createElement($dt,{className:r,disableWidth:s,disableHeight:l,onResize:o},function(c){return i({width:s?n:c.width,height:l?a:c.height})})};cu.propTypes={className:W.string,width:W.number,height:W.number,children:W.func.isRequired,onResize:W.func};const BB=({initialText:e,handleUpdateText:t,field:r,rowKey:n,recordKey:a,type:i,options:o})=>{const[s,l]=E.useState(!1),[c,A]=E.useState(""),u=E.useRef();E.useEffect(()=>{A(e)},[e,a]),E.useEffect(()=>{s&&u.current.focus()},[s]);const d=()=>{l(!s)},f=p=>{A(p.target.value)},h=p=>{l(!1),c!==e&&t(r,c,n)},g=p=>{t(r,p,n)};return i==="select"?v.jsx(sn,{style:{width:"100%"},defaultValue:e,options:o,onChange:g}):s?v.jsx(jt,{ref:u,style:{marginLeft:"6px",width:"90%"},value:c,onChange:f,onBlur:h}):v.jsx("div",{className:"editable-field",onClick:d,children:c})};BB.propTypes={initialText:W.string,handleUpdateText:W.func,field:W.string,rowKey:W.number};const go=({style:e={},size:t})=>{ut(n=>n.cti.ui.primaryColor);let r={...e};if(t)switch(t){case"small":r.transform="scale(0.5)";break}return v.jsx("div",{className:"cti-loader",style:r,children:v.jsxs("div",{className:"sk-folding-cube",children:[v.jsx("div",{className:"sk-cube1 sk-cube"}),v.jsx("div",{className:"sk-cube2 sk-cube"}),v.jsx("div",{className:"sk-cube4 sk-cube"}),v.jsx("div",{className:"sk-cube3 sk-cube"})]})})};go.propTypes={style:W.object,size:W.string};go.defaultProps={style:{}};const Hn=le.memo(le.forwardRef(({columns:e,data:t,loading:r,selectedRow:n,selectedRowOid:a,onRowSelect:i,noOverlay:o,selectedRows:s,handleSelectedRowOid:l,choice:c,selectButtonBool:A=!1,shiftMulti:u=!1,defaultStyles:d=!0,handleUpdateText:f,sortByDefault:h=null,overideGetRowClassName:g=null,essentialsFixed:p,flexGrowBool:m=!1,view:y,...C},w)=>{const[B,x]=E.useState(null),[M,S]=E.useState(!1),[R,b]=E.useState(h||{}),[T,D]=E.useState([]),F=wn();E.useEffect(()=>(window.addEventListener("keydown",N),window.addEventListener("keyup",_),()=>{window.removeEventListener("keydown",N),window.removeEventListener("keyup",_)}),[]),E.useEffect(()=>{if(R&&R?.key&&R?.order){let J=zf(t,R.key,R.order);J.length&&J[0].key===void 0&&J[0].oid&&(J=J.map(ee=>({...ee,key:ee.oid}))),D(J)}else if(t?.length&&t[0].key===void 0&&t[0].oid){let J=t.map(ee=>({...ee,key:ee.oid}));D(J)}else D(t)},[t]);function N(J){J.shiftKey&&S(!0)}function _(J){J.key==="Shift"&&S(!1)}const P=E.useCallback(({column:J,key:ee,order:ae})=>{let ne=ae;(!R.key||R.key!==ee)&&(ne=ay.ASC),b({key:ee,order:ne});let fe=fdt(t),he=zf(fe,ee,ne);D(he),F(gve({key:ee,order:ne}))},[t,R,F]),k=le.useCallback(()=>{if(r&&o!==!0)return v.jsx("div",{className:"table-loading-overlay",children:v.jsx(go,{size:"small"})});if(A&&(!c.length||c==="-1"))return v.jsx(WA,{description:"Veuillez sélectionner la liste des gestes marqueurs à visualiser",className:"table-empty"});if(!t.length&&r===!1)return v.jsx(WA,{description:"Pas de données",className:"table-empty"})},[r,t,o]),j=le.useCallback(()=>10,[]),Y=({columns:J,rowData:ee,rowIndex:ae})=>{let ne="";return a&&a===ee.oid&&(ne+=" selected"),n&&(C.rowKey?n[C.rowKey]===ee[C.rowKey]&&(ne+=" selected"):n.key===ee.key&&(ne+=" selected")),s&&(C.rowKey?s.includes(ee[C.rowKey])&&(ne+=" selected"):s.includes(ee.key)&&(ne+=" selected")),ae%2===0&&(ne+=" even-row"),ae%2===0&&(ne+=" even-row"),ne};function X(J){let ee=[];return d?ee=J.map(ae=>({sortable:!0,...ae,className:"cti-default-table",headerClassName:"cti-default-table"})):ee=J.map(ae=>({...ae})),ee=ee.map(ae=>ae.editable?{...ae,cellRenderer:({cellData:ne,rowData:fe})=>v.jsx(BB,{initialText:ne,field:ae.dataKey,rowKey:Number(fe.key),handleUpdateText:f,type:ae.type,options:ae.options})}:ae),ee}const K=le.useMemo(()=>({onClick:({rowData:J,rowIndex:ee,rowKey:ae,event:ne})=>{if(l)l(ae);else if(i)if(B&&M&&u){const fe=t.map(Se=>Number(Se.key)),he=fe.indexOf(Math.min(Number(ae),Number(B))),ye=fe.indexOf(Math.max(Number(ae),Number(B)));let be=fe.filter(Se=>fe.indexOf(Se)>=he&&fe.indexOf(Se)<=ye);i(be.map(Se=>Se.toString()))}else i(ae);x(ae)}}),[M,t,B,i,u,l]),U=X(e),H=le.useMemo(()=>({fontSize:"11px"}),[]),L=U.filter(J=>J.hidden!==!0).reduce((J,ee)=>J+ee.width,0),V=function(){let ee="";if(y){const ae=y.desc.attributes;ae.favoriteEssential==="true"&&ae.isFavorite!=="true"&&(ee="header-column-font-size")}return ee};return T?v.jsx(cu,{children:({width:J,height:ee})=>v.jsx(ay,{rowKey:"key",columns:U,headerHeight:50,headerClassName:V,rowHeight:25,width:J,height:ee,data:T,onColumnSort:P,sortBy:R,getScrollbarSize:j,rowClassName:g??Y,rowEventHandlers:K,overlayRenderer:k,style:H,ref:w,...C,fixed:m&&J>L?!1:C.fixed||C.fixed===!1&&J<Math.max(1400,L)})}):null}));Hn.propTypes={columns:W.array.isRequired,data:W.array.isRequired,loading:W.bool,onRowSelect:W.func,selectedRow:W.object,selectedRows:W.array,shiftMulti:W.bool,defaultStyles:W.bool,flexGrowBool:W.bool,choice:W.string,selectButtonBool:W.bool,view:W.object};Hn.defaultProps={loading:!1,defaultStyle:!0};const _Be=()=>{const e=ut(l=>l.cti.components.log.data.logs),t=ut(l=>l.cti.components.log.loading),r=ut(l=>l.cti.settings.data.session),n=wn();E.useEffect(()=>{n(Aee())},[n]);const a=()=>{n(Aee())},o=[{title:"Id",dataKey:"id"},{title:"Date",dataKey:"createdAt",width:150},{title:"Code",dataKey:"code",width:100},{title:"Count",dataKey:"count",width:100},{title:"Erreur",dataKey:"error",width:200},{title:"Texte",dataKey:"text",width:200},{title:"Message",dataKey:"message",width:200},{title:"Utilisateur",dataKey:"user",dataGetter:({rowData:l})=>l.extra.user,width:100},{title:"URL",dataKey:"url",dataGetter:({rowData:l})=>l.extra.url,width:300}].map(l=>({width:50,resizable:!0,key:l.dataKey,...l})),s=({rowData:l,column:c})=>({onClick:A=>{A.preventDefault();var u=document.createElement("textarea");u.value=l[c.dataKey],document.body.appendChild(u),u.select(),document.execCommand("copy"),document.body.removeChild(u),tl.success("Copié !")}});return r.CONNECTEDUSER!=="cti"?v.jsx(vE,{to:"/accueil"}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"page-header",children:[v.jsx("div",{className:"header-title",children:"Logs"}),v.jsx("div",{className:"header-actions",children:v.jsx(yt,{type:"primary",onClick:a,children:"Reload"})})]}),v.jsx("div",{className:"page-content",children:v.jsx("div",{className:"logs-table",children:v.jsx(Hn,{rowKey:"id",columns:o,data:e,loading:t,cellProps:s})})})]})};_Be.propTypes={};const kBe=({pageName:e,module:t})=>gPe().pathname.startsWith("/outils/")?v.jsx(Rx,{className:"cti-page",children:v.jsx(dm,{in:!0,classNames:"menu-fade",appear:!0,timeout:300,unmountOnExit:!0,children:v.jsxs(Wge,{children:[v.jsx(aE,{exact:!0,path:"/outils/parametrage-utilisateur/options-de-presentation/presentation-manager",children:v.jsx(Wwe,{})}),v.jsx(aE,{exact:!0,path:"/outils/logs",children:v.jsx(_Be,{})}),v.jsx(aE,{exact:!0,path:"/outils/exploit",children:v.jsx(udt,{})}),v.jsx(aE,{children:null})]})},e)}):null;kBe.propTypes={pageName:W.string,module:W.string};const eft=le.memo(kBe);function tft(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Yr(t).schema,n=Nt(t,"TABLE");let a={};n.forEach(l=>{let c=Yr(l);const A=Nt(l,"CLASSE");c.classes=s(A),a[`${c.classe_schema}-${c.table_id}`]=c});const i=Nt(t,"REFTABLE");let o={};i.forEach(l=>{let c=Yr(l);const A=Nt(l,"CLASSE");c.classes=s(A),o[c.table_id]=c});function s(l){let c={};return l.forEach(A=>{let u=Yr(A);c[u.classe_id]=u}),c}return{schema:r,tables:a,refTables:o}}function rft(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"CLASSE")[0];let n=Yr(r);const a=Nt(r,"SECTION");n.sections=i(a);function i(s){let l=[];return s.forEach(c=>{let A=Yr(c);const u=Nt(c,"ELEMENT");A.elements=o(u),l.push(A)}),l}function o(s){let l=[];return s.forEach(c=>{const A=Yr(c);A.key=A.oid,l.push(A)}),l}return n.schema=Yr(t).schema??Yr(t).classe_schema,n.classe_schema=Yr(t).classe_schema??Yr(t).schema,n}function PBe(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0];let r=Yr(t);const n=Nt(t,"LISTPROVIDER");let a={};return n.forEach(i=>{let o=Yr(i);const s=Nt(i,"OPTION");let l=oa(s);l=l.map(c=>({...c,title:c.label,value:c.data})),l.length&&l.every(c=>c.treeLevel)?o.children=um(l):o.children=l,a[o.name]=o}),r.providers=a,r}const nft=["OUTILS_GLOBALS.XML","ACCUEIL_GLOBALS.XML","_GLOBALS.XML","MYFAVORITES_GLOBALS.XML"],iy=(e,t=!1)=>async function(r,n){const a=n();let o=`globals_${(e==="qualite"?"qual":e).toLowerCase()}`;const s=Rf(o,!0);if(!s)return r(IF(!1)),null;if(!a.cti.globals.module===o&&Object.keys(a.cti.globals.data).length)return null;r(IF(!0));const l=await Ji.getItem(o);if(l&&t===!1){const u=JSON.parse(Pl.inflate(l,{to:"string"}));r(rz(o,u))}else{let u=new FormData;u.append("url",s);const d=await To({method:"post",url:Ii()+"modules/base/php/getGlobals.php",data:u,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});let f=Pg(d.data);const h=PBe(f);r(rz(o,h));var c=Pl.deflate(JSON.stringify(h),{to:"string"});Ji.setItem(o,c)}r(IF(!1));const A=new CustomEvent("globalsReady",{detail:e});document.dispatchEvent(A)},aft=e=>new Promise(async t=>{const r=new FormData;r.append("url",e);const n=await To({method:"post",url:Ii()+"modules/base/php/getGlobals.php",data:r,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"}),a=Pg(n.data),i=PBe(a),o=Pl.deflate(JSON.stringify(i),{to:"string"});Ji.setItem(e,o),t()}),k4=()=>async function(e,t){ya({type:"warn",message:"Filtres",description:"Rechargement en cours"});const n=(await Ji.keys()).filter(c=>c.startsWith("globals"));let a=[];n.forEach(c=>{const A=Rf(c,!0);A&&!nft.includes(A)&&a.push(aft(A))}),await Promise.all(a);const s=`globals_${t().cti.menu.selectedModuleKey}`,l=await Ji.getItem(s);if(l){const c=JSON.parse(Pl.inflate(l,{to:"string"}));e(rz(s,c))}ya({type:"success",message:"Filtres",description:"Rechargement terminé"})},ift=()=>async function(e,t){const r=await jn("modules/outils/php/httpService_usersManager_getConfig.php"),{modules:n,securityLevels:a,envs:i,ctiusrdir:o}=Tit(r);e(uOe(n,a,i,o))},Au=(e,t=!1)=>{let r=document.implementation.createDocument("","");return Object.values(e).forEach(n=>{let a=r.createElement(n.XMLType);for(let i in n)switch(i){case"XMLType":break;case"children":OBe(n.children,r).forEach(s=>{a.appendChild(s)});break;default:a.setAttribute(i,n[i]);break}r.appendChild(a)}),t===!0?new XMLSerializer().serializeToString(r):r};function OBe(e,t){return e.map(r=>{let n=t.createElement(r.XMLType);for(let a in r)switch(a){case"XMLType":break;case"children":OBe(r.children,t).forEach(o=>{n.appendChild(o)});break;default:n.setAttribute(a,r[a]);break}return n})}const DT=()=>async function(e,t){e(YE(!0));const n={softCode:t().cti.content.moduleId},a=await jn("modules/base/php/httpService_classesManager_getClasses.php",n),{schema:i,tables:o,refTables:s}=tft(a);e(c3e(i,o,s)),e(YE(!1))},oft=({classeId:e,tableId:t,key:r})=>async function(n,a){n(YE(!0));const i=r&&r.includes("finess")?"base":a().cti.content.moduleId.replace("iCTI_",""),s=await jn("modules/base/php/httpService_classesManager_getClasse.php",{classe_id:e,table_id:t,schema:i,classe_schema:i}),l=rft(s);n(A3e(l)),n(YE(!1))},sft=e=>{const t=e.table_name;let r={CLASSE:{XMLType:"CLASSE",...e,est_lecture_seule:e.est_lecture_seule===!0?"1":"0",is_cti:e.is_cti===!0?"1":"0",contenu_non_replicable_ailleurs:e.contenu_non_replicable_ailleurs===!0?"1":"0"}};delete r.CLASSE.sections;let n=S8e(e.sections);n&&(r.CLASSE.children=n);let a=Au(r,!0);return async function(i,o){i(YE(!0));const s=o().cti.content.moduleId.replace("iCTI_",""),l=t&&t.includes("finess")?"base":o().cti.content.moduleId.replace("iCTI_","");await jn("modules/base/php/httpService_classesManager_setClasse.php",{schema:s,classe_schema:l,action:"save",classeDef:a}),i(DT()),i(k4())}};async function lft(e,t,r){await Sf("modules/base/php/httpService_classesManager_getSqlScript.php",{softCode:e,classes:t,tableName:r})}const cft=(e,t)=>async function(r,n){const a=n().cti.content.moduleId.replace("iCTI_","");await jn("modules/base/php/httpService_classesManager_setClasse.php",{schema:a,action:"delete",classe_id:e,classe_schema:a,table_id:t}),r(u3e(t,e)),r(k4())},Aft=(e,t)=>async function(r,n){r(YE(!0));const a=t.replace("iCTI_",""),i={action:"refcopy",softCode:t,refoid:e,schema:a};try{await jn("modules/base/php/httpService_classesManager_setClasse.php",i),r(DT(t)),ya({type:"success",message:"Synchronisation",description:"La synchronisation est terminée"})}catch{throw ya({type:"error",message:"Synchronisation",description:"La synchronisation a échoué"}),new Error("Erreur lors de la mise à jour des classes")}};function uft(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"LISTE")[0];let n=Yr(r),a=Nt(r,"COLUMN");if(a){let s={};a.forEach(l=>{const c=Yr(l);s[c.name]=c}),n.columns=s}let i=Nt(r,"RECORD");if(i){let s={};i.forEach(l=>{const c=Yr(l);s[c.oid]=c}),n.records=s}let o=Nt(r,"OID");if(o){let s={};o.forEach(l=>{const c=Yr(l);s[c.code.replace(/\s/gm,"")]=c}),n.oids=s}return n}var Kk,Pre;function dft(){if(Pre)return Kk;Pre=1;var e=Hhe(),t=e(function(r,n,a){return r+(a?"-":"")+n.toLowerCase()});return Kk=t,Kk}var fft=dft();const Lo=gn(fft);function hft(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Yr(t).schema;let n=i(t),a=o(t);return{schema:r,tables:n,refTables:a};function i(c){let A={};return Nt(c,"TABLE").forEach((d,f)=>{let h=Yr(d);const g=s(d);Zh(g)||(h.listes=g);const p=l(d);Zh(p)||(h.groups=p),A[`${h.table_id}-${f}`]=h}),A}function o(c){let A={};return Nt(c,"REFTABLE").forEach(d=>{let f=Yr(d);const h=s(d);Zh(h)||(f.listes=h);const g=l(d);Zh(g)||(f.groups=g),A[Lo(f.table_id)]=f}),A}function s(c){let A={};return Nt(c,"LISTE").forEach(d=>{let f=Yr(d);A[Lo(f.liste_id)]=f}),A}function l(c){let A={};return Nt(c,"GROUP").forEach(d=>{let f=Yr(d);const h=l(d);Zh(h)||(f.groups=h);const g=s(d);Zh(g)||(f.listes=g),A[Lo(f.texte)]=f}),A}}function zw(e){return async function(t){t(MJ(!0));const a=await jn("modules/base/php/getListes.php",{softCode:e}),i=hft(a);t(S3e(i)),t(MJ(!1))}}function Ore(e,t){return async function(r){const i=await jn("modules/base/php/getListe.php",t),o=uft(i);r(T3e(t.table_id,t.liste_id,o,t.treeSelectedKey))}}function jBe(e){const t=Ii()+"modules/base/php/getListeSaisieCode.php";let r=new FormData;for(const a in e)r.append(a,e[a]);var n={method:"POST",credentials:"include",cache:"no-cache",body:r};return new Promise(async(a,i)=>{try{let o;o=await fetch(t,n),o=await o.json(),a(o)}catch(o){i(o)}})}function gft(e){return async function(t,r){await jn("modules/base/php/setListe.php",e),t(k4()),t(zw(e.softCode))}}const pft=(e,t,r)=>async function(n,a){const i=t.replace("iCTI_",""),o={action:"refcopy",softCode:t,refoid:e,schema:i,database:r};try{await jn("modules/base/php/setListe.php",o),n(zw(t))}catch{throw new Error("Erreur lors de la mise à jour des rapports")}};async function vft(e,t,r){await Sf("modules/base/php/httpService_listesManager_getSqlScript.php",{softCode:e,listes:t,tableName:r})}function mft(e){return[{title:"Code",dataKey:"code",dataGetter:({rowData:r})=>v.jsx(Mi,{title:r.code,children:r.code})},{dataKey:"texte",headerRenderer:()=>e.table_texte,dataGetter:({rowData:r})=>v.jsx(Mi,{title:r.texte,children:r.texte})},{title:"Complément",dataKey:"complement"},{title:"Section",dataKey:"section_texte"},{title:"Ref",dataKey:"utilise",width:70}].map(r=>({width:300,key:r.dataKey,dataIndex:r.dataKey,ellipsis:!0,resizable:!0,...r}))}const Eft="modulepreload",yft=function(e,t){return new URL(e,t).href},jre={},oy=function(t,r,n){let a=Promise.resolve();if(r&&r.length>0){let c=function(A){return Promise.all(A.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};const o=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),l=s?.nonce||s?.getAttribute("nonce");a=c(r.map(A=>{if(A=yft(A,n),A in jre)return;jre[A]=!0;const u=A.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(!!n)for(let g=o.length-1;g>=0;g--){const p=o[g];if(p.href===A&&(!u||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${A}"]${d}`))return;const h=document.createElement("link");if(h.rel=u?"stylesheet":Eft,u||(h.as="script"),h.crossOrigin="",h.href=A,l&&h.setAttribute("nonce",l),document.head.appendChild(h),u)return new Promise((g,p)=>{h.addEventListener("load",g),h.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${A}`)))})}))}function i(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return a.then(o=>{for(const s of o||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},Cft="[encoded data, 531960 characters]";var Fs=Uint8Array,uc=Uint16Array,hH=Int32Array,P4=new Fs([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),O4=new Fs([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),eL=new Fs([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),zBe=function(e,t){for(var r=new uc(31),n=0;n<31;++n)r[n]=t+=1<<e[n-1];for(var a=new hH(r[30]),n=1;n<30;++n)for(var i=r[n];i<r[n+1];++i)a[i]=i-r[n]<<5|n;return{b:r,r:a}},LBe=zBe(P4,2),YBe=LBe.b,tL=LBe.r;YBe[28]=258,tL[258]=28;var UBe=zBe(O4,0),wft=UBe.b,zre=UBe.r,rL=new uc(32768);for(var ui=0;ui<32768;++ui){var Qh=(ui&43690)>>1|(ui&21845)<<1;Qh=(Qh&52428)>>2|(Qh&13107)<<2,Qh=(Qh&61680)>>4|(Qh&3855)<<4,rL[ui]=((Qh&65280)>>8|(Qh&255)<<8)>>1}var Ed=(function(e,t,r){for(var n=e.length,a=0,i=new uc(t);a<n;++a)e[a]&&++i[e[a]-1];var o=new uc(t);for(a=1;a<t;++a)o[a]=o[a-1]+i[a-1]<<1;var s;if(r){s=new uc(1<<t);var l=15-t;for(a=0;a<n;++a)if(e[a])for(var c=a<<4|e[a],A=t-e[a],u=o[e[a]-1]++<<A,d=u|(1<<A)-1;u<=d;++u)s[rL[u]>>l]=c}else for(s=new uc(n),a=0;a<n;++a)e[a]&&(s[a]=rL[o[e[a]-1]++]>>15-e[a]);return s}),Sg=new Fs(288);for(var ui=0;ui<144;++ui)Sg[ui]=8;for(var ui=144;ui<256;++ui)Sg[ui]=9;for(var ui=256;ui<280;++ui)Sg[ui]=7;for(var ui=280;ui<288;++ui)Sg[ui]=8;var xB=new Fs(32);for(var ui=0;ui<32;++ui)xB[ui]=5;var Bft=Ed(Sg,9,0),xft=Ed(Sg,9,1),Mft=Ed(xB,5,0),Ift=Ed(xB,5,1),Vk=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},TA=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Jk=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},gH=function(e){return(e+7)/8|0},HBe=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new Fs(e.subarray(t,r))},bft=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],GA=function(e,t,r){var n=new Error(t||bft[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,GA),!r)throw n;return n},Sft=function(e,t,r,n){var a=e.length,i=0;if(!a||t.f&&!t.l)return r||new Fs(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new Fs(a*3));var c=function(he){var ye=r.length;if(he>ye){var be=new Fs(Math.max(ye*2,he));be.set(r),r=be}},A=t.f||0,u=t.p||0,d=t.b||0,f=t.l,h=t.d,g=t.m,p=t.n,m=a*8;do{if(!f){A=TA(e,u,1);var y=TA(e,u+1,3);if(u+=3,y)if(y==1)f=xft,h=Ift,g=9,p=5;else if(y==2){var x=TA(e,u,31)+257,M=TA(e,u+10,15)+4,S=x+TA(e,u+5,31)+1;u+=14;for(var R=new Fs(S),b=new Fs(19),T=0;T<M;++T)b[eL[T]]=TA(e,u+T*3,7);u+=M*3;for(var D=Vk(b),F=(1<<D)-1,N=Ed(b,D,1),T=0;T<S;){var _=N[TA(e,u,F)];u+=_&15;var C=_>>4;if(C<16)R[T++]=C;else{var P=0,k=0;for(C==16?(k=3+TA(e,u,3),u+=2,P=R[T-1]):C==17?(k=3+TA(e,u,7),u+=3):C==18&&(k=11+TA(e,u,127),u+=7);k--;)R[T++]=P}}var j=R.subarray(0,x),Y=R.subarray(x);g=Vk(j),p=Vk(Y),f=Ed(j,g,1),h=Ed(Y,p,1)}else GA(1);else{var C=gH(u)+4,w=e[C-4]|e[C-3]<<8,B=C+w;if(B>a){l&&GA(0);break}s&&c(d+w),r.set(e.subarray(C,B),d),t.b=d+=w,t.p=u=B*8,t.f=A;continue}if(u>m){l&&GA(0);break}}s&&c(d+131072);for(var X=(1<<g)-1,K=(1<<p)-1,U=u;;U=u){var P=f[Jk(e,u)&X],H=P>>4;if(u+=P&15,u>m){l&&GA(0);break}if(P||GA(2),H<256)r[d++]=H;else if(H==256){U=u,f=null;break}else{var L=H-254;if(H>264){var T=H-257,V=P4[T];L=TA(e,u,(1<<V)-1)+YBe[T],u+=V}var J=h[Jk(e,u)&K],ee=J>>4;J||GA(3),u+=J&15;var Y=wft[ee];if(ee>3){var V=O4[ee];Y+=Jk(e,u)&(1<<V)-1,u+=V}if(u>m){l&&GA(0);break}s&&c(d+131072);var ae=d+L;if(d<Y){var ne=i-Y,fe=Math.min(Y,ae);for(ne+d<0&&GA(3);d<fe;++d)r[d]=n[ne+d]}for(;d<ae;++d)r[d]=r[d-Y]}}t.l=f,t.p=U,t.b=d,t.f=A,f&&(A=1,t.m=g,t.d=h,t.n=p)}while(!A);return d!=r.length&&o?HBe(r,0,d):r.subarray(0,d)},gf=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8},H1=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},Wk=function(e,t){for(var r=[],n=0;n<e.length;++n)e[n]&&r.push({s:n,f:e[n]});var a=r.length,i=r.slice();if(!a)return{t:KBe,l:0};if(a==1){var o=new Fs(r[0].s+1);return o[r[0].s]=1,{t:o,l:1}}r.sort(function(B,x){return B.f-x.f}),r.push({s:-1,f:25001});var s=r[0],l=r[1],c=0,A=1,u=2;for(r[0]={s:-1,f:s.f+l.f,l:s,r:l};A!=a-1;)s=r[r[c].f<r[u].f?c++:u++],l=r[c!=A&&r[c].f<r[u].f?c++:u++],r[A++]={s:-1,f:s.f+l.f,l:s,r:l};for(var d=i[0].s,n=1;n<a;++n)i[n].s>d&&(d=i[n].s);var f=new uc(d+1),h=nL(r[A-1],f,0);if(h>t){var n=0,g=0,p=h-t,m=1<<p;for(i.sort(function(x,M){return f[M.s]-f[x.s]||x.f-M.f});n<a;++n){var y=i[n].s;if(f[y]>t)g+=m-(1<<h-f[y]),f[y]=t;else break}for(g>>=p;g>0;){var C=i[n].s;f[C]<t?g-=1<<t-f[C]++-1:++n}for(;n>=0&&g;--n){var w=i[n].s;f[w]==t&&(--f[w],++g)}h=t}return{t:new Fs(f),l:h}},nL=function(e,t,r){return e.s==-1?Math.max(nL(e.l,t,r+1),nL(e.r,t,r+1)):t[e.s]=r},Lre=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new uc(++t),n=0,a=e[0],i=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==a&&s!=t)++i;else{if(!a&&i>2){for(;i>138;i-=138)o(32754);i>2&&(o(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(o(a),--i;i>6;i-=6)o(8304);i>2&&(o(i-3<<5|8208),i=0)}for(;i--;)o(a);i=1,a=e[s]}return{c:r.subarray(0,n),n:t}},G1=function(e,t){for(var r=0,n=0;n<t.length;++n)r+=e[n]*t[n];return r},GBe=function(e,t,r){var n=r.length,a=gH(t+2);e[a]=n&255,e[a+1]=n>>8,e[a+2]=e[a]^255,e[a+3]=e[a+1]^255;for(var i=0;i<n;++i)e[a+i+4]=r[i];return(a+4+n)*8},Yre=function(e,t,r,n,a,i,o,s,l,c,A){gf(t,A++,r),++a[256];for(var u=Wk(a,15),d=u.t,f=u.l,h=Wk(i,15),g=h.t,p=h.l,m=Lre(d),y=m.c,C=m.n,w=Lre(g),B=w.c,x=w.n,M=new uc(19),S=0;S<y.length;++S)++M[y[S]&31];for(var S=0;S<B.length;++S)++M[B[S]&31];for(var R=Wk(M,7),b=R.t,T=R.l,D=19;D>4&&!b[eL[D-1]];--D);var F=c+5<<3,N=G1(a,Sg)+G1(i,xB)+o,_=G1(a,d)+G1(i,g)+o+14+3*D+G1(M,b)+2*M[16]+3*M[17]+7*M[18];if(l>=0&&F<=N&&F<=_)return GBe(t,A,e.subarray(l,l+c));var P,k,j,Y;if(gf(t,A,1+(_<N)),A+=2,_<N){P=Ed(d,f,0),k=d,j=Ed(g,p,0),Y=g;var X=Ed(b,T,0);gf(t,A,C-257),gf(t,A+5,x-1),gf(t,A+10,D-4),A+=14;for(var S=0;S<D;++S)gf(t,A+3*S,b[eL[S]]);A+=3*D;for(var K=[y,B],U=0;U<2;++U)for(var H=K[U],S=0;S<H.length;++S){var L=H[S]&31;gf(t,A,X[L]),A+=b[L],L>15&&(gf(t,A,H[S]>>5&127),A+=H[S]>>12)}}else P=Bft,k=Sg,j=Mft,Y=xB;for(var S=0;S<s;++S){var V=n[S];if(V>255){var L=V>>18&31;H1(t,A,P[L+257]),A+=k[L+257],L>7&&(gf(t,A,V>>23&31),A+=P4[L]);var J=V&31;H1(t,A,j[J]),A+=Y[J],J>3&&(H1(t,A,V>>5&8191),A+=O4[J])}else H1(t,A,P[V]),A+=k[V]}return H1(t,A,P[256]),A+k[256]},Rft=new hH([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),KBe=new Fs(0),Tft=function(e,t,r,n,a,i){var o=i.z||e.length,s=new Fs(n+o+5*(1+Math.ceil(o/7e3))+a),l=s.subarray(n,s.length-a),c=i.l,A=(i.r||0)&7;if(t){A&&(l[0]=i.r>>3);for(var u=Rft[t-1],d=u>>13,f=u&8191,h=(1<<r)-1,g=i.p||new uc(32768),p=i.h||new uc(h+1),m=Math.ceil(r/3),y=2*m,C=function(Se){return(e[Se]^e[Se+1]<<m^e[Se+2]<<y)&h},w=new hH(25e3),B=new uc(288),x=new uc(32),M=0,S=0,R=i.i||0,b=0,T=i.w||0,D=0;R+2<o;++R){var F=C(R),N=R&32767,_=p[F];if(g[N]=_,p[F]=N,T<=R){var P=o-R;if((M>7e3||b>24576)&&(P>423||!c)){A=Yre(e,l,0,w,B,x,S,b,D,R-D,A),b=M=S=0,D=R;for(var k=0;k<286;++k)B[k]=0;for(var k=0;k<30;++k)x[k]=0}var j=2,Y=0,X=f,K=N-_&32767;if(P>2&&F==C(R-K))for(var U=Math.min(d,P)-1,H=Math.min(32767,R),L=Math.min(258,P);K<=H&&--X&&N!=_;){if(e[R+j]==e[R+j-K]){for(var V=0;V<L&&e[R+V]==e[R+V-K];++V);if(V>j){if(j=V,Y=K,V>U)break;for(var J=Math.min(K,V-2),ee=0,k=0;k<J;++k){var ae=R-K+k&32767,ne=g[ae],fe=ae-ne&32767;fe>ee&&(ee=fe,_=ae)}}}N=_,_=g[N],K+=N-_&32767}if(Y){w[b++]=268435456|tL[j]<<18|zre[Y];var he=tL[j]&31,ye=zre[Y]&31;S+=P4[he]+O4[ye],++B[257+he],++x[ye],T=R+j,++M}else w[b++]=e[R],++B[e[R]]}}for(R=Math.max(R,T);R<o;++R)w[b++]=e[R],++B[e[R]];A=Yre(e,l,c,w,B,x,S,b,D,R-D,A),c||(i.r=A&7|l[A/8|0]<<3,A-=7,i.h=p,i.p=g,i.i=R,i.w=T)}else{for(var R=i.w||0;R<o+c;R+=65535){var be=R+65535;be>=o&&(l[A/8|0]=c,be=o),A=GBe(l,A+1,e.subarray(R,be))}i.i=o}return HBe(s,0,n+gH(A)+a)},VBe=function(){var e=1,t=0;return{p:function(r){for(var n=e,a=t,i=r.length|0,o=0;o!=i;){for(var s=Math.min(o+2655,i);o<s;++o)a+=n+=r[o];n=(n&65535)+15*(n>>16),a=(a&65535)+15*(a>>16)}e=n,t=a},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},Qft=function(e,t,r,n,a){if(!a&&(a={l:1},t.dictionary)){var i=t.dictionary.subarray(-32768),o=new Fs(i.length+e.length);o.set(i),o.set(e,i.length),e=o,a.w=i.length}return Tft(e,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,a)},JBe=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},Dft=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var a=VBe();a.p(t.dictionary),JBe(e,2,a.d())}},Fft=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&GA(6,"invalid zlib data"),(e[1]>>5&1)==1&&GA(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function aL(e,t){t||(t={});var r=VBe();r.p(e);var n=Qft(e,t,t.dictionary?6:2,4);return Dft(n,t),JBe(n,n.length-4,r.d()),n}function Nft(e,t){return Sft(e.subarray(Fft(e),-4),{i:2},t,t)}var _ft=typeof TextDecoder<"u"&&new TextDecoder,kft=0;try{_ft.decode(KBe,{stream:!0}),kft=1}catch{}var Tn=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function Xk(){Tn.console&&typeof Tn.console.log=="function"&&Tn.console.log.apply(Tn.console,arguments)}var Ja={log:Xk,warn:function(e){Tn.console&&(typeof Tn.console.warn=="function"?Tn.console.warn.apply(Tn.console,arguments):Xk.call(null,arguments))},error:function(e){Tn.console&&(typeof Tn.console.error=="function"?Tn.console.error.apply(Tn.console,arguments):Xk(e))}};function qk(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){$p(n.response,t,r)},n.onerror=function(){Ja.error("could not download file")},n.send()}function Ure(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function EI(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var Lw,iL,$p=Tn.saveAs||((typeof window>"u"?"undefined":Ar(window))!=="object"||window!==Tn?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=Tn.URL||Tn.webkitURL,a=document.createElement("a");t=t||e.name||"download",a.download=t,a.rel="noopener",typeof e=="string"?(a.href=e,a.origin!==location.origin?Ure(a.href)?qk(e,t,r):EI(a,a.target="_blank"):EI(a)):(a.href=n.createObjectURL(e),setTimeout((function(){n.revokeObjectURL(a.href)}),4e4),setTimeout((function(){EI(a)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(Ure(e))qk(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout((function(){EI(n)}))}else navigator.msSaveOrOpenBlob((function(a,i){return i===void 0?i={autoBom:!1}:Ar(i)!=="object"&&(Ja.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return qk(e,t,r);var a=e.type==="application/octet-stream",i=/constructor/i.test(Tn.HTMLElement)||Tn.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||a&&i)&&(typeof FileReader>"u"?"undefined":Ar(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var A=s.result;A=o?A:A.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=A:location=A,n=null},s.readAsDataURL(e)}else{var l=Tn.URL||Tn.webkitURL,c=l.createObjectURL(e);n?n.location=c:location.href=c,n=null,setTimeout((function(){l.revokeObjectURL(c)}),4e4)}});/**
 * A class to parse color values
 * @author Stoyan Stefanov <sstoo@gmail.com>
 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
 * @license Use it if you like it
 */function WBe(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",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",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n<r.length;n++){var a=r[n].re,i=r[n].process,o=a.exec(e);o&&(t=i(o),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),c=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),"#"+s+l+c}}/**
 * @license
 * Joseph Myers does not specify a particular license for his work.
 *
 * Author: Joseph Myers
 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
 *
 * Modified by: Owen Leong
 */function Zk(e,t){var r=e[0],n=e[1],a=e[2],i=e[3];r=xs(r,n,a,i,t[0],7,-680876936),i=xs(i,r,n,a,t[1],12,-389564586),a=xs(a,i,r,n,t[2],17,606105819),n=xs(n,a,i,r,t[3],22,-1044525330),r=xs(r,n,a,i,t[4],7,-176418897),i=xs(i,r,n,a,t[5],12,1200080426),a=xs(a,i,r,n,t[6],17,-1473231341),n=xs(n,a,i,r,t[7],22,-45705983),r=xs(r,n,a,i,t[8],7,1770035416),i=xs(i,r,n,a,t[9],12,-1958414417),a=xs(a,i,r,n,t[10],17,-42063),n=xs(n,a,i,r,t[11],22,-1990404162),r=xs(r,n,a,i,t[12],7,1804603682),i=xs(i,r,n,a,t[13],12,-40341101),a=xs(a,i,r,n,t[14],17,-1502002290),r=Ms(r,n=xs(n,a,i,r,t[15],22,1236535329),a,i,t[1],5,-165796510),i=Ms(i,r,n,a,t[6],9,-1069501632),a=Ms(a,i,r,n,t[11],14,643717713),n=Ms(n,a,i,r,t[0],20,-373897302),r=Ms(r,n,a,i,t[5],5,-701558691),i=Ms(i,r,n,a,t[10],9,38016083),a=Ms(a,i,r,n,t[15],14,-660478335),n=Ms(n,a,i,r,t[4],20,-405537848),r=Ms(r,n,a,i,t[9],5,568446438),i=Ms(i,r,n,a,t[14],9,-1019803690),a=Ms(a,i,r,n,t[3],14,-187363961),n=Ms(n,a,i,r,t[8],20,1163531501),r=Ms(r,n,a,i,t[13],5,-1444681467),i=Ms(i,r,n,a,t[2],9,-51403784),a=Ms(a,i,r,n,t[7],14,1735328473),r=Is(r,n=Ms(n,a,i,r,t[12],20,-1926607734),a,i,t[5],4,-378558),i=Is(i,r,n,a,t[8],11,-2022574463),a=Is(a,i,r,n,t[11],16,1839030562),n=Is(n,a,i,r,t[14],23,-35309556),r=Is(r,n,a,i,t[1],4,-1530992060),i=Is(i,r,n,a,t[4],11,1272893353),a=Is(a,i,r,n,t[7],16,-155497632),n=Is(n,a,i,r,t[10],23,-1094730640),r=Is(r,n,a,i,t[13],4,681279174),i=Is(i,r,n,a,t[0],11,-358537222),a=Is(a,i,r,n,t[3],16,-722521979),n=Is(n,a,i,r,t[6],23,76029189),r=Is(r,n,a,i,t[9],4,-640364487),i=Is(i,r,n,a,t[12],11,-421815835),a=Is(a,i,r,n,t[15],16,530742520),r=bs(r,n=Is(n,a,i,r,t[2],23,-995338651),a,i,t[0],6,-198630844),i=bs(i,r,n,a,t[7],10,1126891415),a=bs(a,i,r,n,t[14],15,-1416354905),n=bs(n,a,i,r,t[5],21,-57434055),r=bs(r,n,a,i,t[12],6,1700485571),i=bs(i,r,n,a,t[3],10,-1894986606),a=bs(a,i,r,n,t[10],15,-1051523),n=bs(n,a,i,r,t[1],21,-2054922799),r=bs(r,n,a,i,t[8],6,1873313359),i=bs(i,r,n,a,t[15],10,-30611744),a=bs(a,i,r,n,t[6],15,-1560198380),n=bs(n,a,i,r,t[13],21,1309151649),r=bs(r,n,a,i,t[4],6,-145523070),i=bs(i,r,n,a,t[11],10,-1120210379),a=bs(a,i,r,n,t[2],15,718787259),n=bs(n,a,i,r,t[9],21,-343485551),e[0]=dg(r,e[0]),e[1]=dg(n,e[1]),e[2]=dg(a,e[2]),e[3]=dg(i,e[3])}function j4(e,t,r,n,a,i){return t=dg(dg(t,e),dg(n,i)),dg(t<<a|t>>>32-a,r)}function xs(e,t,r,n,a,i,o){return j4(t&r|~t&n,e,t,a,i,o)}function Ms(e,t,r,n,a,i,o){return j4(t&n|r&~n,e,t,a,i,o)}function Is(e,t,r,n,a,i,o){return j4(t^r^n,e,t,a,i,o)}function bs(e,t,r,n,a,i,o){return j4(r^(t|~n),e,t,a,i,o)}function XBe(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Zk(n,Pft(e.substring(t-64,t)));e=e.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)a[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(Zk(n,a),t=0;t<16;t++)a[t]=0;return a[14]=8*r,Zk(n,a),n}function Pft(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}Lw=Tn.atob.bind(Tn),iL=Tn.btoa.bind(Tn);var Hre="0123456789abcdef".split("");function Oft(e){for(var t="",r=0;r<4;r++)t+=Hre[e>>8*r+4&15]+Hre[e>>8*r&15];return t}function jft(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function oL(e){return XBe(e).map(jft).join("")}var zft=(function(e){for(var t=0;t<e.length;t++)e[t]=Oft(e[t]);return e.join("")})(XBe("hello"))!="5d41402abc4b2a76b9719d911017c592";function dg(e,t){if(zft){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/**
 * @license
 * FPDF is released under a permissive license: there is no usage restriction.
 * You may embed it freely in your application (commercial or not), with or
 * without modifications.
 *
 * Reference: http://www.fpdf.org/en/script/script37.php
 */function sL(e,t){var r,n,a,i;if(e!==r){for(var o=(a=e,i=1+(256/e.length>>0),new Array(i+1).join(a)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var A=s[l];c=(c+A+o.charCodeAt(l))%256,s[l]=s[c],s[c]=A}r=e,n=s}else s=n;var u=t.length,d=0,f=0,h="";for(l=0;l<u;l++)f=(f+(A=s[d=(d+1)%256]))%256,s[d]=s[f],s[f]=A,o=s[(s[d]+s[f])%256],h+=String.fromCharCode(t.charCodeAt(l)^o);return h}/**
 * @license
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 * Author: Owen Leong (@owenl131)
 * Date: 15 Oct 2020
 * References:
 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
 * http://www.fpdf.org/en/script/script37.php
 */var Gre={print:4,modify:8,copy:16,"annot-forms":32};function tE(e,t,r,n){this.v=1,this.r=2;var a=192;e.forEach((function(s){if(Gre.perm!==void 0)throw new Error("Invalid permission: "+s);a+=Gre[s]})),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,o),this.P=-(1+(255^a)),this.encryptionKey=oL(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=sL(this.encryptionKey,this.padding)}function rE(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n<r;n++){var a=e.charCodeAt(n);a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?t+="#"+("0"+a.toString(16)).slice(-2):t+=e[n]}return t}function Kre(e){if(Ar(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,a){if(a=a||!1,typeof r!="string"||typeof n!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var i=Math.random().toString(35);return t[r][i]=[n,!!a],i},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),a=[];for(var i in t[r]){var o=t[r][i];try{o[0].apply(e,n)}catch(s){Tn.console&&Ja.error("jsPDF PubSub Error",s.message,s)}o[1]&&a.push(i)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function FT(e){if(!(this instanceof FT))return new FT(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function qBe(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function ov(e,t,r,n,a){if(!(this instanceof ov))return new ov(e,t,r,n,a);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,qBe.call(this,n,a)}function dE(e,t,r,n,a){if(!(this instanceof dE))return new dE(e,t,r,n,a);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,qBe.call(this,n,a)}function bn(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],a=arguments[2],i=arguments[3],o=[],s=1,l=16,c="S",A=null;Ar(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,a=e.format||a,i=e.compress||e.compressPdf||i,(A=e.encryption||null)!==null&&(A.userPassword=A.userPassword||"",A.ownerPassword=A.ownerPassword||"",A.userPermissions=A.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),o=e.filters||(i===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var u=e.putOnlyUsedFonts||!1,d={},f={internal:{},__private__:{}};f.__private__.PubSub=Kre;var h="1.3",g=f.__private__.getPdfVersion=function(){return h};f.__private__.setPdfVersion=function(q){h=q};var p={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};f.__private__.getPageFormats=function(){return p};var m=f.__private__.getPageFormat=function(q){return p[q]};a=a||"a4";var y={COMPAT:"compat",ADVANCED:"advanced"},C=y.COMPAT;function w(){this.saveGraphicsState(),de(new ot(ce,0,0,-ce,0,Sc()*ce).toString()+" cm"),this.setFontSize(this.getFontSize()/ce),c="n",C=y.ADVANCED}function B(){this.restoreGraphicsState(),c="S",C=y.COMPAT}var x=f.__private__.combineFontStyleAndFontWeight=function(q,me){if(q=="bold"&&me=="normal"||q=="bold"&&me==400||q=="normal"&&me=="italic"||q=="bold"&&me=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return me&&(q=me==400||me==="normal"?q==="italic"?"italic":"normal":me!=700&&me!=="bold"||q!=="normal"?(me==700?"bold":me)+""+q:"bold"),q};f.advancedAPI=function(q){var me=C===y.COMPAT;return me&&w.call(this),typeof q!="function"||(q(this),me&&B.call(this)),this},f.compatAPI=function(q){var me=C===y.ADVANCED;return me&&B.call(this),typeof q!="function"||(q(this),me&&w.call(this)),this},f.isAdvancedAPI=function(){return C===y.ADVANCED};var M,S=function(q){if(C!==y.ADVANCED)throw new Error(q+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},R=f.roundToPrecision=f.__private__.roundToPrecision=function(q,me){var Le=t||me;if(isNaN(q)||isNaN(Le))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return q.toFixed(Le).replace(/0+$/,"")};M=f.hpf=f.__private__.hpf=typeof l=="number"?function(q){if(isNaN(q))throw new Error("Invalid argument passed to jsPDF.hpf");return R(q,l)}:l==="smart"?function(q){if(isNaN(q))throw new Error("Invalid argument passed to jsPDF.hpf");return R(q,q>-1&&q<1?16:5)}:function(q){if(isNaN(q))throw new Error("Invalid argument passed to jsPDF.hpf");return R(q,16)};var b=f.f2=f.__private__.f2=function(q){if(isNaN(q))throw new Error("Invalid argument passed to jsPDF.f2");return R(q,2)},T=f.__private__.f3=function(q){if(isNaN(q))throw new Error("Invalid argument passed to jsPDF.f3");return R(q,3)},D=f.scale=f.__private__.scale=function(q){if(isNaN(q))throw new Error("Invalid argument passed to jsPDF.scale");return C===y.COMPAT?q*ce:C===y.ADVANCED?q:void 0},F=function(q){return C===y.COMPAT?Sc()-q:C===y.ADVANCED?q:void 0},N=function(q){return D(F(q))};f.__private__.setPrecision=f.setPrecision=function(q){typeof parseInt(q,10)=="number"&&(t=parseInt(q,10))};var _,P="00000000000000000000000000000000",k=f.__private__.getFileId=function(){return P},j=f.__private__.setFileId=function(q){return P=q!==void 0&&/^[a-fA-F0-9]{32}$/.test(q)?q.toUpperCase():P.split("").map((function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))})).join(""),A!==null&&(Ft=new tE(A.userPermissions,A.userPassword,A.ownerPassword,P)),P};f.setFileId=function(q){return j(q),this},f.getFileId=function(){return k()};var Y=f.__private__.convertDateToPDFDate=function(q){var me=q.getTimezoneOffset(),Le=me<0?"+":"-",gt=Math.floor(Math.abs(me/60)),Qt=Math.abs(me%60),$t=[Le,L(gt),"'",L(Qt),"'"].join("");return["D:",q.getFullYear(),L(q.getMonth()+1),L(q.getDate()),L(q.getHours()),L(q.getMinutes()),L(q.getSeconds()),$t].join("")},X=f.__private__.convertPDFDateToDate=function(q){var me=parseInt(q.substr(2,4),10),Le=parseInt(q.substr(6,2),10)-1,gt=parseInt(q.substr(8,2),10),Qt=parseInt(q.substr(10,2),10),$t=parseInt(q.substr(12,2),10),gr=parseInt(q.substr(14,2),10);return new Date(me,Le,gt,Qt,$t,gr,0)},K=f.__private__.setCreationDate=function(q){var me;if(q===void 0&&(q=new Date),q instanceof Date)me=Y(q);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(q))throw new Error("Invalid argument passed to jsPDF.setCreationDate");me=q}return _=me},U=f.__private__.getCreationDate=function(q){var me=_;return q==="jsDate"&&(me=X(_)),me};f.setCreationDate=function(q){return K(q),this},f.getCreationDate=function(q){return U(q)};var H,L=f.__private__.padd2=function(q){return("0"+parseInt(q)).slice(-2)},V=f.__private__.padd2Hex=function(q){return("00"+(q=q.toString())).substr(q.length)},J=0,ee=[],ae=[],ne=0,fe=[],he=[],ye=!1,be=ae,Se=function(){J=0,ne=0,ae=[],ee=[],fe=[],Pr=Tr(),mr=Tr()};f.__private__.setCustomOutputDestination=function(q){ye=!0,be=q};var ve=function(q){ye||(be=q)};f.__private__.resetCustomOutputDestination=function(){ye=!1,be=ae};var de=f.__private__.out=function(q){return q=q.toString(),ne+=q.length+1,be.push(q),be},Ue=f.__private__.write=function(q){return de(arguments.length===1?q.toString():Array.prototype.join.call(arguments," "))},at=f.__private__.getArrayBuffer=function(q){for(var me=q.length,Le=new ArrayBuffer(me),gt=new Uint8Array(Le);me--;)gt[me]=q.charCodeAt(me);return Le},Ve=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];f.__private__.getStandardFonts=function(){return Ve};var Ie=e.fontSize||16;f.__private__.setFontSize=f.setFontSize=function(q){return Ie=C===y.ADVANCED?q/ce:q,this};var we,Re=f.__private__.getFontSize=f.getFontSize=function(){return C===y.COMPAT?Ie:Ie*ce},Te=e.R2L||!1;f.__private__.setR2L=f.setR2L=function(q){return Te=q,this},f.__private__.getR2L=f.getR2L=function(){return Te};var Ke,mt=f.__private__.setZoomMode=function(q){var me=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(q))we=q;else if(isNaN(q)){if(me.indexOf(q)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+q+'" is not recognized.');we=q}else we=parseInt(q,10)};f.__private__.getZoomMode=function(){return we};var tt,rt=f.__private__.setPageMode=function(q){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(q)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+q+'" is not recognized.');Ke=q};f.__private__.getPageMode=function(){return Ke};var lt=f.__private__.setLayoutMode=function(q){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(q)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+q+'" is not recognized.');tt=q};f.__private__.getLayoutMode=function(){return tt},f.__private__.setDisplayMode=f.setDisplayMode=function(q,me,Le){return mt(q),lt(me),rt(Le),this};var At={title:"",subject:"",author:"",keywords:"",creator:""};f.__private__.getDocumentProperty=function(q){if(Object.keys(At).indexOf(q)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return At[q]},f.__private__.getDocumentProperties=function(){return At},f.__private__.setDocumentProperties=f.setProperties=f.setDocumentProperties=function(q){for(var me in At)At.hasOwnProperty(me)&&q[me]&&(At[me]=q[me]);return this},f.__private__.setDocumentProperty=function(q,me){if(Object.keys(At).indexOf(q)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return At[q]=me};var $e,ce,qe,ct,Tt,He={},Ge={},Ee=[],Et={},Yt={},$={},Fe={},je=null,ue=0,ie=[],Be=new Kre(f),Xe=e.hotfixes||[],Oe={},ft={},wt=[],ot=function q(me,Le,gt,Qt,$t,gr){if(!(this instanceof q))return new q(me,Le,gt,Qt,$t,gr);isNaN(me)&&(me=1),isNaN(Le)&&(Le=0),isNaN(gt)&&(gt=0),isNaN(Qt)&&(Qt=1),isNaN($t)&&($t=0),isNaN(gr)&&(gr=0),this._matrix=[me,Le,gt,Qt,$t,gr]};Object.defineProperty(ot.prototype,"sx",{get:function(){return this._matrix[0]},set:function(q){this._matrix[0]=q}}),Object.defineProperty(ot.prototype,"shy",{get:function(){return this._matrix[1]},set:function(q){this._matrix[1]=q}}),Object.defineProperty(ot.prototype,"shx",{get:function(){return this._matrix[2]},set:function(q){this._matrix[2]=q}}),Object.defineProperty(ot.prototype,"sy",{get:function(){return this._matrix[3]},set:function(q){this._matrix[3]=q}}),Object.defineProperty(ot.prototype,"tx",{get:function(){return this._matrix[4]},set:function(q){this._matrix[4]=q}}),Object.defineProperty(ot.prototype,"ty",{get:function(){return this._matrix[5]},set:function(q){this._matrix[5]=q}}),Object.defineProperty(ot.prototype,"a",{get:function(){return this._matrix[0]},set:function(q){this._matrix[0]=q}}),Object.defineProperty(ot.prototype,"b",{get:function(){return this._matrix[1]},set:function(q){this._matrix[1]=q}}),Object.defineProperty(ot.prototype,"c",{get:function(){return this._matrix[2]},set:function(q){this._matrix[2]=q}}),Object.defineProperty(ot.prototype,"d",{get:function(){return this._matrix[3]},set:function(q){this._matrix[3]=q}}),Object.defineProperty(ot.prototype,"e",{get:function(){return this._matrix[4]},set:function(q){this._matrix[4]=q}}),Object.defineProperty(ot.prototype,"f",{get:function(){return this._matrix[5]},set:function(q){this._matrix[5]=q}}),Object.defineProperty(ot.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ot.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ot.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ot.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ot.prototype.join=function(q){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(M).join(q)},ot.prototype.multiply=function(q){var me=q.sx*this.sx+q.shy*this.shx,Le=q.sx*this.shy+q.shy*this.sy,gt=q.shx*this.sx+q.sy*this.shx,Qt=q.shx*this.shy+q.sy*this.sy,$t=q.tx*this.sx+q.ty*this.shx+this.tx,gr=q.tx*this.shy+q.ty*this.sy+this.ty;return new ot(me,Le,gt,Qt,$t,gr)},ot.prototype.decompose=function(){var q=this.sx,me=this.shy,Le=this.shx,gt=this.sy,Qt=this.tx,$t=this.ty,gr=Math.sqrt(q*q+me*me),Or=(q/=gr)*Le+(me/=gr)*gt;Le-=q*Or,gt-=me*Or;var tn=Math.sqrt(Le*Le+gt*gt);return Or/=tn,q*(gt/=tn)<me*(Le/=tn)&&(q=-q,me=-me,Or=-Or,gr=-gr),{scale:new ot(gr,0,0,tn,0,0),translate:new ot(1,0,0,1,Qt,$t),rotate:new ot(q,me,-me,q,0,0),skew:new ot(1,0,Or,1,0,0)}},ot.prototype.toString=function(q){return this.join(" ")},ot.prototype.inversed=function(){var q=this.sx,me=this.shy,Le=this.shx,gt=this.sy,Qt=this.tx,$t=this.ty,gr=1/(q*gt-me*Le),Or=gt*gr,tn=-me*gr,mn=-Le*gr,Bn=q*gr;return new ot(Or,tn,mn,Bn,-Or*Qt-mn*$t,-tn*Qt-Bn*$t)},ot.prototype.applyToPoint=function(q){var me=q.x*this.sx+q.y*this.shx+this.tx,Le=q.x*this.shy+q.y*this.sy+this.ty;return new dl(me,Le)},ot.prototype.applyToRectangle=function(q){var me=this.applyToPoint(q),Le=this.applyToPoint(new dl(q.x+q.w,q.y+q.h));return new Hd(me.x,me.y,Le.x-me.x,Le.y-me.y)},ot.prototype.clone=function(){var q=this.sx,me=this.shy,Le=this.shx,gt=this.sy,Qt=this.tx,$t=this.ty;return new ot(q,me,Le,gt,Qt,$t)},f.Matrix=ot;var it=f.matrixMult=function(q,me){return me.multiply(q)},vt=new ot(1,0,0,1,0,0);f.unitMatrix=f.identityMatrix=vt;var qt=function(q,me){if(!Yt[q]){var Le=(me instanceof ov?"Sh":"P")+(Object.keys(Et).length+1).toString(10);me.id=Le,Yt[q]=Le,Et[Le]=me,Be.publish("addPattern",me)}};f.ShadingPattern=ov,f.TilingPattern=dE,f.addShadingPattern=function(q,me){return S("addShadingPattern()"),qt(q,me),this},f.beginTilingPattern=function(q){S("beginTilingPattern()"),vA(q.boundingBox[0],q.boundingBox[1],q.boundingBox[2]-q.boundingBox[0],q.boundingBox[3]-q.boundingBox[1],q.matrix)},f.endTilingPattern=function(q,me){S("endTilingPattern()"),me.stream=he[H].join(`
`),qt(q,me),Be.publish("endTilingPattern",me),wt.pop().restore()};var Xt=f.__private__.newObject=function(){var q=Tr();return Kr(q,!0),q},Tr=f.__private__.newObjectDeferred=function(){return J++,ee[J]=function(){return ne},J},Kr=function(q,me){return me=typeof me=="boolean"&&me,ee[q]=ne,me&&de(q+" 0 obj"),q},Vr=f.__private__.newAdditionalObject=function(){var q={objId:Tr(),content:""};return fe.push(q),q},Pr=Tr(),mr=Tr(),xr=f.__private__.decodeColorString=function(q){var me=q.split(" ");if(me.length!==2||me[1]!=="g"&&me[1]!=="G")me.length===5&&(me[4]==="k"||me[4]==="K")&&(me=[(1-me[0])*(1-me[3]),(1-me[1])*(1-me[3]),(1-me[2])*(1-me[3]),"r"]);else{var Le=parseFloat(me[0]);me=[Le,Le,Le,"r"]}for(var gt="#",Qt=0;Qt<3;Qt++)gt+=("0"+Math.floor(255*parseFloat(me[Qt])).toString(16)).slice(-2);return gt},Ir=f.__private__.encodeColorString=function(q){var me;typeof q=="string"&&(q={ch1:q});var Le=q.ch1,gt=q.ch2,Qt=q.ch3,$t=q.ch4,gr=q.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Le=="string"&&Le.charAt(0)!=="#"){var Or=new WBe(Le);if(Or.ok)Le=Or.toHex();else if(!/^\d*\.?\d*$/.test(Le))throw new Error('Invalid color "'+Le+'" passed to jsPDF.encodeColorString.')}if(typeof Le=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Le)&&(Le="#"+Le[1]+Le[1]+Le[2]+Le[2]+Le[3]+Le[3]),typeof Le=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Le)){var tn=parseInt(Le.substr(1),16);Le=tn>>16&255,gt=tn>>8&255,Qt=255&tn}if(gt===void 0||$t===void 0&&Le===gt&&gt===Qt)if(typeof Le=="string")me=Le+" "+gr[0];else switch(q.precision){case 2:me=b(Le/255)+" "+gr[0];break;case 3:default:me=T(Le/255)+" "+gr[0]}else if($t===void 0||Ar($t)==="object"){if($t&&!isNaN($t.a)&&$t.a===0)return me=["1.","1.","1.",gr[1]].join(" ");if(typeof Le=="string")me=[Le,gt,Qt,gr[1]].join(" ");else switch(q.precision){case 2:me=[b(Le/255),b(gt/255),b(Qt/255),gr[1]].join(" ");break;default:case 3:me=[T(Le/255),T(gt/255),T(Qt/255),gr[1]].join(" ")}}else if(typeof Le=="string")me=[Le,gt,Qt,$t,gr[2]].join(" ");else switch(q.precision){case 2:me=[b(Le),b(gt),b(Qt),b($t),gr[2]].join(" ");break;case 3:default:me=[T(Le),T(gt),T(Qt),T($t),gr[2]].join(" ")}return me},Fr=f.__private__.getFilters=function(){return o},br=f.__private__.putStream=function(q){var me=(q=q||{}).data||"",Le=q.filters||Fr(),gt=q.alreadyAppliedFilters||[],Qt=q.addLength1||!1,$t=me.length,gr=q.objectId,Or=function(mo){return mo};if(A!==null&&gr===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");A!==null&&(Or=Ft.encryptor(gr,0));var tn={};Le===!0&&(Le=["FlateEncode"]);var mn=q.additionalKeyValues||[],Bn=(tn=bn.API.processDataByFilters!==void 0?bn.API.processDataByFilters(me,Le):{data:me,reverseChain:[]}).reverseChain+(Array.isArray(gt)?gt.join(" "):gt.toString());if(tn.data.length!==0&&(mn.push({key:"Length",value:tn.data.length}),Qt===!0&&mn.push({key:"Length1",value:$t})),Bn.length!=0)if(Bn.split("/").length-1==1)mn.push({key:"Filter",value:Bn});else{mn.push({key:"Filter",value:"["+Bn+"]"});for(var xn=0;xn<mn.length;xn+=1)if(mn[xn].key==="DecodeParms"){for(var ai=[],mi=0;mi<tn.reverseChain.split("/").length-1;mi+=1)ai.push("null");ai.push(mn[xn].value),mn[xn].value="["+ai.join(" ")+"]"}}de("<<");for(var Li=0;Li<mn.length;Li++)de("/"+mn[Li].key+" "+mn[Li].value);de(">>"),tn.data.length!==0&&(de("stream"),de(Or(tn.data)),de("endstream"))},Sr=f.__private__.putPage=function(q){var me=q.number,Le=q.data,gt=q.objId,Qt=q.contentsObjId;Kr(gt,!0),de("<</Type /Page"),de("/Parent "+q.rootDictionaryObjId+" 0 R"),de("/Resources "+q.resourceDictionaryObjId+" 0 R"),de("/MediaBox ["+parseFloat(M(q.mediaBox.bottomLeftX))+" "+parseFloat(M(q.mediaBox.bottomLeftY))+" "+M(q.mediaBox.topRightX)+" "+M(q.mediaBox.topRightY)+"]"),q.cropBox!==null&&de("/CropBox ["+M(q.cropBox.bottomLeftX)+" "+M(q.cropBox.bottomLeftY)+" "+M(q.cropBox.topRightX)+" "+M(q.cropBox.topRightY)+"]"),q.bleedBox!==null&&de("/BleedBox ["+M(q.bleedBox.bottomLeftX)+" "+M(q.bleedBox.bottomLeftY)+" "+M(q.bleedBox.topRightX)+" "+M(q.bleedBox.topRightY)+"]"),q.trimBox!==null&&de("/TrimBox ["+M(q.trimBox.bottomLeftX)+" "+M(q.trimBox.bottomLeftY)+" "+M(q.trimBox.topRightX)+" "+M(q.trimBox.topRightY)+"]"),q.artBox!==null&&de("/ArtBox ["+M(q.artBox.bottomLeftX)+" "+M(q.artBox.bottomLeftY)+" "+M(q.artBox.topRightX)+" "+M(q.artBox.topRightY)+"]"),typeof q.userUnit=="number"&&q.userUnit!==1&&de("/UserUnit "+q.userUnit),Be.publish("putPage",{objId:gt,pageContext:ie[me],pageNumber:me,page:Le}),de("/Contents "+Qt+" 0 R"),de(">>"),de("endobj");var $t=Le.join(`
`);return C===y.ADVANCED&&($t+=`
Q`),Kr(Qt,!0),br({data:$t,filters:Fr(),objectId:Qt}),de("endobj"),gt},fr=f.__private__.putPages=function(){var q,me,Le=[];for(q=1;q<=ue;q++)ie[q].objId=Tr(),ie[q].contentsObjId=Tr();for(q=1;q<=ue;q++)Le.push(Sr({number:q,data:he[q],objId:ie[q].objId,contentsObjId:ie[q].contentsObjId,mediaBox:ie[q].mediaBox,cropBox:ie[q].cropBox,bleedBox:ie[q].bleedBox,trimBox:ie[q].trimBox,artBox:ie[q].artBox,userUnit:ie[q].userUnit,rootDictionaryObjId:Pr,resourceDictionaryObjId:mr}));Kr(Pr,!0),de("<</Type /Pages");var gt="/Kids [";for(me=0;me<ue;me++)gt+=Le[me]+" 0 R ";de(gt+"]"),de("/Count "+ue),de(">>"),de("endobj"),Be.publish("postPutPages")},Cr=function(q){Be.publish("putFont",{font:q,out:de,newObject:Xt,putStream:br}),q.isAlreadyPutted!==!0&&(q.objectNumber=Xt(),de("<<"),de("/Type /Font"),de("/BaseFont /"+rE(q.postScriptName)),de("/Subtype /Type1"),typeof q.encoding=="string"&&de("/Encoding /"+q.encoding),de("/FirstChar 32"),de("/LastChar 255"),de(">>"),de("endobj"))},hr=function(){for(var q in He)He.hasOwnProperty(q)&&(u===!1||u===!0&&d.hasOwnProperty(q))&&Cr(He[q])},Ht=function(q){q.objectNumber=Xt();var me=[];me.push({key:"Type",value:"/XObject"}),me.push({key:"Subtype",value:"/Form"}),me.push({key:"BBox",value:"["+[M(q.x),M(q.y),M(q.x+q.width),M(q.y+q.height)].join(" ")+"]"}),me.push({key:"Matrix",value:"["+q.matrix.toString()+"]"});var Le=q.pages[1].join(`
`);br({data:Le,additionalKeyValues:me,objectId:q.objectNumber}),de("endobj")},Gt=function(){for(var q in Oe)Oe.hasOwnProperty(q)&&Ht(Oe[q])},er=function(q,me){var Le,gt=[],Qt=1/(me-1);for(Le=0;Le<1;Le+=Qt)gt.push(Le);if(gt.push(1),q[0].offset!=0){var $t={offset:0,color:q[0].color};q.unshift($t)}if(q[q.length-1].offset!=1){var gr={offset:1,color:q[q.length-1].color};q.push(gr)}for(var Or="",tn=0,mn=0;mn<gt.length;mn++){for(Le=gt[mn];Le>q[tn+1].offset;)tn++;var Bn=q[tn].offset,xn=(Le-Bn)/(q[tn+1].offset-Bn),ai=q[tn].color,mi=q[tn+1].color;Or+=V(Math.round((1-xn)*ai[0]+xn*mi[0]).toString(16))+V(Math.round((1-xn)*ai[1]+xn*mi[1]).toString(16))+V(Math.round((1-xn)*ai[2]+xn*mi[2]).toString(16))}return Or.trim()},Qr=function(q,me){me||(me=21);var Le=Xt(),gt=er(q.colors,me),Qt=[];Qt.push({key:"FunctionType",value:"0"}),Qt.push({key:"Domain",value:"[0.0 1.0]"}),Qt.push({key:"Size",value:"["+me+"]"}),Qt.push({key:"BitsPerSample",value:"8"}),Qt.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Qt.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),br({data:gt,additionalKeyValues:Qt,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Le}),de("endobj"),q.objectNumber=Xt(),de("<< /ShadingType "+q.type),de("/ColorSpace /DeviceRGB");var $t="/Coords ["+M(parseFloat(q.coords[0]))+" "+M(parseFloat(q.coords[1]))+" ";q.type===2?$t+=M(parseFloat(q.coords[2]))+" "+M(parseFloat(q.coords[3])):$t+=M(parseFloat(q.coords[2]))+" "+M(parseFloat(q.coords[3]))+" "+M(parseFloat(q.coords[4]))+" "+M(parseFloat(q.coords[5])),de($t+="]"),q.matrix&&de("/Matrix ["+q.matrix.toString()+"]"),de("/Function "+Le+" 0 R"),de("/Extend [true true]"),de(">>"),de("endobj")},Hr=function(q,me){var Le=Tr(),gt=Xt();me.push({resourcesOid:Le,objectOid:gt}),q.objectNumber=gt;var Qt=[];Qt.push({key:"Type",value:"/Pattern"}),Qt.push({key:"PatternType",value:"1"}),Qt.push({key:"PaintType",value:"1"}),Qt.push({key:"TilingType",value:"1"}),Qt.push({key:"BBox",value:"["+q.boundingBox.map(M).join(" ")+"]"}),Qt.push({key:"XStep",value:M(q.xStep)}),Qt.push({key:"YStep",value:M(q.yStep)}),Qt.push({key:"Resources",value:Le+" 0 R"}),q.matrix&&Qt.push({key:"Matrix",value:"["+q.matrix.toString()+"]"}),br({data:q.stream,additionalKeyValues:Qt,objectId:q.objectNumber}),de("endobj")},vn=function(q){var me;for(me in Et)Et.hasOwnProperty(me)&&(Et[me]instanceof ov?Qr(Et[me]):Et[me]instanceof dE&&Hr(Et[me],q))},pn=function(q){for(var me in q.objectNumber=Xt(),de("<<"),q)switch(me){case"opacity":de("/ca "+b(q[me]));break;case"stroke-opacity":de("/CA "+b(q[me]))}de(">>"),de("endobj")},Qn=function(){var q;for(q in $)$.hasOwnProperty(q)&&pn($[q])},pt=function(){for(var q in de("/XObject <<"),Oe)Oe.hasOwnProperty(q)&&Oe[q].objectNumber>=0&&de("/"+q+" "+Oe[q].objectNumber+" 0 R");Be.publish("putXobjectDict"),de(">>")},Ze=function(){Ft.oid=Xt(),de("<<"),de("/Filter /Standard"),de("/V "+Ft.v),de("/R "+Ft.r),de("/U <"+Ft.toHexString(Ft.U)+">"),de("/O <"+Ft.toHexString(Ft.O)+">"),de("/P "+Ft.P),de(">>"),de("endobj")},bt=function(){for(var q in de("/Font <<"),He)He.hasOwnProperty(q)&&(u===!1||u===!0&&d.hasOwnProperty(q))&&de("/"+q+" "+He[q].objectNumber+" 0 R");de(">>")},kt=function(){if(Object.keys(Et).length>0){for(var q in de("/Shading <<"),Et)Et.hasOwnProperty(q)&&Et[q]instanceof ov&&Et[q].objectNumber>=0&&de("/"+q+" "+Et[q].objectNumber+" 0 R");Be.publish("putShadingPatternDict"),de(">>")}},Wt=function(q){if(Object.keys(Et).length>0){for(var me in de("/Pattern <<"),Et)Et.hasOwnProperty(me)&&Et[me]instanceof f.TilingPattern&&Et[me].objectNumber>=0&&Et[me].objectNumber<q&&de("/"+me+" "+Et[me].objectNumber+" 0 R");Be.publish("putTilingPatternDict"),de(">>")}},St=function(){if(Object.keys($).length>0){var q;for(q in de("/ExtGState <<"),$)$.hasOwnProperty(q)&&$[q].objectNumber>=0&&de("/"+q+" "+$[q].objectNumber+" 0 R");Be.publish("putGStateDict"),de(">>")}},pe=function(q){Kr(q.resourcesOid,!0),de("<<"),de("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),bt(),kt(),Wt(q.objectOid),St(),pt(),de(">>"),de("endobj")},ke=function(){var q=[];hr(),Qn(),Gt(),vn(q),Be.publish("putResources"),q.forEach(pe),pe({resourcesOid:mr,objectOid:Number.MAX_SAFE_INTEGER}),Be.publish("postPutResources")},Me=function(){Be.publish("putAdditionalObjects");for(var q=0;q<fe.length;q++){var me=fe[q];Kr(me.objId,!0),de(me.content),de("endobj")}Be.publish("postPutAdditionalObjects")},ze=function(q){Ge[q.fontName]=Ge[q.fontName]||{},Ge[q.fontName][q.fontStyle]=q.id},Ye=function(q,me,Le,gt,Qt){var $t={id:"F"+(Object.keys(He).length+1).toString(10),postScriptName:q,fontName:me,fontStyle:Le,encoding:gt,isStandardFont:Qt||!1,metadata:{}};return Be.publish("addFont",{font:$t,instance:this}),He[$t.id]=$t,ze($t),$t.id},et=function(q){for(var me=0,Le=Ve.length;me<Le;me++){var gt=Ye.call(this,q[me][0],q[me][1],q[me][2],Ve[me][3],!0);u===!1&&(d[gt]=!0);var Qt=q[me][0].split("-");ze({id:gt,fontName:Qt[0],fontStyle:Qt[1]||""})}Be.publish("addFonts",{fonts:He,dictionary:Ge})},Ct=function(q){return q.foo=function(){try{return q.apply(this,arguments)}catch(gt){var me=gt.stack||"";~me.indexOf(" at ")&&(me=me.split(" at ")[1]);var Le="Error in function "+me.split(`
`)[0].split("<")[0]+": "+gt.message;if(!Tn.console)throw new Error(Le);Tn.console.error(Le,gt),Tn.alert&&alert(Le)}},q.foo.bar=q,q.foo},Ot=function(q,me){var Le,gt,Qt,$t,gr,Or,tn,mn,Bn;if(Qt=(me=me||{}).sourceEncoding||"Unicode",gr=me.outputEncoding,(me.autoencode||gr)&&He[$e].metadata&&He[$e].metadata[Qt]&&He[$e].metadata[Qt].encoding&&($t=He[$e].metadata[Qt].encoding,!gr&&He[$e].encoding&&(gr=He[$e].encoding),!gr&&$t.codePages&&(gr=$t.codePages[0]),typeof gr=="string"&&(gr=$t[gr]),gr)){for(tn=!1,Or=[],Le=0,gt=q.length;Le<gt;Le++)(mn=gr[q.charCodeAt(Le)])?Or.push(String.fromCharCode(mn)):Or.push(q[Le]),Or[Le].charCodeAt(0)>>8&&(tn=!0);q=Or.join("")}for(Le=q.length;tn===void 0&&Le!==0;)q.charCodeAt(Le-1)>>8&&(tn=!0),Le--;if(!tn)return q;for(Or=me.noBOM?[]:[254,255],Le=0,gt=q.length;Le<gt;Le++){if((Bn=(mn=q.charCodeAt(Le))>>8)>>8)throw new Error("Character at position "+Le+" of string '"+q+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Or.push(Bn),Or.push(mn-(Bn<<8))}return String.fromCharCode.apply(void 0,Or)},Ut=f.__private__.pdfEscape=f.pdfEscape=function(q,me){return Ot(q,me).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Jt=f.__private__.beginPage=function(q){he[++ue]=[],ie[ue]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(q[0]),topRightY:Number(q[1])}},rn(ue),ve(he[H])},ar=function(q,me){var Le,gt,Qt;switch(r=me||r,typeof q=="string"&&(Le=m(q.toLowerCase()),Array.isArray(Le)&&(gt=Le[0],Qt=Le[1])),Array.isArray(q)&&(gt=q[0]*ce,Qt=q[1]*ce),isNaN(gt)&&(gt=a[0],Qt=a[1]),(gt>14400||Qt>14400)&&(Ja.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),gt=Math.min(14400,gt),Qt=Math.min(14400,Qt)),a=[gt,Qt],r.substr(0,1)){case"l":Qt>gt&&(a=[Qt,gt]);break;case"p":gt>Qt&&(a=[Qt,gt])}Jt(a),Ud(bu),de(qo),ja!==0&&de(ja+" J"),js!==0&&de(js+" j"),Be.publish("addPage",{pageNumber:ue})},Nr=function(q){q>0&&q<=ue&&(he.splice(q,1),ie.splice(q,1),ue--,H>ue&&(H=ue),this.setPage(H))},rn=function(q){q>0&&q<=ue&&(H=q)},dn=f.__private__.getNumberOfPages=f.getNumberOfPages=function(){return he.length-1},kr=function(q,me,Le){var gt,Qt=void 0;return Le=Le||{},q=q!==void 0?q:He[$e].fontName,me=me!==void 0?me:He[$e].fontStyle,gt=q.toLowerCase(),Ge[gt]!==void 0&&Ge[gt][me]!==void 0?Qt=Ge[gt][me]:Ge[q]!==void 0&&Ge[q][me]!==void 0?Qt=Ge[q][me]:Le.disableWarning===!1&&Ja.warn("Unable to look up font label for font '"+q+"', '"+me+"'. Refer to getFontList() for available fonts."),Qt||Le.noFallback||(Qt=Ge.times[me])==null&&(Qt=Ge.times.normal),Qt},Wr=f.__private__.putInfo=function(){var q=Xt(),me=function(gt){return gt};for(var Le in A!==null&&(me=Ft.encryptor(q,0)),de("<<"),de("/Producer ("+Ut(me("jsPDF "+bn.version))+")"),At)At.hasOwnProperty(Le)&&At[Le]&&de("/"+Le.substr(0,1).toUpperCase()+Le.substr(1)+" ("+Ut(me(At[Le]))+")");de("/CreationDate ("+Ut(me(_))+")"),de(">>"),de("endobj")},Rr=f.__private__.putCatalog=function(q){var me=(q=q||{}).rootDictionaryObjId||Pr;switch(Xt(),de("<<"),de("/Type /Catalog"),de("/Pages "+me+" 0 R"),we||(we="fullwidth"),we){case"fullwidth":de("/OpenAction [3 0 R /FitH null]");break;case"fullheight":de("/OpenAction [3 0 R /FitV null]");break;case"fullpage":de("/OpenAction [3 0 R /Fit]");break;case"original":de("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Le=""+we;Le.substr(Le.length-1)==="%"&&(we=parseInt(we)/100),typeof we=="number"&&de("/OpenAction [3 0 R /XYZ null null "+b(we)+"]")}switch(tt||(tt="continuous"),tt){case"continuous":de("/PageLayout /OneColumn");break;case"single":de("/PageLayout /SinglePage");break;case"two":case"twoleft":de("/PageLayout /TwoColumnLeft");break;case"tworight":de("/PageLayout /TwoColumnRight")}Ke&&de("/PageMode /"+Ke),Be.publish("putCatalog"),de(">>"),de("endobj")},Gn=f.__private__.putTrailer=function(){de("trailer"),de("<<"),de("/Size "+(J+1)),de("/Root "+J+" 0 R"),de("/Info "+(J-1)+" 0 R"),A!==null&&de("/Encrypt "+Ft.oid+" 0 R"),de("/ID [ <"+P+"> <"+P+"> ]"),de(">>")},Wn=f.__private__.putHeader=function(){de("%PDF-"+h),de("%ºß¬à")},Cn=f.__private__.putXRef=function(){var q="0000000000";de("xref"),de("0 "+(J+1)),de("0000000000 65535 f ");for(var me=1;me<=J;me++)typeof ee[me]=="function"?de((q+ee[me]()).slice(-10)+" 00000 n "):ee[me]!==void 0?de((q+ee[me]).slice(-10)+" 00000 n "):de("0000000000 00000 n ")},qa=f.__private__.buildDocument=function(){Se(),ve(ae),Be.publish("buildDocument"),Wn(),fr(),Me(),ke(),A!==null&&Ze(),Wr(),Rr();var q=ne;return Cn(),Gn(),de("startxref"),de(""+q),de("%%EOF"),ve(he[H]),ae.join(`
`)},wa=f.__private__.getBlob=function(q){return new Blob([at(q)],{type:"application/pdf"})},ht=f.output=f.__private__.output=Ct((function(q,me){switch(typeof(me=me||{})=="string"?me={filename:me}:me.filename=me.filename||"generated.pdf",q){case void 0:return qa();case"save":f.save(me.filename);break;case"arraybuffer":return at(qa());case"blob":return wa(qa());case"bloburi":case"bloburl":if(Tn.URL!==void 0&&typeof Tn.URL.createObjectURL=="function")return Tn.URL&&Tn.URL.createObjectURL(wa(qa()))||void 0;Ja.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Le="",gt=qa();try{Le=iL(gt)}catch{Le=iL(unescape(encodeURIComponent(gt)))}return"data:application/pdf;filename="+me.filename+";base64,"+Le;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Tn)==="[object Window]"){var Qt="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",$t=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';me.pdfObjectUrl&&(Qt=me.pdfObjectUrl,$t="");var gr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><script src="'+Qt+'"'+$t+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(me)+");<\/script></body></html>",Or=Tn.open();return Or!==null&&Or.document.write(gr),Or}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Tn)==="[object Window]"){var tn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe id="pdfViewer" src="'+(me.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+me.filename+'" width="500px" height="400px" /></body></html>',mn=Tn.open();if(mn!==null){mn.document.write(tn);var Bn=this;mn.document.documentElement.querySelector("#pdfViewer").onload=function(){mn.document.title=me.filename,mn.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Bn.output("bloburl"))}}return mn}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Tn)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var xn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}  </style><body><iframe src="'+this.output("datauristring",me)+'"></iframe></body></html>',ai=Tn.open();if(ai!==null&&(ai.document.write(xn),ai.document.title=me.filename),ai||typeof safari>"u")return ai;break;case"datauri":case"dataurl":return Tn.document.location.href=this.output("datauristring",me);default:return null}})),Pt=function(q){return Array.isArray(Xe)===!0&&Xe.indexOf(q)>-1};switch(n){case"pt":ce=1;break;case"mm":ce=72/25.4;break;case"cm":ce=72/2.54;break;case"in":ce=72;break;case"px":ce=Pt("px_scaling")==1?.75:96/72;break;case"pc":case"em":ce=12;break;case"ex":ce=6;break;default:if(typeof n!="number")throw new Error("Invalid unit: "+n);ce=n}var Ft=null;K(),j();var or=function(q){return A!==null?Ft.encryptor(q,0):function(me){return me}},Zr=f.__private__.getPageInfo=f.getPageInfo=function(q){if(isNaN(q)||q%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:ie[q].objId,pageNumber:q,pageContext:ie[q]}},lr=f.__private__.getPageInfoByObjId=function(q){if(isNaN(q)||q%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var me in ie)if(ie[me].objId===q)break;return Zr(me)},$n=f.__private__.getCurrentPageInfo=f.getCurrentPageInfo=function(){return{objId:ie[H].objId,pageNumber:H,pageContext:ie[H]}};f.addPage=function(){return ar.apply(this,arguments),this},f.setPage=function(){return rn.apply(this,arguments),ve.call(this,he[H]),this},f.insertPage=function(q){return this.addPage(),this.movePage(H,q),this},f.movePage=function(q,me){var Le,gt;if(q>me){Le=he[q],gt=ie[q];for(var Qt=q;Qt>me;Qt--)he[Qt]=he[Qt-1],ie[Qt]=ie[Qt-1];he[me]=Le,ie[me]=gt,this.setPage(me)}else if(q<me){Le=he[q],gt=ie[q];for(var $t=q;$t<me;$t++)he[$t]=he[$t+1],ie[$t]=ie[$t+1];he[me]=Le,ie[me]=gt,this.setPage(me)}return this},f.deletePage=function(){return Nr.apply(this,arguments),this},f.__private__.text=f.text=function(q,me,Le,gt,Qt){var $t,gr,Or,tn,mn,Bn,xn,ai,mi,Li=(gt=gt||{}).scope||this;if(typeof q=="number"&&typeof me=="number"&&(typeof Le=="string"||Array.isArray(Le))){var mo=Le;Le=me,me=q,q=mo}if(arguments[3]instanceof ot?(S("The transform parameter of text() with a Matrix value"),mi=Qt):(Or=arguments[4],tn=arguments[5],Ar(xn=arguments[3])==="object"&&xn!==null||(typeof Or=="string"&&(tn=Or,Or=null),typeof xn=="string"&&(tn=xn,xn=null),typeof xn=="number"&&(Or=xn,xn=null),gt={flags:xn,angle:Or,align:tn})),isNaN(me)||isNaN(Le)||q==null)throw new Error("Invalid arguments passed to jsPDF.text");if(q.length===0)return Li;var lo="",Xl=!1,zs=typeof gt.lineHeightFactor=="number"?gt.lineHeightFactor:gs,Rc=Li.internal.scaleFactor;function bm(_a){return _a=_a.split("	").join(Array(gt.TabLen||9).join(" ")),Ut(_a,xn)}function qg(_a){for(var ka,ii=_a.concat(),oi=[],BA=ii.length;BA--;)typeof(ka=ii.shift())=="string"?oi.push(ka):Array.isArray(_a)&&(ka.length===1||ka[1]===void 0&&ka[2]===void 0)?oi.push(ka[0]):oi.push([ka[0],ka[1],ka[2]]);return oi}function Zg(_a,ka){var ii;if(typeof _a=="string")ii=ka(_a)[0];else if(Array.isArray(_a)){for(var oi,BA,ch=_a.concat(),ef=[],Qa=ch.length;Qa--;)typeof(oi=ch.shift())=="string"?ef.push(ka(oi)[0]):Array.isArray(oi)&&typeof oi[0]=="string"&&(BA=ka(oi[0],oi[1],oi[2]),ef.push([BA[0],BA[1],BA[2]]));ii=ef}return ii}var Du=!1,EA=!0;if(typeof q=="string")Du=!0;else if(Array.isArray(q)){var $g=q.concat();gr=[];for(var Kd,co=$g.length;co--;)(typeof(Kd=$g.shift())!="string"||Array.isArray(Kd)&&typeof Kd[0]!="string")&&(EA=!1);Du=EA}if(Du===!1)throw new Error('Type of text must be string or Array. "'+q+'" is not recognized.');typeof q=="string"&&(q=q.match(/[\r?\n]/)?q.split(/\r\n|\r|\n/g):[q]);var Vd=Ie/Li.internal.scaleFactor,Jd=Vd*(zs-1);switch(gt.baseline){case"bottom":Le-=Jd;break;case"top":Le+=Vd-Jd;break;case"hanging":Le+=Vd-2*Jd;break;case"middle":Le+=Vd/2-Jd}if((Bn=gt.maxWidth||0)>0&&(typeof q=="string"?q=Li.splitTextToSize(q,Bn):Object.prototype.toString.call(q)==="[object Array]"&&(q=q.reduce((function(_a,ka){return _a.concat(Li.splitTextToSize(ka,Bn))}),[]))),$t={text:q,x:me,y:Le,options:gt,mutex:{pdfEscape:Ut,activeFontKey:$e,fonts:He,activeFontSize:Ie}},Be.publish("preProcessText",$t),q=$t.text,Or=(gt=$t.options).angle,!(mi instanceof ot)&&Or&&typeof Or=="number"){Or*=Math.PI/180,gt.rotationDirection===0&&(Or=-Or),C===y.ADVANCED&&(Or=-Or);var Wd=Math.cos(Or),Tc=Math.sin(Or);mi=new ot(Wd,Tc,-Tc,Wd,0,0)}else Or&&Or instanceof ot&&(mi=Or);C!==y.ADVANCED||mi||(mi=vt),(mn=gt.charSpace||Wl)!==void 0&&(lo+=M(D(mn))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(ai=gt.horizontalScale)!==void 0&&(lo+=M(100*ai)+` Tz
`),gt.lang;var vs=-1,e1=gt.renderingMode!==void 0?gt.renderingMode:gt.stroke,ep=Li.internal.getCurrentPageInfo().pageContext;switch(e1){case 0:case!1:case"fill":vs=0;break;case 1:case!0:case"stroke":vs=1;break;case 2:case"fillThenStroke":vs=2;break;case 3:case"invisible":vs=3;break;case 4:case"fillAndAddForClipping":vs=4;break;case 5:case"strokeAndAddPathForClipping":vs=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":vs=6;break;case 7:case"addToPathForClipping":vs=7}var tp=ep.usedRenderingMode!==void 0?ep.usedRenderingMode:-1;vs!==-1?lo+=vs+` Tr
`:tp!==-1&&(lo+=`0 Tr
`),vs!==-1&&(ep.usedRenderingMode=vs),tn=gt.align||"left";var Ls,Qc=Ie*zs,Fu=Li.internal.pageSize.getWidth(),Sm=He[$e];mn=gt.charSpace||Wl,Bn=gt.maxWidth||0,xn=Object.assign({autoencode:!0,noBOM:!0},gt.flags);var ql=[],Xd=function(_a){return Li.getStringUnitWidth(_a,{font:Sm,charSpace:mn,fontSize:Ie,doKerning:!1})*Ie/Rc};if(Object.prototype.toString.call(q)==="[object Array]"){var Zo;gr=qg(q),tn!=="left"&&(Ls=gr.map(Xd));var Eo,Dc=0;if(tn==="right"){me-=Ls[0],q=[],co=gr.length;for(var Fc=0;Fc<co;Fc++)Fc===0?(Eo=Os(me),Zo=ps(Le)):(Eo=D(Dc-Ls[Fc]),Zo=-Qc),q.push([gr[Fc],Eo,Zo]),Dc=Ls[Fc]}else if(tn==="center"){me-=Ls[0]/2,q=[],co=gr.length;for(var Nc=0;Nc<co;Nc++)Nc===0?(Eo=Os(me),Zo=ps(Le)):(Eo=D((Dc-Ls[Nc])/2),Zo=-Qc),q.push([gr[Nc],Eo,Zo]),Dc=Ls[Nc]}else if(tn==="left"){q=[],co=gr.length;for(var qd=0;qd<co;qd++)q.push(gr[qd])}else if(tn==="justify"&&Sm.encoding==="Identity-H"){q=[],co=gr.length,Bn=Bn!==0?Bn:Fu;for(var yA=0,Si=0;Si<co;Si++)if(Zo=Si===0?ps(Le):-Qc,Eo=Si===0?Os(me):yA,Si<co-1){var rp=D((Bn-Ls[Si])/(gr[Si].split(" ").length-1)),$o=gr[Si].split(" ");q.push([$o[0]+" ",Eo,Zo]),yA=0;for(var gl=1;gl<$o.length;gl++){var yo=(Xd($o[gl-1]+" "+$o[gl])-Xd($o[gl]))*Rc+rp;gl==$o.length-1?q.push([$o[gl],yo,0]):q.push([$o[gl]+" ",yo,0]),yA-=yo}}else q.push([gr[Si],Eo,Zo]);q.push(["",yA,0])}else{if(tn!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(q=[],co=gr.length,Bn=Bn!==0?Bn:Fu,Si=0;Si<co;Si++)Zo=Si===0?ps(Le):-Qc,Eo=Si===0?Os(me):0,Si<co-1?ql.push(M(D((Bn-Ls[Si])/(gr[Si].split(" ").length-1)))):ql.push(0),q.push([gr[Si],Eo,Zo])}}var Rm=typeof gt.R2L=="boolean"?gt.R2L:Te;Rm===!0&&(q=Zg(q,(function(_a,ka,ii){return[_a.split("").reverse().join(""),ka,ii]}))),$t={text:q,x:me,y:Le,options:gt,mutex:{pdfEscape:Ut,activeFontKey:$e,fonts:He,activeFontSize:Ie}},Be.publish("postProcessText",$t),q=$t.text,Xl=$t.mutex.isHex||!1;var CA=He[$e].encoding;CA!=="WinAnsiEncoding"&&CA!=="StandardEncoding"||(q=Zg(q,(function(_a,ka,ii){return[bm(_a),ka,ii]}))),gr=qg(q),q=[];for(var Nu,_u,wA,ku=0,Pu=1,Zd=Array.isArray(gr[0])?Pu:ku,Ys="",$d=function(_a,ka,ii){var oi="";return ii instanceof ot?(ii=typeof gt.angle=="number"?it(ii,new ot(1,0,0,1,_a,ka)):it(new ot(1,0,0,1,_a,ka),ii),C===y.ADVANCED&&(ii=it(new ot(1,0,0,-1,0,0),ii)),oi=ii.join(" ")+` Tm
`):oi=M(_a)+" "+M(ka)+` Td
`,oi},Do=0;Do<gr.length;Do++){switch(Ys="",Zd){case Pu:wA=(Xl?"<":"(")+gr[Do][0]+(Xl?">":")"),Nu=parseFloat(gr[Do][1]),_u=parseFloat(gr[Do][2]);break;case ku:wA=(Xl?"<":"(")+gr[Do]+(Xl?">":")"),Nu=Os(me),_u=ps(Le)}ql!==void 0&&ql[Do]!==void 0&&(Ys=ql[Do]+` Tw
`),Do===0?q.push(Ys+$d(Nu,_u,mi)+wA):Zd===ku?q.push(Ys+wA):Zd===Pu&&q.push(Ys+$d(Nu,_u,mi)+wA)}q=Zd===ku?q.join(` Tj
T* `):q.join(` Tj
`),q+=` Tj
`;var ms=`BT
/`;return ms+=$e+" "+Ie+` Tf
`,ms+=M(Ie*zs)+` TL
`,ms+=Ic+`
`,ms+=lo,ms+=q,de(ms+="ET"),d[$e]=!0,Li};var pa=f.__private__.clip=f.clip=function(q){return de(q==="evenodd"?"W*":"W"),this};f.clipEvenOdd=function(){return pa("evenodd")},f.__private__.discardPath=f.discardPath=function(){return de("n"),this};var ha=f.__private__.isValidStyle=function(q){var me=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(q)!==-1&&(me=!0),me};f.__private__.setDefaultPathOperation=f.setDefaultPathOperation=function(q){return ha(q)&&(c=q),this};var In=f.__private__.getStyle=f.getStyle=function(q){var me=c;switch(q){case"D":case"S":me="S";break;case"F":me="f";break;case"FD":case"DF":me="B";break;case"f":case"f*":case"B":case"B*":me=q}return me},Oa=f.close=function(){return de("h"),this};f.stroke=function(){return de("S"),this},f.fill=function(q){return bi("f",q),this},f.fillEvenOdd=function(q){return bi("f*",q),this},f.fillStroke=function(q){return bi("B",q),this},f.fillStrokeEvenOdd=function(q){return bi("B*",q),this};var bi=function(q,me){Ar(me)==="object"?Xi(me,q):de(q)},ri=function(q){q===null||C===y.ADVANCED&&q===void 0||(q=In(q),de(q))};function Za(q,me,Le,gt,Qt){var $t=new dE(me||this.boundingBox,Le||this.xStep,gt||this.yStep,this.gState,Qt||this.matrix);$t.stream=this.stream;var gr=q+"$$"+this.cloneIndex+++"$$";return qt(gr,$t),$t}var Xi=function(q,me){var Le=Yt[q.key],gt=Et[Le];if(gt instanceof ov)de("q"),de(po(me)),gt.gState&&f.setGState(gt.gState),de(q.matrix.toString()+" cm"),de("/"+Le+" sh"),de("Q");else if(gt instanceof dE){var Qt=new ot(1,0,0,-1,0,Sc());q.matrix&&(Qt=Qt.multiply(q.matrix||vt),Le=Za.call(gt,q.key,q.boundingBox,q.xStep,q.yStep,Qt).id),de("q"),de("/Pattern cs"),de("/"+Le+" scn"),gt.gState&&f.setGState(gt.gState),de(me),de("Q")}},po=function(q){switch(q){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},ni=f.moveTo=function(q,me){return de(M(D(q))+" "+M(N(me))+" m"),this},zi=f.lineTo=function(q,me){return de(M(D(q))+" "+M(N(me))+" l"),this},Qo=f.curveTo=function(q,me,Le,gt,Qt,$t){return de([M(D(q)),M(N(me)),M(D(Le)),M(N(gt)),M(D(Qt)),M(N($t)),"c"].join(" ")),this};f.__private__.line=f.line=function(q,me,Le,gt,Qt){if(isNaN(q)||isNaN(me)||isNaN(Le)||isNaN(gt)||!ha(Qt))throw new Error("Invalid arguments passed to jsPDF.line");return C===y.COMPAT?this.lines([[Le-q,gt-me]],q,me,[1,1],Qt||"S"):this.lines([[Le-q,gt-me]],q,me,[1,1]).stroke()},f.__private__.lines=f.lines=function(q,me,Le,gt,Qt,$t){var gr,Or,tn,mn,Bn,xn,ai,mi,Li,mo,lo,Xl;if(typeof q=="number"&&(Xl=Le,Le=me,me=q,q=Xl),gt=gt||[1,1],$t=$t||!1,isNaN(me)||isNaN(Le)||!Array.isArray(q)||!Array.isArray(gt)||!ha(Qt)||typeof $t!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(ni(me,Le),gr=gt[0],Or=gt[1],mn=q.length,mo=me,lo=Le,tn=0;tn<mn;tn++)(Bn=q[tn]).length===2?(mo=Bn[0]*gr+mo,lo=Bn[1]*Or+lo,zi(mo,lo)):(xn=Bn[0]*gr+mo,ai=Bn[1]*Or+lo,mi=Bn[2]*gr+mo,Li=Bn[3]*Or+lo,mo=Bn[4]*gr+mo,lo=Bn[5]*Or+lo,Qo(xn,ai,mi,Li,mo,lo));return $t&&Oa(),ri(Qt),this},f.path=function(q){for(var me=0;me<q.length;me++){var Le=q[me],gt=Le.c;switch(Le.op){case"m":ni(gt[0],gt[1]);break;case"l":zi(gt[0],gt[1]);break;case"c":Qo.apply(this,gt);break;case"h":Oa()}}return this},f.__private__.rect=f.rect=function(q,me,Le,gt,Qt){if(isNaN(q)||isNaN(me)||isNaN(Le)||isNaN(gt)||!ha(Qt))throw new Error("Invalid arguments passed to jsPDF.rect");return C===y.COMPAT&&(gt=-gt),de([M(D(q)),M(N(me)),M(D(Le)),M(D(gt)),"re"].join(" ")),ri(Qt),this},f.__private__.triangle=f.triangle=function(q,me,Le,gt,Qt,$t,gr){if(isNaN(q)||isNaN(me)||isNaN(Le)||isNaN(gt)||isNaN(Qt)||isNaN($t)||!ha(gr))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Le-q,gt-me],[Qt-Le,$t-gt],[q-Qt,me-$t]],q,me,[1,1],gr,!0),this},f.__private__.roundedRect=f.roundedRect=function(q,me,Le,gt,Qt,$t,gr){if(isNaN(q)||isNaN(me)||isNaN(Le)||isNaN(gt)||isNaN(Qt)||isNaN($t)||!ha(gr))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Or=4/3*(Math.SQRT2-1);return Qt=Math.min(Qt,.5*Le),$t=Math.min($t,.5*gt),this.lines([[Le-2*Qt,0],[Qt*Or,0,Qt,$t-$t*Or,Qt,$t],[0,gt-2*$t],[0,$t*Or,-Qt*Or,$t,-Qt,$t],[2*Qt-Le,0],[-Qt*Or,0,-Qt,-$t*Or,-Qt,-$t],[0,2*$t-gt],[0,-$t*Or,Qt*Or,-$t,Qt,-$t]],q+Qt,me,[1,1],gr,!0),this},f.__private__.ellipse=f.ellipse=function(q,me,Le,gt,Qt){if(isNaN(q)||isNaN(me)||isNaN(Le)||isNaN(gt)||!ha(Qt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var $t=4/3*(Math.SQRT2-1)*Le,gr=4/3*(Math.SQRT2-1)*gt;return ni(q+Le,me),Qo(q+Le,me-gr,q+$t,me-gt,q,me-gt),Qo(q-$t,me-gt,q-Le,me-gr,q-Le,me),Qo(q-Le,me+gr,q-$t,me+gt,q,me+gt),Qo(q+$t,me+gt,q+Le,me+gr,q+Le,me),ri(Qt),this},f.__private__.circle=f.circle=function(q,me,Le,gt){if(isNaN(q)||isNaN(me)||isNaN(Le)||!ha(gt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(q,me,Le,Le,gt)},f.setFont=function(q,me,Le){return Le&&(me=x(me,Le)),$e=kr(q,me,{disableWarning:!1}),this};var so=f.__private__.getFont=f.getFont=function(){return He[kr.apply(f,arguments)]};f.__private__.getFontList=f.getFontList=function(){var q,me,Le={};for(q in Ge)if(Ge.hasOwnProperty(q))for(me in Le[q]=[],Ge[q])Ge[q].hasOwnProperty(me)&&Le[q].push(me);return Le},f.addFont=function(q,me,Le,gt,Qt){var $t=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&$t.indexOf(arguments[3])!==-1?Qt=arguments[3]:arguments[3]&&$t.indexOf(arguments[3])==-1&&(Le=x(Le,gt)),Qt=Qt||"Identity-H",Ye.call(this,q,me,Le,Qt)};var gs,bu=e.lineWidth||.200025,gA=f.__private__.getLineWidth=f.getLineWidth=function(){return bu},Ud=f.__private__.setLineWidth=f.setLineWidth=function(q){return bu=q,de(M(D(q))+" w"),this};f.__private__.setLineDash=bn.API.setLineDash=bn.API.setLineDashPattern=function(q,me){if(q=q||[],me=me||0,isNaN(me)||!Array.isArray(q))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return q=q.map((function(Le){return M(D(Le))})).join(" "),me=M(D(me)),de("["+q+"] "+me+" d"),this};var sh=f.__private__.getLineHeight=f.getLineHeight=function(){return Ie*gs};f.__private__.getLineHeight=f.getLineHeight=function(){return Ie*gs};var xc=f.__private__.setLineHeightFactor=f.setLineHeightFactor=function(q){return typeof(q=q||1.15)=="number"&&(gs=q),this},lh=f.__private__.getLineHeightFactor=f.getLineHeightFactor=function(){return gs};xc(e.lineHeight);var Os=f.__private__.getHorizontalCoordinate=function(q){return D(q)},ps=f.__private__.getVerticalCoordinate=function(q){return C===y.ADVANCED?q:ie[H].mediaBox.topRightY-ie[H].mediaBox.bottomLeftY-D(q)},Su=f.__private__.getHorizontalCoordinateString=f.getHorizontalCoordinateString=function(q){return M(Os(q))},vo=f.__private__.getVerticalCoordinateString=f.getVerticalCoordinateString=function(q){return M(ps(q))},qo=e.strokeColor||"0 G";f.__private__.getStrokeColor=f.getDrawColor=function(){return xr(qo)},f.__private__.setStrokeColor=f.setDrawColor=function(q,me,Le,gt){return qo=Ir({ch1:q,ch2:me,ch3:Le,ch4:gt,pdfColorType:"draw",precision:2}),de(qo),this};var Mc=e.fillColor||"0 g";f.__private__.getFillColor=f.getFillColor=function(){return xr(Mc)},f.__private__.setFillColor=f.setFillColor=function(q,me,Le,gt){return Mc=Ir({ch1:q,ch2:me,ch3:Le,ch4:gt,pdfColorType:"fill",precision:2}),de(Mc),this};var Ic=e.textColor||"0 g",Ru=f.__private__.getTextColor=f.getTextColor=function(){return xr(Ic)};f.__private__.setTextColor=f.setTextColor=function(q,me,Le,gt){return Ic=Ir({ch1:q,ch2:me,ch3:Le,ch4:gt,pdfColorType:"text",precision:3}),this};var Wl=e.charSpace,Tu=f.__private__.getCharSpace=f.getCharSpace=function(){return parseFloat(Wl||0)};f.__private__.setCharSpace=f.setCharSpace=function(q){if(isNaN(q))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Wl=q,this};var ja=0;f.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},f.__private__.setLineCap=f.setLineCap=function(q){var me=f.CapJoinStyles[q];if(me===void 0)throw new Error("Line cap style of '"+q+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ja=me,de(me+" J"),this};var js=0;f.__private__.setLineJoin=f.setLineJoin=function(q){var me=f.CapJoinStyles[q];if(me===void 0)throw new Error("Line join style of '"+q+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return js=me,de(me+" j"),this},f.__private__.setLineMiterLimit=f.__private__.setMiterLimit=f.setLineMiterLimit=f.setMiterLimit=function(q){if(q=q||0,isNaN(q))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return de(M(D(q))+" M"),this},f.GState=FT,f.setGState=function(q){(q=typeof q=="string"?$[Fe[q]]:Qu(null,q)).equals(je)||(de("/"+q.id+" gs"),je=q)};var Qu=function(q,me){if(!q||!Fe[q]){var Le=!1;for(var gt in $)if($.hasOwnProperty(gt)&&$[gt].equals(me)){Le=!0;break}if(Le)me=$[gt];else{var Qt="GS"+(Object.keys($).length+1).toString(10);$[Qt]=me,me.id=Qt}return q&&(Fe[q]=me.id),Be.publish("addGState",me),me}};f.addGState=function(q,me){return Qu(q,me),this},f.saveGraphicsState=function(){return de("q"),Ee.push({key:$e,size:Ie,color:Ic}),this},f.restoreGraphicsState=function(){de("Q");var q=Ee.pop();return $e=q.key,Ie=q.size,Ic=q.color,je=null,this},f.setCurrentTransformationMatrix=function(q){return de(q.toString()+" cm"),this},f.comment=function(q){return de("#"+q),this};var dl=function(q,me){var Le=q||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Le},set:function($t){isNaN($t)||(Le=parseFloat($t))}});var gt=me||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return gt},set:function($t){isNaN($t)||(gt=parseFloat($t))}});var Qt="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Qt},set:function($t){Qt=$t.toString()}}),this},Hd=function(q,me,Le,gt){dl.call(this,q,me),this.type="rect";var Qt=Le||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Qt},set:function(gr){isNaN(gr)||(Qt=parseFloat(gr))}});var $t=gt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return $t},set:function(gr){isNaN(gr)||($t=parseFloat(gr))}}),this},pA=function(){this.page=ue,this.currentPage=H,this.pages=he.slice(0),this.pagesContext=ie.slice(0),this.x=qe,this.y=ct,this.matrix=Tt,this.width=hl(H),this.height=Sc(H),this.outputDestination=be,this.id="",this.objectNumber=-1};pA.prototype.restore=function(){ue=this.page,H=this.currentPage,ie=this.pagesContext,he=this.pages,qe=this.x,ct=this.y,Tt=this.matrix,mA(H,this.width),Gd(H,this.height),be=this.outputDestination};var vA=function(q,me,Le,gt,Qt){wt.push(new pA),ue=H=0,he=[],qe=q,ct=me,Tt=Qt,Jt([Le,gt])},bc=function(q){if(ft[q])wt.pop().restore();else{var me=new pA,Le="Xo"+(Object.keys(Oe).length+1).toString(10);me.id=Le,ft[q]=Le,Oe[Le]=me,Be.publish("addFormObject",me),wt.pop().restore()}};for(var fl in f.beginFormObject=function(q,me,Le,gt,Qt){return vA(q,me,Le,gt,Qt),this},f.endFormObject=function(q){return bc(q),this},f.doFormObject=function(q,me){var Le=Oe[ft[q]];return de("q"),de(me.toString()+" cm"),de("/"+Le.id+" Do"),de("Q"),this},f.getFormObject=function(q){var me=Oe[ft[q]];return{x:me.x,y:me.y,width:me.width,height:me.height,matrix:me.matrix}},f.save=function(q,me){return q=q||"generated.pdf",(me=me||{}).returnPromise=me.returnPromise||!1,me.returnPromise===!1?($p(wa(qa()),q),typeof $p.unload=="function"&&Tn.setTimeout&&setTimeout($p.unload,911),this):new Promise((function(Le,gt){try{var Qt=$p(wa(qa()),q);typeof $p.unload=="function"&&Tn.setTimeout&&setTimeout($p.unload,911),Le(Qt)}catch($t){gt($t.message)}}))},bn.API)bn.API.hasOwnProperty(fl)&&(fl==="events"&&bn.API.events.length?(function(q,me){var Le,gt,Qt;for(Qt=me.length-1;Qt!==-1;Qt--)Le=me[Qt][0],gt=me[Qt][1],q.subscribe.apply(q,[Le].concat(typeof gt=="function"?[gt]:gt))})(Be,bn.API.events):f[fl]=bn.API[fl]);var hl=f.getPageWidth=function(q){return(ie[q=q||H].mediaBox.topRightX-ie[q].mediaBox.bottomLeftX)/ce},mA=f.setPageWidth=function(q,me){ie[q].mediaBox.topRightX=me*ce+ie[q].mediaBox.bottomLeftX},Sc=f.getPageHeight=function(q){return(ie[q=q||H].mediaBox.topRightY-ie[q].mediaBox.bottomLeftY)/ce},Gd=f.setPageHeight=function(q,me){ie[q].mediaBox.topRightY=me*ce+ie[q].mediaBox.bottomLeftY};return f.internal={pdfEscape:Ut,getStyle:In,getFont:so,getFontSize:Re,getCharSpace:Tu,getTextColor:Ru,getLineHeight:sh,getLineHeightFactor:lh,getLineWidth:gA,write:Ue,getHorizontalCoordinate:Os,getVerticalCoordinate:ps,getCoordinateString:Su,getVerticalCoordinateString:vo,collections:{},newObject:Xt,newAdditionalObject:Vr,newObjectDeferred:Tr,newObjectDeferredBegin:Kr,getFilters:Fr,putStream:br,events:Be,scaleFactor:ce,pageSize:{getWidth:function(){return hl(H)},setWidth:function(q){mA(H,q)},getHeight:function(){return Sc(H)},setHeight:function(q){Gd(H,q)}},encryptionOptions:A,encryption:Ft,getEncryptor:or,output:ht,getNumberOfPages:dn,pages:he,out:de,f2:b,f3:T,getPageInfo:Zr,getPageInfoByObjId:lr,getCurrentPageInfo:$n,getPDFVersion:g,Point:dl,Rectangle:Hd,Matrix:ot,hasHotfix:Pt},Object.defineProperty(f.internal.pageSize,"width",{get:function(){return hl(H)},set:function(q){mA(H,q)},enumerable:!0,configurable:!0}),Object.defineProperty(f.internal.pageSize,"height",{get:function(){return Sc(H)},set:function(q){Gd(H,q)},enumerable:!0,configurable:!0}),et.call(f,Ve),$e="F1",ar(a,r),Be.publish("initialized"),f}tE.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},tE.prototype.toHexString=function(e){return e.split("").map((function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)})).join("")},tE.prototype.hexToBytes=function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(String.fromCharCode(parseInt(e.substr(r,2),16)));return t.join("")},tE.prototype.processOwnerPassword=function(e,t){return sL(oL(t).substr(0,5),e)},tE.prototype.encryptor=function(e,t){var r=oL(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(n){return sL(r,n)}},FT.prototype.equals=function(e){var t,r="id,objectNumber,equals";if(!e||Ar(e)!==Ar(this))return!1;var n=0;for(t in this)if(!(r.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t)||this[t]!==e[t])return!1;n++}for(t in e)e.hasOwnProperty(t)&&r.indexOf(t)<0&&n--;return n===0},bn.API={events:[]},bn.version="3.0.1";var Hi=bn.API,pH=1,Em=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},E0=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Yn=function(e){return e.toFixed(2)},Dh=function(e){return e.toFixed(5)};Hi.__acroform__={};var Yl=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Vre=function(e){return e*pH},Ad=function(e){var t=new $Be,r=ln.internal.getHeight(e)||0,n=ln.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Yn(n)),Number(Yn(r))],t},Lft=Hi.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<t},Yft=Hi.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<t)},Uft=Hi.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<t)==0?0:1},to=Hi.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Uft(e,t-1)},ro=Hi.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Lft(e,t-1)},no=Hi.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Yft(e,t-1)},Hft=Hi.__acroform__.calculateCoordinates=function(e,t){var r=t.internal.getHorizontalCoordinate,n=t.internal.getVerticalCoordinate,a=e[0],i=e[1],o=e[2],s=e[3],l={};return l.lowerLeft_X=r(a)||0,l.lowerLeft_Y=n(i+s)||0,l.upperRight_X=r(a+o)||0,l.upperRight_Y=n(i)||0,[Number(Yn(l.lowerLeft_X)),Number(Yn(l.lowerLeft_Y)),Number(Yn(l.upperRight_X)),Number(Yn(l.upperRight_Y))]},Gft=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e._V||e.DV,n=lL(e,r),a=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+a+" "+Yn(n.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(n.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=Ad(e);return i.scope=e.scope,i.stream=t.join(`
`),i}},lL=function(e,t){var r=e.fontSize===0?e.maxFontSize:e.fontSize,n={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=e.multiline?a.map((function(T){return T.split(`
`)})):a.map((function(T){return[T]}));var i=r,o=ln.internal.getHeight(e)||0;o=o<0?-o:o;var s=ln.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(T,D,F){if(T+1<a.length){var N=D+" "+a[T+1][0];return yI(N,e,F).width<=s-4}return!1};i++;e:for(;i>0;){t="",i--;var c,A,u=yI("3",e,i).height,d=e.multiline?o-i:(o-u)/2,f=d+=2,h=0,g=0,p=0;if(i<=0){t=`(...) Tj
`,t+="% Width of Text: "+yI(t,e,i=12).width+", FieldWidth:"+s+`
`;break}for(var m="",y=0,C=0;C<a.length;C++)if(a.hasOwnProperty(C)){var w=!1;if(a[C].length!==1&&p!==a[C].length-1){if((u+2)*(y+2)+2>o)continue e;m+=a[C][p],w=!0,g=C,C--}else{m=(m+=a[C][p]+" ").substr(m.length-1)==" "?m.substr(0,m.length-1):m;var B=parseInt(C),x=l(B,m,i),M=C>=a.length-1;if(x&&!M){m+=" ",p=0;continue}if(x||M){if(M)g=B;else if(e.multiline&&(u+2)*(y+2)+2>o)continue e}else{if(!e.multiline||(u+2)*(y+2)+2>o)continue e;g=B}}for(var S="",R=h;R<=g;R++){var b=a[R];if(e.multiline){if(R===g){S+=b[p]+" ",p=(p+1)%b.length;continue}if(R===h){S+=b[b.length-1]+" ";continue}}S+=b[0]+" "}switch(S=S.substr(S.length-1)==" "?S.substr(0,S.length-1):S,A=yI(S,e,i).width,e.textAlign){case"right":c=s-A-2;break;case"center":c=(s-A)/2;break;case"left":default:c=2}t+=Yn(c)+" "+Yn(f)+` Td
`,t+="("+Em(S)+`) Tj
`,t+=-Yn(c)+` 0 Td
`,f=-(i+2),A=0,h=w?g:g+1,y++,m=""}break}return n.text=t,n.fontSize=i,n},yI=function(e,t,r){var n=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(e,{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:t.scope.getStringUnitWidth("3",{font:n,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:a}},Kft={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Vft=function(e,t){var r={type:"reference",object:e};t.internal.getPageInfo(e.page).pageContext.annotations.find((function(n){return n.type===r.type&&n.object===r.object}))===void 0&&t.internal.getPageInfo(e.page).pageContext.annotations.push(r)},Jft=function(e,t){for(var r in e)if(e.hasOwnProperty(r)){var n=r,a=e[r];t.internal.newObjectDeferredBegin(a.objId,!0),Ar(a)==="object"&&typeof a.putStream=="function"&&a.putStream(),delete e[n]}},Wft=function(e,t){if(t.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(vu.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Kft)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");pH=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new exe,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",(function(){(function(r){r.internal.events.unsubscribe(r.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete r.internal.acroformPlugin.acroFormDictionaryRoot._eventID,r.internal.acroformPlugin.printedOut=!0})(e)})),e.internal.events.subscribe("buildDocument",(function(){(function(r){r.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var n=r.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in n)if(n.hasOwnProperty(a)){var i=n[a];i.objId=void 0,i.hasAnnotation&&Vft(i,r)}})(e)})),e.internal.events.subscribe("putCatalog",(function(){(function(r){if(r.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");r.internal.write("/AcroForm "+r.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)})),e.internal.events.subscribe("postPutPages",(function(r){(function(n,a){var i=!n;for(var o in n||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),n=n||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(n.hasOwnProperty(o)){var s=n[o],l=[],c=s.Rect;if(s.Rect&&(s.Rect=Hft(s.Rect,a)),a.internal.newObjectDeferredBegin(s.objId,!0),s.DA=ln.createDefaultAppearanceStream(s),Ar(s)==="object"&&typeof s.getKeyValueListForStream=="function"&&(l=s.getKeyValueListForStream()),s.Rect=c,s.hasAppearanceStream&&!s.appearanceStreamContent){var A=Gft(s);l.push({key:"AP",value:"<</N "+A+">>"}),a.internal.acroformPlugin.xForms.push(A)}if(s.appearanceStreamContent){var u="";for(var d in s.appearanceStreamContent)if(s.appearanceStreamContent.hasOwnProperty(d)){var f=s.appearanceStreamContent[d];if(u+="/"+d+" ",u+="<<",Object.keys(f).length>=1||Array.isArray(f)){for(var o in f)if(f.hasOwnProperty(o)){var h=f[o];typeof h=="function"&&(h=h.call(a,s)),u+="/"+o+" "+h+" ",a.internal.acroformPlugin.xForms.indexOf(h)>=0||a.internal.acroformPlugin.xForms.push(h)}}else typeof(h=f)=="function"&&(h=h.call(a,s)),u+="/"+o+" "+h,a.internal.acroformPlugin.xForms.indexOf(h)>=0||a.internal.acroformPlugin.xForms.push(h);u+=">>"}l.push({key:"AP",value:`<<
`+u+">>"})}a.internal.putStream({additionalKeyValues:l,objectId:s.objId}),a.internal.out("endobj")}i&&Jft(a.internal.acroformPlugin.xForms,a)})(r,e)})),e.internal.acroformPlugin.isInitialized=!0}},ZBe=Hi.__acroform__.arrayToPdfArray=function(e,t,r){var n=function(o){return o};if(Array.isArray(e)){for(var a="[",i=0;i<e.length;i++)switch(i!==0&&(a+=" "),Ar(e[i])){case"boolean":case"number":case"object":a+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(t!==void 0&&r&&(n=r.internal.getEncryptor(t)),a+="("+Em(n(e[i].toString()))+")"):a+=e[i].toString()}return a+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},$k=function(e,t,r){var n=function(a){return a};return t!==void 0&&r&&(n=r.internal.getEncryptor(t)),(e=e||"").toString(),e="("+Em(n(e))+")"},hd=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};hd.prototype.toString=function(){return this.objId+" 0 R"},hd.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},hd.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter((function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"}));for(var r in t)if(Object.getOwnPropertyDescriptor(this,t[r]).configurable===!1){var n=t[r],a=this[n];a&&(Array.isArray(a)?e.push({key:n,value:ZBe(a,this.objId,this.scope)}):a instanceof hd?(a.scope=this.scope,e.push({key:n,value:a.objId+" 0 R"})):typeof a!="function"&&e.push({key:n,value:a}))}return e};var $Be=function(){hd.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(r){t=r}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(r){e=r.trim()},get:function(){return e||null}})};Yl($Be,hd);var exe=function(){hd.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var r=function(n){return n};return this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),"("+Em(r(e))+")"}},set:function(r){e=r}})};Yl(exe,hd);var vu=function e(){hd.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(m){if(isNaN(m))throw new Error('Invalid value "'+m+'" for attribute F supplied.');t=m}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!to(t,3)},set:function(m){m?this.F=ro(t,3):this.F=no(t,3)}});var r=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return r},set:function(m){if(isNaN(m))throw new Error('Invalid value "'+m+'" for attribute Ff supplied.');r=m}});var n=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(n.length!==0)return n},set:function(m){n=m!==void 0?m:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[0])?0:n[0]},set:function(m){n[0]=m}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[1])?0:n[1]},set:function(m){n[1]=m}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[2])?0:n[2]},set:function(m){n[2]=m}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!n||isNaN(n[3])?0:n[3]},set:function(m){n[3]=m}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(m){switch(m){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=m;break;default:throw new Error('Invalid value "'+m+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof NT)return;i="FieldObject"+e.FieldNum++}var m=function(y){return y};return this.scope&&(m=this.scope.internal.getEncryptor(this.objId)),"("+Em(m(i))+")"},set:function(m){i=m.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(m){i=m}});var o="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return o},set:function(m){o=m}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(m){s=m}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(m){l=m}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return c===void 0?50/pH:c},set:function(m){c=m}});var A="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return A},set:function(m){A=m}});var u="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!u||this instanceof NT||this instanceof Sv))return $k(u,this.objId,this.scope)},set:function(m){m=m.toString(),u=m}});var d=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(d)return this instanceof Yo?d:$k(d,this.objId,this.scope)},set:function(m){m=m.toString(),d=this instanceof Yo?m:m.substr(0,1)==="("?E0(m.substr(1,m.length-2)):E0(m)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Yo?E0(d.substr(1,d.length-1)):d},set:function(m){m=m.toString(),d=this instanceof Yo?"/"+m:m}});var f=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(f)return f},set:function(m){this.V=m}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(f)return this instanceof Yo?f:$k(f,this.objId,this.scope)},set:function(m){m=m.toString(),f=this instanceof Yo?m:m.substr(0,1)==="("?E0(m.substr(1,m.length-2)):E0(m)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Yo?E0(f.substr(1,f.length-1)):f},set:function(m){m=m.toString(),f=this instanceof Yo?"/"+m:m}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var h,g=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return g},set:function(m){m=!!m,g=m}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(h)return h},set:function(m){h=m}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,1)},set:function(m){m?this.Ff=ro(this.Ff,1):this.Ff=no(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,2)},set:function(m){m?this.Ff=ro(this.Ff,2):this.Ff=no(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,3)},set:function(m){m?this.Ff=ro(this.Ff,3):this.Ff=no(this.Ff,3)}});var p=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(p!==null)return p},set:function(m){if([0,1,2].indexOf(m)===-1)throw new Error('Invalid value "'+m+'" for attribute Q supplied.');p=m}}),Object.defineProperty(this,"textAlign",{get:function(){var m;switch(p){case 0:default:m="left";break;case 1:m="center";break;case 2:m="right"}return m},configurable:!0,enumerable:!0,set:function(m){switch(m){case"right":case 2:p=2;break;case"center":case 1:p=1;break;case"left":case 0:default:p=0}}})};Yl(vu,hd);var SE=function(){vu.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(r){e=r}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return ZBe(t,this.objId,this.scope)},set:function(r){var n,a;a=[],typeof(n=r)=="string"&&(a=(function(i,o,s){s||(s=1);for(var l,c=[];l=o.exec(i);)c.push(l[s]);return c})(n,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(r){t=r,this.sort&&t.sort()},this.addOption=function(r){r=(r=r||"").toString(),t.push(r),this.sort&&t.sort()},this.removeOption=function(r,n){for(n=n||!1,r=(r=r||"").toString();t.indexOf(r)!==-1&&(t.splice(t.indexOf(r),1),n!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,18)},set:function(r){r?this.Ff=ro(this.Ff,18):this.Ff=no(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,19)},set:function(r){this.combo===!0&&(r?this.Ff=ro(this.Ff,19):this.Ff=no(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,20)},set:function(r){r?(this.Ff=ro(this.Ff,20),t.sort()):this.Ff=no(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,22)},set:function(r){r?this.Ff=ro(this.Ff,22):this.Ff=no(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,23)},set:function(r){r?this.Ff=ro(this.Ff,23):this.Ff=no(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,27)},set:function(r){r?this.Ff=ro(this.Ff,27):this.Ff=no(this.Ff,27)}}),this.hasAppearanceStream=!1};Yl(SE,vu);var RE=function(){SE.call(this),this.fontName="helvetica",this.combo=!1};Yl(RE,SE);var TE=function(){RE.call(this),this.combo=!0};Yl(TE,RE);var oR=function(){TE.call(this),this.edit=!0};Yl(oR,TE);var Yo=function(){vu.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,15)},set:function(r){r?this.Ff=ro(this.Ff,15):this.Ff=no(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,16)},set:function(r){r?this.Ff=ro(this.Ff,16):this.Ff=no(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,17)},set:function(r){r?this.Ff=ro(this.Ff,17):this.Ff=no(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,26)},set:function(r){r?this.Ff=ro(this.Ff,26):this.Ff=no(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var r=function(i){return i};if(this.scope&&(r=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var n,a=[];for(n in a.push("<<"),t)a.push("/"+n+" ("+Em(r(t[n]))+")");return a.push(">>"),a.join(`
`)}},set:function(r){Ar(r)==="object"&&(t=r)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(r){typeof r=="string"&&(t.CA=r)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(r){e=r}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(r){e="/"+r}})};Yl(Yo,vu);var sR=function(){Yo.call(this),this.pushButton=!0};Yl(sR,Yo);var QE=function(){Yo.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t!==void 0?t:[]}})};Yl(QE,Yo);var NT=function(){var e,t;vu.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){e=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var r,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(s){return s};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var i,o=[];for(i in o.push("<<"),n)o.push("/"+i+" ("+Em(a(n[i]))+")");return o.push(">>"),o.join(`
`)},set:function(a){Ar(a)==="object"&&(n=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(a){typeof a=="string"&&(n.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return r},set:function(a){r=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return r.substr(1,r.length-1)},set:function(a){r="/"+a}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=ln.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Yl(NT,vu),QE.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var r=this.Kids[t];r.appearanceStreamContent=e.createAppearanceStream(r.optionName),r.caption=e.getCA()}},QE.prototype.createOption=function(e){var t=new NT;return t.Parent=this,t.optionName=e,this.Kids.push(t),Xft.call(this.scope,t),t};var lR=function(){Yo.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ln.CheckBox.createAppearanceStream()};Yl(lR,Yo);var Sv=function(){vu.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,13)},set:function(t){t?this.Ff=ro(this.Ff,13):this.Ff=no(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,21)},set:function(t){t?this.Ff=ro(this.Ff,21):this.Ff=no(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,23)},set:function(t){t?this.Ff=ro(this.Ff,23):this.Ff=no(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,24)},set:function(t){t?this.Ff=ro(this.Ff,24):this.Ff=no(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,25)},set:function(t){t?this.Ff=ro(this.Ff,25):this.Ff=no(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,26)},set:function(t){t?this.Ff=ro(this.Ff,26):this.Ff=no(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Yl(Sv,vu);var cR=function(){Sv.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!to(this.Ff,14)},set:function(e){e?this.Ff=ro(this.Ff,14):this.Ff=no(this.Ff,14)}}),this.password=!0};Yl(cR,Sv);var ln={CheckBox:{createAppearanceStream:function(){return{N:{On:ln.CheckBox.YesNormal},D:{On:ln.CheckBox.YesPushDown,Off:ln.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Ad(e);t.scope=e.scope;var r=[],n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),i=lL(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+Yn(ln.internal.getWidth(e))+" "+Yn(ln.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+n+" "+Yn(i.fontSize)+" Tf "+a),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join(`
`),t},YesNormal:function(e){var t=Ad(e);t.scope=e.scope;var r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),a=[],i=ln.internal.getHeight(e),o=ln.internal.getWidth(e),s=lL(e,e.caption);return a.push("1 g"),a.push("0 0 "+Yn(o)+" "+Yn(i)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Yn(o-1)+" "+Yn(i-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+r+" "+Yn(s.fontSize)+" Tf "+n),a.push(s.text),a.push("ET"),a.push("Q"),t.stream=a.join(`
`),t},OffPushDown:function(e){var t=Ad(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Yn(ln.internal.getWidth(e))+" "+Yn(ln.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
`),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:ln.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=ln.RadioButton.Circle.YesNormal,t.D[e]=ln.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Ad(e);t.scope=e.scope;var r=[],n=ln.internal.getWidth(e)<=ln.internal.getHeight(e)?ln.internal.getWidth(e)/4:ln.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=ln.internal.Bezier_C,i=Number((n*a).toFixed(5));return r.push("q"),r.push("1 0 0 1 "+Dh(ln.internal.getWidth(e)/2)+" "+Dh(ln.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),r.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),r.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),r.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
`),t},YesPushDown:function(e){var t=Ad(e);t.scope=e.scope;var r=[],n=ln.internal.getWidth(e)<=ln.internal.getHeight(e)?ln.internal.getWidth(e)/4:ln.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*ln.internal.Bezier_C).toFixed(5)),o=Number((n*ln.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Dh(ln.internal.getWidth(e)/2)+" "+Dh(ln.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),r.push("0 g"),r.push("q"),r.push("1 0 0 1 "+Dh(ln.internal.getWidth(e)/2)+" "+Dh(ln.internal.getHeight(e)/2)+" cm"),r.push(n+" 0 m"),r.push(n+" "+o+" "+o+" "+n+" 0 "+n+" c"),r.push("-"+o+" "+n+" -"+n+" "+o+" -"+n+" 0 c"),r.push("-"+n+" -"+o+" -"+o+" -"+n+" 0 -"+n+" c"),r.push(o+" -"+n+" "+n+" -"+o+" "+n+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
`),t},OffPushDown:function(e){var t=Ad(e);t.scope=e.scope;var r=[],n=ln.internal.getWidth(e)<=ln.internal.getHeight(e)?ln.internal.getWidth(e)/4:ln.internal.getHeight(e)/4;n=Number((.9*n).toFixed(5));var a=Number((2*n).toFixed(5)),i=Number((a*ln.internal.Bezier_C).toFixed(5));return r.push("0.749023 g"),r.push("q"),r.push("1 0 0 1 "+Dh(ln.internal.getWidth(e)/2)+" "+Dh(ln.internal.getHeight(e)/2)+" cm"),r.push(a+" 0 m"),r.push(a+" "+i+" "+i+" "+a+" 0 "+a+" c"),r.push("-"+i+" "+a+" -"+a+" "+i+" -"+a+" 0 c"),r.push("-"+a+" -"+i+" -"+i+" -"+a+" 0 -"+a+" c"),r.push(i+" -"+a+" "+a+" -"+i+" "+a+" 0 c"),r.push("f"),r.push("Q"),t.stream=r.join(`
`),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:ln.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=ln.RadioButton.Cross.YesNormal,t.D[e]=ln.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Ad(e);t.scope=e.scope;var r=[],n=ln.internal.calculateCross(e);return r.push("q"),r.push("1 1 "+Yn(ln.internal.getWidth(e)-2)+" "+Yn(ln.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(Yn(n.x1.x)+" "+Yn(n.x1.y)+" m"),r.push(Yn(n.x2.x)+" "+Yn(n.x2.y)+" l"),r.push(Yn(n.x4.x)+" "+Yn(n.x4.y)+" m"),r.push(Yn(n.x3.x)+" "+Yn(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
`),t},YesPushDown:function(e){var t=Ad(e);t.scope=e.scope;var r=ln.internal.calculateCross(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+Yn(ln.internal.getWidth(e))+" "+Yn(ln.internal.getHeight(e))+" re"),n.push("f"),n.push("q"),n.push("1 1 "+Yn(ln.internal.getWidth(e)-2)+" "+Yn(ln.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Yn(r.x1.x)+" "+Yn(r.x1.y)+" m"),n.push(Yn(r.x2.x)+" "+Yn(r.x2.y)+" l"),n.push(Yn(r.x4.x)+" "+Yn(r.x4.y)+" m"),n.push(Yn(r.x3.x)+" "+Yn(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join(`
`),t},OffPushDown:function(e){var t=Ad(e);t.scope=e.scope;var r=[];return r.push("0.749023 g"),r.push("0 0 "+Yn(ln.internal.getWidth(e))+" "+Yn(ln.internal.getHeight(e))+" re"),r.push("f"),t.stream=r.join(`
`),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};ln.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=ln.internal.getWidth(e),r=ln.internal.getHeight(e),n=Math.min(t,r);return{x1:{x:(t-n)/2,y:(r-n)/2+n},x2:{x:(t-n)/2+n,y:(r-n)/2},x3:{x:(t-n)/2,y:(r-n)/2},x4:{x:(t-n)/2+n,y:(r-n)/2+n}}}},ln.internal.getWidth=function(e){var t=0;return Ar(e)==="object"&&(t=Vre(e.Rect[2])),t},ln.internal.getHeight=function(e){var t=0;return Ar(e)==="object"&&(t=Vre(e.Rect[3])),t};var Xft=Hi.addField=function(e){if(Wft(this,e),!(e instanceof vu))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Hi.AcroFormChoiceField=SE,Hi.AcroFormListBox=RE,Hi.AcroFormComboBox=TE,Hi.AcroFormEditBox=oR,Hi.AcroFormButton=Yo,Hi.AcroFormPushButton=sR,Hi.AcroFormRadioButton=QE,Hi.AcroFormCheckBox=lR,Hi.AcroFormTextField=Sv,Hi.AcroFormPasswordField=cR,Hi.AcroFormAppearance=ln,Hi.AcroForm={ChoiceField:SE,ListBox:RE,ComboBox:TE,EditBox:oR,Button:Yo,PushButton:sR,RadioButton:QE,CheckBox:lR,TextField:Sv,PasswordField:cR,Appearance:ln},bn.AcroForm={ChoiceField:SE,ListBox:RE,ComboBox:TE,EditBox:oR,Button:Yo,PushButton:sR,RadioButton:QE,CheckBox:lR,TextField:Sv,PasswordField:cR,Appearance:ln};bn.AcroForm;function txe(e){return e.reduce((function(t,r,n){return t[r]=n,t}),{})}(function(e){e.__addimage__={};var t="UNKNOWN",r={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},n=e.__addimage__.getImageFileTypeByImageData=function(T,D){var F,N,_,P,k,j=t;if((D=D||t)==="RGBA"||T.data!==void 0&&T.data instanceof Uint8ClampedArray&&"height"in T&&"width"in T)return"RGBA";if(x(T))for(k in r)for(_=r[k],F=0;F<_.length;F+=1){for(P=!0,N=0;N<_[F].length;N+=1)if(_[F][N]!==void 0&&_[F][N]!==T[N]){P=!1;break}if(P===!0){j=k;break}}else for(k in r)for(_=r[k],F=0;F<_.length;F+=1){for(P=!0,N=0;N<_[F].length;N+=1)if(_[F][N]!==void 0&&_[F][N]!==T.charCodeAt(N)){P=!1;break}if(P===!0){j=k;break}}return j===t&&D!==t&&(j=D),j},a=function T(D){for(var F=this.internal.write,N=this.internal.putStream,_=(0,this.internal.getFilters)();_.indexOf("FlateEncode")!==-1;)_.splice(_.indexOf("FlateEncode"),1);D.objectId=this.internal.newObject();var P=[];if(P.push({key:"Type",value:"/XObject"}),P.push({key:"Subtype",value:"/Image"}),P.push({key:"Width",value:D.width}),P.push({key:"Height",value:D.height}),D.colorSpace===p.INDEXED?P.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(D.palette.length/3-1)+" "+("sMask"in D&&D.sMask!==void 0?D.objectId+2:D.objectId+1)+" 0 R]"}):(P.push({key:"ColorSpace",value:"/"+D.colorSpace}),D.colorSpace===p.DEVICE_CMYK&&P.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),P.push({key:"BitsPerComponent",value:D.bitsPerComponent}),"decodeParameters"in D&&D.decodeParameters!==void 0&&P.push({key:"DecodeParms",value:"<<"+D.decodeParameters+">>"}),"transparency"in D&&Array.isArray(D.transparency)){for(var k="",j=0,Y=D.transparency.length;j<Y;j++)k+=D.transparency[j]+" "+D.transparency[j]+" ";P.push({key:"Mask",value:"["+k+"]"})}D.sMask!==void 0&&P.push({key:"SMask",value:D.objectId+1+" 0 R"});var X=D.filter!==void 0?["/"+D.filter]:void 0;if(N({data:D.data,additionalKeyValues:P,alreadyAppliedFilters:X,objectId:D.objectId}),F("endobj"),"sMask"in D&&D.sMask!==void 0){var K="/Predictor "+D.predictor+" /Colors 1 /BitsPerComponent "+D.bitsPerComponent+" /Columns "+D.width,U={width:D.width,height:D.height,colorSpace:"DeviceGray",bitsPerComponent:D.bitsPerComponent,decodeParameters:K,data:D.sMask};"filter"in D&&(U.filter=D.filter),T.call(this,U)}if(D.colorSpace===p.INDEXED){var H=this.internal.newObject();N({data:S(new Uint8Array(D.palette)),objectId:H}),F("endobj")}},i=function(){var T=this.internal.collections.addImage_images;for(var D in T)a.call(this,T[D])},o=function(){var T,D=this.internal.collections.addImage_images,F=this.internal.write;for(var N in D)F("/I"+(T=D[N]).index,T.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",o))},l=function(){var T=this.internal.collections.addImage_images;return s.call(this),T},c=function(){return Object.keys(this.internal.collections.addImage_images).length},A=function(T){return typeof e["process"+T.toUpperCase()]=="function"},u=function(T){return Ar(T)==="object"&&T.nodeType===1},d=function(T,D){if(T.nodeName==="IMG"&&T.hasAttribute("src")){var F=""+T.getAttribute("src");if(F.indexOf("data:image/")===0)return Lw(unescape(F).split("base64,").pop());var N=e.loadFile(F,!0);if(N!==void 0)return N}if(T.nodeName==="CANVAS"){if(T.width===0||T.height===0)throw new Error("Given canvas must have data. Canvas width: "+T.width+", height: "+T.height);var _;switch(D){case"PNG":_="image/png";break;case"WEBP":_="image/webp";break;case"JPEG":case"JPG":default:_="image/jpeg"}return Lw(T.toDataURL(_,1).split("base64,").pop())}},f=function(T){var D=this.internal.collections.addImage_images;if(D){for(var F in D)if(T===D[F].alias)return D[F]}},h=function(T,D,F){return T||D||(T=-96,D=-96),T<0&&(T=-1*F.width*72/T/this.internal.scaleFactor),D<0&&(D=-1*F.height*72/D/this.internal.scaleFactor),T===0&&(T=D*F.width/F.height),D===0&&(D=T*F.height/F.width),[T,D]},g=function(T,D,F,N,_,P){var k=h.call(this,F,N,_),j=this.internal.getCoordinateString,Y=this.internal.getVerticalCoordinateString,X=l.call(this);if(F=k[0],N=k[1],X[_.index]=_,P){P*=Math.PI/180;var K=Math.cos(P),U=Math.sin(P),H=function(V){return V.toFixed(4)},L=[H(K),H(U),H(-1*U),H(K),0,0,"cm"]}this.internal.write("q"),P?(this.internal.write([1,"0","0",1,j(T),Y(D+N),"cm"].join(" ")),this.internal.write(L.join(" ")),this.internal.write([j(F),"0","0",j(N),"0","0","cm"].join(" "))):this.internal.write([j(F),"0","0",j(N),j(T),Y(D+N),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+_.index+" Do"),this.internal.write("Q")},p=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var m=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},y=e.__addimage__.sHashCode=function(T){var D,F,N=0;if(typeof T=="string")for(F=T.length,D=0;D<F;D++)N=(N<<5)-N+T.charCodeAt(D),N|=0;else if(x(T))for(F=T.byteLength/2,D=0;D<F;D++)N=(N<<5)-N+T[D],N|=0;return N},C=e.__addimage__.validateStringAsBase64=function(T){(T=T||"").toString().trim();var D=!0;return T.length===0&&(D=!1),T.length%4!=0&&(D=!1),/^[A-Za-z0-9+/]+$/.test(T.substr(0,T.length-2))===!1&&(D=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(T.substr(-2))===!1&&(D=!1),D},w=e.__addimage__.extractImageFromDataUrl=function(T){if(T==null||!(T=T.trim()).startsWith("data:"))return null;var D=T.indexOf(",");return D<0?null:T.substring(0,D).trim().endsWith("base64")?T.substring(D+1):null},B=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(T){return B()&&T instanceof ArrayBuffer};var x=e.__addimage__.isArrayBufferView=function(T){return B()&&typeof Uint32Array<"u"&&(T instanceof Int8Array||T instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&T instanceof Uint8ClampedArray||T instanceof Int16Array||T instanceof Uint16Array||T instanceof Int32Array||T instanceof Uint32Array||T instanceof Float32Array||T instanceof Float64Array)},M=e.__addimage__.binaryStringToUint8Array=function(T){for(var D=T.length,F=new Uint8Array(D),N=0;N<D;N++)F[N]=T.charCodeAt(N);return F},S=e.__addimage__.arrayBufferToBinaryString=function(T){for(var D="",F=x(T)?T:new Uint8Array(T),N=0;N<F.length;N+=8192)D+=String.fromCharCode.apply(null,F.subarray(N,N+8192));return D};e.addImage=function(){var T,D,F,N,_,P,k,j,Y;if(typeof arguments[1]=="number"?(D=t,F=arguments[1],N=arguments[2],_=arguments[3],P=arguments[4],k=arguments[5],j=arguments[6],Y=arguments[7]):(D=arguments[1],F=arguments[2],N=arguments[3],_=arguments[4],P=arguments[5],k=arguments[6],j=arguments[7],Y=arguments[8]),Ar(T=arguments[0])==="object"&&!u(T)&&"imageData"in T){var X=T;T=X.imageData,D=X.format||D||t,F=X.x||F||0,N=X.y||N||0,_=X.w||X.width||_,P=X.h||X.height||P,k=X.alias||k,j=X.compression||j,Y=X.rotation||X.angle||Y}var K=this.internal.getFilters();if(j===void 0&&K.indexOf("FlateEncode")!==-1&&(j="SLOW"),isNaN(F)||isNaN(N))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var U=R.call(this,T,D,k,j);return g.call(this,F,N,_,P,U,Y),this};var R=function(T,D,F,N){var _,P,k;if(typeof T=="string"&&n(T)===t){T=unescape(T);var j=b(T,!1);(j!==""||(j=e.loadFile(T,!0))!==void 0)&&(T=j)}if(u(T)&&(T=d(T,D)),D=n(T,D),!A(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(((k=F)==null||k.length===0)&&(F=(function(Y){return typeof Y=="string"||x(Y)?y(Y):x(Y.data)?y(Y.data):null})(T)),(_=f.call(this,F))||(B()&&(T instanceof Uint8Array||D==="RGBA"||(P=T,T=M(T))),_=this["process"+D.toUpperCase()](T,c.call(this),F,(function(Y){return Y&&typeof Y=="string"&&(Y=Y.toUpperCase()),Y in e.image_compression?Y:m.NONE})(N),P)),!_)throw new Error("An unknown error occurred whilst processing the image.");return _},b=e.__addimage__.convertBase64ToBinaryString=function(T,D){D=typeof D!="boolean"||D;var F,N="";if(typeof T=="string"){var _;F=(_=w(T))!==null&&_!==void 0?_:T;try{N=Lw(F)}catch(P){if(D)throw C(F)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+P.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return N};e.getImageProperties=function(T){var D,F,N="";if(u(T)&&(T=d(T)),typeof T=="string"&&n(T)===t&&((N=b(T,!1))===""&&(N=e.loadFile(T)||""),T=N),F=n(T),!A(F))throw new Error("addImage does not support files of type '"+F+"', please ensure that a plugin for '"+F+"' support is added.");if(!B()||T instanceof Uint8Array||(T=M(T)),!(D=this["process"+F.toUpperCase()](T)))throw new Error("An unknown error occurred whilst processing the image");return D.fileType=F,D}})(bn.API),(function(e){var t=function(r){if(r!==void 0&&r!="")return!0};bn.API.events.push(["addPage",function(r){this.internal.getPageInfo(r.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(r){for(var n,a,i,o=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString,l=this.internal.getPageInfoByObjId(r.objId),c=r.pageContext.annotations,A=!1,u=0;u<c.length&&!A;u++)switch((n=c[u]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(A=!0);break;case"reference":case"text":case"freetext":A=!0}if(A!=0){this.internal.write("/Annots [");for(var d=0;d<c.length;d++){n=c[d];var f=this.internal.pdfEscape,h=this.internal.getEncryptor(r.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var g=this.internal.newAdditionalObject(),p=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(g.objId),y=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(a="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y)+"] ")+"/Contents ("+f(m(n.contents))+")",i+=" /Popup "+p.objId+" 0 R",i+=" /P "+l.objId+" 0 R",i+=" /T ("+f(m(y))+") >>",g.content=i;var C=g.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+o(n.bounds.x+30)+" "+s(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+s(n.bounds.y)+"] ")+" /Parent "+C,n.open&&(i+=" /Open true"),i+=" >>",p.content=i,this.internal.write(g.objId,"0 R",p.objId,"0 R");break;case"freetext":a="/Rect ["+o(n.bounds.x)+" "+s(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+s(n.bounds.y+n.bounds.h)+"] ";var w=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+f(h(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+w+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var B=this.annotations._nameMap[n.options.name];n.options.pageNumber=B.page,n.options.top=B.y}else n.options.top||(n.options.top=0);if(a="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+f(h(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;case"XYZ":default:var x=s(n.options.top);n.options.left=n.options.left||0,n.options.zoom===void 0&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+x+" "+n.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(r){var n=this.internal.getCurrentPageInfo();switch(r.type){case"link":this.link(r.bounds.x,r.bounds.y,r.bounds.w,r.bounds.h,r);break;case"text":case"freetext":n.pageContext.annotations.push(r)}},e.link=function(r,n,a,i,o){var s=this.internal.getCurrentPageInfo(),l=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString;s.pageContext.annotations.push({finalBounds:{x:l(r),y:c(n),w:l(r+a),h:c(n+i)},options:o,type:"link"})},e.textWithLink=function(r,n,a,i){var o,s,l=this.getTextWidth(r),c=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){s=i.maxWidth;var A=this.splitTextToSize(r,s).length;o=Math.ceil(c*A)}else s=l,o=c;return this.text(r,n,a,i),a+=.2*c,i.align==="center"&&(n-=l/2),i.align==="right"&&(n-=l),this.link(n,a-c,s,o,i),l},e.getTextWidth=function(r){var n=this.internal.getFontSize();return this.getStringUnitWidth(r)*n/this.internal.scaleFactor}})(bn.API),(function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},r={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},n={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(g){return t[g.charCodeAt(0)]!==void 0},o=e.__arabicParser__.isArabicLetter=function(g){return typeof g=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(g)},s=e.__arabicParser__.isArabicEndLetter=function(g){return o(g)&&i(g)&&t[g.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(g){return o(g)&&a.indexOf(g.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(g){return o(g)&&i(g)&&t[g.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(g){return o(g)&&i(g)&&t[g.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(g){return o(g)&&i(g)&&t[g.charCodeAt(0)].length>=3};var A=e.__arabicParser__.arabicLetterHasMedialForm=function(g){return o(g)&&i(g)&&t[g.charCodeAt(0)].length==4},u=e.__arabicParser__.resolveLigatures=function(g){var p=0,m=r,y="",C=0;for(p=0;p<g.length;p+=1)m[g.charCodeAt(p)]!==void 0?(C++,typeof(m=m[g.charCodeAt(p)])=="number"&&(y+=String.fromCharCode(m),m=r,C=0),p===g.length-1&&(m=r,y+=g.charAt(p-(C-1)),p-=C-1,C=0)):(m=r,y+=g.charAt(p-C),p-=C,C=0);return y};e.__arabicParser__.isArabicDiacritic=function(g){return g!==void 0&&n[g.charCodeAt(0)]!==void 0};var d=e.__arabicParser__.getCorrectForm=function(g,p,m){return o(g)?i(g)===!1?-1:!c(g)||!o(p)&&!o(m)||!o(m)&&s(p)||s(g)&&!o(p)||s(g)&&l(p)||s(g)&&s(p)?0:A(g)&&o(p)&&!s(p)&&o(m)&&c(m)?3:s(g)||!o(m)?1:2:-1},f=function(g){var p=0,m=0,y=0,C="",w="",B="",x=(g=g||"").split("\\s+"),M=[];for(p=0;p<x.length;p+=1){for(M.push(""),m=0;m<x[p].length;m+=1)C=x[p][m],w=x[p][m-1],B=x[p][m+1],o(C)?(y=d(C,w,B),M[p]+=y!==-1?String.fromCharCode(t[C.charCodeAt(0)][y]):C):M[p]+=C;M[p]=u(M[p])}return M.join(" ")},h=e.__arabicParser__.processArabic=e.processArabic=function(){var g,p=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,m=[];if(Array.isArray(p)){var y=0;for(m=[],y=0;y<p.length;y+=1)Array.isArray(p[y])?m.push([f(p[y][0]),p[y][1],p[y][2]]):m.push([f(p[y])]);g=m}else g=f(p);return typeof arguments[0]=="string"?g:(arguments[0].text=g,arguments[0])};e.events.push(["preProcessText",h])})(bn.API),bn.API.autoPrint=function(e){var t;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",(function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){this.internal.out("/OpenAction "+t+" 0 R")}))}return this},(function(e){var t=function(){var r=void 0;Object.defineProperty(this,"pdf",{get:function(){return r},set:function(s){r=s}});var n=150;Object.defineProperty(this,"width",{get:function(){return n},set:function(s){n=isNaN(s)||Number.isInteger(s)===!1||s<0?150:s,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=n+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(s){a=isNaN(s)||Number.isInteger(s)===!1||s<0?300:s,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(s){i=s}});var o={};Object.defineProperty(this,"style",{get:function(){return o},set:function(s){o=s}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(r,n){var a;if((r=r||"2d")!=="2d")return null;for(a in n)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=n[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(bn.API),(function(e){var t={left:0,top:0,bottom:0,right:0},r=!1,n=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var l=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return l},set:function(g){l=g}});var c=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return c},set:function(g){c=g}});var A=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return A},set:function(g){A=g}});var u=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return u},set:function(g){u=g}});var d=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return d},set:function(g){d=g}});var f=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return f},set:function(g){f=g}});var h=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return h},set:function(g){h=g}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(l){return n.call(this),this.internal.__cell__.headerFunction=typeof l=="function"?l:void 0,this},e.getTextDimensions=function(l,c){n.call(this);var A=(c=c||{}).fontSize||this.getFontSize(),u=c.font||this.getFont(),d=c.scaleFactor||this.internal.scaleFactor,f=0,h=0,g=0,p=this;if(!Array.isArray(l)&&typeof l!="string"){if(typeof l!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");l=String(l)}var m=c.maxWidth;m>0?typeof l=="string"?l=this.splitTextToSize(l,m):Object.prototype.toString.call(l)==="[object Array]"&&(l=l.reduce((function(C,w){return C.concat(p.splitTextToSize(w,m))}),[])):l=Array.isArray(l)?l:[l];for(var y=0;y<l.length;y++)f<(g=this.getStringUnitWidth(l[y],{font:u})*A)&&(f=g);return f!==0&&(h=l.length),{w:f/=d,h:Math.max((h*A*this.getLineHeightFactor()-A*(this.getLineHeightFactor()-1))/d,0)}},e.cellAddPage=function(){n.call(this),this.addPage();var l=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new i(l.left,l.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var o=e.cell=function(){var l;l=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),n.call(this);var c=this.internal.__cell__.lastCell,A=this.internal.__cell__.padding,u=this.internal.__cell__.margins||t,d=this.internal.__cell__.tableHeaderRow,f=this.internal.__cell__.printHeaders;return c.lineNumber!==void 0&&(c.lineNumber===l.lineNumber?(l.x=(c.x||0)+(c.width||0),l.y=c.y||0):c.y+c.height+l.height+u.bottom>this.getPageHeight()?(this.cellAddPage(),l.y=u.top,f&&d&&(this.printHeaderRow(l.lineNumber,!0),l.y+=d[0].height)):l.y=c.y+c.height||l.y),l.text[0]!==void 0&&(this.rect(l.x,l.y,l.width,l.height,r===!0?"FD":void 0),l.align==="right"?this.text(l.text,l.x+l.width-A,l.y+A,{align:"right",baseline:"top"}):l.align==="center"?this.text(l.text,l.x+l.width/2,l.y+A,{align:"center",baseline:"top",maxWidth:l.width-A-A}):this.text(l.text,l.x+A,l.y+A,{align:"left",baseline:"top",maxWidth:l.width-A-A})),this.internal.__cell__.lastCell=l,this};e.table=function(l,c,A,u,d){if(n.call(this),!A)throw new Error("No data for PDF table.");var f,h,g,p,m=[],y=[],C=[],w={},B={},x=[],M=[],S=(d=d||{}).autoSize||!1,R=d.printHeaders!==!1,b=d.css&&d.css["font-size"]!==void 0?16*d.css["font-size"]:d.fontSize||12,T=d.margins||Object.assign({width:this.getPageWidth()},t),D=typeof d.padding=="number"?d.padding:3,F=d.headerBackgroundColor||"#c8c8c8",N=d.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=R,this.internal.__cell__.margins=T,this.internal.__cell__.table_font_size=b,this.internal.__cell__.padding=D,this.internal.__cell__.headerBackgroundColor=F,this.internal.__cell__.headerTextColor=N,this.setFontSize(b),u==null)y=m=Object.keys(A[0]),C=m.map((function(){return"left"}));else if(Array.isArray(u)&&Ar(u[0])==="object")for(m=u.map((function(X){return X.name})),y=u.map((function(X){return X.prompt||X.name||""})),C=u.map((function(X){return X.align||"left"})),f=0;f<u.length;f+=1)B[u[f].name]=u[f].width*(19.049976/25.4);else Array.isArray(u)&&typeof u[0]=="string"&&(y=m=u,C=m.map((function(){return"left"})));if(S||Array.isArray(u)&&typeof u[0]=="string")for(f=0;f<m.length;f+=1){for(w[p=m[f]]=A.map((function(X){return X[p]})),this.setFont(void 0,"bold"),x.push(this.getTextDimensions(y[f],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=w[p],this.setFont(void 0,"normal"),g=0;g<h.length;g+=1)x.push(this.getTextDimensions(h[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);B[p]=Math.max.apply(null,x)+D+D,x=[]}if(R){var _={};for(f=0;f<m.length;f+=1)_[m[f]]={},_[m[f]].text=y[f],_[m[f]].align=C[f];var P=s.call(this,_,B);M=m.map((function(X){return new i(l,c,B[X],P,_[X].text,void 0,_[X].align)})),this.setTableHeaderRow(M),this.printHeaderRow(1,!1)}var k=u.reduce((function(X,K){return X[K.name]=K.align,X}),{});for(f=0;f<A.length;f+=1){"rowStart"in d&&d.rowStart instanceof Function&&d.rowStart({row:f,data:A[f]},this);var j=s.call(this,A[f],B);for(g=0;g<m.length;g+=1){var Y=A[f][m[g]];"cellStart"in d&&d.cellStart instanceof Function&&d.cellStart({row:f,col:g,data:Y},this),o.call(this,new i(l,c,B[m[g]],j,Y,f+2,k[m[g]]))}}return this.internal.__cell__.table_x=l,this.internal.__cell__.table_y=c,this};var s=function(l,c){var A=this.internal.__cell__.padding,u=this.internal.__cell__.table_font_size,d=this.internal.scaleFactor;return Object.keys(l).map((function(f){var h=l[f];return this.splitTextToSize(h.hasOwnProperty("text")?h.text:h,c[f]-A-A)}),this).map((function(f){return this.getLineHeightFactor()*f.length*u/d+A+A}),this).reduce((function(f,h){return Math.max(f,h)}),0)};e.setTableHeaderRow=function(l){n.call(this),this.internal.__cell__.tableHeaderRow=l},e.printHeaderRow=function(l,c){if(n.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var A;if(r=!0,typeof this.internal.__cell__.headerFunction=="function"){var u=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(u[0],u[1],u[2],u[3],void 0,-1)}this.setFont(void 0,"bold");for(var d=[],f=0;f<this.internal.__cell__.tableHeaderRow.length;f+=1){A=this.internal.__cell__.tableHeaderRow[f].clone(),c&&(A.y=this.internal.__cell__.margins.top||0,d.push(A)),A.lineNumber=l;var h=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),o.call(this,A),this.setTextColor(h)}d.length>0&&this.setTableHeaderRow(d),this.setFont(void 0,"normal"),r=!1}})(bn.API);var rxe={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},nxe=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],cL=txe(nxe),axe=[100,200,300,400,500,600,700,800,900],qft=txe(axe);function AL(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),r=(function(i){return rxe[i=i||"normal"]?i:"normal"})(e.style),n=(function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}})(e.weight),a=(function(i){return typeof cL[i=i||"normal"]=="number"?i:"normal"})(e.stretch);return{family:t,style:r,weight:n,stretch:a,src:e.src||[],ref:e.ref||{name:t,style:[a,r,n].join(" ")}}}function Jre(e,t,r,n){var a;for(a=r;a>=0&&a<t.length;a+=n)if(e[t[a]])return e[t[a]];for(a=r;a>=0&&a<t.length;a-=n)if(e[t[a]])return e[t[a]]}var Zft={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Wre={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Xre(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function $ft(e,t,r){for(var n=(r=r||{}).defaultFontFamily||"times",a=Object.assign({},Zft,r.genericFontFamilies||{}),i=null,o=null,s=0;s<t.length;++s)if(a[(i=AL(t[s])).family]&&(i.family=a[i.family]),e.hasOwnProperty(i.family)){o=e[i.family];break}if(!(o=o||e[n]))throw new Error("Could not find a font-family for the rule '"+Xre(i)+"' and default family '"+n+"'.");if(o=(function(l,c){if(c[l])return c[l];var A=cL[l],u=A<=cL.normal?-1:1,d=Jre(c,nxe,A,u);if(!d)throw new Error("Could not find a matching font-stretch value for "+l);return d})(i.stretch,o),o=(function(l,c){if(c[l])return c[l];for(var A=rxe[l],u=0;u<A.length;++u)if(c[A[u]])return c[A[u]];throw new Error("Could not find a matching font-style for "+l)})(i.style,o),!(o=(function(l,c){if(c[l])return c[l];if(l===400&&c[500])return c[500];if(l===500&&c[400])return c[400];var A=qft[l],u=Jre(c,axe,A,l<400?-1:1);if(!u)throw new Error("Could not find a matching font-weight for value "+l);return u})(i.weight,o)))throw new Error("Failed to resolve a font for the rule '"+Xre(i)+"'.");return o}function qre(e){return e.trimLeft()}function eht(e,t){for(var r=0;r<e.length;){if(e.charAt(r)===t)return[e.substring(0,r),e.substring(r+1)];r+=1}return null}function tht(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],e.substring(t[0].length)]}var CI,Zre,$re,eP=["times"];(function(e){var t,r,n,a,i,o,s,l,c,A=function(U){return U=U||{},this.isStrokeTransparent=U.isStrokeTransparent||!1,this.strokeOpacity=U.strokeOpacity||1,this.strokeStyle=U.strokeStyle||"#000000",this.fillStyle=U.fillStyle||"#000000",this.isFillTransparent=U.isFillTransparent||!1,this.fillOpacity=U.fillOpacity||1,this.font=U.font||"10px sans-serif",this.textBaseline=U.textBaseline||"alphabetic",this.textAlign=U.textAlign||"left",this.lineWidth=U.lineWidth||1,this.lineJoin=U.lineJoin||"miter",this.lineCap=U.lineCap||"butt",this.path=U.path||[],this.transform=U.transform!==void 0?U.transform.clone():new l,this.globalCompositeOperation=U.globalCompositeOperation||"normal",this.globalAlpha=U.globalAlpha||1,this.clip_path=U.clip_path||[],this.currentPoint=U.currentPoint||new o,this.miterLimit=U.miterLimit||10,this.lastPoint=U.lastPoint||new o,this.lineDashOffset=U.lineDashOffset||0,this.lineDash=U.lineDash||[],this.margin=U.margin||[0,0,0,0],this.prevPageLastElemOffset=U.prevPageLastElemOffset||0,this.ignoreClearRect=typeof U.ignoreClearRect!="boolean"||U.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new u(this),t=this.internal.f2,r=this.internal.getCoordinateString,n=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new A}]);var u=function(U){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var H=U;Object.defineProperty(this,"pdf",{get:function(){return H}});var L=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return L},set:function(ve){L=!!ve}});var V=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return V},set:function(ve){V=!!ve}});var J=0;Object.defineProperty(this,"posX",{get:function(){return J},set:function(ve){isNaN(ve)||(J=ve)}});var ee=0;Object.defineProperty(this,"posY",{get:function(){return ee},set:function(ve){isNaN(ve)||(ee=ve)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(ve){var de;typeof ve=="number"?de=[ve,ve,ve,ve]:((de=new Array(4))[0]=ve[0],de[1]=ve.length>=2?ve[1]:de[0],de[2]=ve.length>=3?ve[2]:de[0],de[3]=ve.length>=4?ve[3]:de[1]),c.margin=de}});var ae=!1;Object.defineProperty(this,"autoPaging",{get:function(){return ae},set:function(ve){ae=ve}});var ne=0;Object.defineProperty(this,"lastBreak",{get:function(){return ne},set:function(ve){ne=ve}});var fe=[];Object.defineProperty(this,"pageBreaks",{get:function(){return fe},set:function(ve){fe=ve}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(ve){ve instanceof A&&(c=ve)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(ve){c.path=ve}});var he=[];Object.defineProperty(this,"ctxStack",{get:function(){return he},set:function(ve){he=ve}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(ve){var de;de=d(ve),this.ctx.fillStyle=de.style,this.ctx.isFillTransparent=de.a===0,this.ctx.fillOpacity=de.a,this.pdf.setFillColor(de.r,de.g,de.b,{a:de.a}),this.pdf.setTextColor(de.r,de.g,de.b,{a:de.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(ve){var de=d(ve);this.ctx.strokeStyle=de.style,this.ctx.isStrokeTransparent=de.a===0,this.ctx.strokeOpacity=de.a,de.a===0?this.pdf.setDrawColor(255,255,255):(de.a,this.pdf.setDrawColor(de.r,de.g,de.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(ve){["butt","round","square"].indexOf(ve)!==-1&&(this.ctx.lineCap=ve,this.pdf.setLineCap(ve))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(ve){isNaN(ve)||(this.ctx.lineWidth=ve,this.pdf.setLineWidth(ve))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(ve){["bevel","round","miter"].indexOf(ve)!==-1&&(this.ctx.lineJoin=ve,this.pdf.setLineJoin(ve))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(ve){isNaN(ve)||(this.ctx.miterLimit=ve,this.pdf.setMiterLimit(ve))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(ve){this.ctx.textBaseline=ve}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(ve){["right","end","center","left","start"].indexOf(ve)!==-1&&(this.ctx.textAlign=ve)}});var ye=null;function be(ve,de){if(ye===null){var Ue=(function(at){var Ve=[];return Object.keys(at).forEach((function(Ie){at[Ie].forEach((function(we){var Re=null;switch(we){case"bold":Re={family:Ie,weight:"bold"};break;case"italic":Re={family:Ie,style:"italic"};break;case"bolditalic":Re={family:Ie,weight:"bold",style:"italic"};break;case"":case"normal":Re={family:Ie}}Re!==null&&(Re.ref={name:Ie,style:we},Ve.push(Re))}))})),Ve})(ve.getFontList());ye=(function(at){for(var Ve={},Ie=0;Ie<at.length;++Ie){var we=AL(at[Ie]),Re=we.family,Te=we.stretch,Ke=we.style,mt=we.weight;Ve[Re]=Ve[Re]||{},Ve[Re][Te]=Ve[Re][Te]||{},Ve[Re][Te][Ke]=Ve[Re][Te][Ke]||{},Ve[Re][Te][Ke][mt]=we}return Ve})(Ue.concat(de))}return ye}var Se=null;Object.defineProperty(this,"fontFaces",{get:function(){return Se},set:function(ve){ye=null,Se=ve}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(ve){var de;if(this.ctx.font=ve,(de=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(ve))!==null){var Ue=de[1];de[2];var at=de[3],Ve=de[4];de[5];var Ie=de[6],we=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ve)[2];Ve=Math.floor(we==="px"?parseFloat(Ve)*this.pdf.internal.scaleFactor:we==="em"?parseFloat(Ve)*this.pdf.getFontSize():parseFloat(Ve)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ve);var Re=(function(At){var $e,ce,qe=[],ct=At.trim();if(ct==="")return eP;if(ct in Wre)return[Wre[ct]];for(;ct!=="";){switch(ce=null,$e=(ct=qre(ct)).charAt(0)){case'"':case"'":ce=eht(ct.substring(1),$e);break;default:ce=tht(ct)}if(ce===null||(qe.push(ce[0]),(ct=qre(ce[1]))!==""&&ct.charAt(0)!==","))return eP;ct=ct.replace(/^,/,"")}return qe})(Ie);if(this.fontFaces){var Te=$ft(be(this.pdf,this.fontFaces),Re.map((function(At){return{family:At,stretch:"normal",weight:at,style:Ue}})));this.pdf.setFont(Te.ref.name,Te.ref.style)}else{var Ke="";(at==="bold"||parseInt(at,10)>=700||Ue==="bold")&&(Ke="bold"),Ue==="italic"&&(Ke+="italic"),Ke.length===0&&(Ke="normal");for(var mt="",tt={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},rt=0;rt<Re.length;rt++){if(this.pdf.internal.getFont(Re[rt],Ke,{noFallback:!0,disableWarning:!0})!==void 0){mt=Re[rt];break}if(Ke==="bolditalic"&&this.pdf.internal.getFont(Re[rt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)mt=Re[rt],Ke="bold";else if(this.pdf.internal.getFont(Re[rt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){mt=Re[rt],Ke="normal";break}}if(mt===""){for(var lt=0;lt<Re.length;lt++)if(tt[Re[lt]]){mt=tt[Re[lt]];break}}mt=mt===""?"Times":mt,this.pdf.setFont(mt,Ke)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(ve){this.ctx.globalCompositeOperation=ve}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(ve){this.ctx.globalAlpha=ve}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(ve){this.ctx.lineDashOffset=ve,K.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ve){this.ctx.lineDash=ve,K.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ve){this.ctx.ignoreClearRect=!!ve}})};u.prototype.setLineDash=function(U){this.lineDash=U},u.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},u.prototype.fill=function(){w.call(this,"fill",!1)},u.prototype.stroke=function(){w.call(this,"stroke",!1)},u.prototype.beginPath=function(){this.path=[{type:"begin"}]},u.prototype.moveTo=function(U,H){if(isNaN(U)||isNaN(H))throw Ja.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var L=this.ctx.transform.applyToPoint(new o(U,H));this.path.push({type:"mt",x:L.x,y:L.y}),this.ctx.lastPoint=new o(U,H)},u.prototype.closePath=function(){var U=new o(0,0),H=0;for(H=this.path.length-1;H!==-1;H--)if(this.path[H].type==="begin"&&Ar(this.path[H+1])==="object"&&typeof this.path[H+1].x=="number"){U=new o(this.path[H+1].x,this.path[H+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(U.x,U.y)},u.prototype.lineTo=function(U,H){if(isNaN(U)||isNaN(H))throw Ja.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var L=this.ctx.transform.applyToPoint(new o(U,H));this.path.push({type:"lt",x:L.x,y:L.y}),this.ctx.lastPoint=new o(L.x,L.y)},u.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),w.call(this,null,!0)},u.prototype.quadraticCurveTo=function(U,H,L,V){if(isNaN(L)||isNaN(V)||isNaN(U)||isNaN(H))throw Ja.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var J=this.ctx.transform.applyToPoint(new o(L,V)),ee=this.ctx.transform.applyToPoint(new o(U,H));this.path.push({type:"qct",x1:ee.x,y1:ee.y,x:J.x,y:J.y}),this.ctx.lastPoint=new o(J.x,J.y)},u.prototype.bezierCurveTo=function(U,H,L,V,J,ee){if(isNaN(J)||isNaN(ee)||isNaN(U)||isNaN(H)||isNaN(L)||isNaN(V))throw Ja.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var ae=this.ctx.transform.applyToPoint(new o(J,ee)),ne=this.ctx.transform.applyToPoint(new o(U,H)),fe=this.ctx.transform.applyToPoint(new o(L,V));this.path.push({type:"bct",x1:ne.x,y1:ne.y,x2:fe.x,y2:fe.y,x:ae.x,y:ae.y}),this.ctx.lastPoint=new o(ae.x,ae.y)},u.prototype.arc=function(U,H,L,V,J,ee){if(isNaN(U)||isNaN(H)||isNaN(L)||isNaN(V)||isNaN(J))throw Ja.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ee=!!ee,!this.ctx.transform.isIdentity){var ae=this.ctx.transform.applyToPoint(new o(U,H));U=ae.x,H=ae.y;var ne=this.ctx.transform.applyToPoint(new o(0,L)),fe=this.ctx.transform.applyToPoint(new o(0,0));L=Math.sqrt(Math.pow(ne.x-fe.x,2)+Math.pow(ne.y-fe.y,2))}Math.abs(J-V)>=2*Math.PI&&(V=0,J=2*Math.PI),this.path.push({type:"arc",x:U,y:H,radius:L,startAngle:V,endAngle:J,counterclockwise:ee})},u.prototype.arcTo=function(U,H,L,V,J){throw new Error("arcTo not implemented.")},u.prototype.rect=function(U,H,L,V){if(isNaN(U)||isNaN(H)||isNaN(L)||isNaN(V))throw Ja.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(U,H),this.lineTo(U+L,H),this.lineTo(U+L,H+V),this.lineTo(U,H+V),this.lineTo(U,H),this.lineTo(U+L,H),this.lineTo(U,H)},u.prototype.fillRect=function(U,H,L,V){if(isNaN(U)||isNaN(H)||isNaN(L)||isNaN(V))throw Ja.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!f.call(this)){var J={};this.lineCap!=="butt"&&(J.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(J.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(U,H,L,V),this.fill(),J.hasOwnProperty("lineCap")&&(this.lineCap=J.lineCap),J.hasOwnProperty("lineJoin")&&(this.lineJoin=J.lineJoin)}},u.prototype.strokeRect=function(U,H,L,V){if(isNaN(U)||isNaN(H)||isNaN(L)||isNaN(V))throw Ja.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");h.call(this)||(this.beginPath(),this.rect(U,H,L,V),this.stroke())},u.prototype.clearRect=function(U,H,L,V){if(isNaN(U)||isNaN(H)||isNaN(L)||isNaN(V))throw Ja.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(U,H,L,V))},u.prototype.save=function(U){U=typeof U!="boolean"||U;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,L=0;L<this.pdf.internal.getNumberOfPages();L++)this.pdf.setPage(L+1),this.pdf.internal.out("q");if(this.pdf.setPage(H),U){this.ctx.fontSize=this.pdf.internal.getFontSize();var V=new A(this.ctx);this.ctxStack.push(this.ctx),this.ctx=V}},u.prototype.restore=function(U){U=typeof U!="boolean"||U;for(var H=this.pdf.internal.getCurrentPageInfo().pageNumber,L=0;L<this.pdf.internal.getNumberOfPages();L++)this.pdf.setPage(L+1),this.pdf.internal.out("Q");this.pdf.setPage(H),U&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},u.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var d=function(U){var H,L,V,J;if(U.isCanvasGradient===!0&&(U=U.getColor()),!U)return{r:0,g:0,b:0,a:0,style:U};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(U))H=0,L=0,V=0,J=0;else{var ee=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(U);if(ee!==null)H=parseInt(ee[1]),L=parseInt(ee[2]),V=parseInt(ee[3]),J=1;else if((ee=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(U))!==null)H=parseInt(ee[1]),L=parseInt(ee[2]),V=parseInt(ee[3]),J=parseFloat(ee[4]);else{if(J=1,typeof U=="string"&&U.charAt(0)!=="#"){var ae=new WBe(U);U=ae.ok?ae.toHex():"#000000"}U.length===4?(H=U.substring(1,2),H+=H,L=U.substring(2,3),L+=L,V=U.substring(3,4),V+=V):(H=U.substring(1,3),L=U.substring(3,5),V=U.substring(5,7)),H=parseInt(H,16),L=parseInt(L,16),V=parseInt(V,16)}}return{r:H,g:L,b:V,a:J,style:U}},f=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},h=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};u.prototype.fillText=function(U,H,L,V){if(isNaN(H)||isNaN(L)||typeof U!="string")throw Ja.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(V=isNaN(V)?void 0:V,!f.call(this)){var J=j(this.ctx.transform.rotation),ee=this.ctx.transform.scaleX;D.call(this,{text:U,x:H,y:L,scale:ee,angle:J,align:this.textAlign,maxWidth:V})}},u.prototype.strokeText=function(U,H,L,V){if(isNaN(H)||isNaN(L)||typeof U!="string")throw Ja.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!h.call(this)){V=isNaN(V)?void 0:V;var J=j(this.ctx.transform.rotation),ee=this.ctx.transform.scaleX;D.call(this,{text:U,x:H,y:L,scale:ee,renderingMode:"stroke",angle:J,align:this.textAlign,maxWidth:V})}},u.prototype.measureText=function(U){if(typeof U!="string")throw Ja.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var H=this.pdf,L=this.pdf.internal.scaleFactor,V=H.internal.getFontSize(),J=H.getStringUnitWidth(U)*V/H.internal.scaleFactor,ee=function(ae){var ne=(ae=ae||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return ne}}),this};return new ee({width:J*=Math.round(96*L/72*1e4)/1e4})},u.prototype.scale=function(U,H){if(isNaN(U)||isNaN(H))throw Ja.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var L=new l(U,0,0,H,0,0);this.ctx.transform=this.ctx.transform.multiply(L)},u.prototype.rotate=function(U){if(isNaN(U))throw Ja.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var H=new l(Math.cos(U),Math.sin(U),-Math.sin(U),Math.cos(U),0,0);this.ctx.transform=this.ctx.transform.multiply(H)},u.prototype.translate=function(U,H){if(isNaN(U)||isNaN(H))throw Ja.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var L=new l(1,0,0,1,U,H);this.ctx.transform=this.ctx.transform.multiply(L)},u.prototype.transform=function(U,H,L,V,J,ee){if(isNaN(U)||isNaN(H)||isNaN(L)||isNaN(V)||isNaN(J)||isNaN(ee))throw Ja.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var ae=new l(U,H,L,V,J,ee);this.ctx.transform=this.ctx.transform.multiply(ae)},u.prototype.setTransform=function(U,H,L,V,J,ee){U=isNaN(U)?1:U,H=isNaN(H)?0:H,L=isNaN(L)?0:L,V=isNaN(V)?1:V,J=isNaN(J)?0:J,ee=isNaN(ee)?0:ee,this.ctx.transform=new l(U,H,L,V,J,ee)};var g=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};u.prototype.drawImage=function(U,H,L,V,J,ee,ae,ne,fe){var he=this.pdf.getImageProperties(U),ye=1,be=1,Se=1,ve=1;V!==void 0&&ne!==void 0&&(Se=ne/V,ve=fe/J,ye=he.width/V*ne/V,be=he.height/J*fe/J),ee===void 0&&(ee=H,ae=L,H=0,L=0),V!==void 0&&ne===void 0&&(ne=V,fe=J),V===void 0&&ne===void 0&&(ne=he.width,fe=he.height);for(var de,Ue=this.ctx.transform.decompose(),at=j(Ue.rotate.shx),Ve=new l,Ie=(Ve=(Ve=(Ve=Ve.multiply(Ue.translate)).multiply(Ue.skew)).multiply(Ue.scale)).applyToRectangle(new s(ee-H*Se,ae-L*ve,V*ye,J*be)),we=p.call(this,Ie),Re=[],Te=0;Te<we.length;Te+=1)Re.indexOf(we[Te])===-1&&Re.push(we[Te]);if(C(Re),this.autoPaging)for(var Ke=Re[0],mt=Re[Re.length-1],tt=Ke;tt<mt+1;tt++){this.pdf.setPage(tt);var rt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],lt=tt===1?this.posY+this.margin[0]:this.margin[0],At=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],$e=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ce=tt===1?0:At+(tt-2)*$e;if(this.ctx.clip_path.length!==0){var qe=this.path;de=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(de,this.posX+this.margin[3],-ce+lt+this.ctx.prevPageLastElemOffset),B.call(this,"fill",!0),this.path=qe}var ct=JSON.parse(JSON.stringify(Ie));ct=y([ct],this.posX+this.margin[3],-ce+lt+this.ctx.prevPageLastElemOffset)[0];var Tt=(tt>Ke||tt<mt)&&g.call(this);Tt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],rt,$e,null).clip().discardPath()),this.pdf.addImage(U,"JPEG",ct.x,ct.y,ct.w,ct.h,null,null,at),Tt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(U,"JPEG",Ie.x,Ie.y,Ie.w,Ie.h,null,null,at)};var p=function(U,H,L){var V=[];H=H||this.pdf.internal.pageSize.width,L=L||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var J=this.posY+this.ctx.prevPageLastElemOffset;switch(U.type){default:case"mt":case"lt":V.push(Math.floor((U.y+J)/L)+1);break;case"arc":V.push(Math.floor((U.y+J-U.radius)/L)+1),V.push(Math.floor((U.y+J+U.radius)/L)+1);break;case"qct":var ee=Y(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x,U.y);V.push(Math.floor((ee.y+J)/L)+1),V.push(Math.floor((ee.y+ee.h+J)/L)+1);break;case"bct":var ae=X(this.ctx.lastPoint.x,this.ctx.lastPoint.y,U.x1,U.y1,U.x2,U.y2,U.x,U.y);V.push(Math.floor((ae.y+J)/L)+1),V.push(Math.floor((ae.y+ae.h+J)/L)+1);break;case"rect":V.push(Math.floor((U.y+J)/L)+1),V.push(Math.floor((U.y+U.h+J)/L)+1)}for(var ne=0;ne<V.length;ne+=1)for(;this.pdf.internal.getNumberOfPages()<V[ne];)m.call(this);return V},m=function(){var U=this.fillStyle,H=this.strokeStyle,L=this.font,V=this.lineCap,J=this.lineWidth,ee=this.lineJoin;this.pdf.addPage(),this.fillStyle=U,this.strokeStyle=H,this.font=L,this.lineCap=V,this.lineWidth=J,this.lineJoin=ee},y=function(U,H,L){for(var V=0;V<U.length;V++)switch(U[V].type){case"bct":U[V].x2+=H,U[V].y2+=L;case"qct":U[V].x1+=H,U[V].y1+=L;case"mt":case"lt":case"arc":default:U[V].x+=H,U[V].y+=L}return U},C=function(U){return U.sort((function(H,L){return H-L}))},w=function(U,H){for(var L,V,J=this.fillStyle,ee=this.strokeStyle,ae=this.lineCap,ne=this.lineWidth,fe=Math.abs(ne*this.ctx.transform.scaleX),he=this.lineJoin,ye=JSON.parse(JSON.stringify(this.path)),be=JSON.parse(JSON.stringify(this.path)),Se=[],ve=0;ve<be.length;ve++)if(be[ve].x!==void 0)for(var de=p.call(this,be[ve]),Ue=0;Ue<de.length;Ue+=1)Se.indexOf(de[Ue])===-1&&Se.push(de[Ue]);for(var at=0;at<Se.length;at++)for(;this.pdf.internal.getNumberOfPages()<Se[at];)m.call(this);if(C(Se),this.autoPaging)for(var Ve=Se[0],Ie=Se[Se.length-1],we=Ve;we<Ie+1;we++){this.pdf.setPage(we),this.fillStyle=J,this.strokeStyle=ee,this.lineCap=ae,this.lineWidth=fe,this.lineJoin=he;var Re=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Te=we===1?this.posY+this.margin[0]:this.margin[0],Ke=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],mt=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],tt=we===1?0:Ke+(we-2)*mt;if(this.ctx.clip_path.length!==0){var rt=this.path;L=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(L,this.posX+this.margin[3],-tt+Te+this.ctx.prevPageLastElemOffset),B.call(this,U,!0),this.path=rt}if(V=JSON.parse(JSON.stringify(ye)),this.path=y(V,this.posX+this.margin[3],-tt+Te+this.ctx.prevPageLastElemOffset),H===!1||we===0){var lt=(we>Ve||we<Ie)&&g.call(this);lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Re,mt,null).clip().discardPath()),B.call(this,U,H),lt&&this.pdf.restoreGraphicsState()}this.lineWidth=ne}else this.lineWidth=fe,B.call(this,U,H),this.lineWidth=ne;this.path=ye},B=function(U,H){if((U!=="stroke"||H||!h.call(this))&&(U==="stroke"||H||!f.call(this))){for(var L,V,J=[],ee=this.path,ae=0;ae<ee.length;ae++){var ne=ee[ae];switch(ne.type){case"begin":J.push({begin:!0});break;case"close":J.push({close:!0});break;case"mt":J.push({start:ne,deltas:[],abs:[]});break;case"lt":var fe=J.length;if(ee[ae-1]&&!isNaN(ee[ae-1].x)&&(L=[ne.x-ee[ae-1].x,ne.y-ee[ae-1].y],fe>0)){for(;fe>=0;fe--)if(J[fe-1].close!==!0&&J[fe-1].begin!==!0){J[fe-1].deltas.push(L),J[fe-1].abs.push(ne);break}}break;case"bct":L=[ne.x1-ee[ae-1].x,ne.y1-ee[ae-1].y,ne.x2-ee[ae-1].x,ne.y2-ee[ae-1].y,ne.x-ee[ae-1].x,ne.y-ee[ae-1].y],J[J.length-1].deltas.push(L);break;case"qct":var he=ee[ae-1].x+2/3*(ne.x1-ee[ae-1].x),ye=ee[ae-1].y+2/3*(ne.y1-ee[ae-1].y),be=ne.x+2/3*(ne.x1-ne.x),Se=ne.y+2/3*(ne.y1-ne.y),ve=ne.x,de=ne.y;L=[he-ee[ae-1].x,ye-ee[ae-1].y,be-ee[ae-1].x,Se-ee[ae-1].y,ve-ee[ae-1].x,de-ee[ae-1].y],J[J.length-1].deltas.push(L);break;case"arc":J.push({deltas:[],abs:[],arc:!0}),Array.isArray(J[J.length-1].abs)&&J[J.length-1].abs.push(ne)}}V=H?null:U==="stroke"?"stroke":"fill";for(var Ue=!1,at=0;at<J.length;at++)if(J[at].arc)for(var Ve=J[at].abs,Ie=0;Ie<Ve.length;Ie++){var we=Ve[Ie];we.type==="arc"?S.call(this,we.x,we.y,we.radius,we.startAngle,we.endAngle,we.counterclockwise,void 0,H,!Ue):F.call(this,we.x,we.y),Ue=!0}else if(J[at].close===!0)this.pdf.internal.out("h"),Ue=!1;else if(J[at].begin!==!0){var Re=J[at].start.x,Te=J[at].start.y;N.call(this,J[at].deltas,Re,Te),Ue=!0}V&&R.call(this,V),H&&b.call(this)}},x=function(U){var H=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,L=H*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return U-L;case"top":return U+H-L;case"hanging":return U+H-2*L;case"middle":return U+H/2-L;case"ideographic":return U;case"alphabetic":default:return U}},M=function(U){return U+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};u.prototype.createLinearGradient=function(){var U=function(){};return U.colorStops=[],U.addColorStop=function(H,L){this.colorStops.push([H,L])},U.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},U.isCanvasGradient=!0,U},u.prototype.createPattern=function(){return this.createLinearGradient()},u.prototype.createRadialGradient=function(){return this.createLinearGradient()};var S=function(U,H,L,V,J,ee,ae,ne,fe){for(var he=P.call(this,L,V,J,ee),ye=0;ye<he.length;ye++){var be=he[ye];ye===0&&(fe?T.call(this,be.x1+U,be.y1+H):F.call(this,be.x1+U,be.y1+H)),_.call(this,U,H,be.x2,be.y2,be.x3,be.y3,be.x4,be.y4)}ne?b.call(this):R.call(this,ae)},R=function(U){switch(U){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},b=function(){this.pdf.clip(),this.pdf.discardPath()},T=function(U,H){this.pdf.internal.out(r(U)+" "+n(H)+" m")},D=function(U){var H;switch(U.align){case"right":case"end":H="right";break;case"center":H="center";break;case"left":case"start":default:H="left"}var L=this.pdf.getTextDimensions(U.text),V=x.call(this,U.y),J=M.call(this,V)-L.h,ee=this.ctx.transform.applyToPoint(new o(U.x,V)),ae=this.ctx.transform.decompose(),ne=new l;ne=(ne=(ne=ne.multiply(ae.translate)).multiply(ae.skew)).multiply(ae.scale);for(var fe,he,ye,be=this.ctx.transform.applyToRectangle(new s(U.x,V,L.w,L.h)),Se=ne.applyToRectangle(new s(U.x,J,L.w,L.h)),ve=p.call(this,Se),de=[],Ue=0;Ue<ve.length;Ue+=1)de.indexOf(ve[Ue])===-1&&de.push(ve[Ue]);if(C(de),this.autoPaging)for(var at=de[0],Ve=de[de.length-1],Ie=at;Ie<Ve+1;Ie++){this.pdf.setPage(Ie);var we=Ie===1?this.posY+this.margin[0]:this.margin[0],Re=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Te=this.pdf.internal.pageSize.height-this.margin[2],Ke=Te-this.margin[0],mt=this.pdf.internal.pageSize.width-this.margin[1],tt=mt-this.margin[3],rt=Ie===1?0:Re+(Ie-2)*Ke;if(this.ctx.clip_path.length!==0){var lt=this.path;fe=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=y(fe,this.posX+this.margin[3],-1*rt+we),B.call(this,"fill",!0),this.path=lt}var At=y([JSON.parse(JSON.stringify(Se))],this.posX+this.margin[3],-rt+we+this.ctx.prevPageLastElemOffset)[0];U.scale>=.01&&(he=this.pdf.internal.getFontSize(),this.pdf.setFontSize(he*U.scale),ye=this.lineWidth,this.lineWidth=ye*U.scale);var $e=this.autoPaging!=="text";if($e||At.y+At.h<=Te){if($e||At.y>=we&&At.x<=mt){var ce=$e?U.text:this.pdf.splitTextToSize(U.text,U.maxWidth||mt-At.x)[0],qe=y([JSON.parse(JSON.stringify(be))],this.posX+this.margin[3],-rt+we+this.ctx.prevPageLastElemOffset)[0],ct=$e&&(Ie>at||Ie<Ve)&&g.call(this);ct&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],tt,Ke,null).clip().discardPath()),this.pdf.text(ce,qe.x,qe.y,{angle:U.angle,align:H,renderingMode:U.renderingMode}),ct&&this.pdf.restoreGraphicsState()}}else At.y<Te&&(this.ctx.prevPageLastElemOffset+=Te-At.y);U.scale>=.01&&(this.pdf.setFontSize(he),this.lineWidth=ye)}else U.scale>=.01&&(he=this.pdf.internal.getFontSize(),this.pdf.setFontSize(he*U.scale),ye=this.lineWidth,this.lineWidth=ye*U.scale),this.pdf.text(U.text,ee.x+this.posX,ee.y+this.posY,{angle:U.angle,align:H,renderingMode:U.renderingMode,maxWidth:U.maxWidth}),U.scale>=.01&&(this.pdf.setFontSize(he),this.lineWidth=ye)},F=function(U,H,L,V){L=L||0,V=V||0,this.pdf.internal.out(r(U+L)+" "+n(H+V)+" l")},N=function(U,H,L){return this.pdf.lines(U,H,L,null,null)},_=function(U,H,L,V,J,ee,ae,ne){this.pdf.internal.out([t(a(L+U)),t(i(V+H)),t(a(J+U)),t(i(ee+H)),t(a(ae+U)),t(i(ne+H)),"c"].join(" "))},P=function(U,H,L,V){for(var J=2*Math.PI,ee=Math.PI/2;H>L;)H-=J;var ae=Math.abs(L-H);ae<J&&V&&(ae=J-ae);for(var ne=[],fe=V?-1:1,he=H;ae>1e-5;){var ye=he+fe*Math.min(ae,ee);ne.push(k.call(this,U,he,ye)),ae-=Math.abs(ye-he),he=ye}return ne},k=function(U,H,L){var V=(L-H)/2,J=U*Math.cos(V),ee=U*Math.sin(V),ae=J,ne=-ee,fe=ae*ae+ne*ne,he=fe+ae*J+ne*ee,ye=4/3*(Math.sqrt(2*fe*he)-he)/(ae*ee-ne*J),be=ae-ye*ne,Se=ne+ye*ae,ve=be,de=-Se,Ue=V+H,at=Math.cos(Ue),Ve=Math.sin(Ue);return{x1:U*Math.cos(H),y1:U*Math.sin(H),x2:be*at-Se*Ve,y2:be*Ve+Se*at,x3:ve*at-de*Ve,y3:ve*Ve+de*at,x4:U*Math.cos(L),y4:U*Math.sin(L)}},j=function(U){return 180*U/Math.PI},Y=function(U,H,L,V,J,ee){var ae=U+.5*(L-U),ne=H+.5*(V-H),fe=J+.5*(L-J),he=ee+.5*(V-ee),ye=Math.min(U,J,ae,fe),be=Math.max(U,J,ae,fe),Se=Math.min(H,ee,ne,he),ve=Math.max(H,ee,ne,he);return new s(ye,Se,be-ye,ve-Se)},X=function(U,H,L,V,J,ee,ae,ne){var fe,he,ye,be,Se,ve,de,Ue,at,Ve,Ie,we,Re,Te,Ke=L-U,mt=V-H,tt=J-L,rt=ee-V,lt=ae-J,At=ne-ee;for(he=0;he<41;he++)at=(de=(ye=U+(fe=he/40)*Ke)+fe*((Se=L+fe*tt)-ye))+fe*(Se+fe*(J+fe*lt-Se)-de),Ve=(Ue=(be=H+fe*mt)+fe*((ve=V+fe*rt)-be))+fe*(ve+fe*(ee+fe*At-ve)-Ue),he==0?(Ie=at,we=Ve,Re=at,Te=Ve):(Ie=Math.min(Ie,at),we=Math.min(we,Ve),Re=Math.max(Re,at),Te=Math.max(Te,Ve));return new s(Math.round(Ie),Math.round(we),Math.round(Re-Ie),Math.round(Te-we))},K=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var U,H,L=(U=this.ctx.lineDash,H=this.ctx.lineDashOffset,JSON.stringify({lineDash:U,lineDashOffset:H}));this.prevLineDash!==L&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=L)}}})(bn.API),(function(e){var t=function(i){var o,s,l,c,A,u,d,f,h,g;for(s=[],l=0,c=(i+=o="\0\0\0\0".slice(i.length%4||4)).length;c>l;l+=4)(A=(i.charCodeAt(l)<<24)+(i.charCodeAt(l+1)<<16)+(i.charCodeAt(l+2)<<8)+i.charCodeAt(l+3))!==0?(u=(A=((A=((A=((A=(A-(g=A%85))/85)-(h=A%85))/85)-(f=A%85))/85)-(d=A%85))/85)%85,s.push(u+33,d+33,f+33,h+33,g+33)):s.push(122);return(function(p,m){for(var y=m;y>0;y--)p.pop()})(s,o.length),String.fromCharCode.apply(String,s)+"~>"},r=function(i){var o,s,l,c,A,u=String,d="length",f=255,h="charCodeAt",g="slice",p="replace";for(i[g](-2),i=i[g](0,-2)[p](/\s/g,"")[p]("z","!!!!!"),l=[],c=0,A=(i+=o="uuuuu"[g](i[d]%5||5))[d];A>c;c+=5)s=52200625*(i[h](c)-33)+614125*(i[h](c+1)-33)+7225*(i[h](c+2)-33)+85*(i[h](c+3)-33)+(i[h](c+4)-33),l.push(f&s>>24,f&s>>16,f&s>>8,f&s);return(function(m,y){for(var C=y;C>0;C--)m.pop()})(l,o[d]),u.fromCharCode.apply(u,l)},n=function(i){var o=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),o.test(i)===!1)return"";for(var s="",l=0;l<i.length;l+=2)s+=String.fromCharCode("0x"+(i[l]+i[l+1]));return s},a=function(i){for(var o=new Uint8Array(i.length),s=i.length;s--;)o[s]=i.charCodeAt(s);return i=(o=aL(o)).reduce((function(l,c){return l+String.fromCharCode(c)}),"")};e.processDataByFilters=function(i,o){var s=0,l=i||"",c=[];for(typeof(o=o||[])=="string"&&(o=[o]),s=0;s<o.length;s+=1)switch(o[s]){case"ASCII85Decode":case"/ASCII85Decode":l=r(l),c.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":l=t(l),c.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":l=n(l),c.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":l=l.split("").map((function(A){return("0"+A.charCodeAt().toString(16)).slice(-2)})).join("")+">",c.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":l=a(l),c.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[s]+'" is not implemented')}return{data:l,reverseChain:c.reverse().join(" ")}}})(bn.API),(function(e){e.loadFile=function(t,r,n){return(function(a,i,o){i=i!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=(function(l,c,A){var u=new XMLHttpRequest,d=0,f=function(h){var g=h.length,p=[],m=String.fromCharCode;for(d=0;d<g;d+=1)p.push(m(255&h.charCodeAt(d)));return p.join("")};if(u.open("GET",l,!c),u.overrideMimeType("text/plain; charset=x-user-defined"),c===!1&&(u.onload=function(){u.status===200?A(f(this.responseText)):A(void 0)}),u.send(null),c&&u.status===200)return f(u.responseText)})(a,i,o)}catch{}return s})(t,r,n)},e.loadImageFile=e.loadFile})(bn.API),(function(e){function t(){return(Tn.html2canvas?Promise.resolve(Tn.html2canvas):oy(()=>import("./html2canvas.esm-B0tyYwQk.js"),[],import.meta.url)).catch((function(o){return Promise.reject(new Error("Could not load html2canvas: "+o))})).then((function(o){return o.default?o.default:o}))}function r(){return(Tn.DOMPurify?Promise.resolve(Tn.DOMPurify):oy(()=>import("./purify.es-CQJ0hv7W.js"),[],import.meta.url)).catch((function(o){return Promise.reject(new Error("Could not load dompurify: "+o))})).then((function(o){return o.default?o.default:o}))}var n=function(o){var s=Ar(o);return s==="undefined"?"undefined":s==="string"||o instanceof String?"string":s==="number"||o instanceof Number?"number":s==="function"||o instanceof Function?"function":o&&o.constructor===Array?"array":o&&o.nodeType===1?"element":s==="object"?"object":"unknown"},a=function(o,s){var l=document.createElement(o);for(var c in s.className&&(l.className=s.className),s.innerHTML&&s.dompurify&&(l.innerHTML=s.dompurify.sanitize(s.innerHTML)),s.style)l.style[c]=s.style[c];return l},i=function o(s){var l=Object.assign(o.convert(Promise.resolve()),JSON.parse(JSON.stringify(o.template))),c=o.convert(Promise.resolve(),l);return c=(c=c.setProgress(1,o,1,[o])).set(s)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(o,s){return o.__proto__=s||i.prototype,o},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(o,s){return this.then((function(){switch(s=s||(function(l){switch(n(l)){case"string":return"string";case"element":return l.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(o)){case"string":return this.then(r).then((function(l){return this.set({src:a("div",{innerHTML:o,dompurify:l})})}));case"element":return this.set({src:o});case"canvas":return this.set({canvas:o});case"img":return this.set({img:o});default:return this.error("Unknown source type.")}}))},i.prototype.to=function(o){switch(o){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then((function(){var o={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},s=(function l(c,A){for(var u=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),d=c.firstChild;d;d=d.nextSibling)A!==!0&&d.nodeType===1&&d.nodeName==="SCRIPT"||u.appendChild(l(d,A));return c.nodeType===1&&(c.nodeName==="CANVAS"?(u.width=c.width,u.height=c.height,u.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(u.value=c.value),u.addEventListener("load",(function(){u.scrollTop=c.scrollTop,u.scrollLeft=c.scrollLeft}),!0)),u})(this.prop.src,this.opt.html2canvas.javascriptEnabled);s.tagName==="BODY"&&(o.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:o}),this.prop.container.appendChild(s),this.prop.container.firstChild.appendChild(a("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"}))},i.prototype.toCanvas=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=Object.assign({},this.opt.html2canvas);return delete l.onrendered,s(this.prop.container,l)})).then((function(s){(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},i.prototype.toContext2d=function(){var o=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(o).then(t).then((function(s){var l=this.opt.jsPDF,c=this.opt.fontFaces,A=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,u=Object.assign({async:!0,allowTaint:!0,scale:A,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete u.onrendered,l.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,l.context2d.posX=this.opt.x,l.context2d.posY=this.opt.y,l.context2d.margin=this.opt.margin,l.context2d.fontFaces=c,c)for(var d=0;d<c.length;++d){var f=c[d],h=f.src.find((function(g){return g.format==="truetype"}));h&&l.addFont(h.url,f.ref.name,f.ref.style)}return u.windowHeight=u.windowHeight||0,u.windowHeight=u.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):u.windowHeight,l.context2d.save(!0),s(this.prop.container,u)})).then((function(s){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(s),this.prop.canvas=s,document.body.removeChild(this.prop.overlay)}))},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then((function(){var o=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=o}))},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then((function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF}))},i.prototype.output=function(o,s,l){return(l=l||"pdf").toLowerCase()==="img"||l.toLowerCase()==="image"?this.outputImg(o,s):this.outputPdf(o,s)},i.prototype.outputPdf=function(o,s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){return this.prop.pdf.output(o,s)}))},i.prototype.outputImg=function(o){return this.thenList([function(){return this.prop.img||this.toImg()}]).then((function(){switch(o){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+o+'" is not supported.'}}))},i.prototype.save=function(o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(o?{filename:o}:null).then((function(){this.prop.pdf.save(this.opt.filename)}))},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then((function(){this.prop.callback(this.prop.pdf)}))},i.prototype.set=function(o){if(n(o)!=="object")return this;var s=Object.keys(o||{}).map((function(l){if(l in i.template.prop)return function(){this.prop[l]=o[l]};switch(l){case"margin":return this.setMargin.bind(this,o.margin);case"jsPDF":return function(){return this.opt.jsPDF=o.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,o.pageSize);default:return function(){this.opt[l]=o[l]}}}),this);return this.then((function(){return this.thenList(s)}))},i.prototype.get=function(o,s){return this.then((function(){var l=o in i.template.prop?this.prop[o]:this.opt[o];return s?s(l):l}))},i.prototype.setMargin=function(o){return this.then((function(){switch(n(o)){case"number":o=[o,o,o,o];case"array":if(o.length===2&&(o=[o[0],o[1],o[0],o[1]]),o.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=o})).then(this.setPageSize)},i.prototype.setPageSize=function(o){function s(l,c){return Math.floor(l*c/72*96)}return this.then((function(){(o=o||bn.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(o.inner={width:o.width-this.opt.margin[1]-this.opt.margin[3],height:o.height-this.opt.margin[0]-this.opt.margin[2]},o.inner.px={width:s(o.inner.width,o.k),height:s(o.inner.height,o.k)},o.inner.ratio=o.inner.height/o.inner.width),this.prop.pageSize=o}))},i.prototype.setProgress=function(o,s,l,c){return o!=null&&(this.progress.val=o),s!=null&&(this.progress.state=s),l!=null&&(this.progress.n=l),c!=null&&(this.progress.stack=c),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(o,s,l,c){return this.setProgress(o?this.progress.val+o:null,s||null,l?this.progress.n+l:null,c?this.progress.stack.concat(c):null)},i.prototype.then=function(o,s){var l=this;return this.thenCore(o,s,(function(c,A){return l.updateProgress(null,null,1,[c]),Promise.prototype.then.call(this,(function(u){return l.updateProgress(null,c),u})).then(c,A).then((function(u){return l.updateProgress(1),u}))}))},i.prototype.thenCore=function(o,s,l){l=l||Promise.prototype.then,o&&(o=o.bind(this)),s&&(s=s.bind(this));var c=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),A=l.call(c,o,s);return i.convert(A,this.__proto__)},i.prototype.thenExternal=function(o,s){return Promise.prototype.then.call(this,o,s)},i.prototype.thenList=function(o){var s=this;return o.forEach((function(l){s=s.thenCore(l)})),s},i.prototype.catch=function(o){o&&(o=o.bind(this));var s=Promise.prototype.catch.call(this,o);return i.convert(s,this)},i.prototype.catchExternal=function(o){return Promise.prototype.catch.call(this,o)},i.prototype.error=function(o){return this.then((function(){throw new Error(o)}))},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,bn.getPageSize=function(o,s,l){if(Ar(o)==="object"){var c=o;o=c.orientation,s=c.unit||s,l=c.format||l}s=s||"mm",l=l||"a4",o=(""+(o||"P")).toLowerCase();var A,u=(""+l).toLowerCase(),d={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(s){case"pt":A=1;break;case"mm":A=72/25.4;break;case"cm":A=72/2.54;break;case"in":A=72;break;case"px":A=.75;break;case"pc":case"em":A=12;break;case"ex":A=6;break;default:throw"Invalid unit: "+s}var f,h=0,g=0;if(d.hasOwnProperty(u))h=d[u][1]/A,g=d[u][0]/A;else try{h=l[1],g=l[0]}catch{throw new Error("Invalid format: "+l)}if(o==="p"||o==="portrait")o="p",g>h&&(f=g,g=h,h=f);else{if(o!=="l"&&o!=="landscape")throw"Invalid orientation: "+o;o="l",h>g&&(f=g,g=h,h=f)}return{width:g,height:h,unit:s,k:A,orientation:o}},e.html=function(o,s){(s=s||{}).callback=s.callback||function(){},s.html2canvas=s.html2canvas||{},s.html2canvas.canvas=s.html2canvas.canvas||this.canvas,s.jsPDF=s.jsPDF||this,s.fontFaces=s.fontFaces?s.fontFaces.map(AL):null;var l=new i(s);return s.worker?l:l.from(o).doCallback()}})(bn.API),bn.API.addJS=function(e){return $re=e,this.internal.events.subscribe("postPutResources",(function(){CI=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(CI+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Zre=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+$re+")"),this.internal.out(">>"),this.internal.out("endobj")})),this.internal.events.subscribe("putCatalog",(function(){CI!==void 0&&Zre!==void 0&&this.internal.out("/Names <</JavaScript "+CI+" 0 R>>")})),this},(function(e){var t;e.events.push(["postPutResources",function(){var r=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=r.outline.render().split(/\r\n/),i=0;i<a.length;i++){var o=a[i],s=n.exec(o);if(s!=null){var l=s[1];r.internal.newObjectDeferredBegin(l,!1)}r.internal.write(o)}if(this.outline.createNamedDestinations){var c=this.internal.pages.length,A=[];for(i=0;i<c;i++){var u=r.internal.newObject();A.push(u);var d=r.internal.getPageInfo(i+1);r.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var f=r.internal.newObject();for(r.internal.write("<< /Names [ "),i=0;i<A.length;i++)r.internal.write("(page_"+(i+1)+")"+A[i]+" 0 R");r.internal.write(" ] >>","endobj"),t=r.internal.newObject(),r.internal.write("<< /Dests "+f+" 0 R"),r.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var r=this;r.outline={createNamedDestinations:!1,root:{children:[]}},r.outline.add=function(n,a,i){var o={title:a,options:i,children:[]};return n==null&&(n=this.root),n.children.push(o),o},r.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=r,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},r.outline.genIds_r=function(n){n.id=r.internal.newObjectDeferred();for(var a=0;a<n.children.length;a++)this.genIds_r(n.children[a])},r.outline.renderRoot=function(n){this.objStart(n),this.line("/Type /Outlines"),n.children.length>0&&(this.line("/First "+this.makeRef(n.children[0])),this.line("/Last "+this.makeRef(n.children[n.children.length-1]))),this.line("/Count "+this.count_r({count:0},n)),this.objEnd()},r.outline.renderItems=function(n){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<n.children.length;i++){var o=n.children[i];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(n)),i>0&&this.line("/Prev "+this.makeRef(n.children[i-1])),i<n.children.length-1&&this.line("/Next "+this.makeRef(n.children[i+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var l=r.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+l.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var c=0;c<n.children.length;c++)this.renderItems(n.children[c])},r.outline.line=function(n){this.ctx.val+=n+`\r
`},r.outline.makeRef=function(n){return n.id+" 0 R"},r.outline.makeString=function(n){return"("+r.internal.pdfEscape(n)+")"},r.outline.objStart=function(n){this.ctx.val+=`\r
`+n.id+` 0 obj\r
<<\r
`},r.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},r.outline.count_r=function(n,a){for(var i=0;i<a.children.length;i++)n.count++,this.count_r(n,a.children[i]);return n.count}}])})(bn.API),(function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(r,n,a,i,o,s){var l,c=this.decode.DCT_DECODE,A=null;if(typeof r=="string"||this.__addimage__.isArrayBuffer(r)||this.__addimage__.isArrayBufferView(r)){switch(r=o||r,r=this.__addimage__.isArrayBuffer(r)?new Uint8Array(r):r,(l=(function(u){for(var d,f=256*u.charCodeAt(4)+u.charCodeAt(5),h=u.length,g={width:0,height:0,numcomponents:1},p=4;p<h;p+=2){if(p+=f,t.indexOf(u.charCodeAt(p+1))!==-1){d=256*u.charCodeAt(p+5)+u.charCodeAt(p+6),g={width:256*u.charCodeAt(p+7)+u.charCodeAt(p+8),height:d,numcomponents:u.charCodeAt(p+9)};break}f=256*u.charCodeAt(p+2)+u.charCodeAt(p+3)}return g})(r=this.__addimage__.isArrayBufferView(r)?this.__addimage__.arrayBufferToBinaryString(r):r)).numcomponents){case 1:s=this.color_spaces.DEVICE_GRAY;break;case 4:s=this.color_spaces.DEVICE_CMYK;break;case 3:s=this.color_spaces.DEVICE_RGB}A={data:r,width:l.width,height:l.height,colorSpace:s,bitsPerComponent:8,filter:c,index:n,alias:a}}return A}})(bn.API);var y0,wI,ene,tne,rne,rht=(function(){var e,t,r;function n(i){var o,s,l,c,A,u,d,f,h,g,p,m,y,C;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},u=null;;){switch(o=this.readUInt32(),h=(function(){var w,B;for(B=[],w=0;w<4;++w)B.push(String.fromCharCode(this.data[this.pos++]));return B}).call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(o);break;case"fcTL":u&&this.animation.frames.push(u),this.pos+=4,u={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},A=this.readUInt16(),c=this.readUInt16()||100,u.delay=1e3*A/c,u.disposeOp=this.data[this.pos++],u.blendOp=this.data[this.pos++],u.data=[];break;case"IDAT":case"fdAT":for(h==="fdAT"&&(this.pos+=4,o-=4),i=u?.data||this.imgData,m=0;0<=o?m<o:m>o;0<=o?++m:--m)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(l=this.palette.length/3,this.transparency.indexed=this.read(o),this.transparency.indexed.length>l)throw new Error("More transparent colors than palette size");if((g=l-this.transparency.indexed.length)>0)for(y=0;0<=g?y<g:y>g;0<=g?++y:--y)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(o)[0];break;case 2:this.transparency.rgb=this.read(o)}break;case"tEXt":d=(p=this.read(o)).indexOf(0),f=String.fromCharCode.apply(String,p.slice(0,d)),this.text[f]=String.fromCharCode.apply(String,p.slice(d+1));break;case"IEND":return u&&this.animation.frames.push(u),this.colors=(function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}).call(this),this.hasAlphaChannel=(C=this.colorType)===4||C===6,s=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*s,this.colorSpace=(function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}).call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=o}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}n.prototype.read=function(i){var o,s;for(s=[],o=0;0<=i?o<i:o>i;0<=i?++o:--o)s.push(this.data[this.pos++]);return s},n.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},n.prototype.decodePixels=function(i){var o=this.pixelBitlength/8,s=new Uint8Array(this.width*this.height*o),l=0,c=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function A(u,d,f,h){var g,p,m,y,C,w,B,x,M,S,R,b,T,D,F,N,_,P,k,j,Y,X=Math.ceil((c.width-u)/f),K=Math.ceil((c.height-d)/h),U=c.width==X&&c.height==K;for(D=o*X,b=U?s:new Uint8Array(D*K),w=i.length,T=0,p=0;T<K&&l<w;){switch(i[l++]){case 0:for(y=_=0;_<D;y=_+=1)b[p++]=i[l++];break;case 1:for(y=P=0;P<D;y=P+=1)g=i[l++],C=y<o?0:b[p-o],b[p++]=(g+C)%256;break;case 2:for(y=k=0;k<D;y=k+=1)g=i[l++],m=(y-y%o)/o,F=T&&b[(T-1)*D+m*o+y%o],b[p++]=(F+g)%256;break;case 3:for(y=j=0;j<D;y=j+=1)g=i[l++],m=(y-y%o)/o,C=y<o?0:b[p-o],F=T&&b[(T-1)*D+m*o+y%o],b[p++]=(g+Math.floor((C+F)/2))%256;break;case 4:for(y=Y=0;Y<D;y=Y+=1)g=i[l++],m=(y-y%o)/o,C=y<o?0:b[p-o],T===0?F=N=0:(F=b[(T-1)*D+m*o+y%o],N=m&&b[(T-1)*D+(m-1)*o+y%o]),B=C+F-N,x=Math.abs(B-C),S=Math.abs(B-F),R=Math.abs(B-N),M=x<=S&&x<=R?C:S<=R?F:N,b[p++]=(g+M)%256;break;default:throw new Error("Invalid filter algorithm: "+i[l-1])}if(!U){var H=((d+T*h)*c.width+u)*o,L=T*D;for(y=0;y<X;y+=1){for(var V=0;V<o;V+=1)s[H++]=b[L++];H+=(f-1)*o}}T++}}return i=Nft(i),c.interlaceMethod==1?(A(0,0,8,8),A(4,0,8,8),A(0,4,4,8),A(2,0,4,4),A(0,2,2,4),A(1,0,2,2),A(0,1,1,2)):A(0,0,1,1),s},n.prototype.decodePalette=function(){var i,o,s,l,c,A,u,d,f;for(s=this.palette,A=this.transparency.indexed||[],c=new Uint8Array((A.length||0)+s.length),l=0,i=0,o=u=0,d=s.length;u<d;o=u+=3)c[l++]=s[o],c[l++]=s[o+1],c[l++]=s[o+2],c[l++]=(f=A[i++])!=null?f:255;return c},n.prototype.copyToImageData=function(i,o){var s,l,c,A,u,d,f,h,g,p,m;if(l=this.colors,g=null,s=this.hasAlphaChannel,this.palette.length&&(g=(m=this._decodedPalette)!=null?m:this._decodedPalette=this.decodePalette(),l=4,s=!0),h=(c=i.data||i).length,u=g||o,A=d=0,l===1)for(;A<h;)f=g?4*o[A/4]:d,p=u[f++],c[A++]=p,c[A++]=p,c[A++]=p,c[A++]=s?u[f++]:255,d=f;else for(;A<h;)f=g?4*o[A/4]:d,c[A++]=u[f++],c[A++]=u[f++],c[A++]=u[f++],c[A++]=s?u[f++]:255,d=f},n.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var a=function(){if(Object.prototype.toString.call(Tn)==="[object Window]"){try{t=Tn.document.createElement("canvas"),r=t.getContext("2d")}catch{return!1}return!0}return!1};return a(),e=function(i){var o;if(a()===!0)return r.width=i.width,r.height=i.height,r.clearRect(0,0,i.width,i.height),r.putImageData(i,0,0),(o=new Image).src=t.toDataURL(),o;throw new Error("This method requires a Browser with Canvas-capability.")},n.prototype.decodeFrames=function(i){var o,s,l,c,A,u,d,f;if(this.animation){for(f=[],s=A=0,u=(d=this.animation.frames).length;A<u;s=++A)o=d[s],l=i.createImageData(o.width,o.height),c=this.decodePixels(new Uint8Array(o.data)),this.copyToImageData(l,c),o.imageData=l,f.push(o.image=e(l));return f}},n.prototype.renderFrame=function(i,o){var s,l,c;return s=(l=this.animation.frames)[o],c=l[o-1],o===0&&i.clearRect(0,0,this.width,this.height),c?.disposeOp===1?i.clearRect(c.xOffset,c.yOffset,c.width,c.height):c?.disposeOp===2&&i.putImageData(c.imageData,c.xOffset,c.yOffset),s.blendOp===0&&i.clearRect(s.xOffset,s.yOffset,s.width,s.height),i.drawImage(s.image,s.xOffset,s.yOffset)},n.prototype.animate=function(i){var o,s,l,c,A,u,d=this;return s=0,u=this.animation,c=u.numFrames,l=u.frames,A=u.numPlays,(o=function(){var f,h;if(f=s++%c,h=l[f],d.renderFrame(i,f),c>1&&s/c<A)return d.animation._timeout=setTimeout(o,h.delay)})()},n.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},n.prototype.render=function(i){var o,s;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,o=i.getContext("2d"),this.animation?(this.decodeFrames(o),this.animate(o)):(s=o.createImageData(this.width,this.height),this.copyToImageData(s,this.decodePixels()),o.putImageData(s,0,0))},n})();/**
 * @license
 *
 * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
 *
 * Permission is hereby granted, free of charge, to any person obtaining
 * a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including
 * without limitation the rights to use, copy, modify, merge, publish,
 * distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to
 * the following conditions:
 *
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 * ====================================================================
 *//**
 * @license
 * (c) Dean McNamee <dean@gmail.com>, 2013.
 *
 * https://github.com/deanm/omggif
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to
 * deal in the Software without restriction, including without limitation the
 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 * sell copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
 * IN THE SOFTWARE.
 *
 * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
 * including animation and compression.  It does not rely on any specific
 * underlying system, so should run in the browser, Node, or Plask.
 */function nht(e){var t=0;if(e[t++]!==71||e[t++]!==73||e[t++]!==70||e[t++]!==56||(e[t++]+1&253)!=56||e[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var r=e[t++]|e[t++]<<8,n=e[t++]|e[t++]<<8,a=e[t++],i=a>>7,o=1<<(7&a)+1;e[t++],e[t++];var s=null,l=null;i&&(s=t,l=o,t+=3*o);var c=!0,A=[],u=0,d=null,f=0,h=null;for(this.width=r,this.height=n;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(e[t]!==11||e[t+1]==78&&e[t+2]==69&&e[t+3]==84&&e[t+4]==83&&e[t+5]==67&&e[t+6]==65&&e[t+7]==80&&e[t+8]==69&&e[t+9]==50&&e[t+10]==46&&e[t+11]==48&&e[t+12]==3&&e[t+13]==1&&e[t+16]==0)t+=14,h=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((T=e[t++])>=0))throw Error("Invalid block size");if(T===0)break;t+=T}break;case 249:if(e[t++]!==4||e[t+4]!==0)throw new Error("Invalid graphics extension block.");var g=e[t++];u=e[t++]|e[t++]<<8,d=e[t++],(1&g)==0&&(d=null),f=g>>2&7,t++;break;case 254:for(;;){if(!((T=e[t++])>=0))throw Error("Invalid block size");if(T===0)break;t+=T}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var p=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,C=e[t++]|e[t++]<<8,w=e[t++],B=w>>6&1,x=1<<(7&w)+1,M=s,S=l,R=!1;w>>7&&(R=!0,M=t,S=x,t+=3*x);var b=t;for(t++;;){var T;if(!((T=e[t++])>=0))throw Error("Invalid block size");if(T===0)break;t+=T}A.push({x:p,y:m,width:y,height:C,has_local_palette:R,palette_offset:M,palette_size:S,data_offset:b,data_length:t-b,transparent_index:d,interlaced:!!B,delay:u,disposal:f});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return A.length},this.loopCount=function(){return h},this.frameInfo=function(D){if(D<0||D>=A.length)throw new Error("Frame index out of range.");return A[D]},this.decodeAndBlitFrameBGRA=function(D,F){var N=this.frameInfo(D),_=N.width*N.height,P=new Uint8Array(_);nne(e,N.data_offset,P,_);var k=N.palette_offset,j=N.transparent_index;j===null&&(j=256);var Y=N.width,X=r-Y,K=Y,U=4*(N.y*r+N.x),H=4*((N.y+N.height)*r+N.x),L=U,V=4*X;N.interlaced===!0&&(V+=4*r*7);for(var J=8,ee=0,ae=P.length;ee<ae;++ee){var ne=P[ee];if(K===0&&(K=Y,(L+=V)>=H&&(V=4*X+4*r*(J-1),L=U+(Y+X)*(J<<1),J>>=1)),ne===j)L+=4;else{var fe=e[k+3*ne],he=e[k+3*ne+1],ye=e[k+3*ne+2];F[L++]=ye,F[L++]=he,F[L++]=fe,F[L++]=255}--K}},this.decodeAndBlitFrameRGBA=function(D,F){var N=this.frameInfo(D),_=N.width*N.height,P=new Uint8Array(_);nne(e,N.data_offset,P,_);var k=N.palette_offset,j=N.transparent_index;j===null&&(j=256);var Y=N.width,X=r-Y,K=Y,U=4*(N.y*r+N.x),H=4*((N.y+N.height)*r+N.x),L=U,V=4*X;N.interlaced===!0&&(V+=4*r*7);for(var J=8,ee=0,ae=P.length;ee<ae;++ee){var ne=P[ee];if(K===0&&(K=Y,(L+=V)>=H&&(V=4*X+4*r*(J-1),L=U+(Y+X)*(J<<1),J>>=1)),ne===j)L+=4;else{var fe=e[k+3*ne],he=e[k+3*ne+1],ye=e[k+3*ne+2];F[L++]=fe,F[L++]=he,F[L++]=ye,F[L++]=255}--K}}}function nne(e,t,r,n){for(var a=e[t++],i=1<<a,o=i+1,s=o+1,l=a+1,c=(1<<l)-1,A=0,u=0,d=0,f=e[t++],h=new Int32Array(4096),g=null;;){for(;A<16&&f!==0;)u|=e[t++]<<A,A+=8,f===1?f=e[t++]:--f;if(A<l)break;var p=u&c;if(u>>=l,A-=l,p!==i){if(p===o)break;for(var m=p<s?p:g,y=0,C=m;C>i;)C=h[C]>>8,++y;var w=C;if(d+y+(m!==p?1:0)>n)return void Ja.log("Warning, gif stream longer than expected.");r[d++]=w;var B=d+=y;for(m!==p&&(r[d++]=w),C=m;y--;)C=h[C],r[--B]=255&C,C>>=8;g!==null&&s<4096&&(h[s++]=g<<8|w,s>=c+1&&l<12&&(++l,c=c<<1|1)),g=p}else s=o+1,c=(1<<(l=a+1))-1,g=null}return d!==n&&Ja.log("Warning, gif stream shorter than expected."),r}/**
 * @license
  Copyright (c) 2008, Adobe Systems Incorporated
  All rights reserved.

  Redistribution and use in source and binary forms, with or without 
  modification, are permitted provided that the following conditions are
  met:

  * Redistributions of source code must retain the above copyright notice, 
    this list of conditions and the following disclaimer.
  
  * Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the 
    documentation and/or other materials provided with the distribution.
  
  * Neither the name of Adobe Systems Incorporated nor the names of its 
    contributors may be used to endorse or promote products derived from 
    this software without specific prior written permission.

  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/function tP(e){var t,r,n,a,i,o=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),A=new Array(64),u=new Array(65535),d=new Array(65535),f=new Array(64),h=new Array(64),g=[],p=0,m=7,y=new Array(64),C=new Array(64),w=new Array(64),B=new Array(256),x=new Array(2048),M=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],S=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],R=[0,1,2,3,4,5,6,7,8,9,10,11],b=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],T=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],D=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],N=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],_=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function P(U,H){for(var L=0,V=0,J=new Array,ee=1;ee<=16;ee++){for(var ae=1;ae<=U[ee];ae++)J[H[V]]=[],J[H[V]][0]=L,J[H[V]][1]=ee,V++,L++;L*=2}return J}function k(U){for(var H=U[0],L=U[1]-1;L>=0;)H&1<<L&&(p|=1<<m),L--,--m<0&&(p==255?(j(255),j(0)):j(p),m=7,p=0)}function j(U){g.push(U)}function Y(U){j(U>>8&255),j(255&U)}function X(U,H,L,V,J){for(var ee,ae=J[0],ne=J[240],fe=(function(Ve,Ie){var we,Re,Te,Ke,mt,tt,rt,lt,At,$e,ce=0;for(At=0;At<8;++At){we=Ve[ce],Re=Ve[ce+1],Te=Ve[ce+2],Ke=Ve[ce+3],mt=Ve[ce+4],tt=Ve[ce+5],rt=Ve[ce+6];var qe=we+(lt=Ve[ce+7]),ct=we-lt,Tt=Re+rt,He=Re-rt,Ge=Te+tt,Ee=Te-tt,Et=Ke+mt,Yt=Ke-mt,$=qe+Et,Fe=qe-Et,je=Tt+Ge,ue=Tt-Ge;Ve[ce]=$+je,Ve[ce+4]=$-je;var ie=.707106781*(ue+Fe);Ve[ce+2]=Fe+ie,Ve[ce+6]=Fe-ie;var Be=.382683433*(($=Yt+Ee)-(ue=He+ct)),Xe=.5411961*$+Be,Oe=1.306562965*ue+Be,ft=.707106781*(je=Ee+He),wt=ct+ft,ot=ct-ft;Ve[ce+5]=ot+Xe,Ve[ce+3]=ot-Xe,Ve[ce+1]=wt+Oe,Ve[ce+7]=wt-Oe,ce+=8}for(ce=0,At=0;At<8;++At){we=Ve[ce],Re=Ve[ce+8],Te=Ve[ce+16],Ke=Ve[ce+24],mt=Ve[ce+32],tt=Ve[ce+40],rt=Ve[ce+48];var it=we+(lt=Ve[ce+56]),vt=we-lt,qt=Re+rt,Xt=Re-rt,Tr=Te+tt,Kr=Te-tt,Vr=Ke+mt,Pr=Ke-mt,mr=it+Vr,xr=it-Vr,Ir=qt+Tr,Fr=qt-Tr;Ve[ce]=mr+Ir,Ve[ce+32]=mr-Ir;var br=.707106781*(Fr+xr);Ve[ce+16]=xr+br,Ve[ce+48]=xr-br;var Sr=.382683433*((mr=Pr+Kr)-(Fr=Xt+vt)),fr=.5411961*mr+Sr,Cr=1.306562965*Fr+Sr,hr=.707106781*(Ir=Kr+Xt),Ht=vt+hr,Gt=vt-hr;Ve[ce+40]=Gt+fr,Ve[ce+24]=Gt-fr,Ve[ce+8]=Ht+Cr,Ve[ce+56]=Ht-Cr,ce++}for(At=0;At<64;++At)$e=Ve[At]*Ie[At],f[At]=$e>0?$e+.5|0:$e-.5|0;return f})(U,H),he=0;he<64;++he)h[M[he]]=fe[he];var ye=h[0]-L;L=h[0],ye==0?k(V[0]):(k(V[d[ee=32767+ye]]),k(u[ee]));for(var be=63;be>0&&h[be]==0;)be--;if(be==0)return k(ae),L;for(var Se,ve=1;ve<=be;){for(var de=ve;h[ve]==0&&ve<=be;)++ve;var Ue=ve-de;if(Ue>=16){Se=Ue>>4;for(var at=1;at<=Se;++at)k(ne);Ue&=15}ee=32767+h[ve],k(J[(Ue<<4)+d[ee]]),k(u[ee]),ve++}return be!=63&&k(ae),L}function K(U){U=Math.min(Math.max(U,1),100),i!=U&&((function(H){for(var L=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],V=0;V<64;V++){var J=o((L[V]*H+50)/100);J=Math.min(Math.max(J,1),255),s[M[V]]=J}for(var ee=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],ae=0;ae<64;ae++){var ne=o((ee[ae]*H+50)/100);ne=Math.min(Math.max(ne,1),255),l[M[ae]]=ne}for(var fe=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],he=0,ye=0;ye<8;ye++)for(var be=0;be<8;be++)c[he]=1/(s[M[he]]*fe[ye]*fe[be]*8),A[he]=1/(l[M[he]]*fe[ye]*fe[be]*8),he++})(U<50?Math.floor(5e3/U):Math.floor(200-2*U)),i=U)}this.encode=function(U,H){H&&K(H),g=new Array,p=0,m=7,Y(65496),Y(65504),Y(16),j(74),j(70),j(73),j(70),j(0),j(1),j(1),j(0),Y(1),Y(1),j(0),j(0),(function(){Y(65499),Y(132),j(0);for(var Re=0;Re<64;Re++)j(s[Re]);j(1);for(var Te=0;Te<64;Te++)j(l[Te])})(),(function(Re,Te){Y(65472),Y(17),j(8),Y(Te),Y(Re),j(3),j(1),j(17),j(0),j(2),j(17),j(1),j(3),j(17),j(1)})(U.width,U.height),(function(){Y(65476),Y(418),j(0);for(var Re=0;Re<16;Re++)j(S[Re+1]);for(var Te=0;Te<=11;Te++)j(R[Te]);j(16);for(var Ke=0;Ke<16;Ke++)j(b[Ke+1]);for(var mt=0;mt<=161;mt++)j(T[mt]);j(1);for(var tt=0;tt<16;tt++)j(D[tt+1]);for(var rt=0;rt<=11;rt++)j(F[rt]);j(17);for(var lt=0;lt<16;lt++)j(N[lt+1]);for(var At=0;At<=161;At++)j(_[At])})(),Y(65498),Y(12),j(3),j(1),j(0),j(2),j(17),j(3),j(17),j(0),j(63),j(0);var L=0,V=0,J=0;p=0,m=7,this.encode.displayName="_encode_";for(var ee,ae,ne,fe,he,ye,be,Se,ve,de=U.data,Ue=U.width,at=U.height,Ve=4*Ue,Ie=0;Ie<at;){for(ee=0;ee<Ve;){for(he=Ve*Ie+ee,be=-1,Se=0,ve=0;ve<64;ve++)ye=he+(Se=ve>>3)*Ve+(be=4*(7&ve)),Ie+Se>=at&&(ye-=Ve*(Ie+1+Se-at)),ee+be>=Ve&&(ye-=ee+be-Ve+4),ae=de[ye++],ne=de[ye++],fe=de[ye++],y[ve]=(x[ae]+x[ne+256>>0]+x[fe+512>>0]>>16)-128,C[ve]=(x[ae+768>>0]+x[ne+1024>>0]+x[fe+1280>>0]>>16)-128,w[ve]=(x[ae+1280>>0]+x[ne+1536>>0]+x[fe+1792>>0]>>16)-128;L=X(y,c,L,t,n),V=X(C,A,V,r,a),J=X(w,A,J,r,a),ee+=32}Ie+=8}if(m>=0){var we=[];we[1]=m+1,we[0]=(1<<m+1)-1,k(we)}return Y(65497),new Uint8Array(g)},e=e||50,(function(){for(var U=String.fromCharCode,H=0;H<256;H++)B[H]=U(H)})(),t=P(S,R),r=P(D,F),n=P(b,T),a=P(N,_),(function(){for(var U=1,H=2,L=1;L<=15;L++){for(var V=U;V<H;V++)d[32767+V]=L,u[32767+V]=[],u[32767+V][1]=L,u[32767+V][0]=V;for(var J=-(H-1);J<=-U;J++)d[32767+J]=L,u[32767+J]=[],u[32767+J][1]=L,u[32767+J][0]=H-1+J;U<<=1,H<<=1}})(),(function(){for(var U=0;U<256;U++)x[U]=19595*U,x[U+256>>0]=38470*U,x[U+512>>0]=7471*U+32768,x[U+768>>0]=-11059*U,x[U+1024>>0]=-21709*U,x[U+1280>>0]=32768*U+8421375,x[U+1536>>0]=-27439*U,x[U+1792>>0]=-5329*U})(),K(e)}/**
 * @license
 * Copyright (c) 2017 Aras Abbasi
 *
 * Licensed under the MIT License.
 * http://opensource.org/licenses/mit-license
 */function QA(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function ane(e){function t(S){if(!S)throw Error("assert :P")}function r(S,R,b){for(var T=0;4>T;T++)if(S[R+T]!=b.charCodeAt(T))return!0;return!1}function n(S,R,b,T,D){for(var F=0;F<D;F++)S[R+F]=b[T+F]}function a(S,R,b,T){for(var D=0;D<T;D++)S[R+D]=b}function i(S){return new Int32Array(S)}function o(S,R){for(var b=[],T=0;T<S;T++)b.push(new R);return b}function s(S,R){var b=[];return(function T(D,F,N){for(var _=N[F],P=0;P<_&&(D.push(N.length>F+1?[]:new R),!(N.length<F+1));P++)T(D[P],F+1,N)})(b,0,S),b}var l=function(){var S=this;function R(z,G){for(var re=1<<G-1>>>0;z&re;)re>>>=1;return re?(z&re-1)+re:z}function b(z,G,re,Ae,xe){t(!(Ae%re));do z[G+(Ae-=re)]=xe;while(0<Ae)}function T(z,G,re,Ae,xe){if(t(2328>=xe),512>=xe)var Qe=i(512);else if((Qe=i(xe))==null)return 0;return(function(De,Ne,Pe,nt,It,zt){var Kt,_t,ur=Ne,Zt=1<<Pe,xt=i(16),Rt=i(16);for(t(It!=0),t(nt!=null),t(De!=null),t(0<Pe),_t=0;_t<It;++_t){if(15<nt[_t])return 0;++xt[nt[_t]]}if(xt[0]==It)return 0;for(Rt[1]=0,Kt=1;15>Kt;++Kt){if(xt[Kt]>1<<Kt)return 0;Rt[Kt+1]=Rt[Kt]+xt[Kt]}for(_t=0;_t<It;++_t)Kt=nt[_t],0<nt[_t]&&(zt[Rt[Kt]++]=_t);if(Rt[15]==1)return(nt=new D).g=0,nt.value=zt[0],b(De,ur,1,Zt,nt),Zt;var dr,vr=-1,sr=Zt-1,Gr=0,Lr=1,En=1,jr=1<<Pe;for(_t=0,Kt=1,It=2;Kt<=Pe;++Kt,It<<=1){if(Lr+=En<<=1,0>(En-=xt[Kt]))return 0;for(;0<xt[Kt];--xt[Kt])(nt=new D).g=Kt,nt.value=zt[_t++],b(De,ur+Gr,It,jr,nt),Gr=R(Gr,Kt)}for(Kt=Pe+1,It=2;15>=Kt;++Kt,It<<=1){if(Lr+=En<<=1,0>(En-=xt[Kt]))return 0;for(;0<xt[Kt];--xt[Kt]){if(nt=new D,(Gr&sr)!=vr){for(ur+=jr,dr=1<<(vr=Kt)-Pe;15>vr&&!(0>=(dr-=xt[vr]));)++vr,dr<<=1;Zt+=jr=1<<(dr=vr-Pe),De[Ne+(vr=Gr&sr)].g=dr+Pe,De[Ne+vr].value=ur-Ne-vr}nt.g=Kt-Pe,nt.value=zt[_t++],b(De,ur+(Gr>>Pe),It,jr,nt),Gr=R(Gr,Kt)}}return Lr!=2*Rt[15]-1?0:Zt})(z,G,re,Ae,xe,Qe)}function D(){this.value=this.g=0}function F(){this.value=this.g=0}function N(){this.G=o(5,D),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=o(co,F)}function _(z,G,re,Ae){t(z!=null),t(G!=null),t(2147483648>Ae),z.Ca=254,z.I=0,z.b=-8,z.Ka=0,z.oa=G,z.pa=re,z.Jd=G,z.Yc=re+Ae,z.Zc=4<=Ae?re+Ae-4+1:re,ee(z)}function P(z,G){for(var re=0;0<G--;)re|=ne(z,128)<<G;return re}function k(z,G){var re=P(z,G);return ae(z)?-re:re}function j(z,G,re,Ae){var xe,Qe=0;for(t(z!=null),t(G!=null),t(4294967288>Ae),z.Sb=Ae,z.Ra=0,z.u=0,z.h=0,4<Ae&&(Ae=4),xe=0;xe<Ae;++xe)Qe+=G[re+xe]<<8*xe;z.Ra=Qe,z.bb=Ae,z.oa=G,z.pa=re}function Y(z){for(;8<=z.u&&z.bb<z.Sb;)z.Ra>>>=8,z.Ra+=z.oa[z.pa+z.bb]<<Wd-8>>>0,++z.bb,z.u-=8;L(z)&&(z.h=1,z.u=0)}function X(z,G){if(t(0<=G),!z.h&&G<=Jd){var re=H(z)&Vd[G];return z.u+=G,Y(z),re}return z.h=1,z.u=0}function K(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function U(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function H(z){return z.Ra>>>(z.u&Wd-1)>>>0}function L(z){return t(z.bb<=z.Sb),z.h||z.bb==z.Sb&&z.u>Wd}function V(z,G){z.u=G,z.h=L(z)}function J(z){z.u>=Tc&&(t(z.u>=Tc),Y(z))}function ee(z){t(z!=null&&z.oa!=null),z.pa<z.Zc?(z.I=(z.oa[z.pa++]|z.I<<8)>>>0,z.b+=8):(t(z!=null&&z.oa!=null),z.pa<z.Yc?(z.b+=8,z.I=z.oa[z.pa++]|z.I<<8):z.Ka?z.b=0:(z.I<<=8,z.b+=8,z.Ka=1))}function ae(z){return P(z,1)}function ne(z,G){var re=z.Ca;0>z.b&&ee(z);var Ae=z.b,xe=re*G>>>8,Qe=(z.I>>>Ae>xe)+0;for(Qe?(re-=xe,z.I-=xe+1<<Ae>>>0):re=xe+1,Ae=re,xe=0;256<=Ae;)xe+=8,Ae>>=8;return Ae=7^xe+vs[Ae],z.b-=Ae,z.Ca=(re<<Ae)-1,Qe}function fe(z,G,re){z[G+0]=re>>24&255,z[G+1]=re>>16&255,z[G+2]=re>>8&255,z[G+3]=re>>0&255}function he(z,G){return z[G+0]<<0|z[G+1]<<8}function ye(z,G){return he(z,G)|z[G+2]<<16}function be(z,G){return he(z,G)|he(z,G+2)<<16}function Se(z,G){var re=1<<G;return t(z!=null),t(0<G),z.X=i(re),z.X==null?0:(z.Mb=32-G,z.Xa=G,1)}function ve(z,G){t(z!=null),t(G!=null),t(z.Xa==G.Xa),n(G.X,0,z.X,0,1<<G.Xa)}function de(){this.X=[],this.Xa=this.Mb=0}function Ue(z,G,re,Ae){t(re!=null),t(Ae!=null);var xe=re[0],Qe=Ae[0];return xe==0&&(xe=(z*Qe+G/2)/G),Qe==0&&(Qe=(G*xe+z/2)/z),0>=xe||0>=Qe?0:(re[0]=xe,Ae[0]=Qe,1)}function at(z,G){return z+(1<<G)-1>>>G}function Ve(z,G){return((4278255360&z)+(4278255360&G)>>>0&4278255360)+((16711935&z)+(16711935&G)>>>0&16711935)>>>0}function Ie(z,G){S[G]=function(re,Ae,xe,Qe,De,Ne,Pe){var nt;for(nt=0;nt<De;++nt){var It=S[z](Ne[Pe+nt-1],xe,Qe+nt);Ne[Pe+nt]=Ve(re[Ae+nt],It)}}}function we(){this.ud=this.hd=this.jd=0}function Re(z,G){return((4278124286&(z^G))>>>1)+(z&G)>>>0}function Te(z){return 0<=z&&256>z?z:0>z?0:255<z?255:void 0}function Ke(z,G){return Te(z+(z-G+.5>>1))}function mt(z,G,re){return Math.abs(G-re)-Math.abs(z-re)}function tt(z,G,re,Ae,xe,Qe,De){for(Ae=Qe[De-1],re=0;re<xe;++re)Qe[De+re]=Ae=Ve(z[G+re],Ae)}function rt(z,G,re,Ae,xe){var Qe;for(Qe=0;Qe<re;++Qe){var De=z[G+Qe],Ne=De>>8&255,Pe=16711935&(Pe=(Pe=16711935&De)+((Ne<<16)+Ne));Ae[xe+Qe]=(4278255360&De)+Pe>>>0}}function lt(z,G){G.jd=z>>0&255,G.hd=z>>8&255,G.ud=z>>16&255}function At(z,G,re,Ae,xe,Qe){var De;for(De=0;De<Ae;++De){var Ne=G[re+De],Pe=Ne>>>8,nt=Ne,It=255&(It=(It=Ne>>>16)+((z.jd<<24>>24)*(Pe<<24>>24)>>>5));nt=255&(nt=(nt=nt+((z.hd<<24>>24)*(Pe<<24>>24)>>>5))+((z.ud<<24>>24)*(It<<24>>24)>>>5)),xe[Qe+De]=(4278255360&Ne)+(It<<16)+nt}}function $e(z,G,re,Ae,xe){S[G]=function(Qe,De,Ne,Pe,nt,It,zt,Kt,_t){for(Pe=zt;Pe<Kt;++Pe)for(zt=0;zt<_t;++zt)nt[It++]=xe(Ne[Ae(Qe[De++])])},S[z]=function(Qe,De,Ne,Pe,nt,It,zt){var Kt=8>>Qe.b,_t=Qe.Ea,ur=Qe.K[0],Zt=Qe.w;if(8>Kt)for(Qe=(1<<Qe.b)-1,Zt=(1<<Kt)-1;De<Ne;++De){var xt,Rt=0;for(xt=0;xt<_t;++xt)xt&Qe||(Rt=Ae(Pe[nt++])),It[zt++]=xe(ur[Rt&Zt]),Rt>>=Kt}else S["VP8LMapColor"+re](Pe,nt,ur,Zt,It,zt,De,Ne,_t)}}function ce(z,G,re,Ae,xe){for(re=G+re;G<re;){var Qe=z[G++];Ae[xe++]=Qe>>16&255,Ae[xe++]=Qe>>8&255,Ae[xe++]=Qe>>0&255}}function qe(z,G,re,Ae,xe){for(re=G+re;G<re;){var Qe=z[G++];Ae[xe++]=Qe>>16&255,Ae[xe++]=Qe>>8&255,Ae[xe++]=Qe>>0&255,Ae[xe++]=Qe>>24&255}}function ct(z,G,re,Ae,xe){for(re=G+re;G<re;){var Qe=(De=z[G++])>>16&240|De>>12&15,De=De>>0&240|De>>28&15;Ae[xe++]=Qe,Ae[xe++]=De}}function Tt(z,G,re,Ae,xe){for(re=G+re;G<re;){var Qe=(De=z[G++])>>16&248|De>>13&7,De=De>>5&224|De>>3&31;Ae[xe++]=Qe,Ae[xe++]=De}}function He(z,G,re,Ae,xe){for(re=G+re;G<re;){var Qe=z[G++];Ae[xe++]=Qe>>0&255,Ae[xe++]=Qe>>8&255,Ae[xe++]=Qe>>16&255}}function Ge(z,G,re,Ae,xe,Qe){if(Qe==0)for(re=G+re;G<re;)fe(Ae,((Qe=z[G++])[0]>>24|Qe[1]>>8&65280|Qe[2]<<8&16711680|Qe[3]<<24)>>>0),xe+=32;else n(Ae,xe,z,G,re)}function Ee(z,G){S[G][0]=S[z+"0"],S[G][1]=S[z+"1"],S[G][2]=S[z+"2"],S[G][3]=S[z+"3"],S[G][4]=S[z+"4"],S[G][5]=S[z+"5"],S[G][6]=S[z+"6"],S[G][7]=S[z+"7"],S[G][8]=S[z+"8"],S[G][9]=S[z+"9"],S[G][10]=S[z+"10"],S[G][11]=S[z+"11"],S[G][12]=S[z+"12"],S[G][13]=S[z+"13"],S[G][14]=S[z+"0"],S[G][15]=S[z+"0"]}function Et(z){return z==sp||z==Dm||z==uh||z==Fm}function Yt(){this.eb=[],this.size=this.A=this.fb=0}function $(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Fe(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Yt,this.f.kb=new $,this.sd=null}function je(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function ue(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ie(z){return alert("todo:WebPSamplerProcessPlane"),z.T}function Be(z,G){var re=z.T,Ae=G.ba.f.RGBA,xe=Ae.eb,Qe=Ae.fb+z.ka*Ae.A,De=Ao[G.ba.S],Ne=z.y,Pe=z.O,nt=z.f,It=z.N,zt=z.ea,Kt=z.W,_t=G.cc,ur=G.dc,Zt=G.Mc,xt=G.Nc,Rt=z.ka,dr=z.ka+z.T,vr=z.U,sr=vr+1>>1;for(Rt==0?De(Ne,Pe,null,null,nt,It,zt,Kt,nt,It,zt,Kt,xe,Qe,null,null,vr):(De(G.ec,G.fc,Ne,Pe,_t,ur,Zt,xt,nt,It,zt,Kt,xe,Qe-Ae.A,xe,Qe,vr),++re);Rt+2<dr;Rt+=2)_t=nt,ur=It,Zt=zt,xt=Kt,It+=z.Rc,Kt+=z.Rc,Qe+=2*Ae.A,De(Ne,(Pe+=2*z.fa)-z.fa,Ne,Pe,_t,ur,Zt,xt,nt,It,zt,Kt,xe,Qe-Ae.A,xe,Qe,vr);return Pe+=z.fa,z.j+dr<z.o?(n(G.ec,G.fc,Ne,Pe,vr),n(G.cc,G.dc,nt,It,sr),n(G.Mc,G.Nc,zt,Kt,sr),re--):1&dr||De(Ne,Pe,null,null,nt,It,zt,Kt,nt,It,zt,Kt,xe,Qe+Ae.A,null,null,vr),re}function Xe(z,G,re){var Ae=z.F,xe=[z.J];if(Ae!=null){var Qe=z.U,De=G.ba.S,Ne=De==op||De==uh;G=G.ba.f.RGBA;var Pe=[0],nt=z.ka;Pe[0]=z.T,z.Kb&&(nt==0?--Pe[0]:(--nt,xe[0]-=z.width),z.j+z.ka+z.T==z.o&&(Pe[0]=z.o-z.j-nt));var It=G.eb;nt=G.fb+nt*G.A,z=ka(Ae,xe[0],z.width,Qe,Pe,It,nt+(Ne?0:3),G.A),t(re==Pe),z&&Et(De)&&ms(It,nt,Ne,Qe,Pe,G.A)}return 0}function Oe(z){var G=z.ma,re=G.ba.S,Ae=11>re,xe=re==Ou||re==xA||re==op||re==Ah||re==12||Et(re);if(G.memory=null,G.Ib=null,G.Jb=null,G.Nd=null,!EA(G.Oa,z,xe?11:12))return 0;if(xe&&Et(re)&&gr(),z.da)alert("todo:use_scaling");else{if(Ae){if(G.Ib=ie,z.Kb){if(re=z.U+1>>1,G.memory=i(z.U+2*re),G.memory==null)return 0;G.ec=G.memory,G.fc=0,G.cc=G.ec,G.dc=G.fc+z.U,G.Mc=G.cc,G.Nc=G.dc+re,G.Ib=Be,gr()}}else alert("todo:EmitYUV");xe&&(G.Jb=Xe,Ae&&Qt())}if(Ae&&!uM){for(z=0;256>z;++z)dM[z]=89858*(z-128)+_c>>ph,km[z]=-22014*(z-128)+_c,FD[z]=-45773*(z-128),s1[z]=113618*(z-128)+_c>>ph;for(z=up;z<dp;++z)G=76283*(z-16)+_c>>ph,fM[z-up]=zs(G,255),hM[z-up]=zs(G+8>>4,15);uM=1}return 1}function ft(z){var G=z.ma,re=z.U,Ae=z.T;return t(!(1&z.ka)),0>=re||0>=Ae?0:(re=G.Ib(z,G),G.Jb!=null&&G.Jb(z,G,re),G.Dc+=re,1)}function wt(z){z.ma.memory=null}function ot(z,G,re,Ae){return X(z,8)!=47?0:(G[0]=X(z,14)+1,re[0]=X(z,14)+1,Ae[0]=X(z,1),X(z,3)!=0?0:!z.h)}function it(z,G){if(4>z)return z+1;var re=z-2>>1;return(2+(1&z)<<re)+X(G,re)+1}function vt(z,G){return 120<G?G-120:1<=(re=((re=DD[G-1])>>4)*z+(8-(15&re)))?re:1;var re}function qt(z,G,re){var Ae=H(re),xe=z[G+=255&Ae].g-8;return 0<xe&&(V(re,re.u+8),Ae=H(re),G+=z[G].value,G+=Ae&(1<<xe)-1),V(re,re.u+z[G].g),z[G].value}function Xt(z,G,re){return re.g+=z.g,re.value+=z.value<<G>>>0,t(8>=re.g),z.g}function Tr(z,G,re){var Ae=z.xc;return t((G=Ae==0?0:z.vc[z.md*(re>>Ae)+(G>>Ae)])<z.Wb),z.Ya[G]}function Kr(z,G,re,Ae){var xe=z.ab,Qe=z.c*G,De=z.C;G=De+G;var Ne=re,Pe=Ae;for(Ae=z.Ta,re=z.Ua;0<xe--;){var nt=z.gc[xe],It=De,zt=G,Kt=Ne,_t=Pe,ur=(Pe=Ae,Ne=re,nt.Ea);switch(t(It<zt),t(zt<=nt.nc),nt.hc){case 2:tp(Kt,_t,(zt-It)*ur,Pe,Ne);break;case 0:var Zt=It,xt=zt,Rt=Pe,dr=Ne,vr=(jr=nt).Ea;Zt==0&&(e1(Kt,_t,null,null,1,Rt,dr),tt(Kt,_t+1,0,0,vr-1,Rt,dr+1),_t+=vr,dr+=vr,++Zt);for(var sr=1<<jr.b,Gr=sr-1,Lr=at(vr,jr.b),En=jr.K,jr=jr.w+(Zt>>jr.b)*Lr;Zt<xt;){var ra=En,Ma=jr,na=1;for(ep(Kt,_t,Rt,dr-vr,1,Rt,dr);na<vr;){var aa=(na&~Gr)+sr;aa>vr&&(aa=vr),(0,ql[ra[Ma++]>>8&15])(Kt,_t+ +na,Rt,dr+na-vr,aa-na,Rt,dr+na),na=aa}_t+=vr,dr+=vr,++Zt&Gr||(jr+=Lr)}zt!=nt.nc&&n(Pe,Ne-ur,Pe,Ne+(zt-It-1)*ur,ur);break;case 1:for(ur=Kt,xt=_t,vr=(Kt=nt.Ea)-(dr=Kt&~(Rt=(_t=1<<nt.b)-1)),Zt=at(Kt,nt.b),sr=nt.K,nt=nt.w+(It>>nt.b)*Zt;It<zt;){for(Gr=sr,Lr=nt,En=new we,jr=xt+dr,ra=xt+Kt;xt<jr;)lt(Gr[Lr++],En),Xd(En,ur,xt,_t,Pe,Ne),xt+=_t,Ne+=_t;xt<ra&&(lt(Gr[Lr++],En),Xd(En,ur,xt,vr,Pe,Ne),xt+=vr,Ne+=vr),++It&Rt||(nt+=Zt)}break;case 3:if(Kt==Pe&&_t==Ne&&0<nt.b){for(xt=Pe,Kt=ur=Ne+(zt-It)*ur-(dr=(zt-It)*at(nt.Ea,nt.b)),_t=Pe,Rt=Ne,Zt=[],dr=(vr=dr)-1;0<=dr;--dr)Zt[dr]=_t[Rt+dr];for(dr=vr-1;0<=dr;--dr)xt[Kt+dr]=Zt[dr];Ls(nt,It,zt,Pe,ur,Pe,Ne)}else Ls(nt,It,zt,Kt,_t,Pe,Ne)}Ne=Ae,Pe=re}Pe!=re&&n(Ae,re,Ne,Pe,Qe)}function Vr(z,G){var re=z.V,Ae=z.Ba+z.c*z.C,xe=G-z.C;if(t(G<=z.l.o),t(16>=xe),0<xe){var Qe=z.l,De=z.Ta,Ne=z.Ua,Pe=Qe.width;if(Kr(z,xe,re,Ae),xe=Ne=[Ne],t((re=z.C)<(Ae=G)),t(Qe.v<Qe.va),Ae>Qe.o&&(Ae=Qe.o),re<Qe.j){var nt=Qe.j-re;re=Qe.j,xe[0]+=nt*Pe}if(re>=Ae?re=0:(xe[0]+=4*Qe.v,Qe.ka=re-Qe.j,Qe.U=Qe.va-Qe.v,Qe.T=Ae-re,re=1),re){if(Ne=Ne[0],11>(re=z.ca).S){var It=re.f.RGBA,zt=(Ae=re.S,xe=Qe.U,Qe=Qe.T,nt=It.eb,It.A),Kt=Qe;for(It=It.fb+z.Ma*It.A;0<Kt--;){var _t=De,ur=Ne,Zt=xe,xt=nt,Rt=It;switch(Ae){case ap:Zo(_t,ur,Zt,xt,Rt);break;case Ou:Eo(_t,ur,Zt,xt,Rt);break;case sp:Eo(_t,ur,Zt,xt,Rt),ms(xt,Rt,0,Zt,1,0);break;case ip:Nc(_t,ur,Zt,xt,Rt);break;case xA:Ge(_t,ur,Zt,xt,Rt,1);break;case Dm:Ge(_t,ur,Zt,xt,Rt,1),ms(xt,Rt,0,Zt,1,0);break;case op:Ge(_t,ur,Zt,xt,Rt,0);break;case uh:Ge(_t,ur,Zt,xt,Rt,0),ms(xt,Rt,1,Zt,1,0);break;case Ah:Dc(_t,ur,Zt,xt,Rt);break;case Fm:Dc(_t,ur,Zt,xt,Rt),_a(xt,Rt,Zt,1,0);break;case Qm:Fc(_t,ur,Zt,xt,Rt);break;default:t(0)}Ne+=Pe,It+=zt}z.Ma+=Qe}else alert("todo:EmitRescaledRowsYUVA");t(z.Ma<=re.height)}}z.C=G,t(z.C<=z.i)}function Pr(z){var G;if(0<z.ua)return 0;for(G=0;G<z.Wb;++G){var re=z.Ya[G].G,Ae=z.Ya[G].H;if(0<re[1][Ae[1]+0].g||0<re[2][Ae[2]+0].g||0<re[3][Ae[3]+0].g)return 0}return 1}function mr(z,G,re,Ae,xe,Qe){if(z.Z!=0){var De=z.qd,Ne=z.rd;for(t(Ri[z.Z]!=null);G<re;++G)Ri[z.Z](De,Ne,Ae,xe,Ae,xe,Qe),De=Ae,Ne=xe,xe+=Qe;z.qd=De,z.rd=Ne}}function xr(z,G){var re=z.l.ma,Ae=re.Z==0||re.Z==1?z.l.j:z.C;if(Ae=z.C<Ae?Ae:z.C,t(G<=z.l.o),G>Ae){var xe=z.l.width,Qe=re.ca,De=re.tb+xe*Ae,Ne=z.V,Pe=z.Ba+z.c*Ae,nt=z.gc;t(z.ab==1),t(nt[0].hc==3),Fu(nt[0],Ae,G,Ne,Pe,Qe,De),mr(re,Ae,G,Qe,De,xe)}z.C=z.Ma=G}function Ir(z,G,re,Ae,xe,Qe,De){var Ne=z.$/Ae,Pe=z.$%Ae,nt=z.m,It=z.s,zt=re+z.$,Kt=zt;xe=re+Ae*xe;var _t=re+Ae*Qe,ur=280+It.ua,Zt=z.Pb?Ne:16777216,xt=0<It.ua?It.Wa:null,Rt=It.wc,dr=zt<_t?Tr(It,Pe,Ne):null;t(z.C<Qe),t(_t<=xe);var vr=!1;e:for(;;){for(;vr||zt<_t;){var sr=0;if(Ne>=Zt){var Gr=zt-re;t((Zt=z).Pb),Zt.wd=Zt.m,Zt.xd=Gr,0<Zt.s.ua&&ve(Zt.s.Wa,Zt.s.vb),Zt=Ne+ju}if(Pe&Rt||(dr=Tr(It,Pe,Ne)),t(dr!=null),dr.Qb&&(G[zt]=dr.qb,vr=!0),!vr)if(J(nt),dr.jc){sr=nt,Gr=G;var Lr=zt,En=dr.pd[H(sr)&co-1];t(dr.jc),256>En.g?(V(sr,sr.u+En.g),Gr[Lr]=En.value,sr=0):(V(sr,sr.u+En.g-256),t(256<=En.value),sr=En.value),sr==0&&(vr=!0)}else sr=qt(dr.G[0],dr.H[0],nt);if(nt.h)break;if(vr||256>sr){if(!vr)if(dr.nd)G[zt]=(dr.qb|sr<<8)>>>0;else{if(J(nt),vr=qt(dr.G[1],dr.H[1],nt),J(nt),Gr=qt(dr.G[2],dr.H[2],nt),Lr=qt(dr.G[3],dr.H[3],nt),nt.h)break;G[zt]=(Lr<<24|vr<<16|sr<<8|Gr)>>>0}if(vr=!1,++zt,++Pe>=Ae&&(Pe=0,++Ne,De!=null&&Ne<=Qe&&!(Ne%16)&&De(z,Ne),xt!=null))for(;Kt<zt;)sr=G[Kt++],xt.X[(506832829*sr&4294967295)>>>xt.Mb]=sr}else if(280>sr){if(sr=it(sr-256,nt),Gr=qt(dr.G[4],dr.H[4],nt),J(nt),Gr=vt(Ae,Gr=it(Gr,nt)),nt.h)break;if(zt-re<Gr||xe-zt<sr)break e;for(Lr=0;Lr<sr;++Lr)G[zt+Lr]=G[zt+Lr-Gr];for(zt+=sr,Pe+=sr;Pe>=Ae;)Pe-=Ae,++Ne,De!=null&&Ne<=Qe&&!(Ne%16)&&De(z,Ne);if(t(zt<=xe),Pe&Rt&&(dr=Tr(It,Pe,Ne)),xt!=null)for(;Kt<zt;)sr=G[Kt++],xt.X[(506832829*sr&4294967295)>>>xt.Mb]=sr}else{if(!(sr<ur))break e;for(vr=sr-280,t(xt!=null);Kt<zt;)sr=G[Kt++],xt.X[(506832829*sr&4294967295)>>>xt.Mb]=sr;sr=zt,t(!(vr>>>(Gr=xt).Xa)),G[sr]=Gr.X[vr],vr=!0}vr||t(nt.h==L(nt))}if(z.Pb&&nt.h&&zt<xe)t(z.m.h),z.a=5,z.m=z.wd,z.$=z.xd,0<z.s.ua&&ve(z.s.vb,z.s.Wa);else{if(nt.h)break e;De?.(z,Ne>Qe?Qe:Ne),z.a=0,z.$=zt-re}return 1}return z.a=3,0}function Fr(z){t(z!=null),z.vc=null,z.yc=null,z.Ya=null;var G=z.Wa;G!=null&&(G.X=null),z.vb=null,t(z!=null)}function br(){var z=new bc;return z==null?null:(z.a=0,z.xb=Co,Ee("Predictor","VP8LPredictors"),Ee("Predictor","VP8LPredictors_C"),Ee("PredictorAdd","VP8LPredictorsAdd"),Ee("PredictorAdd","VP8LPredictorsAdd_C"),tp=rt,Xd=At,Zo=ce,Eo=qe,Dc=ct,Fc=Tt,Nc=He,S.VP8LMapColor32b=Qc,S.VP8LMapColor8b=Sm,z)}function Sr(z,G,re,Ae,xe){var Qe=1,De=[z],Ne=[G],Pe=Ae.m,nt=Ae.s,It=null,zt=0;e:for(;;){if(re)for(;Qe&&X(Pe,1);){var Kt=De,_t=Ne,ur=Ae,Zt=1,xt=ur.m,Rt=ur.gc[ur.ab],dr=X(xt,2);if(ur.Oc&1<<dr)Qe=0;else{switch(ur.Oc|=1<<dr,Rt.hc=dr,Rt.Ea=Kt[0],Rt.nc=_t[0],Rt.K=[null],++ur.ab,t(4>=ur.ab),dr){case 0:case 1:Rt.b=X(xt,3)+2,Zt=Sr(at(Rt.Ea,Rt.b),at(Rt.nc,Rt.b),0,ur,Rt.K),Rt.K=Rt.K[0];break;case 3:var vr,sr=X(xt,8)+1,Gr=16<sr?0:4<sr?1:2<sr?2:3;if(Kt[0]=at(Rt.Ea,Gr),Rt.b=Gr,vr=Zt=Sr(sr,1,0,ur,Rt.K)){var Lr,En=sr,jr=Rt,ra=1<<(8>>jr.b),Ma=i(ra);if(Ma==null)vr=0;else{var na=jr.K[0],aa=jr.w;for(Ma[0]=jr.K[0][0],Lr=1;Lr<1*En;++Lr)Ma[Lr]=Ve(na[aa+Lr],Ma[Lr-1]);for(;Lr<4*ra;++Lr)Ma[Lr]=0;jr.K[0]=null,jr.K[0]=Ma,vr=1}}Zt=vr;break;case 2:break;default:t(0)}Qe=Zt}}if(De=De[0],Ne=Ne[0],Qe&&X(Pe,1)&&!(Qe=1<=(zt=X(Pe,4))&&11>=zt)){Ae.a=3;break e}var Da;if(Da=Qe)t:{var Ba,Dn,Ti,ts=Ae,Qi=De,Fo=Ne,va=zt,wo=re,No=ts.m,qi=ts.s,Yi=[null],_o=1,ko=0,Zi=Nm[va];r:for(;;){if(wo&&X(No,1)){var Ei=X(No,3)+2,Hs=at(Qi,Ei),Gs=at(Fo,Ei),Yu=Hs*Gs;if(!Sr(Hs,Gs,0,ts,Yi))break r;for(Yi=Yi[0],qi.xc=Ei,Ba=0;Ba<Yu;++Ba){var Ks=Yi[Ba]>>8&65535;Yi[Ba]=Ks,Ks>=_o&&(_o=Ks+1)}}if(No.h)break r;for(Dn=0;5>Dn;++Dn){var si=tf[Dn];!Dn&&0<va&&(si+=1<<va),ko<si&&(ko=si)}var hp=o(_o*Zi,D),li=_o,gp=o(li,N);if(gp==null)var pl=null;else t(65536>=li),pl=gp;var vl=i(ko);if(pl==null||vl==null||hp==null){ts.a=1;break r}var Vs=hp;for(Ba=Ti=0;Ba<_o;++Ba){var ml=pl[Ba],af=ml.G,Uu=ml.H,A1=0,of=1,Pm=0;for(Dn=0;5>Dn;++Dn){si=tf[Dn],af[Dn]=Vs,Uu[Dn]=Ti,!Dn&&0<va&&(si+=1<<va);a:{var MA,pp=si,Hu=ts,Po=vl,vp=Vs,Di=Ti,uo=0,$a=Hu.m,Om=X($a,1);if(a(Po,0,0,pp),Om){var mp=X($a,1)+1,Cs=X($a,1),jm=X($a,Cs==0?1:8);Po[jm]=1,mp==2&&(Po[jm=X($a,8)]=1);var vh=1}else{var Gu=i(19),Ku=X($a,4)+4;if(19<Ku){Hu.a=3;var Js=0;break a}for(MA=0;MA<Ku;++MA)Gu[r1[MA]]=X($a,3);var sf=void 0,IA=void 0,u1=Hu,gM=Gu,Ep=pp,mh=Po,Eh=0,bA=u1.m,yp=8,zm=o(128,D);n:for(;T(zm,0,7,gM,19);){if(X(bA,1)){var d1=2+2*X(bA,3);if((sf=2+X(bA,d1))>Ep)break n}else sf=Ep;for(IA=0;IA<Ep&&sf--;){J(bA);var f1=zm[0+(127&H(bA))];V(bA,bA.u+f1.g);var SA=f1.value;if(16>SA)mh[IA++]=SA,SA!=0&&(yp=SA);else{var pM=SA==16,h1=SA-16,vM=t1[h1],Lm=X(bA,QD[h1])+vM;if(IA+Lm>Ep)break n;for(var mM=pM?yp:0;0<Lm--;)mh[IA++]=mM}}Eh=1;break n}Eh||(u1.a=3),vh=Eh}(vh=vh&&!$a.h)&&(uo=T(vp,Di,8,Po,pp)),vh&&uo!=0?Js=uo:(Hu.a=3,Js=0)}if(Js==0)break r;if(of&&lM[Dn]==1&&(of=Vs[Ti].g==0),A1+=Vs[Ti].g,Ti+=Js,3>=Dn){var yh,g1=vl[0];for(yh=1;yh<si;++yh)vl[yh]>g1&&(g1=vl[yh]);Pm+=g1}}if(ml.nd=of,ml.Qb=0,of&&(ml.qb=(af[3][Uu[3]+0].value<<24|af[1][Uu[1]+0].value<<16|af[2][Uu[2]+0].value)>>>0,A1==0&&256>af[0][Uu[0]+0].value&&(ml.Qb=1,ml.qb+=af[0][Uu[0]+0].value<<8)),ml.jc=!ml.Qb&&6>Pm,ml.jc){var Ch,El=ml;for(Ch=0;Ch<co;++Ch){var Vu=Ch,Ju=El.pd[Vu],Ym=El.G[0][El.H[0]+Vu];256<=Ym.value?(Ju.g=Ym.g+256,Ju.value=Ym.value):(Ju.g=0,Ju.value=0,Vu>>=Xt(Ym,8,Ju),Vu>>=Xt(El.G[1][El.H[1]+Vu],16,Ju),Vu>>=Xt(El.G[2][El.H[2]+Vu],0,Ju),Xt(El.G[3][El.H[3]+Vu],24,Ju))}}}qi.vc=Yi,qi.Wb=_o,qi.Ya=pl,qi.yc=hp,Da=1;break t}Da=0}if(!(Qe=Da)){Ae.a=3;break e}if(0<zt){if(nt.ua=1<<zt,!Se(nt.Wa,zt)){Ae.a=1,Qe=0;break e}}else nt.ua=0;var p1=Ae,yl=De,ws=Ne,Um=p1.s,Hm=Um.xc;if(p1.c=yl,p1.i=ws,Um.md=at(yl,Hm),Um.wc=Hm==0?-1:(1<<Hm)-1,re){Ae.xb=Lu;break e}if((It=i(De*Ne))==null){Ae.a=1,Qe=0;break e}Qe=(Qe=Ir(Ae,It,0,De,Ne,Ne,null))&&!Pe.h;break e}return Qe?(xe!=null?xe[0]=It:(t(It==null),t(re)),Ae.$=0,re||Fr(nt)):Fr(nt),Qe}function fr(z,G){var re=z.c*z.i,Ae=re+G+16*G;return t(z.c<=G),z.V=i(Ae),z.V==null?(z.Ta=null,z.Ua=0,z.a=1,0):(z.Ta=z.V,z.Ua=z.Ba+re+G,1)}function Cr(z,G){var re=z.C,Ae=G-re,xe=z.V,Qe=z.Ba+z.c*re;for(t(G<=z.l.o);0<Ae;){var De=16<Ae?16:Ae,Ne=z.l.ma,Pe=z.l.width,nt=Pe*De,It=Ne.ca,zt=Ne.tb+Pe*re,Kt=z.Ta,_t=z.Ua;Kr(z,De,xe,Qe),ii(Kt,_t,It,zt,nt),mr(Ne,re,re+De,It,zt,Pe),Ae-=De,xe+=De*z.c,re+=De}t(re==G),z.C=z.Ma=G}function hr(){this.ub=this.yd=this.td=this.Rb=0}function Ht(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Gt(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function er(){this.Yb=(function(){var z=[];return(function G(re,Ae,xe){for(var Qe=xe[Ae],De=0;De<Qe&&(re.push(xe.length>Ae+1?[]:0),!(xe.length<Ae+1));De++)G(re[De],Ae+1,xe)})(z,0,[3,11]),z})()}function Qr(){this.jb=i(3),this.Wc=s([4,8],er),this.Xc=s([4,17],er)}function Hr(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function vn(){this.ld=this.La=this.dd=this.tc=0}function pn(){this.Na=this.la=0}function Qn(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function pt(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Ze(){this.uc=this.M=this.Nb=0,this.wa=Array(new vn),this.Y=0,this.ya=Array(new pt),this.aa=0,this.l=new Wt}function bt(){this.y=i(16),this.f=i(8),this.ea=i(8)}function kt(){this.cb=this.a=0,this.sc="",this.m=new K,this.Od=new hr,this.Kc=new Ht,this.ed=new Hr,this.Qa=new Gt,this.Ic=this.$c=this.Aa=0,this.D=new Ze,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=o(8,K),this.ia=0,this.pb=o(4,Qn),this.Pa=new Qr,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new bt),this.Hd=0,this.rb=Array(new pn),this.sb=0,this.wa=Array(new vn),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new pt),this.L=this.aa=0,this.gd=s([4,2],vn),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Wt(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function St(){var z=new kt;return z!=null&&(z.a=0,z.sc="OK",z.cb=0,z.Xb=0,fh||(fh=ze)),z}function pe(z,G,re){return z.a==0&&(z.a=G,z.sc=re,z.cb=0),0}function ke(z,G,re){return 3<=re&&z[G+0]==157&&z[G+1]==1&&z[G+2]==42}function Me(z,G){if(z==null)return 0;if(z.a=0,z.sc="OK",G==null)return pe(z,2,"null VP8Io passed to VP8GetHeaders()");var re=G.data,Ae=G.w,xe=G.ha;if(4>xe)return pe(z,7,"Truncated header.");var Qe=re[Ae+0]|re[Ae+1]<<8|re[Ae+2]<<16,De=z.Od;if(De.Rb=!(1&Qe),De.td=Qe>>1&7,De.yd=Qe>>4&1,De.ub=Qe>>5,3<De.td)return pe(z,3,"Incorrect keyframe parameters.");if(!De.yd)return pe(z,4,"Frame not displayable.");Ae+=3,xe-=3;var Ne=z.Kc;if(De.Rb){if(7>xe)return pe(z,7,"cannot parse picture header");if(!ke(re,Ae,xe))return pe(z,3,"Bad code word");Ne.c=16383&(re[Ae+4]<<8|re[Ae+3]),Ne.Td=re[Ae+4]>>6,Ne.i=16383&(re[Ae+6]<<8|re[Ae+5]),Ne.Ud=re[Ae+6]>>6,Ae+=7,xe-=7,z.za=Ne.c+15>>4,z.Ub=Ne.i+15>>4,G.width=Ne.c,G.height=Ne.i,G.Da=0,G.j=0,G.v=0,G.va=G.width,G.o=G.height,G.da=0,G.ib=G.width,G.hb=G.height,G.U=G.width,G.T=G.height,a((Qe=z.Pa).jb,0,255,Qe.jb.length),t((Qe=z.Qa)!=null),Qe.Cb=0,Qe.Bb=0,Qe.Fb=1,a(Qe.Zb,0,0,Qe.Zb.length),a(Qe.Lb,0,0,Qe.Lb)}if(De.ub>xe)return pe(z,7,"bad partition length");_(Qe=z.m,re,Ae,De.ub),Ae+=De.ub,xe-=De.ub,De.Rb&&(Ne.Ld=ae(Qe),Ne.Kd=ae(Qe)),Ne=z.Qa;var Pe,nt=z.Pa;if(t(Qe!=null),t(Ne!=null),Ne.Cb=ae(Qe),Ne.Cb){if(Ne.Bb=ae(Qe),ae(Qe)){for(Ne.Fb=ae(Qe),Pe=0;4>Pe;++Pe)Ne.Zb[Pe]=ae(Qe)?k(Qe,7):0;for(Pe=0;4>Pe;++Pe)Ne.Lb[Pe]=ae(Qe)?k(Qe,6):0}if(Ne.Bb)for(Pe=0;3>Pe;++Pe)nt.jb[Pe]=ae(Qe)?P(Qe,8):255}else Ne.Bb=0;if(Qe.Ka)return pe(z,3,"cannot parse segment header");if((Ne=z.ed).zd=ae(Qe),Ne.Tb=P(Qe,6),Ne.wb=P(Qe,3),Ne.Pc=ae(Qe),Ne.Pc&&ae(Qe)){for(nt=0;4>nt;++nt)ae(Qe)&&(Ne.vd[nt]=k(Qe,6));for(nt=0;4>nt;++nt)ae(Qe)&&(Ne.od[nt]=k(Qe,6))}if(z.L=Ne.Tb==0?0:Ne.zd?1:2,Qe.Ka)return pe(z,3,"cannot parse filter header");var It=xe;if(xe=Pe=Ae,Ae=Pe+It,Ne=It,z.Xb=(1<<P(z.m,2))-1,It<3*(nt=z.Xb))re=7;else{for(Pe+=3*nt,Ne-=3*nt,It=0;It<nt;++It){var zt=re[xe+0]|re[xe+1]<<8|re[xe+2]<<16;zt>Ne&&(zt=Ne),_(z.Jc[+It],re,Pe,zt),Pe+=zt,Ne-=zt,xe+=3}_(z.Jc[+nt],re,Pe,Ne),re=Pe<Ae?0:5}if(re!=0)return pe(z,re,"cannot parse partitions");for(re=P(Pe=z.m,7),xe=ae(Pe)?k(Pe,4):0,Ae=ae(Pe)?k(Pe,4):0,Ne=ae(Pe)?k(Pe,4):0,nt=ae(Pe)?k(Pe,4):0,Pe=ae(Pe)?k(Pe,4):0,It=z.Qa,zt=0;4>zt;++zt){if(It.Cb){var Kt=It.Zb[zt];It.Fb||(Kt+=re)}else{if(0<zt){z.pb[zt]=z.pb[0];continue}Kt=re}var _t=z.pb[zt];_t.Sc[0]=dh[zs(Kt+xe,127)],_t.Sc[1]=zu[zs(Kt+0,127)],_t.Eb[0]=2*dh[zs(Kt+Ae,127)],_t.Eb[1]=101581*zu[zs(Kt+Ne,127)]>>16,8>_t.Eb[1]&&(_t.Eb[1]=8),_t.Qc[0]=dh[zs(Kt+nt,117)],_t.Qc[1]=zu[zs(Kt+Pe,127)],_t.lc=Kt+Pe}if(!De.Rb)return pe(z,4,"Not a key frame.");for(ae(Qe),De=z.Pa,re=0;4>re;++re){for(xe=0;8>xe;++xe)for(Ae=0;3>Ae;++Ae)for(Ne=0;11>Ne;++Ne)nt=ne(Qe,n1[re][xe][Ae][Ne])?P(Qe,8):_m[re][xe][Ae][Ne],De.Wc[re][xe].Yb[Ae][Ne]=nt;for(xe=0;17>xe;++xe)De.Xc[re][xe]=De.Wc[re][hh[xe]]}return z.kc=ae(Qe),z.kc&&(z.Bd=P(Qe,8)),z.cb=1}function ze(z,G,re,Ae,xe,Qe,De){var Ne=G[xe].Yb[re];for(re=0;16>xe;++xe){if(!ne(z,Ne[re+0]))return xe;for(;!ne(z,Ne[re+1]);)if(Ne=G[++xe].Yb[0],re=0,xe==16)return 16;var Pe=G[xe+1].Yb;if(ne(z,Ne[re+2])){var nt=z,It=0;if(ne(nt,(Kt=Ne)[(zt=re)+3]))if(ne(nt,Kt[zt+6])){for(Ne=0,zt=2*(It=ne(nt,Kt[zt+8]))+(Kt=ne(nt,Kt[zt+9+It])),It=0,Kt=rf[zt];Kt[Ne];++Ne)It+=It+ne(nt,Kt[Ne]);It+=3+(8<<zt)}else ne(nt,Kt[zt+7])?(It=7+2*ne(nt,165),It+=ne(nt,145)):It=5+ne(nt,159);else It=ne(nt,Kt[zt+4])?3+ne(nt,Kt[zt+5]):2;Ne=Pe[2]}else It=1,Ne=Pe[1];Pe=De+lp[xe],0>(nt=z).b&&ee(nt);var zt,Kt=nt.b,_t=(zt=nt.Ca>>1)-(nt.I>>Kt)>>31;--nt.b,nt.Ca+=_t,nt.Ca|=1,nt.I-=(zt+1&_t)<<Kt,Qe[Pe]=((It^_t)-_t)*Ae[(0<xe)+0]}return 16}function Ye(z){var G=z.rb[z.sb-1];G.la=0,G.Na=0,a(z.zc,0,0,z.zc.length),z.ja=0}function et(z,G){if(z==null)return 0;if(G==null)return pe(z,2,"NULL VP8Io parameter in VP8Decode().");if(!z.cb&&!Me(z,G))return 0;if(t(z.cb),G.ac==null||G.ac(G)){G.ob&&(z.L=0);var re=fp[z.L];if(z.L==2?(z.yb=0,z.zb=0):(z.yb=G.v-re>>4,z.zb=G.j-re>>4,0>z.yb&&(z.yb=0),0>z.zb&&(z.zb=0)),z.Va=G.o+15+re>>4,z.Hb=G.va+15+re>>4,z.Hb>z.za&&(z.Hb=z.za),z.Va>z.Ub&&(z.Va=z.Ub),0<z.L){var Ae=z.ed;for(re=0;4>re;++re){var xe;if(z.Qa.Cb){var Qe=z.Qa.Lb[re];z.Qa.Fb||(Qe+=Ae.Tb)}else Qe=Ae.Tb;for(xe=0;1>=xe;++xe){var De=z.gd[re][xe],Ne=Qe;if(Ae.Pc&&(Ne+=Ae.vd[0],xe&&(Ne+=Ae.od[0])),0<(Ne=0>Ne?0:63<Ne?63:Ne)){var Pe=Ne;0<Ae.wb&&(Pe=4<Ae.wb?Pe>>2:Pe>>1)>9-Ae.wb&&(Pe=9-Ae.wb),1>Pe&&(Pe=1),De.dd=Pe,De.tc=2*Ne+Pe,De.ld=40<=Ne?2:15<=Ne?1:0}else De.tc=0;De.La=xe}}}re=0}else pe(z,6,"Frame setup failed"),re=z.a;if(re=re==0){if(re){z.$c=0,0<z.Aa||(z.Ic=ND);e:{re=z.Ic,Ae=4*(Pe=z.za);var nt=32*Pe,It=Pe+1,zt=0<z.L?Pe*(0<z.Aa?2:1):0,Kt=(z.Aa==2?2:1)*Pe;if((De=Ae+832+(xe=3*(16*re+fp[z.L])/2*nt)+(Qe=z.Fa!=null&&0<z.Fa.length?z.Kc.c*z.Kc.i:0))!=De)re=0;else{if(De>z.Vb){if(z.Vb=0,z.Ec=i(De),z.Fc=0,z.Ec==null){re=pe(z,1,"no memory during frame initialization.");break e}z.Vb=De}De=z.Ec,Ne=z.Fc,z.Ac=De,z.Bc=Ne,Ne+=Ae,z.Gd=o(nt,bt),z.Hd=0,z.rb=o(It+1,pn),z.sb=1,z.wa=zt?o(zt,vn):null,z.Y=0,z.D.Nb=0,z.D.wa=z.wa,z.D.Y=z.Y,0<z.Aa&&(z.D.Y+=Pe),t(!0),z.oc=De,z.pc=Ne,Ne+=832,z.ya=o(Kt,pt),z.aa=0,z.D.ya=z.ya,z.D.aa=z.aa,z.Aa==2&&(z.D.aa+=Pe),z.R=16*Pe,z.B=8*Pe,Pe=(nt=fp[z.L])*z.R,nt=nt/2*z.B,z.sa=De,z.ta=Ne+Pe,z.qa=z.sa,z.ra=z.ta+16*re*z.R+nt,z.Ha=z.qa,z.Ia=z.ra+8*re*z.B+nt,z.$c=0,Ne+=xe,z.mb=Qe?De:null,z.nb=Qe?Ne:null,t(Ne+Qe<=z.Fc+z.Vb),Ye(z),a(z.Ac,z.Bc,0,Ae),re=1}}if(re){if(G.ka=0,G.y=z.sa,G.O=z.ta,G.f=z.qa,G.N=z.ra,G.ea=z.Ha,G.Vd=z.Ia,G.fa=z.R,G.Rc=z.B,G.F=null,G.J=0,!Qa){for(re=-255;255>=re;++re)oi[255+re]=0>re?-re:re;for(re=-1020;1020>=re;++re)BA[1020+re]=-128>re?-128:127<re?127:re;for(re=-112;112>=re;++re)ch[112+re]=-16>re?-16:15<re?15:re;for(re=-255;510>=re;++re)ef[255+re]=0>re?0:255<re?255:re;Qa=1}qd=Wr,yA=Nr,rp=rn,$o=dn,gl=kr,Si=ar,yo=Mc,Rm=Ic,CA=Tu,Nu=ja,_u=Ru,wA=Wl,ku=js,Pu=Qu,Zd=lh,Ys=Os,$d=ps,Do=Su,la[0]=ha,la[1]=Gn,la[2]=$n,la[3]=pa,la[4]=In,la[5]=bi,la[6]=Oa,la[7]=ri,la[8]=Xi,la[9]=Za,es[0]=Pt,es[1]=Cn,es[2]=qa,es[3]=wa,es[4]=Ft,es[5]=or,es[6]=Zr,xa[0]=Qo,xa[1]=Wn,xa[2]=po,xa[3]=ni,xa[4]=gs,xa[5]=so,xa[6]=bu,re=1}else re=0}re&&(re=(function(_t,ur){for(_t.M=0;_t.M<_t.Va;++_t.M){var Zt,xt=_t.Jc[_t.M&_t.Xb],Rt=_t.m,dr=_t;for(Zt=0;Zt<dr.za;++Zt){var vr=Rt,sr=dr,Gr=sr.Ac,Lr=sr.Bc+4*Zt,En=sr.zc,jr=sr.ya[sr.aa+Zt];if(sr.Qa.Bb?jr.$b=ne(vr,sr.Pa.jb[0])?2+ne(vr,sr.Pa.jb[2]):ne(vr,sr.Pa.jb[1]):jr.$b=0,sr.kc&&(jr.Ad=ne(vr,sr.Bd)),jr.Za=!ne(vr,145)+0,jr.Za){var ra=jr.Ob,Ma=0;for(sr=0;4>sr;++sr){var na,aa=En[0+sr];for(na=0;4>na;++na){aa=cM[Gr[Lr+na]][aa];for(var Da=nf[ne(vr,aa[0])];0<Da;)Da=nf[2*Da+ne(vr,aa[Da])];aa=-Da,Gr[Lr+na]=aa}n(ra,Ma,Gr,Lr,4),Ma+=4,En[0+sr]=aa}}else aa=ne(vr,156)?ne(vr,128)?1:3:ne(vr,163)?2:0,jr.Ob[0]=aa,a(Gr,Lr,aa,4),a(En,0,aa,4);jr.Dd=ne(vr,142)?ne(vr,114)?ne(vr,183)?1:3:2:0}if(dr.m.Ka)return pe(_t,7,"Premature end-of-partition0 encountered.");for(;_t.ja<_t.za;++_t.ja){if(dr=xt,vr=(Rt=_t).rb[Rt.sb-1],Gr=Rt.rb[Rt.sb+Rt.ja],Zt=Rt.ya[Rt.aa+Rt.ja],Lr=Rt.kc?Zt.Ad:0)vr.la=Gr.la=0,Zt.Za||(vr.Na=Gr.Na=0),Zt.Hc=0,Zt.Gc=0,Zt.ia=0;else{var Ba,Dn;if(vr=Gr,Gr=dr,Lr=Rt.Pa.Xc,En=Rt.ya[Rt.aa+Rt.ja],jr=Rt.pb[En.$b],sr=En.ad,ra=0,Ma=Rt.rb[Rt.sb-1],aa=na=0,a(sr,ra,0,384),En.Za)var Ti=0,ts=Lr[3];else{Da=i(16);var Qi=vr.Na+Ma.Na;if(Qi=fh(Gr,Lr[1],Qi,jr.Eb,0,Da,0),vr.Na=Ma.Na=(0<Qi)+0,1<Qi)qd(Da,0,sr,ra);else{var Fo=Da[0]+3>>3;for(Da=0;256>Da;Da+=16)sr[ra+Da]=Fo}Ti=1,ts=Lr[0]}var va=15&vr.la,wo=15&Ma.la;for(Da=0;4>Da;++Da){var No=1&wo;for(Fo=Dn=0;4>Fo;++Fo)va=va>>1|(No=(Qi=fh(Gr,ts,Qi=No+(1&va),jr.Sc,Ti,sr,ra))>Ti)<<7,Dn=Dn<<2|(3<Qi?3:1<Qi?2:sr[ra+0]!=0),ra+=16;va>>=4,wo=wo>>1|No<<7,na=(na<<8|Dn)>>>0}for(ts=va,Ti=wo>>4,Ba=0;4>Ba;Ba+=2){for(Dn=0,va=vr.la>>4+Ba,wo=Ma.la>>4+Ba,Da=0;2>Da;++Da){for(No=1&wo,Fo=0;2>Fo;++Fo)Qi=No+(1&va),va=va>>1|(No=0<(Qi=fh(Gr,Lr[2],Qi,jr.Qc,0,sr,ra)))<<3,Dn=Dn<<2|(3<Qi?3:1<Qi?2:sr[ra+0]!=0),ra+=16;va>>=2,wo=wo>>1|No<<5}aa|=Dn<<4*Ba,ts|=va<<4<<Ba,Ti|=(240&wo)<<Ba}vr.la=ts,Ma.la=Ti,En.Hc=na,En.Gc=aa,En.ia=43690&aa?0:jr.ia,Lr=!(na|aa)}if(0<Rt.L&&(Rt.wa[Rt.Y+Rt.ja]=Rt.gd[Zt.$b][Zt.Za],Rt.wa[Rt.Y+Rt.ja].La|=!Lr),dr.Ka)return pe(_t,7,"Premature end-of-file encountered.")}if(Ye(_t),Rt=ur,dr=1,Zt=(xt=_t).D,vr=0<xt.L&&xt.M>=xt.zb&&xt.M<=xt.Va,xt.Aa==0)e:{if(Zt.M=xt.M,Zt.uc=vr,Zg(xt,Zt),dr=1,Zt=(Dn=xt.D).Nb,vr=(aa=fp[xt.L])*xt.R,Gr=aa/2*xt.B,Da=16*Zt*xt.R,Fo=8*Zt*xt.B,Lr=xt.sa,En=xt.ta-vr+Da,jr=xt.qa,sr=xt.ra-Gr+Fo,ra=xt.Ha,Ma=xt.Ia-Gr+Fo,wo=(va=Dn.M)==0,na=va>=xt.Va-1,xt.Aa==2&&Zg(xt,Dn),Dn.uc)for(No=(Qi=xt).D.M,t(Qi.D.uc),Dn=Qi.yb;Dn<Qi.Hb;++Dn){Ti=Dn,ts=No;var qi=(Yi=(si=Qi).D).Nb;Ba=si.R;var Yi=Yi.wa[Yi.Y+Ti],_o=si.sa,ko=si.ta+16*qi*Ba+16*Ti,Zi=Yi.dd,Ei=Yi.tc;if(Ei!=0)if(t(3<=Ei),si.L==1)0<Ti&&Ys(_o,ko,Ba,Ei+4),Yi.La&&Do(_o,ko,Ba,Ei),0<ts&&Zd(_o,ko,Ba,Ei+4),Yi.La&&$d(_o,ko,Ba,Ei);else{var Hs=si.B,Gs=si.qa,Yu=si.ra+8*qi*Hs+8*Ti,Ks=si.Ha,si=si.Ia+8*qi*Hs+8*Ti;qi=Yi.ld,0<Ti&&(Rm(_o,ko,Ba,Ei+4,Zi,qi),Nu(Gs,Yu,Ks,si,Hs,Ei+4,Zi,qi)),Yi.La&&(wA(_o,ko,Ba,Ei,Zi,qi),Pu(Gs,Yu,Ks,si,Hs,Ei,Zi,qi)),0<ts&&(yo(_o,ko,Ba,Ei+4,Zi,qi),CA(Gs,Yu,Ks,si,Hs,Ei+4,Zi,qi)),Yi.La&&(_u(_o,ko,Ba,Ei,Zi,qi),ku(Gs,Yu,Ks,si,Hs,Ei,Zi,qi))}}if(xt.ia&&alert("todo:DitherRow"),Rt.put!=null){if(Dn=16*va,va=16*(va+1),wo?(Rt.y=xt.sa,Rt.O=xt.ta+Da,Rt.f=xt.qa,Rt.N=xt.ra+Fo,Rt.ea=xt.Ha,Rt.W=xt.Ia+Fo):(Dn-=aa,Rt.y=Lr,Rt.O=En,Rt.f=jr,Rt.N=sr,Rt.ea=ra,Rt.W=Ma),na||(va-=aa),va>Rt.o&&(va=Rt.o),Rt.F=null,Rt.J=null,xt.Fa!=null&&0<xt.Fa.length&&Dn<va&&(Rt.J=Gd(xt,Rt,Dn,va-Dn),Rt.F=xt.mb,Rt.F==null&&Rt.F.length==0)){dr=pe(xt,3,"Could not decode alpha data.");break e}Dn<Rt.j&&(aa=Rt.j-Dn,Dn=Rt.j,t(!(1&aa)),Rt.O+=xt.R*aa,Rt.N+=xt.B*(aa>>1),Rt.W+=xt.B*(aa>>1),Rt.F!=null&&(Rt.J+=Rt.width*aa)),Dn<va&&(Rt.O+=Rt.v,Rt.N+=Rt.v>>1,Rt.W+=Rt.v>>1,Rt.F!=null&&(Rt.J+=Rt.v),Rt.ka=Dn-Rt.j,Rt.U=Rt.va-Rt.v,Rt.T=va-Dn,dr=Rt.put(Rt))}Zt+1!=xt.Ic||na||(n(xt.sa,xt.ta-vr,Lr,En+16*xt.R,vr),n(xt.qa,xt.ra-Gr,jr,sr+8*xt.B,Gr),n(xt.Ha,xt.Ia-Gr,ra,Ma+8*xt.B,Gr))}if(!dr)return pe(_t,6,"Output aborted.")}return 1})(z,G)),G.bc!=null&&G.bc(G),re&=1}return re?(z.cb=0,re):0}function Ct(z,G,re,Ae,xe){xe=z[G+re+32*Ae]+(xe>>3),z[G+re+32*Ae]=-256&xe?0>xe?0:255:xe}function Ot(z,G,re,Ae,xe,Qe){Ct(z,G,0,re,Ae+xe),Ct(z,G,1,re,Ae+Qe),Ct(z,G,2,re,Ae-Qe),Ct(z,G,3,re,Ae-xe)}function Ut(z){return(20091*z>>16)+z}function Jt(z,G,re,Ae){var xe,Qe=0,De=i(16);for(xe=0;4>xe;++xe){var Ne=z[G+0]+z[G+8],Pe=z[G+0]-z[G+8],nt=(35468*z[G+4]>>16)-Ut(z[G+12]),It=Ut(z[G+4])+(35468*z[G+12]>>16);De[Qe+0]=Ne+It,De[Qe+1]=Pe+nt,De[Qe+2]=Pe-nt,De[Qe+3]=Ne-It,Qe+=4,G++}for(xe=Qe=0;4>xe;++xe)Ne=(z=De[Qe+0]+4)+De[Qe+8],Pe=z-De[Qe+8],nt=(35468*De[Qe+4]>>16)-Ut(De[Qe+12]),Ct(re,Ae,0,0,Ne+(It=Ut(De[Qe+4])+(35468*De[Qe+12]>>16))),Ct(re,Ae,1,0,Pe+nt),Ct(re,Ae,2,0,Pe-nt),Ct(re,Ae,3,0,Ne-It),Qe++,Ae+=32}function ar(z,G,re,Ae){var xe=z[G+0]+4,Qe=35468*z[G+4]>>16,De=Ut(z[G+4]),Ne=35468*z[G+1]>>16;Ot(re,Ae,0,xe+De,z=Ut(z[G+1]),Ne),Ot(re,Ae,1,xe+Qe,z,Ne),Ot(re,Ae,2,xe-Qe,z,Ne),Ot(re,Ae,3,xe-De,z,Ne)}function Nr(z,G,re,Ae,xe){Jt(z,G,re,Ae),xe&&Jt(z,G+16,re,Ae+4)}function rn(z,G,re,Ae){yA(z,G+0,re,Ae,1),yA(z,G+32,re,Ae+128,1)}function dn(z,G,re,Ae){var xe;for(z=z[G+0]+4,xe=0;4>xe;++xe)for(G=0;4>G;++G)Ct(re,Ae,G,xe,z)}function kr(z,G,re,Ae){z[G+0]&&$o(z,G+0,re,Ae),z[G+16]&&$o(z,G+16,re,Ae+4),z[G+32]&&$o(z,G+32,re,Ae+128),z[G+48]&&$o(z,G+48,re,Ae+128+4)}function Wr(z,G,re,Ae){var xe,Qe=i(16);for(xe=0;4>xe;++xe){var De=z[G+0+xe]+z[G+12+xe],Ne=z[G+4+xe]+z[G+8+xe],Pe=z[G+4+xe]-z[G+8+xe],nt=z[G+0+xe]-z[G+12+xe];Qe[0+xe]=De+Ne,Qe[8+xe]=De-Ne,Qe[4+xe]=nt+Pe,Qe[12+xe]=nt-Pe}for(xe=0;4>xe;++xe)De=(z=Qe[0+4*xe]+3)+Qe[3+4*xe],Ne=Qe[1+4*xe]+Qe[2+4*xe],Pe=Qe[1+4*xe]-Qe[2+4*xe],nt=z-Qe[3+4*xe],re[Ae+0]=De+Ne>>3,re[Ae+16]=nt+Pe>>3,re[Ae+32]=De-Ne>>3,re[Ae+48]=nt-Pe>>3,Ae+=64}function Rr(z,G,re){var Ae,xe=G-32,Qe=Es,De=255-z[xe-1];for(Ae=0;Ae<re;++Ae){var Ne,Pe=Qe,nt=De+z[G-1];for(Ne=0;Ne<re;++Ne)z[G+Ne]=Pe[nt+z[xe+Ne]];G+=32}}function Gn(z,G){Rr(z,G,4)}function Wn(z,G){Rr(z,G,8)}function Cn(z,G){Rr(z,G,16)}function qa(z,G){var re;for(re=0;16>re;++re)n(z,G+32*re,z,G-32,16)}function wa(z,G){var re;for(re=16;0<re;--re)a(z,G,z[G-1],16),G+=32}function ht(z,G,re){var Ae;for(Ae=0;16>Ae;++Ae)a(G,re+32*Ae,z,16)}function Pt(z,G){var re,Ae=16;for(re=0;16>re;++re)Ae+=z[G-1+32*re]+z[G+re-32];ht(Ae>>5,z,G)}function Ft(z,G){var re,Ae=8;for(re=0;16>re;++re)Ae+=z[G-1+32*re];ht(Ae>>4,z,G)}function or(z,G){var re,Ae=8;for(re=0;16>re;++re)Ae+=z[G+re-32];ht(Ae>>4,z,G)}function Zr(z,G){ht(128,z,G)}function lr(z,G,re){return z+2*G+re+2>>2}function $n(z,G){var re,Ae=G-32;for(Ae=new Uint8Array([lr(z[Ae-1],z[Ae+0],z[Ae+1]),lr(z[Ae+0],z[Ae+1],z[Ae+2]),lr(z[Ae+1],z[Ae+2],z[Ae+3]),lr(z[Ae+2],z[Ae+3],z[Ae+4])]),re=0;4>re;++re)n(z,G+32*re,Ae,0,Ae.length)}function pa(z,G){var re=z[G-1],Ae=z[G-1+32],xe=z[G-1+64],Qe=z[G-1+96];fe(z,G+0,16843009*lr(z[G-1-32],re,Ae)),fe(z,G+32,16843009*lr(re,Ae,xe)),fe(z,G+64,16843009*lr(Ae,xe,Qe)),fe(z,G+96,16843009*lr(xe,Qe,Qe))}function ha(z,G){var re,Ae=4;for(re=0;4>re;++re)Ae+=z[G+re-32]+z[G-1+32*re];for(Ae>>=3,re=0;4>re;++re)a(z,G+32*re,Ae,4)}function In(z,G){var re=z[G-1+0],Ae=z[G-1+32],xe=z[G-1+64],Qe=z[G-1-32],De=z[G+0-32],Ne=z[G+1-32],Pe=z[G+2-32],nt=z[G+3-32];z[G+0+96]=lr(Ae,xe,z[G-1+96]),z[G+1+96]=z[G+0+64]=lr(re,Ae,xe),z[G+2+96]=z[G+1+64]=z[G+0+32]=lr(Qe,re,Ae),z[G+3+96]=z[G+2+64]=z[G+1+32]=z[G+0+0]=lr(De,Qe,re),z[G+3+64]=z[G+2+32]=z[G+1+0]=lr(Ne,De,Qe),z[G+3+32]=z[G+2+0]=lr(Pe,Ne,De),z[G+3+0]=lr(nt,Pe,Ne)}function Oa(z,G){var re=z[G+1-32],Ae=z[G+2-32],xe=z[G+3-32],Qe=z[G+4-32],De=z[G+5-32],Ne=z[G+6-32],Pe=z[G+7-32];z[G+0+0]=lr(z[G+0-32],re,Ae),z[G+1+0]=z[G+0+32]=lr(re,Ae,xe),z[G+2+0]=z[G+1+32]=z[G+0+64]=lr(Ae,xe,Qe),z[G+3+0]=z[G+2+32]=z[G+1+64]=z[G+0+96]=lr(xe,Qe,De),z[G+3+32]=z[G+2+64]=z[G+1+96]=lr(Qe,De,Ne),z[G+3+64]=z[G+2+96]=lr(De,Ne,Pe),z[G+3+96]=lr(Ne,Pe,Pe)}function bi(z,G){var re=z[G-1+0],Ae=z[G-1+32],xe=z[G-1+64],Qe=z[G-1-32],De=z[G+0-32],Ne=z[G+1-32],Pe=z[G+2-32],nt=z[G+3-32];z[G+0+0]=z[G+1+64]=Qe+De+1>>1,z[G+1+0]=z[G+2+64]=De+Ne+1>>1,z[G+2+0]=z[G+3+64]=Ne+Pe+1>>1,z[G+3+0]=Pe+nt+1>>1,z[G+0+96]=lr(xe,Ae,re),z[G+0+64]=lr(Ae,re,Qe),z[G+0+32]=z[G+1+96]=lr(re,Qe,De),z[G+1+32]=z[G+2+96]=lr(Qe,De,Ne),z[G+2+32]=z[G+3+96]=lr(De,Ne,Pe),z[G+3+32]=lr(Ne,Pe,nt)}function ri(z,G){var re=z[G+0-32],Ae=z[G+1-32],xe=z[G+2-32],Qe=z[G+3-32],De=z[G+4-32],Ne=z[G+5-32],Pe=z[G+6-32],nt=z[G+7-32];z[G+0+0]=re+Ae+1>>1,z[G+1+0]=z[G+0+64]=Ae+xe+1>>1,z[G+2+0]=z[G+1+64]=xe+Qe+1>>1,z[G+3+0]=z[G+2+64]=Qe+De+1>>1,z[G+0+32]=lr(re,Ae,xe),z[G+1+32]=z[G+0+96]=lr(Ae,xe,Qe),z[G+2+32]=z[G+1+96]=lr(xe,Qe,De),z[G+3+32]=z[G+2+96]=lr(Qe,De,Ne),z[G+3+64]=lr(De,Ne,Pe),z[G+3+96]=lr(Ne,Pe,nt)}function Za(z,G){var re=z[G-1+0],Ae=z[G-1+32],xe=z[G-1+64],Qe=z[G-1+96];z[G+0+0]=re+Ae+1>>1,z[G+2+0]=z[G+0+32]=Ae+xe+1>>1,z[G+2+32]=z[G+0+64]=xe+Qe+1>>1,z[G+1+0]=lr(re,Ae,xe),z[G+3+0]=z[G+1+32]=lr(Ae,xe,Qe),z[G+3+32]=z[G+1+64]=lr(xe,Qe,Qe),z[G+3+64]=z[G+2+64]=z[G+0+96]=z[G+1+96]=z[G+2+96]=z[G+3+96]=Qe}function Xi(z,G){var re=z[G-1+0],Ae=z[G-1+32],xe=z[G-1+64],Qe=z[G-1+96],De=z[G-1-32],Ne=z[G+0-32],Pe=z[G+1-32],nt=z[G+2-32];z[G+0+0]=z[G+2+32]=re+De+1>>1,z[G+0+32]=z[G+2+64]=Ae+re+1>>1,z[G+0+64]=z[G+2+96]=xe+Ae+1>>1,z[G+0+96]=Qe+xe+1>>1,z[G+3+0]=lr(Ne,Pe,nt),z[G+2+0]=lr(De,Ne,Pe),z[G+1+0]=z[G+3+32]=lr(re,De,Ne),z[G+1+32]=z[G+3+64]=lr(Ae,re,De),z[G+1+64]=z[G+3+96]=lr(xe,Ae,re),z[G+1+96]=lr(Qe,xe,Ae)}function po(z,G){var re;for(re=0;8>re;++re)n(z,G+32*re,z,G-32,8)}function ni(z,G){var re;for(re=0;8>re;++re)a(z,G,z[G-1],8),G+=32}function zi(z,G,re){var Ae;for(Ae=0;8>Ae;++Ae)a(G,re+32*Ae,z,8)}function Qo(z,G){var re,Ae=8;for(re=0;8>re;++re)Ae+=z[G+re-32]+z[G-1+32*re];zi(Ae>>4,z,G)}function so(z,G){var re,Ae=4;for(re=0;8>re;++re)Ae+=z[G+re-32];zi(Ae>>3,z,G)}function gs(z,G){var re,Ae=4;for(re=0;8>re;++re)Ae+=z[G-1+32*re];zi(Ae>>3,z,G)}function bu(z,G){zi(128,z,G)}function gA(z,G,re){var Ae=z[G-re],xe=z[G+0],Qe=3*(xe-Ae)+Tm[1020+z[G-2*re]-z[G+re]],De=np[112+(Qe+4>>3)];z[G-re]=Es[255+Ae+np[112+(Qe+3>>3)]],z[G+0]=Es[255+xe-De]}function Ud(z,G,re,Ae){var xe=z[G+0],Qe=z[G+re];return Us[255+z[G-2*re]-z[G-re]]>Ae||Us[255+Qe-xe]>Ae}function sh(z,G,re,Ae){return 4*Us[255+z[G-re]-z[G+0]]+Us[255+z[G-2*re]-z[G+re]]<=Ae}function xc(z,G,re,Ae,xe){var Qe=z[G-3*re],De=z[G-2*re],Ne=z[G-re],Pe=z[G+0],nt=z[G+re],It=z[G+2*re],zt=z[G+3*re];return 4*Us[255+Ne-Pe]+Us[255+De-nt]>Ae?0:Us[255+z[G-4*re]-Qe]<=xe&&Us[255+Qe-De]<=xe&&Us[255+De-Ne]<=xe&&Us[255+zt-It]<=xe&&Us[255+It-nt]<=xe&&Us[255+nt-Pe]<=xe}function lh(z,G,re,Ae){var xe=2*Ae+1;for(Ae=0;16>Ae;++Ae)sh(z,G+Ae,re,xe)&&gA(z,G+Ae,re)}function Os(z,G,re,Ae){var xe=2*Ae+1;for(Ae=0;16>Ae;++Ae)sh(z,G+Ae*re,1,xe)&&gA(z,G+Ae*re,1)}function ps(z,G,re,Ae){var xe;for(xe=3;0<xe;--xe)lh(z,G+=4*re,re,Ae)}function Su(z,G,re,Ae){var xe;for(xe=3;0<xe;--xe)Os(z,G+=4,re,Ae)}function vo(z,G,re,Ae,xe,Qe,De,Ne){for(Qe=2*Qe+1;0<xe--;){if(xc(z,G,re,Qe,De))if(Ud(z,G,re,Ne))gA(z,G,re);else{var Pe=z,nt=G,It=re,zt=Pe[nt-2*It],Kt=Pe[nt-It],_t=Pe[nt+0],ur=Pe[nt+It],Zt=Pe[nt+2*It],xt=27*(dr=Tm[1020+3*(_t-Kt)+Tm[1020+zt-ur]])+63>>7,Rt=18*dr+63>>7,dr=9*dr+63>>7;Pe[nt-3*It]=Es[255+Pe[nt-3*It]+dr],Pe[nt-2*It]=Es[255+zt+Rt],Pe[nt-It]=Es[255+Kt+xt],Pe[nt+0]=Es[255+_t-xt],Pe[nt+It]=Es[255+ur-Rt],Pe[nt+2*It]=Es[255+Zt-dr]}G+=Ae}}function qo(z,G,re,Ae,xe,Qe,De,Ne){for(Qe=2*Qe+1;0<xe--;){if(xc(z,G,re,Qe,De))if(Ud(z,G,re,Ne))gA(z,G,re);else{var Pe=z,nt=G,It=re,zt=Pe[nt-It],Kt=Pe[nt+0],_t=Pe[nt+It],ur=np[112+((Zt=3*(Kt-zt))+4>>3)],Zt=np[112+(Zt+3>>3)],xt=ur+1>>1;Pe[nt-2*It]=Es[255+Pe[nt-2*It]+xt],Pe[nt-It]=Es[255+zt+Zt],Pe[nt+0]=Es[255+Kt-ur],Pe[nt+It]=Es[255+_t-xt]}G+=Ae}}function Mc(z,G,re,Ae,xe,Qe){vo(z,G,re,1,16,Ae,xe,Qe)}function Ic(z,G,re,Ae,xe,Qe){vo(z,G,1,re,16,Ae,xe,Qe)}function Ru(z,G,re,Ae,xe,Qe){var De;for(De=3;0<De;--De)qo(z,G+=4*re,re,1,16,Ae,xe,Qe)}function Wl(z,G,re,Ae,xe,Qe){var De;for(De=3;0<De;--De)qo(z,G+=4,1,re,16,Ae,xe,Qe)}function Tu(z,G,re,Ae,xe,Qe,De,Ne){vo(z,G,xe,1,8,Qe,De,Ne),vo(re,Ae,xe,1,8,Qe,De,Ne)}function ja(z,G,re,Ae,xe,Qe,De,Ne){vo(z,G,1,xe,8,Qe,De,Ne),vo(re,Ae,1,xe,8,Qe,De,Ne)}function js(z,G,re,Ae,xe,Qe,De,Ne){qo(z,G+4*xe,xe,1,8,Qe,De,Ne),qo(re,Ae+4*xe,xe,1,8,Qe,De,Ne)}function Qu(z,G,re,Ae,xe,Qe,De,Ne){qo(z,G+4,1,xe,8,Qe,De,Ne),qo(re,Ae+4,1,xe,8,Qe,De,Ne)}function dl(){this.ba=new Fe,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new ue,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Hd(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function pA(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function vA(){this.ua=0,this.Wa=new de,this.vb=new de,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new N,this.yc=new D}function bc(){this.xb=this.a=0,this.l=new Wt,this.ca=new Fe,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new U,this.Pb=0,this.wd=new U,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new vA,this.ab=0,this.gc=o(4,pA),this.Oc=0}function fl(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Wt,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function hl(z,G,re,Ae,xe,Qe,De){for(z=z==null?0:z[G+0],G=0;G<De;++G)xe[Qe+G]=z+re[Ae+G]&255,z=xe[Qe+G]}function mA(z,G,re,Ae,xe,Qe,De){var Ne;if(z==null)hl(null,null,re,Ae,xe,Qe,De);else for(Ne=0;Ne<De;++Ne)xe[Qe+Ne]=z[G+Ne]+re[Ae+Ne]&255}function Sc(z,G,re,Ae,xe,Qe,De){if(z==null)hl(null,null,re,Ae,xe,Qe,De);else{var Ne,Pe=z[G+0],nt=Pe,It=Pe;for(Ne=0;Ne<De;++Ne)nt=It+(Pe=z[G+Ne])-nt,It=re[Ae+Ne]+(-256&nt?0>nt?0:255:nt)&255,nt=Pe,xe[Qe+Ne]=It}}function Gd(z,G,re,Ae){var xe=G.width,Qe=G.o;if(t(z!=null&&G!=null),0>re||0>=Ae||re+Ae>Qe)return null;if(!z.Cc){if(z.ga==null){var De;if(z.ga=new fl,(De=z.ga==null)||(De=G.width*G.o,t(z.Gb.length==0),z.Gb=i(De),z.Uc=0,z.Gb==null?De=0:(z.mb=z.Gb,z.nb=z.Uc,z.rc=null,De=1),De=!De),!De){De=z.ga;var Ne=z.Fa,Pe=z.P,nt=z.qc,It=z.mb,zt=z.nb,Kt=Pe+1,_t=nt-1,ur=De.l;if(t(Ne!=null&&It!=null&&G!=null),Ri[0]=null,Ri[1]=hl,Ri[2]=mA,Ri[3]=Sc,De.ca=It,De.tb=zt,De.c=G.width,De.i=G.height,t(0<De.c&&0<De.i),1>=nt)G=0;else if(De.$a=Ne[Pe+0]>>0&3,De.Z=Ne[Pe+0]>>2&3,De.Lc=Ne[Pe+0]>>4&3,Pe=Ne[Pe+0]>>6&3,0>De.$a||1<De.$a||4<=De.Z||1<De.Lc||Pe)G=0;else if(ur.put=ft,ur.ac=Oe,ur.bc=wt,ur.ma=De,ur.width=G.width,ur.height=G.height,ur.Da=G.Da,ur.v=G.v,ur.va=G.va,ur.j=G.j,ur.o=G.o,De.$a)e:{t(De.$a==1),G=br();t:for(;;){if(G==null){G=0;break e}if(t(De!=null),De.mc=G,G.c=De.c,G.i=De.i,G.l=De.l,G.l.ma=De,G.l.width=De.c,G.l.height=De.i,G.a=0,j(G.m,Ne,Kt,_t),!Sr(De.c,De.i,1,G,null)||(G.ab==1&&G.gc[0].hc==3&&Pr(G.s)?(De.ic=1,Ne=G.c*G.i,G.Ta=null,G.Ua=0,G.V=i(Ne),G.Ba=0,G.V==null?(G.a=1,G=0):G=1):(De.ic=0,G=fr(G,De.c)),!G))break t;G=1;break e}De.mc=null,G=0}else G=_t>=De.c*De.i;De=!G}if(De)return null;z.ga.Lc!=1?z.Ga=0:Ae=Qe-re}t(z.ga!=null),t(re+Ae<=Qe);e:{if(G=(Ne=z.ga).c,Qe=Ne.l.o,Ne.$a==0){if(Kt=z.rc,_t=z.Vc,ur=z.Fa,Pe=z.P+1+re*G,nt=z.mb,It=z.nb+re*G,t(Pe<=z.P+z.qc),Ne.Z!=0)for(t(Ri[Ne.Z]!=null),De=0;De<Ae;++De)Ri[Ne.Z](Kt,_t,ur,Pe,nt,It,G),Kt=nt,_t=It,It+=G,Pe+=G;else for(De=0;De<Ae;++De)n(nt,It,ur,Pe,G),Kt=nt,_t=It,It+=G,Pe+=G;z.rc=Kt,z.Vc=_t}else{if(t(Ne.mc!=null),G=re+Ae,t((De=Ne.mc)!=null),t(G<=De.i),De.C>=G)G=1;else if(Ne.ic||Qt(),Ne.ic){Ne=De.V,Kt=De.Ba,_t=De.c;var Zt=De.i,xt=(ur=1,Pe=De.$/_t,nt=De.$%_t,It=De.m,zt=De.s,De.$),Rt=_t*Zt,dr=_t*G,vr=zt.wc,sr=xt<dr?Tr(zt,nt,Pe):null;t(xt<=Rt),t(G<=Zt),t(Pr(zt));t:for(;;){for(;!It.h&&xt<dr;){if(nt&vr||(sr=Tr(zt,nt,Pe)),t(sr!=null),J(It),256>(Zt=qt(sr.G[0],sr.H[0],It)))Ne[Kt+xt]=Zt,++xt,++nt>=_t&&(nt=0,++Pe<=G&&!(Pe%16)&&xr(De,Pe));else{if(!(280>Zt)){ur=0;break t}Zt=it(Zt-256,It);var Gr,Lr=qt(sr.G[4],sr.H[4],It);if(J(It),!(xt>=(Lr=vt(_t,Lr=it(Lr,It)))&&Rt-xt>=Zt)){ur=0;break t}for(Gr=0;Gr<Zt;++Gr)Ne[Kt+xt+Gr]=Ne[Kt+xt+Gr-Lr];for(xt+=Zt,nt+=Zt;nt>=_t;)nt-=_t,++Pe<=G&&!(Pe%16)&&xr(De,Pe);xt<dr&&nt&vr&&(sr=Tr(zt,nt,Pe))}t(It.h==L(It))}xr(De,Pe>G?G:Pe);break t}!ur||It.h&&xt<Rt?(ur=0,De.a=It.h?5:3):De.$=xt,G=ur}else G=Ir(De,De.V,De.Ba,De.c,De.i,G,Cr);if(!G){Ae=0;break e}}re+Ae>=Qe&&(z.Cc=1),Ae=1}if(!Ae)return null;if(z.Cc&&((Ae=z.ga)!=null&&(Ae.mc=null),z.ga=null,0<z.Ga))return alert("todo:WebPDequantizeLevels"),null}return z.nb+re*xe}function q(z,G,re,Ae,xe,Qe){for(;0<xe--;){var De,Ne=z,Pe=G+(re?1:0),nt=z,It=G+(re?0:3);for(De=0;De<Ae;++De){var zt=nt[It+4*De];zt!=255&&(zt*=32897,Ne[Pe+4*De+0]=Ne[Pe+4*De+0]*zt>>23,Ne[Pe+4*De+1]=Ne[Pe+4*De+1]*zt>>23,Ne[Pe+4*De+2]=Ne[Pe+4*De+2]*zt>>23)}G+=Qe}}function me(z,G,re,Ae,xe){for(;0<Ae--;){var Qe;for(Qe=0;Qe<re;++Qe){var De=z[G+2*Qe+0],Ne=15&(nt=z[G+2*Qe+1]),Pe=4369*Ne,nt=(240&nt|nt>>4)*Pe>>16;z[G+2*Qe+0]=(240&De|De>>4)*Pe>>16&240|(15&De|De<<4)*Pe>>16>>4&15,z[G+2*Qe+1]=240&nt|Ne}G+=xe}}function Le(z,G,re,Ae,xe,Qe,De,Ne){var Pe,nt,It=255;for(nt=0;nt<xe;++nt){for(Pe=0;Pe<Ae;++Pe){var zt=z[G+Pe];Qe[De+4*Pe]=zt,It&=zt}G+=re,De+=Ne}return It!=255}function gt(z,G,re,Ae,xe){var Qe;for(Qe=0;Qe<xe;++Qe)re[Ae+Qe]=z[G+Qe]>>8}function Qt(){ms=q,_a=me,ka=Le,ii=gt}function $t(z,G,re){S[z]=function(Ae,xe,Qe,De,Ne,Pe,nt,It,zt,Kt,_t,ur,Zt,xt,Rt,dr,vr){var sr,Gr=vr-1>>1,Lr=Ne[Pe+0]|nt[It+0]<<16,En=zt[Kt+0]|_t[ur+0]<<16;t(Ae!=null);var jr=3*Lr+En+131074>>2;for(G(Ae[xe+0],255&jr,jr>>16,Zt,xt),Qe!=null&&(jr=3*En+Lr+131074>>2,G(Qe[De+0],255&jr,jr>>16,Rt,dr)),sr=1;sr<=Gr;++sr){var ra=Ne[Pe+sr]|nt[It+sr]<<16,Ma=zt[Kt+sr]|_t[ur+sr]<<16,na=Lr+ra+En+Ma+524296,aa=na+2*(ra+En)>>3;jr=aa+Lr>>1,Lr=(na=na+2*(Lr+Ma)>>3)+ra>>1,G(Ae[xe+2*sr-1],255&jr,jr>>16,Zt,xt+(2*sr-1)*re),G(Ae[xe+2*sr-0],255&Lr,Lr>>16,Zt,xt+(2*sr-0)*re),Qe!=null&&(jr=na+En>>1,Lr=aa+Ma>>1,G(Qe[De+2*sr-1],255&jr,jr>>16,Rt,dr+(2*sr-1)*re),G(Qe[De+2*sr+0],255&Lr,Lr>>16,Rt,dr+(2*sr+0)*re)),Lr=ra,En=Ma}1&vr||(jr=3*Lr+En+131074>>2,G(Ae[xe+vr-1],255&jr,jr>>16,Zt,xt+(vr-1)*re),Qe!=null&&(jr=3*En+Lr+131074>>2,G(Qe[De+vr-1],255&jr,jr>>16,Rt,dr+(vr-1)*re)))}}function gr(){Ao[ap]=gh,Ao[Ou]=cp,Ao[ip]=ys,Ao[xA]=a1,Ao[op]=i1,Ao[Ah]=Ap,Ao[Qm]=AM,Ao[sp]=cp,Ao[Dm]=a1,Ao[uh]=i1,Ao[Fm]=Ap}function Or(z){return z&-16384?0>z?0:255:z>>o1}function tn(z,G){return Or((19077*z>>8)+(26149*G>>8)-14234)}function mn(z,G,re){return Or((19077*z>>8)-(6419*G>>8)-(13320*re>>8)+8708)}function Bn(z,G){return Or((19077*z>>8)+(33050*G>>8)-17685)}function xn(z,G,re,Ae,xe){Ae[xe+0]=tn(z,re),Ae[xe+1]=mn(z,G,re),Ae[xe+2]=Bn(z,G)}function ai(z,G,re,Ae,xe){Ae[xe+0]=Bn(z,G),Ae[xe+1]=mn(z,G,re),Ae[xe+2]=tn(z,re)}function mi(z,G,re,Ae,xe){var Qe=mn(z,G,re);G=Qe<<3&224|Bn(z,G)>>3,Ae[xe+0]=248&tn(z,re)|Qe>>5,Ae[xe+1]=G}function Li(z,G,re,Ae,xe){var Qe=240&Bn(z,G)|15;Ae[xe+0]=240&tn(z,re)|mn(z,G,re)>>4,Ae[xe+1]=Qe}function mo(z,G,re,Ae,xe){Ae[xe+0]=255,xn(z,G,re,Ae,xe+1)}function lo(z,G,re,Ae,xe){ai(z,G,re,Ae,xe),Ae[xe+3]=255}function Xl(z,G,re,Ae,xe){xn(z,G,re,Ae,xe),Ae[xe+3]=255}function zs(z,G){return 0>z?0:z>G?G:z}function Rc(z,G,re){S[z]=function(Ae,xe,Qe,De,Ne,Pe,nt,It,zt){for(var Kt=It+(-2&zt)*re;It!=Kt;)G(Ae[xe+0],Qe[De+0],Ne[Pe+0],nt,It),G(Ae[xe+1],Qe[De+0],Ne[Pe+0],nt,It+re),xe+=2,++De,++Pe,It+=2*re;1&zt&&G(Ae[xe+0],Qe[De+0],Ne[Pe+0],nt,It)}}function bm(z,G,re){return re==0?z==0?G==0?6:5:G==0?4:0:re}function qg(z,G,re,Ae,xe){switch(z>>>30){case 3:yA(G,re,Ae,xe,0);break;case 2:Si(G,re,Ae,xe);break;case 1:$o(G,re,Ae,xe)}}function Zg(z,G){var re,Ae,xe=G.M,Qe=G.Nb,De=z.oc,Ne=z.pc+40,Pe=z.oc,nt=z.pc+584,It=z.oc,zt=z.pc+600;for(re=0;16>re;++re)De[Ne+32*re-1]=129;for(re=0;8>re;++re)Pe[nt+32*re-1]=129,It[zt+32*re-1]=129;for(0<xe?De[Ne-1-32]=Pe[nt-1-32]=It[zt-1-32]=129:(a(De,Ne-32-1,127,21),a(Pe,nt-32-1,127,9),a(It,zt-32-1,127,9)),Ae=0;Ae<z.za;++Ae){var Kt=G.ya[G.aa+Ae];if(0<Ae){for(re=-1;16>re;++re)n(De,Ne+32*re-4,De,Ne+32*re+12,4);for(re=-1;8>re;++re)n(Pe,nt+32*re-4,Pe,nt+32*re+4,4),n(It,zt+32*re-4,It,zt+32*re+4,4)}var _t=z.Gd,ur=z.Hd+Ae,Zt=Kt.ad,xt=Kt.Hc;if(0<xe&&(n(De,Ne-32,_t[ur].y,0,16),n(Pe,nt-32,_t[ur].f,0,8),n(It,zt-32,_t[ur].ea,0,8)),Kt.Za){var Rt=De,dr=Ne-32+16;for(0<xe&&(Ae>=z.za-1?a(Rt,dr,_t[ur].y[15],4):n(Rt,dr,_t[ur+1].y,0,4)),re=0;4>re;re++)Rt[dr+128+re]=Rt[dr+256+re]=Rt[dr+384+re]=Rt[dr+0+re];for(re=0;16>re;++re,xt<<=2)Rt=De,dr=Ne+l1[re],la[Kt.Ob[re]](Rt,dr),qg(xt,Zt,16*+re,Rt,dr)}else if(Rt=bm(Ae,xe,Kt.Ob[0]),es[Rt](De,Ne),xt!=0)for(re=0;16>re;++re,xt<<=2)qg(xt,Zt,16*+re,De,Ne+l1[re]);for(re=Kt.Gc,Rt=bm(Ae,xe,Kt.Dd),xa[Rt](Pe,nt),xa[Rt](It,zt),xt=Zt,Rt=Pe,dr=nt,255&(Kt=re>>0)&&(170&Kt?rp(xt,256,Rt,dr):gl(xt,256,Rt,dr)),Kt=It,xt=zt,255&(re>>=8)&&(170&re?rp(Zt,320,Kt,xt):gl(Zt,320,Kt,xt)),xe<z.Ub-1&&(n(_t[ur].y,0,De,Ne+480,16),n(_t[ur].f,0,Pe,nt+224,8),n(_t[ur].ea,0,It,zt+224,8)),re=8*Qe*z.B,_t=z.sa,ur=z.ta+16*Ae+16*Qe*z.R,Zt=z.qa,Kt=z.ra+8*Ae+re,xt=z.Ha,Rt=z.Ia+8*Ae+re,re=0;16>re;++re)n(_t,ur+re*z.R,De,Ne+32*re,16);for(re=0;8>re;++re)n(Zt,Kt+re*z.B,Pe,nt+32*re,8),n(xt,Rt+re*z.B,It,zt+32*re,8)}}function Du(z,G,re,Ae,xe,Qe,De,Ne,Pe){var nt=[0],It=[0],zt=0,Kt=Pe!=null?Pe.kd:0,_t=Pe??new Hd;if(z==null||12>re)return 7;_t.data=z,_t.w=G,_t.ha=re,G=[G],re=[re],_t.gb=[_t.gb];e:{var ur=G,Zt=re,xt=_t.gb;if(t(z!=null),t(Zt!=null),t(xt!=null),xt[0]=0,12<=Zt[0]&&!r(z,ur[0],"RIFF")){if(r(z,ur[0]+8,"WEBP")){xt=3;break e}var Rt=be(z,ur[0]+4);if(12>Rt||4294967286<Rt){xt=3;break e}if(Kt&&Rt>Zt[0]-8){xt=7;break e}xt[0]=Rt,ur[0]+=12,Zt[0]-=12}xt=0}if(xt!=0)return xt;for(Rt=0<_t.gb[0],re=re[0];;){e:{var dr=z;Zt=G,xt=re;var vr=nt,sr=It,Gr=ur=[0];if((jr=zt=[zt])[0]=0,8>xt[0])xt=7;else{if(!r(dr,Zt[0],"VP8X")){if(be(dr,Zt[0]+4)!=10){xt=3;break e}if(18>xt[0]){xt=7;break e}var Lr=be(dr,Zt[0]+8),En=1+ye(dr,Zt[0]+12);if(2147483648<=En*(dr=1+ye(dr,Zt[0]+15))){xt=3;break e}Gr!=null&&(Gr[0]=Lr),vr!=null&&(vr[0]=En),sr!=null&&(sr[0]=dr),Zt[0]+=18,xt[0]-=18,jr[0]=1}xt=0}}if(zt=zt[0],ur=ur[0],xt!=0)return xt;if(Zt=!!(2&ur),!Rt&&zt)return 3;if(Qe!=null&&(Qe[0]=!!(16&ur)),De!=null&&(De[0]=Zt),Ne!=null&&(Ne[0]=0),De=nt[0],ur=It[0],zt&&Zt&&Pe==null){xt=0;break}if(4>re){xt=7;break}if(Rt&&zt||!Rt&&!zt&&!r(z,G[0],"ALPH")){re=[re],_t.na=[_t.na],_t.P=[_t.P],_t.Sa=[_t.Sa];e:{Lr=z,xt=G,Rt=re;var jr=_t.gb;vr=_t.na,sr=_t.P,Gr=_t.Sa,En=22,t(Lr!=null),t(Rt!=null),dr=xt[0];var ra=Rt[0];for(t(vr!=null),t(Gr!=null),vr[0]=null,sr[0]=null,Gr[0]=0;;){if(xt[0]=dr,Rt[0]=ra,8>ra){xt=7;break e}var Ma=be(Lr,dr+4);if(4294967286<Ma){xt=3;break e}var na=8+Ma+1&-2;if(En+=na,0<jr&&En>jr){xt=3;break e}if(!r(Lr,dr,"VP8 ")||!r(Lr,dr,"VP8L")){xt=0;break e}if(ra[0]<na){xt=7;break e}r(Lr,dr,"ALPH")||(vr[0]=Lr,sr[0]=dr+8,Gr[0]=Ma),dr+=na,ra-=na}}if(re=re[0],_t.na=_t.na[0],_t.P=_t.P[0],_t.Sa=_t.Sa[0],xt!=0)break}re=[re],_t.Ja=[_t.Ja],_t.xa=[_t.xa];e:if(jr=z,xt=G,Rt=re,vr=_t.gb[0],sr=_t.Ja,Gr=_t.xa,Lr=xt[0],dr=!r(jr,Lr,"VP8 "),En=!r(jr,Lr,"VP8L"),t(jr!=null),t(Rt!=null),t(sr!=null),t(Gr!=null),8>Rt[0])xt=7;else{if(dr||En){if(jr=be(jr,Lr+4),12<=vr&&jr>vr-12){xt=3;break e}if(Kt&&jr>Rt[0]-8){xt=7;break e}sr[0]=jr,xt[0]+=8,Rt[0]-=8,Gr[0]=En}else Gr[0]=5<=Rt[0]&&jr[Lr+0]==47&&!(jr[Lr+4]>>5),sr[0]=Rt[0];xt=0}if(re=re[0],_t.Ja=_t.Ja[0],_t.xa=_t.xa[0],G=G[0],xt!=0)break;if(4294967286<_t.Ja)return 3;if(Ne==null||Zt||(Ne[0]=_t.xa?2:1),De=[De],ur=[ur],_t.xa){if(5>re){xt=7;break}Ne=De,Kt=ur,Zt=Qe,z==null||5>re?z=0:5<=re&&z[G+0]==47&&!(z[G+4]>>5)?(Rt=[0],jr=[0],vr=[0],j(sr=new U,z,G,re),ot(sr,Rt,jr,vr)?(Ne!=null&&(Ne[0]=Rt[0]),Kt!=null&&(Kt[0]=jr[0]),Zt!=null&&(Zt[0]=vr[0]),z=1):z=0):z=0}else{if(10>re){xt=7;break}Ne=ur,z==null||10>re||!ke(z,G+3,re-3)?z=0:(Kt=z[G+0]|z[G+1]<<8|z[G+2]<<16,Zt=16383&(z[G+7]<<8|z[G+6]),z=16383&(z[G+9]<<8|z[G+8]),1&Kt||3<(Kt>>1&7)||!(Kt>>4&1)||Kt>>5>=_t.Ja||!Zt||!z?z=0:(De&&(De[0]=Zt),Ne&&(Ne[0]=z),z=1))}if(!z||(De=De[0],ur=ur[0],zt&&(nt[0]!=De||It[0]!=ur)))return 3;Pe!=null&&(Pe[0]=_t,Pe.offset=G-Pe.w,t(4294967286>G-Pe.w),t(Pe.offset==Pe.ha-re));break}return xt==0||xt==7&&zt&&Pe==null?(Qe!=null&&(Qe[0]|=_t.na!=null&&0<_t.na.length),Ae!=null&&(Ae[0]=De),xe!=null&&(xe[0]=ur),0):xt}function EA(z,G,re){var Ae=G.width,xe=G.height,Qe=0,De=0,Ne=Ae,Pe=xe;if(G.Da=z!=null&&0<z.Da,G.Da&&(Ne=z.cd,Pe=z.bd,Qe=z.v,De=z.j,11>re||(Qe&=-2,De&=-2),0>Qe||0>De||0>=Ne||0>=Pe||Qe+Ne>Ae||De+Pe>xe))return 0;if(G.v=Qe,G.j=De,G.va=Qe+Ne,G.o=De+Pe,G.U=Ne,G.T=Pe,G.da=z!=null&&0<z.da,G.da){if(!Ue(Ne,Pe,re=[z.ib],Qe=[z.hb]))return 0;G.ib=re[0],G.hb=Qe[0]}return G.ob=z!=null&&z.ob,G.Kb=z==null||!z.Sd,G.da&&(G.ob=G.ib<3*Ae/4&&G.hb<3*xe/4,G.Kb=0),1}function $g(z){if(z==null)return 2;if(11>z.S){var G=z.f.RGBA;G.fb+=(z.height-1)*G.A,G.A=-G.A}else G=z.f.kb,z=z.height,G.O+=(z-1)*G.fa,G.fa=-G.fa,G.N+=(z-1>>1)*G.Ab,G.Ab=-G.Ab,G.W+=(z-1>>1)*G.Db,G.Db=-G.Db,G.F!=null&&(G.J+=(z-1)*G.lb,G.lb=-G.lb);return 0}function Kd(z,G,re,Ae){if(Ae==null||0>=z||0>=G)return 2;if(re!=null){if(re.Da){var xe=re.cd,Qe=re.bd,De=-2&re.v,Ne=-2&re.j;if(0>De||0>Ne||0>=xe||0>=Qe||De+xe>z||Ne+Qe>G)return 2;z=xe,G=Qe}if(re.da){if(!Ue(z,G,xe=[re.ib],Qe=[re.hb]))return 2;z=xe[0],G=Qe[0]}}Ae.width=z,Ae.height=G;e:{var Pe=Ae.width,nt=Ae.height;if(z=Ae.S,0>=Pe||0>=nt||!(z>=ap&&13>z))z=2;else{if(0>=Ae.Rd&&Ae.sd==null){De=Qe=xe=G=0;var It=(Ne=Pe*kc[z])*nt;if(11>z||(Qe=(nt+1)/2*(G=(Pe+1)/2),z==12&&(De=(xe=Pe)*nt)),(nt=i(It+2*Qe+De))==null){z=1;break e}Ae.sd=nt,11>z?((Pe=Ae.f.RGBA).eb=nt,Pe.fb=0,Pe.A=Ne,Pe.size=It):((Pe=Ae.f.kb).y=nt,Pe.O=0,Pe.fa=Ne,Pe.Fd=It,Pe.f=nt,Pe.N=0+It,Pe.Ab=G,Pe.Cd=Qe,Pe.ea=nt,Pe.W=0+It+Qe,Pe.Db=G,Pe.Ed=Qe,z==12&&(Pe.F=nt,Pe.J=0+It+2*Qe),Pe.Tc=De,Pe.lb=xe)}if(G=1,xe=Ae.S,Qe=Ae.width,De=Ae.height,xe>=ap&&13>xe)if(11>xe)z=Ae.f.RGBA,G&=(Ne=Math.abs(z.A))*(De-1)+Qe<=z.size,G&=Ne>=Qe*kc[xe],G&=z.eb!=null;else{z=Ae.f.kb,Ne=(Qe+1)/2,It=(De+1)/2,Pe=Math.abs(z.fa),nt=Math.abs(z.Ab);var zt=Math.abs(z.Db),Kt=Math.abs(z.lb),_t=Kt*(De-1)+Qe;G&=Pe*(De-1)+Qe<=z.Fd,G&=nt*(It-1)+Ne<=z.Cd,G=(G&=zt*(It-1)+Ne<=z.Ed)&Pe>=Qe&nt>=Ne&zt>=Ne,G&=z.y!=null,G&=z.f!=null,G&=z.ea!=null,xe==12&&(G&=Kt>=Qe,G&=_t<=z.Tc,G&=z.F!=null)}else G=0;z=G?0:2}}return z!=0||re!=null&&re.fd&&(z=$g(Ae)),z}var co=64,Vd=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Jd=24,Wd=32,Tc=8,vs=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Ie("Predictor0","PredictorAdd0"),S.Predictor0=function(){return 4278190080},S.Predictor1=function(z){return z},S.Predictor2=function(z,G,re){return G[re+0]},S.Predictor3=function(z,G,re){return G[re+1]},S.Predictor4=function(z,G,re){return G[re-1]},S.Predictor5=function(z,G,re){return Re(Re(z,G[re+1]),G[re+0])},S.Predictor6=function(z,G,re){return Re(z,G[re-1])},S.Predictor7=function(z,G,re){return Re(z,G[re+0])},S.Predictor8=function(z,G,re){return Re(G[re-1],G[re+0])},S.Predictor9=function(z,G,re){return Re(G[re+0],G[re+1])},S.Predictor10=function(z,G,re){return Re(Re(z,G[re-1]),Re(G[re+0],G[re+1]))},S.Predictor11=function(z,G,re){var Ae=G[re+0];return 0>=mt(Ae>>24&255,z>>24&255,(G=G[re-1])>>24&255)+mt(Ae>>16&255,z>>16&255,G>>16&255)+mt(Ae>>8&255,z>>8&255,G>>8&255)+mt(255&Ae,255&z,255&G)?Ae:z},S.Predictor12=function(z,G,re){var Ae=G[re+0];return(Te((z>>24&255)+(Ae>>24&255)-((G=G[re-1])>>24&255))<<24|Te((z>>16&255)+(Ae>>16&255)-(G>>16&255))<<16|Te((z>>8&255)+(Ae>>8&255)-(G>>8&255))<<8|Te((255&z)+(255&Ae)-(255&G)))>>>0},S.Predictor13=function(z,G,re){var Ae=G[re-1];return(Ke((z=Re(z,G[re+0]))>>24&255,Ae>>24&255)<<24|Ke(z>>16&255,Ae>>16&255)<<16|Ke(z>>8&255,Ae>>8&255)<<8|Ke(z>>0&255,Ae>>0&255))>>>0};var e1=S.PredictorAdd0;S.PredictorAdd1=tt,Ie("Predictor2","PredictorAdd2"),Ie("Predictor3","PredictorAdd3"),Ie("Predictor4","PredictorAdd4"),Ie("Predictor5","PredictorAdd5"),Ie("Predictor6","PredictorAdd6"),Ie("Predictor7","PredictorAdd7"),Ie("Predictor8","PredictorAdd8"),Ie("Predictor9","PredictorAdd9"),Ie("Predictor10","PredictorAdd10"),Ie("Predictor11","PredictorAdd11"),Ie("Predictor12","PredictorAdd12"),Ie("Predictor13","PredictorAdd13");var ep=S.PredictorAdd2;$e("ColorIndexInverseTransform","MapARGB","32b",(function(z){return z>>8&255}),(function(z){return z})),$e("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",(function(z){return z}),(function(z){return z>>8&255}));var tp,Ls=S.ColorIndexInverseTransform,Qc=S.MapARGB,Fu=S.VP8LColorIndexInverseTransformAlpha,Sm=S.MapAlpha,ql=S.VP8LPredictorsAdd=[];ql.length=16,(S.VP8LPredictors=[]).length=16,(S.VP8LPredictorsAdd_C=[]).length=16,(S.VP8LPredictors_C=[]).length=16;var Xd,Zo,Eo,Dc,Fc,Nc,qd,yA,Si,rp,$o,gl,yo,Rm,CA,Nu,_u,wA,ku,Pu,Zd,Ys,$d,Do,ms,_a,ka,ii,oi=i(511),BA=i(2041),ch=i(225),ef=i(767),Qa=0,Tm=BA,np=ch,Es=ef,Us=oi,ap=0,Ou=1,ip=2,xA=3,op=4,Ah=5,Qm=6,sp=7,Dm=8,uh=9,Fm=10,QD=[2,3,7],t1=[3,3,11],tf=[280,256,256,256,40],lM=[0,1,1,1,0],r1=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],DD=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Nm=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ju=8,dh=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],zu=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],fh=null,rf=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],lp=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],nf=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],_m=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],cM=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],n1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],hh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],es=[],la=[],xa=[],Lu=1,Co=2,Ri=[],Ao=[];$t("UpsampleRgbLinePair",xn,3),$t("UpsampleBgrLinePair",ai,3),$t("UpsampleRgbaLinePair",Xl,4),$t("UpsampleBgraLinePair",lo,4),$t("UpsampleArgbLinePair",mo,4),$t("UpsampleRgba4444LinePair",Li,2),$t("UpsampleRgb565LinePair",mi,2);var gh=S.UpsampleRgbLinePair,ys=S.UpsampleBgrLinePair,cp=S.UpsampleRgbaLinePair,a1=S.UpsampleBgraLinePair,i1=S.UpsampleArgbLinePair,Ap=S.UpsampleRgba4444LinePair,AM=S.UpsampleRgb565LinePair,ph=16,_c=1<<ph-1,up=-227,dp=482,o1=6,uM=0,dM=i(256),s1=i(256),FD=i(256),km=i(256),fM=i(dp-up),hM=i(dp-up);Rc("YuvToRgbRow",xn,3),Rc("YuvToBgrRow",ai,3),Rc("YuvToRgbaRow",Xl,4),Rc("YuvToBgraRow",lo,4),Rc("YuvToArgbRow",mo,4),Rc("YuvToRgba4444Row",Li,2),Rc("YuvToRgb565Row",mi,2);var l1=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],fp=[0,2,8],c1=[8,7,6,4,4,2,2,2,1,1,1,1],ND=1;this.WebPDecodeRGBA=function(z,G,re,Ae,xe){var Qe=Ou,De=new dl,Ne=new Fe;De.ba=Ne,Ne.S=Qe,Ne.width=[Ne.width],Ne.height=[Ne.height];var Pe=Ne.width,nt=Ne.height,It=new je;if(It==null||z==null)var zt=2;else t(It!=null),zt=Du(z,G,re,It.width,It.height,It.Pd,It.Qd,It.format,null);if(zt!=0?Pe=0:(Pe!=null&&(Pe[0]=It.width[0]),nt!=null&&(nt[0]=It.height[0]),Pe=1),Pe){Ne.width=Ne.width[0],Ne.height=Ne.height[0],Ae!=null&&(Ae[0]=Ne.width),xe!=null&&(xe[0]=Ne.height);e:{if(Ae=new Wt,(xe=new Hd).data=z,xe.w=G,xe.ha=re,xe.kd=1,G=[0],t(xe!=null),((z=Du(xe.data,xe.w,xe.ha,null,null,null,G,null,xe))==0||z==7)&&G[0]&&(z=4),(G=z)==0){if(t(De!=null),Ae.data=xe.data,Ae.w=xe.w+xe.offset,Ae.ha=xe.ha-xe.offset,Ae.put=ft,Ae.ac=Oe,Ae.bc=wt,Ae.ma=De,xe.xa){if((z=br())==null){De=1;break e}if((function(Kt,_t){var ur=[0],Zt=[0],xt=[0];t:for(;;){if(Kt==null)return 0;if(_t==null)return Kt.a=2,0;if(Kt.l=_t,Kt.a=0,j(Kt.m,_t.data,_t.w,_t.ha),!ot(Kt.m,ur,Zt,xt)){Kt.a=3;break t}if(Kt.xb=Co,_t.width=ur[0],_t.height=Zt[0],!Sr(ur[0],Zt[0],1,Kt,null))break t;return 1}return t(Kt.a!=0),0})(z,Ae)){if(Ae=(G=Kd(Ae.width,Ae.height,De.Oa,De.ba))==0){t:{Ae=z;r:for(;;){if(Ae==null){Ae=0;break t}if(t(Ae.s.yc!=null),t(Ae.s.Ya!=null),t(0<Ae.s.Wb),t((re=Ae.l)!=null),t((xe=re.ma)!=null),Ae.xb!=0){if(Ae.ca=xe.ba,Ae.tb=xe.tb,t(Ae.ca!=null),!EA(xe.Oa,re,xA)){Ae.a=2;break r}if(!fr(Ae,re.width)||re.da)break r;if((re.da||Et(Ae.ca.S))&&Qt(),11>Ae.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),Ae.ca.f.kb.F!=null&&Qt()),Ae.Pb&&0<Ae.s.ua&&Ae.s.vb.X==null&&!Se(Ae.s.vb,Ae.s.Wa.Xa)){Ae.a=1;break r}Ae.xb=0}if(!Ir(Ae,Ae.V,Ae.Ba,Ae.c,Ae.i,re.o,Vr))break r;xe.Dc=Ae.Ma,Ae=1;break t}t(Ae.a!=0),Ae=0}Ae=!Ae}Ae&&(G=z.a)}else G=z.a}else{if((z=new St)==null){De=1;break e}if(z.Fa=xe.na,z.P=xe.P,z.qc=xe.Sa,Me(z,Ae)){if((G=Kd(Ae.width,Ae.height,De.Oa,De.ba))==0){if(z.Aa=0,re=De.Oa,t((xe=z)!=null),re!=null){if(0<(Pe=0>(Pe=re.Md)?0:100<Pe?255:255*Pe/100)){for(nt=It=0;4>nt;++nt)12>(zt=xe.pb[nt]).lc&&(zt.ia=Pe*c1[0>zt.lc?0:zt.lc]>>3),It|=zt.ia;It&&(alert("todo:VP8InitRandom"),xe.ia=1)}xe.Ga=re.Id,100<xe.Ga?xe.Ga=100:0>xe.Ga&&(xe.Ga=0)}et(z,Ae)||(G=z.a)}}else G=z.a}G==0&&De.Oa!=null&&De.Oa.fd&&(G=$g(De.ba))}De=G}Qe=De!=0?null:11>Qe?Ne.f.RGBA.eb:Ne.f.kb.y}else Qe=null;return Qe};var kc=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(S,R){for(var b="",T=0;T<4;T++)b+=String.fromCharCode(S[R++]);return b}function A(S,R){return(S[R+0]<<0|S[R+1]<<8|S[R+2]<<16)>>>0}function u(S,R){return(S[R+0]<<0|S[R+1]<<8|S[R+2]<<16|S[R+3]<<24)>>>0}new l;var d=[0],f=[0],h=[],g=new l,p=e,m=(function(S,R){var b={},T=0,D=!1,F=0,N=0;if(b.frames=[],!(function(H,L,V,J){for(var ee=0;ee<J;ee++)if(H[L+ee]!=V.charCodeAt(ee))return!0;return!1})(S,R,"RIFF",4)){for(u(S,R+=4),R+=8;R<S.length;){var _=c(S,R),P=u(S,R+=4);R+=4;var k=P+(1&P);switch(_){case"VP8 ":case"VP8L":b.frames[T]===void 0&&(b.frames[T]={}),(X=b.frames[T]).src_off=D?N:R-8,X.src_size=F+P+8,T++,D&&(D=!1,F=0,N=0);break;case"VP8X":(X=b.header={}).feature_flags=S[R];var j=R+4;X.canvas_width=1+A(S,j),j+=3,X.canvas_height=1+A(S,j),j+=3;break;case"ALPH":D=!0,F=k+8,N=R-8;break;case"ANIM":(X=b.header).bgcolor=u(S,R),j=R+4,X.loop_count=(K=S)[(U=j)+0]<<0|K[U+1]<<8,j+=2;break;case"ANMF":var Y,X;(X=b.frames[T]={}).offset_x=2*A(S,R),R+=3,X.offset_y=2*A(S,R),R+=3,X.width=1+A(S,R),R+=3,X.height=1+A(S,R),R+=3,X.duration=A(S,R),R+=3,Y=S[R++],X.dispose=1&Y,X.blend=Y>>1&1}_!="ANMF"&&(R+=k)}var K,U;return b}})(p,0);m.response=p,m.rgbaoutput=!0,m.dataurl=!1;var y=m.header?m.header:null,C=m.frames?m.frames:null;if(y){y.loop_counter=y.loop_count,d=[y.canvas_height],f=[y.canvas_width];for(var w=0;w<C.length&&C[w].blend!=0;w++);}var B=C[0],x=g.WebPDecodeRGBA(p,B.src_off,B.src_size,f,d);B.rgba=x,B.imgwidth=f[0],B.imgheight=d[0];for(var M=0;M<f[0]*d[0]*4;M++)h[M]=x[M];return this.width=f,this.height=d,this.data=h,this}(function(e){var t=function(){return typeof aL=="function"},r=function(d,f,h,g){var p=4,m=o;switch(g){case e.image_compression.FAST:p=1,m=i;break;case e.image_compression.MEDIUM:p=6,m=s;break;case e.image_compression.SLOW:p=9,m=l}d=n(d,f,h,m);var y=aL(d,{level:p});return e.__addimage__.arrayBufferToBinaryString(y)},n=function(d,f,h,g){for(var p,m,y,C=d.length/f,w=new Uint8Array(d.length+C),B=A(),x=0;x<C;x+=1){if(y=x*f,p=d.subarray(y,y+f),g)w.set(g(p,h,m),y+x);else{for(var M,S=B.length,R=[];M<S;M+=1)R[M]=B[M](p,h,m);var b=u(R.concat());w.set(R[b],y+x)}m=p}return w},a=function(d){var f=Array.apply([],d);return f.unshift(0),f},i=function(d,f){var h,g=[],p=d.length;g[0]=1;for(var m=0;m<p;m+=1)h=d[m-f]||0,g[m+1]=d[m]-h+256&255;return g},o=function(d,f,h){var g,p=[],m=d.length;p[0]=2;for(var y=0;y<m;y+=1)g=h&&h[y]||0,p[y+1]=d[y]-g+256&255;return p},s=function(d,f,h){var g,p,m=[],y=d.length;m[0]=3;for(var C=0;C<y;C+=1)g=d[C-f]||0,p=h&&h[C]||0,m[C+1]=d[C]+256-(g+p>>>1)&255;return m},l=function(d,f,h){var g,p,m,y,C=[],w=d.length;C[0]=4;for(var B=0;B<w;B+=1)g=d[B-f]||0,p=h&&h[B]||0,m=h&&h[B-f]||0,y=c(g,p,m),C[B+1]=d[B]-y+256&255;return C},c=function(d,f,h){if(d===f&&f===h)return d;var g=Math.abs(f-h),p=Math.abs(d-h),m=Math.abs(d+f-h-h);return g<=p&&g<=m?d:p<=m?f:h},A=function(){return[a,i,o,s,l]},u=function(d){var f=d.map((function(h){return h.reduce((function(g,p){return g+Math.abs(p)}),0)}));return f.indexOf(Math.min.apply(null,f))};e.processPNG=function(d,f,h,g){var p,m,y,C,w,B,x,M,S,R,b,T,D,F,N,_=this.decode.FLATE_DECODE,P="";if(this.__addimage__.isArrayBuffer(d)&&(d=new Uint8Array(d)),this.__addimage__.isArrayBufferView(d)){if(d=(y=new rht(d)).imgData,m=y.bits,p=y.colorSpace,w=y.colors,[4,6].indexOf(y.colorType)!==-1){if(y.bits===8){S=(M=y.pixelBitlength==32?new Uint32Array(y.decodePixels().buffer):y.pixelBitlength==16?new Uint16Array(y.decodePixels().buffer):new Uint8Array(y.decodePixels().buffer)).length,b=new Uint8Array(S*y.colors),R=new Uint8Array(S);var k,j=y.pixelBitlength-y.bits;for(F=0,N=0;F<S;F++){for(D=M[F],k=0;k<j;)b[N++]=D>>>k&255,k+=y.bits;R[F]=D>>>k&255}}if(y.bits===16){S=(M=new Uint32Array(y.decodePixels().buffer)).length,b=new Uint8Array(S*(32/y.pixelBitlength)*y.colors),R=new Uint8Array(S*(32/y.pixelBitlength)),T=y.colors>1,F=0,N=0;for(var Y=0;F<S;)D=M[F++],b[N++]=D>>>0&255,T&&(b[N++]=D>>>16&255,D=M[F++],b[N++]=D>>>0&255),R[Y++]=D>>>16&255;m=8}g!==e.image_compression.NONE&&t()?(d=r(b,y.width*y.colors,y.colors,g),x=r(R,y.width,1,g)):(d=b,x=R,_=void 0)}if(y.colorType===3&&(p=this.color_spaces.INDEXED,B=y.palette,y.transparency.indexed)){var X=y.transparency.indexed,K=0;for(F=0,S=X.length;F<S;++F)K+=X[F];if((K/=255)===S-1&&X.indexOf(0)!==-1)C=[X.indexOf(0)];else if(K!==S){for(M=y.decodePixels(),R=new Uint8Array(M.length),F=0,S=M.length;F<S;F++)R[F]=X[M[F]];x=r(R,y.width,1)}}var U=(function(H){var L;switch(H){case e.image_compression.FAST:L=11;break;case e.image_compression.MEDIUM:L=13;break;case e.image_compression.SLOW:L=14;break;default:L=12}return L})(g);return _===this.decode.FLATE_DECODE&&(P="/Predictor "+U+" "),P+="/Colors "+w+" /BitsPerComponent "+m+" /Columns "+y.width,(this.__addimage__.isArrayBuffer(d)||this.__addimage__.isArrayBufferView(d))&&(d=this.__addimage__.arrayBufferToBinaryString(d)),(x&&this.__addimage__.isArrayBuffer(x)||this.__addimage__.isArrayBufferView(x))&&(x=this.__addimage__.arrayBufferToBinaryString(x)),{alias:h,data:d,index:f,filter:_,decodeParameters:P,transparency:C,palette:B,sMask:x,predictor:U,width:y.width,height:y.height,bitsPerComponent:m,colorSpace:p}}}})(bn.API),(function(e){e.processGIF89A=function(t,r,n,a){var i=new nht(t),o=i.width,s=i.height,l=[];i.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:o,height:s},A=new tP(100).encode(c,100);return e.processJPEG.call(this,A,r,n,a)},e.processGIF87A=e.processGIF89A})(bn.API),QA.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:n,blue:r,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},QA.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(r){Ja.log("bit decode error:"+r)}},QA.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),r=t%4;for(e=this.height-1;e>=0;e--){for(var n=this.bottom_up?e:this.height-1-e,a=0;a<t;a++)for(var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+8*a*4,s=0;s<8&&8*a+s<this.width;s++){var l=this.palette[i>>7-s&1];this.data[o+4*s]=l.blue,this.data[o+4*s+1]=l.green,this.data[o+4*s+2]=l.red,this.data[o+4*s+3]=255}r!==0&&(this.pos+=4-r)}},QA.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<e;a++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+2*a*4,s=i>>4,l=15&i,c=this.palette[s];if(this.data[o]=c.blue,this.data[o+1]=c.green,this.data[o+2]=c.red,this.data[o+3]=255,2*a+1>=this.width)break;c=this.palette[l],this.data[o+4]=c.blue,this.data[o+4+1]=c.green,this.data[o+4+2]=c.red,this.data[o+4+3]=255}t!==0&&(this.pos+=4-t)}},QA.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+4*n;if(a<this.palette.length){var o=this.palette[a];this.data[i]=o.red,this.data[i+1]=o.green,this.data[i+2]=o.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}e!==0&&(this.pos+=4-e)}},QA.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,a=0;a<this.width;a++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(i&t)/t*255|0,s=(i>>5&t)/t*255|0,l=(i>>10&t)/t*255|0,c=i>>15?255:0,A=n*this.width*4+4*a;this.data[A]=l,this.data[A+1]=s,this.data[A+2]=o,this.data[A+3]=c}this.pos+=e}},QA.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),r=parseInt("111111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(o&t)/t*255|0,l=(o>>5&r)/r*255|0,c=(o>>11)/t*255|0,A=a*this.width*4+4*i;this.data[A]=c,this.data[A+1]=l,this.data[A+2]=s,this.data[A+3]=255}this.pos+=e}},QA.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=t*this.width*4+4*r;this.data[o]=i,this.data[o+1]=a,this.data[o+2]=n,this.data[o+3]=255}this.pos+=this.width%4}},QA.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*r;this.data[s]=i,this.data[s+1]=a,this.data[s+2]=n,this.data[s+3]=o}},QA.prototype.getData=function(){return this.data},(function(e){e.processBMP=function(t,r,n,a){var i=new QA(t,!1),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new tP(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}})(bn.API),ane.prototype.getData=function(){return this.data},(function(e){e.processWEBP=function(t,r,n,a){var i=new ane(t),o=i.width,s=i.height,l={data:i.getData(),width:o,height:s},c=new tP(100).encode(l,100);return e.processJPEG.call(this,c,r,n,a)}})(bn.API),bn.API.processRGBA=function(e,t,r){for(var n=e.data,a=n.length,i=new Uint8Array(a/4*3),o=new Uint8Array(a/4),s=0,l=0,c=0;c<a;c+=4){var A=n[c],u=n[c+1],d=n[c+2],f=n[c+3];i[s++]=A,i[s++]=u,i[s++]=d,o[l++]=f}var h=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(o),data:h,index:t,alias:r,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},bn.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")})),this.internal.languageSettings.isSubscribed=!0)),this},y0=bn.API,wI=y0.getCharWidthsArray=function(e,t){var r,n,a=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),o=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:a.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:a.metadata.Unicode.kerning,A=c.fof?c.fof:1,u=t.doKerning!==!1,d=0,f=e.length,h=0,g=s[0]||l,p=[];for(r=0;r<f;r++)n=e.charCodeAt(r),typeof a.metadata.widthOfString=="function"?p.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(n))+o*(1e3/i)||0)/1e3):(d=u&&Ar(c[n])==="object"&&!isNaN(parseInt(c[n][h],10))?c[n][h]/A:0,p.push((s[n]||g)/l+d)),h=n;return p},ene=y0.getStringUnitWidth=function(e,t){var r=(t=t||{}).fontSize||this.internal.getFontSize(),n=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return y0.processArabic&&(e=y0.processArabic(e)),typeof n.metadata.widthOfString=="function"?n.metadata.widthOfString(e,r,a)/r:wI.apply(this,arguments).reduce((function(i,o){return i+o}),0)},tne=function(e,t,r,n){for(var a=[],i=0,o=e.length,s=0;i!==o&&s+t[i]<r;)s+=t[i],i++;a.push(e.slice(0,i));var l=i;for(s=0;i!==o;)s+t[i]>n&&(a.push(e.slice(l,i)),s=0,l=i),s+=t[i],i++;return l!==i&&a.push(e.slice(l,i)),a},rne=function(e,t,r){r||(r={});var n,a,i,o,s,l,c,A=[],u=[A],d=r.textIndent||0,f=0,h=0,g=e.split(" "),p=wI.apply(this,[" ",r])[0];if(l=r.lineIndent===-1?g[0].length+2:r.lineIndent||0){var m=Array(l).join(" "),y=[];g.map((function(w){(w=w.split(/\s*\n/)).length>1?y=y.concat(w.map((function(B,x){return(x&&B.length?`
`:"")+B}))):y.push(w[0])})),g=y,l=ene.apply(this,[m,r])}for(i=0,o=g.length;i<o;i++){var C=0;if(n=g[i],l&&n[0]==`
`&&(n=n.substr(1),C=1),d+f+(h=(a=wI.apply(this,[n,r])).reduce((function(w,B){return w+B}),0))>t||C){if(h>t){for(s=tne.apply(this,[n,a,t-(d+f),t]),A.push(s.shift()),A=[s.pop()];s.length;)u.push([s.shift()]);h=a.slice(n.length-(A[0]?A[0].length:0)).reduce((function(w,B){return w+B}),0)}else A=[n];u.push(A),d=h+l,f=p}else A.push(n),d+=f+h,f=p}return c=l?function(w,B){return(B?m:"")+w.join(" ")}:function(w){return w.join(" ")},u.map(c)},y0.splitTextToSize=function(e,t,r){var n,a=(r=r||{}).fontSize||this.internal.getFontSize(),i=(function(A){if(A.widths&&A.kerning)return{widths:A.widths,kerning:A.kerning};var u=this.internal.getFont(A.fontName,A.fontStyle);return u.metadata.Unicode?{widths:u.metadata.Unicode.widths||{0:1},kerning:u.metadata.Unicode.kerning||{}}:{font:u.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,r);n=Array.isArray(e)?e:String(e).split(/\r?\n/);var o=1*this.internal.scaleFactor*t/a;i.textIndent=r.textIndent?1*r.textIndent*this.internal.scaleFactor/a:0,i.lineIndent=r.lineIndent;var s,l,c=[];for(s=0,l=n.length;s<l;s++)c=c.concat(rne.apply(this,[n[s],o,i]));return c},(function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",r={},n={},a=0;a<t.length;a++)r[t[a]]="0123456789abcdef"[a],n["0123456789abcdef"[a]]=t[a];var i=function(u){return"0x"+parseInt(u,10).toString(16)},o=e.__fontmetrics__.compress=function(u){var d,f,h,g,p=["{"];for(var m in u){if(d=u[m],isNaN(parseInt(m,10))?f="'"+m+"'":(m=parseInt(m,10),f=(f=i(m).slice(2)).slice(0,-1)+n[f.slice(-1)]),typeof d=="number")d<0?(h=i(d).slice(3),g="-"):(h=i(d).slice(2),g=""),h=g+h.slice(0,-1)+n[h.slice(-1)];else{if(Ar(d)!=="object")throw new Error("Don't know what to do with value type "+Ar(d)+".");h=o(d)}p.push(f+h)}return p.push("}"),p.join("")},s=e.__fontmetrics__.uncompress=function(u){if(typeof u!="string")throw new Error("Invalid argument passed to uncompress.");for(var d,f,h,g,p={},m=1,y=p,C=[],w="",B="",x=u.length-1,M=1;M<x;M+=1)(g=u[M])=="'"?d?(h=d.join(""),d=void 0):d=[]:d?d.push(g):g=="{"?(C.push([y,h]),y={},h=void 0):g=="}"?((f=C.pop())[0][f[1]]=y,h=void 0,y=f[0]):g=="-"?m=-1:h===void 0?r.hasOwnProperty(g)?(w+=r[g],h=parseInt(w,16)*m,m=1,w=""):w+=g:r.hasOwnProperty(g)?(B+=r[g],y[h]=parseInt(B,16)*m,m=1,h=void 0,B=""):B+=g;return p},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},A={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(u){var d=u.font,f=A.Unicode[d.postScriptName];f&&(d.metadata.Unicode={},d.metadata.Unicode.widths=f.widths,d.metadata.Unicode.kerning=f.kerning);var h=c.Unicode[d.postScriptName];h&&(d.metadata.Unicode.encoding=h,d.encoding=h.codePages[0])}])})(bn.API),(function(e){var t=function(r){for(var n=r.length,a=new Uint8Array(n),i=0;i<n;i++)a[i]=r.charCodeAt(i);return a};e.API.events.push(["addFont",function(r){var n=void 0,a=r.font,i=r.instance;if(!a.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(n=i.existsFileInVFS(a.postScriptName)===!1?i.loadFile(a.postScriptName):i.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(o,s){s=/^\x00\x01\x00\x00/.test(s)?t(s):t(Lw(s)),o.metadata=e.API.TTFFont.open(s),o.metadata.Unicode=o.metadata.Unicode||{encoding:{},kerning:{},widths:[]},o.metadata.glyIdsUsed=[0]})(a,n)}}])})(bn),(function(e){function t(){return(Tn.canvg?Promise.resolve(Tn.canvg):oy(()=>import("./index.es-er6riAqJ.js"),[],import.meta.url)).catch((function(r){return Promise.reject(new Error("Could not load canvg: "+r))})).then((function(r){return r.default?r.default:r}))}bn.API.addSvgAsImage=function(r,n,a,i,o,s,l,c){if(isNaN(n)||isNaN(a))throw Ja.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw Ja.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var A=document.createElement("canvas");A.width=i,A.height=o;var u=A.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,A.width,A.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},f=this;return t().then((function(h){return h.fromString(u,r,d)}),(function(){return Promise.reject(new Error("Could not load canvg."))})).then((function(h){return h.render(d)})).then((function(){f.addImage(A.toDataURL("image/jpeg",1),n,a,i,o,l,c)}))}})(),bn.API.putTotalPages=function(e){var t,r=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),r=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),r=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var n=1;n<=this.internal.getNumberOfPages();n++)for(var a=0;a<this.internal.pages[n].length;a++)this.internal.pages[n][a]=this.internal.pages[n][a].replace(t,r);return this},bn.API.viewerPreferences=function(e,t){var r;e=e||{},t=t||!1;var n,a,i,o={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(o),l=[],c=0,A=0,u=0;function d(h,g){var p,m=!1;for(p=0;p<h.length;p+=1)h[p]===g&&(m=!0);return m}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(o)),this.internal.viewerpreferences.isSubscribed=!1),r=this.internal.viewerpreferences.configuration,e==="reset"||t===!0){var f=s.length;for(u=0;u<f;u+=1)r[s[u]].value=r[s[u]].defaultValue,r[s[u]].explicitSet=!1}if(Ar(e)==="object"){for(a in e)if(i=e[a],d(s,a)&&i!==void 0){if(r[a].type==="boolean"&&typeof i=="boolean")r[a].value=i;else if(r[a].type==="name"&&d(r[a].valueSet,i))r[a].value=i;else if(r[a].type==="integer"&&Number.isInteger(i))r[a].value=i;else if(r[a].type==="array"){for(c=0;c<i.length;c+=1)if(n=!0,i[c].length===1&&typeof i[c][0]=="number")l.push(String(i[c]-1));else if(i[c].length>1){for(A=0;A<i[c].length;A+=1)typeof i[c][A]!="number"&&(n=!1);n===!0&&l.push([i[c][0]-1,i[c][1]-1].join(" "))}r[a].value="["+l.join(" ")+"]"}else r[a].value=r[a].defaultValue;r[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",(function(){var h,g=[];for(h in r)r[h].explicitSet===!0&&(r[h].type==="name"?g.push("/"+h+" /"+r[h].value):g.push("/"+h+" "+r[h].value));g.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+g.join(`
`)+`
>>`)})),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=r,this},(function(e){var t=function(){var n='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',a=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(n)),o=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),s=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),l=unescape(encodeURIComponent("</x:xmpmeta>")),c=i.length+o.length+s.length+a.length+l.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+c+" >>"),this.internal.write("stream"),this.internal.write(a+i+o+s+l),this.internal.write("endstream"),this.internal.write("endobj")},r=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(n,a){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",r),this.internal.events.subscribe("postPutResources",t)),this}})(bn.API),(function(e){var t=e.API,r=t.pdfEscape16=function(i,o){for(var s,l=o.metadata.Unicode.widths,c=["","0","00","000","0000"],A=[""],u=0,d=i.length;u<d;++u){if(s=o.metadata.characterToGlyph(i.charCodeAt(u)),o.metadata.glyIdsUsed.push(s),o.metadata.toUnicode[s]=i.charCodeAt(u),l.indexOf(s)==-1&&(l.push(s),l.push([parseInt(o.metadata.widthOfGlyph(s),10)])),s=="0")return A.join("");s=s.toString(16),A.push(c[4-s.length],s)}return A.join("")},n=function(i){var o,s,l,c,A,u,d;for(A=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
  /Registry (Adobe)
  /Ordering (UCS)
  /Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,l=[],u=0,d=(s=Object.keys(i).sort((function(f,h){return f-h}))).length;u<d;u++)o=s[u],l.length>=100&&(A+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar`,l=[]),i[o]!==void 0&&i[o]!==null&&typeof i[o].toString=="function"&&(c=("0000"+i[o].toString(16)).slice(-4),o=("0000"+(+o).toString(16)).slice(-4),l.push("<"+o+"><"+c+">"));return l.length&&(A+=`
`+l.length+` beginbfchar
`+l.join(`
`)+`
endbfchar
`),A+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};t.events.push(["putFont",function(i){(function(o){var s=o.font,l=o.out,c=o.newObject,A=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="Identity-H"){for(var u=s.metadata.Unicode.widths,d=s.metadata.subset.encode(s.metadata.glyIdsUsed,1),f="",h=0;h<d.length;h++)f+=String.fromCharCode(d[h]);var g=c();A({data:f,addLength1:!0,objectId:g}),l("endobj");var p=c();A({data:n(s.metadata.toUnicode),addLength1:!0,objectId:p}),l("endobj");var m=c();l("<<"),l("/Type /FontDescriptor"),l("/FontName /"+rE(s.fontName)),l("/FontFile2 "+g+" 0 R"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/Flags "+s.metadata.flags),l("/StemV "+s.metadata.stemV),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l(">>"),l("endobj");var y=c();l("<<"),l("/Type /Font"),l("/BaseFont /"+rE(s.fontName)),l("/FontDescriptor "+m+" 0 R"),l("/W "+e.API.PDFObject.convert(u)),l("/CIDToGIDMap /Identity"),l("/DW 1000"),l("/Subtype /CIDFontType2"),l("/CIDSystemInfo"),l("<<"),l("/Supplement 0"),l("/Registry (Adobe)"),l("/Ordering ("+s.encoding+")"),l(">>"),l(">>"),l("endobj"),s.objectNumber=c(),l("<<"),l("/Type /Font"),l("/Subtype /Type0"),l("/ToUnicode "+p+" 0 R"),l("/BaseFont /"+rE(s.fontName)),l("/Encoding /"+s.encoding),l("/DescendantFonts ["+y+" 0 R]"),l(">>"),l("endobj"),s.isAlreadyPutted=!0}})(i)}]),t.events.push(["putFont",function(i){(function(o){var s=o.font,l=o.out,c=o.newObject,A=o.putStream;if(s.metadata instanceof e.API.TTFFont&&s.encoding==="WinAnsiEncoding"){for(var u=s.metadata.rawData,d="",f=0;f<u.length;f++)d+=String.fromCharCode(u[f]);var h=c();A({data:d,addLength1:!0,objectId:h}),l("endobj");var g=c();A({data:n(s.metadata.toUnicode),addLength1:!0,objectId:g}),l("endobj");var p=c();l("<<"),l("/Descent "+s.metadata.decender),l("/CapHeight "+s.metadata.capHeight),l("/StemV "+s.metadata.stemV),l("/Type /FontDescriptor"),l("/FontFile2 "+h+" 0 R"),l("/Flags 96"),l("/FontBBox "+e.API.PDFObject.convert(s.metadata.bbox)),l("/FontName /"+rE(s.fontName)),l("/ItalicAngle "+s.metadata.italicAngle),l("/Ascent "+s.metadata.ascender),l(">>"),l("endobj"),s.objectNumber=c();for(var m=0;m<s.metadata.hmtx.widths.length;m++)s.metadata.hmtx.widths[m]=parseInt(s.metadata.hmtx.widths[m]*(1e3/s.metadata.head.unitsPerEm));l("<</Subtype/TrueType/Type/Font/ToUnicode "+g+" 0 R/BaseFont/"+rE(s.fontName)+"/FontDescriptor "+p+" 0 R/Encoding/"+s.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(s.metadata.hmtx.widths)+">>"),l("endobj"),s.isAlreadyPutted=!0}})(i)}]);var a=function(i){var o,s=i.text||"",l=i.x,c=i.y,A=i.options||{},u=i.mutex||{},d=u.pdfEscape,f=u.activeFontKey,h=u.fonts,g=f,p="",m=0,y="",C=h[g].encoding;if(h[g].encoding!=="Identity-H")return{text:s,x:l,y:c,options:A,mutex:u};for(y=s,g=f,Array.isArray(s)&&(y=s[0]),m=0;m<y.length;m+=1)h[g].metadata.hasOwnProperty("cmap")&&(o=h[g].metadata.cmap.unicode.codeMap[y[m].charCodeAt(0)]),o||y[m].charCodeAt(0)<256&&h[g].metadata.hasOwnProperty("Unicode")?p+=y[m]:p+="";var w="";return parseInt(g.slice(1))<14||C==="WinAnsiEncoding"?w=d(p,g).split("").map((function(B){return B.charCodeAt(0).toString(16)})).join(""):C==="Identity-H"&&(w=r(p,h[g])),u.isHex=!0,{text:w,x:l,y:c,options:A,mutex:u}};t.events.push(["postProcessText",function(i){var o=i.text||"",s=[],l={text:o,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(o)){var c=0;for(c=0;c<o.length;c+=1)Array.isArray(o[c])&&o[c].length===3?s.push([a(Object.assign({},l,{text:o[c][0]})).text,o[c][1],o[c][2]]):s.push(a(Object.assign({},l,{text:o[c]})).text);i.text=s}else i.text=a(Object.assign({},l,{text:o})).text}])})(bn),(function(e){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0},e.addFileToVFS=function(r,n){return t.call(this),this.internal.vFS[r]=n,this},e.getFileFromVFS=function(r){return t.call(this),this.internal.vFS[r]!==void 0?this.internal.vFS[r]:null}})(bn.API),(function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(n){var a,i,o,s,l,c,A,u=t,d=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],f=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},g={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],m=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),y=!1,C=0;this.__bidiEngine__={};var w=function(T){var D=T.charCodeAt(),F=D>>8,N=g[F];return N!==void 0?u[256*N+(255&D)]:F===252||F===253?"AL":m.test(F)?"L":F===8?"R":"N"},B=function(T){for(var D,F=0;F<T.length;F++){if((D=w(T.charAt(F)))==="L")return!1;if(D==="R")return!0}return!1},x=function(T,D,F,N){var _,P,k,j,Y=D[N];switch(Y){case"L":case"R":y=!1;break;case"N":case"AN":break;case"EN":y&&(Y="AN");break;case"AL":y=!0,Y="R";break;case"WS":Y="N";break;case"CS":N<1||N+1>=D.length||(_=F[N-1])!=="EN"&&_!=="AN"||(P=D[N+1])!=="EN"&&P!=="AN"?Y="N":y&&(P="AN"),Y=P===_?P:"N";break;case"ES":Y=(_=N>0?F[N-1]:"B")==="EN"&&N+1<D.length&&D[N+1]==="EN"?"EN":"N";break;case"ET":if(N>0&&F[N-1]==="EN"){Y="EN";break}if(y){Y="N";break}for(k=N+1,j=D.length;k<j&&D[k]==="ET";)k++;Y=k<j&&D[k]==="EN"?"EN":"N";break;case"NSM":if(o&&!s){for(j=D.length,k=N+1;k<j&&D[k]==="NSM";)k++;if(k<j){var X=T[N],K=X>=1425&&X<=2303||X===64286;if(_=D[k],K&&(_==="R"||_==="AL")){Y="R";break}}}Y=N<1||(_=D[N-1])==="B"?"N":F[N-1];break;case"B":y=!1,a=!0,Y=C;break;case"S":i=!0,Y="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":y=!1;break;case"BN":Y="N"}return Y},M=function(T,D,F){var N=T.split("");return F&&S(N,F,{hiLevel:C}),N.reverse(),D&&D.reverse(),N.join("")},S=function(T,D,F){var N,_,P,k,j,Y=-1,X=T.length,K=0,U=[],H=C?f:d,L=[];for(y=!1,a=!1,i=!1,_=0;_<X;_++)L[_]=w(T[_]);for(P=0;P<X;P++){if(j=K,U[P]=x(T,L,U,P),N=240&(K=H[j][h[U[P]]]),K&=15,D[P]=k=H[K][5],N>0)if(N===16){for(_=Y;_<P;_++)D[_]=1;Y=-1}else Y=-1;if(H[K][6])Y===-1&&(Y=P);else if(Y>-1){for(_=Y;_<P;_++)D[_]=k;Y=-1}L[P]==="B"&&(D[P]=0),F.hiLevel|=k}i&&(function(V,J,ee){for(var ae=0;ae<ee;ae++)if(V[ae]==="S"){J[ae]=C;for(var ne=ae-1;ne>=0&&V[ne]==="WS";ne--)J[ne]=C}})(L,D,X)},R=function(T,D,F,N,_){if(!(_.hiLevel<T)){if(T===1&&C===1&&!a)return D.reverse(),void(F&&F.reverse());for(var P,k,j,Y,X=D.length,K=0;K<X;){if(N[K]>=T){for(j=K+1;j<X&&N[j]>=T;)j++;for(Y=K,k=j-1;Y<k;Y++,k--)P=D[Y],D[Y]=D[k],D[k]=P,F&&(P=F[Y],F[Y]=F[k],F[k]=P);K=j}K++}}},b=function(T,D,F){var N=T.split(""),_={hiLevel:C};return F||(F=[]),S(N,F,_),(function(P,k,j){if(j.hiLevel!==0&&A)for(var Y,X=0;X<P.length;X++)k[X]===1&&(Y=p.indexOf(P[X]))>=0&&(P[X]=p[Y+1])})(N,F,_),R(2,N,D,F,_),R(1,N,D,F,_),N.join("")};return this.__bidiEngine__.doBidiReorder=function(T,D,F){if((function(_,P){if(P)for(var k=0;k<_.length;k++)P[k]=k;s===void 0&&(s=B(_)),c===void 0&&(c=B(_))})(T,D),o||!l||c)if(o&&l&&s^c)C=s?1:0,T=M(T,D,F);else if(!o&&l&&c)C=s?1:0,T=b(T,D,F),T=M(T,D);else if(!o||s||l||c){if(o&&!l&&s^c)T=M(T,D),s?(C=0,T=b(T,D,F)):(C=1,T=b(T,D,F),T=M(T,D));else if(o&&s&&!l&&c)C=1,T=b(T,D,F),T=M(T,D);else if(!o&&!l&&s^c){var N=A;s?(C=1,T=b(T,D,F),C=0,A=!1,T=b(T,D,F),A=N):(C=0,T=b(T,D,F),T=M(T,D),C=1,A=!1,T=b(T,D,F),A=N,T=M(T,D))}}else C=0,T=b(T,D,F);else C=s?1:0,T=b(T,D,F);return T},this.__bidiEngine__.setOptions=function(T){T&&(o=T.isInputVisual,l=T.isOutputVisual,s=T.isInputRtl,c=T.isOutputRtl,A=T.isSymmetricSwapping)},this.__bidiEngine__.setOptions(n),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],r=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(n){var a=n.text;n.x,n.y;var i=n.options||{};n.mutex,i.lang;var o=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,r.setOptions(i),Object.prototype.toString.call(a)==="[object Array]"){var s=0;for(o=[],s=0;s<a.length;s+=1)Object.prototype.toString.call(a[s])==="[object Array]"?o.push([r.doBidiReorder(a[s][0]),a[s][1],a[s][2]]):o.push([r.doBidiReorder(a[s])]);n.text=o}else n.text=r.doBidiReorder(a);r.setOptions({isInputVisual:!0})}])})(bn),bn.API.TTFFont=(function(){function e(t){var r;if(this.rawData=t,r=this.contents=new Rg(t),this.contents.pos=4,r.readString(4)==="ttcf")throw new Error("TTCF not supported.");r.pos=0,this.parse(),this.subset=new mht(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new aht(this.contents),this.head=new oht(this),this.name=new uht(this),this.cmap=new ixe(this),this.toUnicode={},this.hhea=new sht(this),this.maxp=new dht(this),this.hmtx=new fht(this),this.post=new cht(this),this.os2=new lht(this),this.loca=new vht(this),this.glyf=new hht(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var t,r,n,a,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var o,s,l,c;for(c=[],o=0,s=(l=this.bbox).length;o<s;o++)t=l[o],c.push(Math.round(t*this.scaleFactor));return c}).call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),(32768&(r=a>>16))!=0&&(r=-(1+(65535^r))),this.italicAngle=+(r+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(t){var r;return((r=this.cmap.unicode)!=null?r.codeMap[t]:void 0)||0},e.prototype.widthOfGlyph=function(t){var r;return r=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*r},e.prototype.widthOfString=function(t,r,n){var a,i,o,s;for(o=0,i=0,s=(t=""+t).length;0<=s?i<s:i>s;i=0<=s?++i:--i)a=t.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/r)||0;return o*(r/1e3)},e.prototype.lineHeight=function(t,r){var n;return r==null&&(r=!1),n=r?this.lineGap:0,(this.ascender+n-this.decender)/1e3*t},e})();var mu,Rg=(function(){function e(t){this.data=t??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(t){return this.data[this.pos++]=t},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},e.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},e.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},e.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},e.prototype.readString=function(t){var r,n;for(n=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)n[r]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(t){var r,n,a;for(a=[],r=0,n=t.length;0<=n?r<n:r>n;r=0<=n?++r:--r)a.push(this.writeByte(t.charCodeAt(r)));return a},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(t){return this.writeInt16(t)},e.prototype.readLongLong=function(){var t,r,n,a,i,o,s,l;return t=this.readByte(),r=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),s=this.readByte(),l=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^r)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^i)+65536*(255^o)+256*(255^s)+(255^l)+1):72057594037927940*t+281474976710656*r+1099511627776*n+4294967296*a+16777216*i+65536*o+256*s+l},e.prototype.writeLongLong=function(t){var r,n;return r=Math.floor(t/4294967296),n=4294967295&t,this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(t){return this.writeInt32(t)},e.prototype.read=function(t){var r,n;for(r=[],n=0;0<=t?n<t:n>t;n=0<=t?++n:--n)r.push(this.readByte());return r},e.prototype.write=function(t){var r,n,a,i;for(i=[],n=0,a=t.length;n<a;n++)r=t[n],i.push(this.writeByte(r));return i},e})(),aht=(function(){var e;function t(r){var n,a,i;for(this.scalarType=r.readInt(),this.tableCount=r.readShort(),this.searchRange=r.readShort(),this.entrySelector=r.readShort(),this.rangeShift=r.readShort(),this.tables={},a=0,i=this.tableCount;0<=i?a<i:a>i;a=0<=i?++a:--a)n={tag:r.readString(4),checksum:r.readInt(),offset:r.readInt(),length:r.readInt()},this.tables[n.tag]=n}return t.prototype.encode=function(r){var n,a,i,o,s,l,c,A,u,d,f,h,g;for(g in f=Object.keys(r).length,l=Math.log(2),u=16*Math.floor(Math.log(f)/l),o=Math.floor(u/l),A=16*f-u,(a=new Rg).writeInt(this.scalarType),a.writeShort(f),a.writeShort(u),a.writeShort(o),a.writeShort(A),i=16*f,c=a.pos+i,s=null,h=[],r)for(d=r[g],a.writeString(g),a.writeInt(e(d)),a.writeInt(c),a.writeInt(d.length),h=h.concat(d),g==="head"&&(s=c),c+=d.length;c%4;)h.push(0),c++;return a.write(h),n=2981146554-e(a.data),a.pos=s+8,a.writeUInt32(n),a.data},e=function(r){var n,a,i,o;for(r=oxe.call(r);r.length%4;)r.push(0);for(i=new Rg(r),a=0,n=0,o=r.length;n<o;n=n+=4)a+=i.readUInt32();return 4294967295&a},t})(),iht={}.hasOwnProperty,Nd=function(e,t){for(var r in t)iht.call(t,r)&&(e[r]=t[r]);function n(){this.constructor=e}return n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype,e};mu=(function(){function e(t){var r;this.file=t,r=this.file.directory.tables[this.tag],this.exists=!!r,r&&(this.offset=r.offset,this.length=r.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e})();var oht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="head",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.revision=r.readInt(),this.checkSumAdjustment=r.readInt(),this.magicNumber=r.readInt(),this.flags=r.readShort(),this.unitsPerEm=r.readShort(),this.created=r.readLongLong(),this.modified=r.readLongLong(),this.xMin=r.readShort(),this.yMin=r.readShort(),this.xMax=r.readShort(),this.yMax=r.readShort(),this.macStyle=r.readShort(),this.lowestRecPPEM=r.readShort(),this.fontDirectionHint=r.readShort(),this.indexToLocFormat=r.readShort(),this.glyphDataFormat=r.readShort()},t.prototype.encode=function(r){var n;return(n=new Rg).writeInt(this.version),n.writeInt(this.revision),n.writeInt(this.checkSumAdjustment),n.writeInt(this.magicNumber),n.writeShort(this.flags),n.writeShort(this.unitsPerEm),n.writeLongLong(this.created),n.writeLongLong(this.modified),n.writeShort(this.xMin),n.writeShort(this.yMin),n.writeShort(this.xMax),n.writeShort(this.yMax),n.writeShort(this.macStyle),n.writeShort(this.lowestRecPPEM),n.writeShort(this.fontDirectionHint),n.writeShort(r),n.writeShort(this.glyphDataFormat),n.data},t})(),ine=(function(){function e(t,r){var n,a,i,o,s,l,c,A,u,d,f,h,g,p,m,y,C;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=r+t.readInt(),u=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(l=0;l<256;++l)this.codeMap[l]=t.readByte();break;case 4:for(f=t.readUInt16(),d=f/2,t.pos+=6,i=(function(){var w,B;for(B=[],l=w=0;0<=d?w<d:w>d;l=0<=d?++w:--w)B.push(t.readUInt16());return B})(),t.pos+=2,g=(function(){var w,B;for(B=[],l=w=0;0<=d?w<d:w>d;l=0<=d?++w:--w)B.push(t.readUInt16());return B})(),c=(function(){var w,B;for(B=[],l=w=0;0<=d?w<d:w>d;l=0<=d?++w:--w)B.push(t.readUInt16());return B})(),A=(function(){var w,B;for(B=[],l=w=0;0<=d?w<d:w>d;l=0<=d?++w:--w)B.push(t.readUInt16());return B})(),a=(this.length-t.pos+this.offset)/2,s=(function(){var w,B;for(B=[],l=w=0;0<=a?w<a:w>a;l=0<=a?++w:--w)B.push(t.readUInt16());return B})(),l=m=0,C=i.length;m<C;l=++m)for(p=i[l],n=y=h=g[l];h<=p?y<=p:y>=p;n=h<=p?++y:--y)A[l]===0?o=n+c[l]:(o=s[A[l]/2+(n-h)-(d-l)]||0)!==0&&(o+=c[l]),this.codeMap[n]=65535&o}t.pos=u}return e.encode=function(t,r){var n,a,i,o,s,l,c,A,u,d,f,h,g,p,m,y,C,w,B,x,M,S,R,b,T,D,F,N,_,P,k,j,Y,X,K,U,H,L,V,J,ee,ae,ne,fe,he,ye;switch(N=new Rg,o=Object.keys(t).sort((function(be,Se){return be-Se})),r){case"macroman":for(g=0,p=(function(){var be=[];for(h=0;h<256;++h)be.push(0);return be})(),y={0:0},i={},_=0,Y=o.length;_<Y;_++)y[ne=t[a=o[_]]]==null&&(y[ne]=++g),i[a]={old:t[a],new:y[t[a]]},p[a]=y[t[a]];return N.writeUInt16(1),N.writeUInt16(0),N.writeUInt32(12),N.writeUInt16(0),N.writeUInt16(262),N.writeUInt16(0),N.write(p),{charMap:i,subtable:N.data,maxGlyphID:g+1};case"unicode":for(D=[],u=[],C=0,y={},n={},m=c=null,P=0,X=o.length;P<X;P++)y[B=t[a=o[P]]]==null&&(y[B]=++C),n[a]={old:B,new:y[B]},s=y[B]-a,m!=null&&s===c||(m&&u.push(m),D.push(a),c=s),m=a;for(m&&u.push(m),u.push(65535),D.push(65535),b=2*(R=D.length),S=2*Math.pow(Math.log(R)/Math.LN2,2),d=Math.log(S/2)/Math.LN2,M=2*R-S,l=[],x=[],f=[],h=k=0,K=D.length;k<K;h=++k){if(T=D[h],A=u[h],T===65535){l.push(0),x.push(0);break}if(T-(F=n[T].new)>=32768)for(l.push(0),x.push(2*(f.length+R-h)),a=j=T;T<=A?j<=A:j>=A;a=T<=A?++j:--j)f.push(n[a].new);else l.push(F-T),x.push(0)}for(N.writeUInt16(3),N.writeUInt16(1),N.writeUInt32(12),N.writeUInt16(4),N.writeUInt16(16+8*R+2*f.length),N.writeUInt16(0),N.writeUInt16(b),N.writeUInt16(S),N.writeUInt16(d),N.writeUInt16(M),ee=0,U=u.length;ee<U;ee++)a=u[ee],N.writeUInt16(a);for(N.writeUInt16(0),ae=0,H=D.length;ae<H;ae++)a=D[ae],N.writeUInt16(a);for(fe=0,L=l.length;fe<L;fe++)s=l[fe],N.writeUInt16(s);for(he=0,V=x.length;he<V;he++)w=x[he],N.writeUInt16(w);for(ye=0,J=f.length;ye<J;ye++)g=f[ye],N.writeUInt16(g);return{charMap:n,subtable:N.data,maxGlyphID:C+1}}},e})(),ixe=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="cmap",t.prototype.parse=function(r){var n,a,i;for(r.pos=this.offset,this.version=r.readUInt16(),i=r.readUInt16(),this.tables=[],this.unicode=null,a=0;0<=i?a<i:a>i;a=0<=i?++a:--a)n=new ine(r,this.offset),this.tables.push(n),n.isUnicode&&this.unicode==null&&(this.unicode=n);return!0},t.encode=function(r,n){var a,i;return n==null&&(n="macroman"),a=ine.encode(r,n),(i=new Rg).writeUInt16(0),i.writeUInt16(1),a.table=i.data.concat(a.subtable),a},t})(),sht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="hhea",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.ascender=r.readShort(),this.decender=r.readShort(),this.lineGap=r.readShort(),this.advanceWidthMax=r.readShort(),this.minLeftSideBearing=r.readShort(),this.minRightSideBearing=r.readShort(),this.xMaxExtent=r.readShort(),this.caretSlopeRise=r.readShort(),this.caretSlopeRun=r.readShort(),this.caretOffset=r.readShort(),r.pos+=8,this.metricDataFormat=r.readShort(),this.numberOfMetrics=r.readUInt16()},t})(),lht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="OS/2",t.prototype.parse=function(r){if(r.pos=this.offset,this.version=r.readUInt16(),this.averageCharWidth=r.readShort(),this.weightClass=r.readUInt16(),this.widthClass=r.readUInt16(),this.type=r.readShort(),this.ySubscriptXSize=r.readShort(),this.ySubscriptYSize=r.readShort(),this.ySubscriptXOffset=r.readShort(),this.ySubscriptYOffset=r.readShort(),this.ySuperscriptXSize=r.readShort(),this.ySuperscriptYSize=r.readShort(),this.ySuperscriptXOffset=r.readShort(),this.ySuperscriptYOffset=r.readShort(),this.yStrikeoutSize=r.readShort(),this.yStrikeoutPosition=r.readShort(),this.familyClass=r.readShort(),this.panose=(function(){var n,a;for(a=[],n=0;n<10;++n)a.push(r.readByte());return a})(),this.charRange=(function(){var n,a;for(a=[],n=0;n<4;++n)a.push(r.readInt());return a})(),this.vendorID=r.readString(4),this.selection=r.readShort(),this.firstCharIndex=r.readShort(),this.lastCharIndex=r.readShort(),this.version>0&&(this.ascent=r.readShort(),this.descent=r.readShort(),this.lineGap=r.readShort(),this.winAscent=r.readShort(),this.winDescent=r.readShort(),this.codePageRange=(function(){var n,a;for(a=[],n=0;n<2;n=++n)a.push(r.readInt());return a})(),this.version>1))return this.xHeight=r.readShort(),this.capHeight=r.readShort(),this.defaultChar=r.readShort(),this.breakChar=r.readShort(),this.maxContext=r.readShort()},t})(),cht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="post",t.prototype.parse=function(r){var n,a,i;switch(r.pos=this.offset,this.format=r.readInt(),this.italicAngle=r.readInt(),this.underlinePosition=r.readShort(),this.underlineThickness=r.readShort(),this.isFixedPitch=r.readInt(),this.minMemType42=r.readInt(),this.maxMemType42=r.readInt(),this.minMemType1=r.readInt(),this.maxMemType1=r.readInt(),this.format){case 65536:break;case 131072:var o;for(a=r.readUInt16(),this.glyphNameIndex=[],o=0;0<=a?o<a:o>a;o=0<=a?++o:--o)this.glyphNameIndex.push(r.readUInt16());for(this.names=[],i=[];r.pos<this.offset+this.length;)n=r.readByte(),i.push(this.names.push(r.readString(n)));return i;case 151552:return a=r.readUInt16(),this.offsets=r.read(a);case 196608:break;case 262144:return this.map=(function(){var s,l,c;for(c=[],o=s=0,l=this.file.maxp.numGlyphs;0<=l?s<l:s>l;o=0<=l?++s:--s)c.push(r.readUInt32());return c}).call(this)}},t})(),Aht=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},uht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="name",t.prototype.parse=function(r){var n,a,i,o,s,l,c,A,u,d,f;for(r.pos=this.offset,r.readShort(),n=r.readShort(),l=r.readShort(),a=[],o=0;0<=n?o<n:o>n;o=0<=n?++o:--o)a.push({platformID:r.readShort(),encodingID:r.readShort(),languageID:r.readShort(),nameID:r.readShort(),length:r.readShort(),offset:this.offset+l+r.readShort()});for(c={},o=u=0,d=a.length;u<d;o=++u)i=a[o],r.pos=i.offset,A=r.readString(i.length),s=new Aht(A,i),c[f=i.nameID]==null&&(c[f]=[]),c[i.nameID].push(s);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfamily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},t})(),dht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="maxp",t.prototype.parse=function(r){return r.pos=this.offset,this.version=r.readInt(),this.numGlyphs=r.readUInt16(),this.maxPoints=r.readUInt16(),this.maxContours=r.readUInt16(),this.maxCompositePoints=r.readUInt16(),this.maxComponentContours=r.readUInt16(),this.maxZones=r.readUInt16(),this.maxTwilightPoints=r.readUInt16(),this.maxStorage=r.readUInt16(),this.maxFunctionDefs=r.readUInt16(),this.maxInstructionDefs=r.readUInt16(),this.maxStackElements=r.readUInt16(),this.maxSizeOfInstructions=r.readUInt16(),this.maxComponentElements=r.readUInt16(),this.maxComponentDepth=r.readUInt16()},t})(),fht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="hmtx",t.prototype.parse=function(r){var n,a,i,o,s,l,c;for(r.pos=this.offset,this.metrics=[],n=0,l=this.file.hhea.numberOfMetrics;0<=l?n<l:n>l;n=0<=l?++n:--n)this.metrics.push({advance:r.readUInt16(),lsb:r.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var A,u;for(u=[],n=A=0;0<=i?A<i:A>i;n=0<=i?++A:--A)u.push(r.readInt16());return u})(),this.widths=(function(){var A,u,d,f;for(f=[],A=0,u=(d=this.metrics).length;A<u;A++)o=d[A],f.push(o.advance);return f}).call(this),a=this.widths[this.widths.length-1],c=[],n=s=0;0<=i?s<i:s>i;n=0<=i?++s:--s)c.push(this.widths.push(a));return c},t.prototype.forGlyph=function(r){return r in this.metrics?this.metrics[r]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[r-this.metrics.length]}},t})(),oxe=[].slice,hht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(r){var n,a,i,o,s,l,c,A,u,d;return r in this.cache?this.cache[r]:(o=this.file.loca,n=this.file.contents,a=o.indexOf(r),(i=o.lengthOf(r))===0?this.cache[r]=null:(n.pos=this.offset+a,s=(l=new Rg(n.read(i))).readShort(),A=l.readShort(),d=l.readShort(),c=l.readShort(),u=l.readShort(),this.cache[r]=s===-1?new pht(l,A,d,c,u):new ght(l,s,A,d,c,u),this.cache[r]))},t.prototype.encode=function(r,n,a){var i,o,s,l,c;for(s=[],o=[],l=0,c=n.length;l<c;l++)i=r[n[l]],o.push(s.length),i&&(s=s.concat(i.encode(a)));return o.push(s.length),{table:s,offsets:o}},t})(),ght=(function(){function e(t,r,n,a,i,o){this.raw=t,this.numberOfContours=r,this.xMin=n,this.yMin=a,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e})(),pht=(function(){function e(t,r,n,a,i){var o,s;for(this.raw=t,this.xMin=r,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;s=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&s;)o.pos+=1&s?4:2,128&s?o.pos+=8:64&s?o.pos+=4:8&s&&(o.pos+=2)}return e.prototype.encode=function(){var t,r,n;for(r=new Rg(oxe.call(this.raw.data)),t=0,n=this.glyphIDs.length;t<n;++t)r.pos=this.glyphOffsets[t];return r.data},e})(),vht=(function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return Nd(t,mu),t.prototype.tag="loca",t.prototype.parse=function(r){var n,a;return r.pos=this.offset,n=this.file.head.indexToLocFormat,this.offsets=n===0?(function(){var i,o;for(o=[],a=0,i=this.length;a<i;a+=2)o.push(2*r.readUInt16());return o}).call(this):(function(){var i,o;for(o=[],a=0,i=this.length;a<i;a+=4)o.push(r.readUInt32());return o}).call(this)},t.prototype.indexOf=function(r){return this.offsets[r]},t.prototype.lengthOf=function(r){return this.offsets[r+1]-this.offsets[r]},t.prototype.encode=function(r,n){for(var a=new Uint32Array(this.offsets.length),i=0,o=0,s=0;s<a.length;++s)if(a[s]=i,o<n.length&&n[o]==s){++o,a[s]=i;var l=this.offsets[s],c=this.offsets[s+1]-l;c>0&&(i+=c)}for(var A=new Array(4*a.length),u=0;u<a.length;++u)A[4*u+3]=255&a[u],A[4*u+2]=(65280&a[u])>>8,A[4*u+1]=(16711680&a[u])>>16,A[4*u]=(4278190080&a[u])>>24;return A},t})(),mht=(function(){function e(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var t,r,n,a,i;for(r in a=this.font.cmap.tables[0].codeMap,t={},i=this.subset)n=i[r],t[r]=a[n];return t},e.prototype.glyphsFor=function(t){var r,n,a,i,o,s,l;for(a={},o=0,s=t.length;o<s;o++)a[i=t[o]]=this.font.glyf.glyphFor(i);for(i in r=[],a)(n=a[i])!=null&&n.compound&&r.push.apply(r,n.glyphIDs);if(r.length>0)for(i in l=this.glyphsFor(r))n=l[i],a[i]=n;return a},e.prototype.encode=function(t,r){var n,a,i,o,s,l,c,A,u,d,f,h,g,p,m;for(a in n=ixe.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(t),f={0:0},m=n.charMap)f[(l=m[a]).old]=l.new;for(h in d=n.maxGlyphID,o)h in f||(f[h]=d++);return A=(function(y){var C,w;for(C in w={},y)w[y[C]]=C;return w})(f),u=Object.keys(A).sort((function(y,C){return y-C})),g=(function(){var y,C,w;for(w=[],y=0,C=u.length;y<C;y++)s=u[y],w.push(A[s]);return w})(),i=this.font.glyf.encode(o,g,f),c=this.font.loca.encode(i.offsets,g),p={cmap:this.font.cmap.raw(),glyf:i.table,loca:c,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(r)},this.font.os2.exists&&(p["OS/2"]=this.font.os2.raw()),this.font.directory.encode(p)},e})();bn.API.PDFObject=(function(){var e;function t(){}return e=function(r,n){return(Array(n+1).join("0")+r).slice(-n)},t.convert=function(r){var n,a,i,o;if(Array.isArray(r))return"["+(function(){var s,l,c;for(c=[],s=0,l=r.length;s<l;s++)n=r[s],c.push(t.convert(n));return c})().join(" ")+"]";if(typeof r=="string")return"/"+r;if(r?.isString)return"("+r+")";if(r instanceof Date)return"(D:"+e(r.getUTCFullYear(),4)+e(r.getUTCMonth(),2)+e(r.getUTCDate(),2)+e(r.getUTCHours(),2)+e(r.getUTCMinutes(),2)+e(r.getUTCSeconds(),2)+"Z)";if({}.toString.call(r)==="[object Object]"){for(a in i=["<<"],r)o=r[a],i.push("/"+a+" "+t.convert(o));return i.push(">>"),i.join(`
`)}return""+r},t})();function sxe(e,t,r,n,a){n=n||{};var i=1.15,o=a.internal.scaleFactor,s=a.internal.getFontSize()/o,l=a.getLineHeightFactor?a.getLineHeightFactor():i,c=s*l,A=/\r\n|\r|\n/g,u="",d=1;if((n.valign==="middle"||n.valign==="bottom"||n.halign==="center"||n.halign==="right")&&(u=typeof e=="string"?e.split(A):e,d=u.length||1),r+=s*(2-i),n.valign==="middle"?r-=d/2*c:n.valign==="bottom"&&(r-=d*c),n.halign==="center"||n.halign==="right"){var f=s;if(n.halign==="center"&&(f*=.5),u&&d>=1){for(var h=0;h<u.length;h++)a.text(u[h],t-a.getStringUnitWidth(u[h])*f,r),r+=c;return a}t-=a.getStringUnitWidth(e)*f}return n.halign==="justify"?a.text(e,t,r,{maxWidth:n.maxWidth||100,align:"justify"}):a.text(e,t,r),a}var one={},DE=(function(){function e(t){this.jsPDFDocument=t,this.userStyles={textColor:t.getTextColor?this.jsPDFDocument.getTextColor():0,fontSize:t.internal.getFontSize(),fontStyle:t.internal.getFont().fontStyle,font:t.internal.getFont().fontName,lineWidth:t.getLineWidth?this.jsPDFDocument.getLineWidth():0,lineColor:t.getDrawColor?this.jsPDFDocument.getDrawColor():0}}return e.setDefaults=function(t,r){r===void 0&&(r=null),r?r.__autoTableDocumentDefaults=t:one=t},e.unifyColor=function(t){return Array.isArray(t)?t:typeof t=="number"?[t,t,t]:typeof t=="string"?[t]:null},e.prototype.applyStyles=function(t,r){var n,a,i;r===void 0&&(r=!1),t.fontStyle&&this.jsPDFDocument.setFontStyle&&this.jsPDFDocument.setFontStyle(t.fontStyle);var o=this.jsPDFDocument.internal.getFont(),s=o.fontStyle,l=o.fontName;if(t.font&&(l=t.font),t.fontStyle){s=t.fontStyle;var c=this.getFontList()[l];c&&c.indexOf(s)===-1&&this.jsPDFDocument.setFontStyle&&(this.jsPDFDocument.setFontStyle(c[0]),s=c[0])}if(this.jsPDFDocument.setFont(l,s),t.fontSize&&this.jsPDFDocument.setFontSize(t.fontSize),!r){var A=e.unifyColor(t.fillColor);A&&(n=this.jsPDFDocument).setFillColor.apply(n,A),A=e.unifyColor(t.textColor),A&&(a=this.jsPDFDocument).setTextColor.apply(a,A),A=e.unifyColor(t.lineColor),A&&(i=this.jsPDFDocument).setDrawColor.apply(i,A),typeof t.lineWidth=="number"&&this.jsPDFDocument.setLineWidth(t.lineWidth)}},e.prototype.splitTextToSize=function(t,r,n){return this.jsPDFDocument.splitTextToSize(t,r,n)},e.prototype.rect=function(t,r,n,a,i){return this.jsPDFDocument.rect(t,r,n,a,i)},e.prototype.getLastAutoTable=function(){return this.jsPDFDocument.lastAutoTable||null},e.prototype.getTextWidth=function(t){return this.jsPDFDocument.getTextWidth(t)},e.prototype.getDocument=function(){return this.jsPDFDocument},e.prototype.setPage=function(t){this.jsPDFDocument.setPage(t)},e.prototype.addPage=function(){return this.jsPDFDocument.addPage()},e.prototype.getFontList=function(){return this.jsPDFDocument.getFontList()},e.prototype.getGlobalOptions=function(){return one||{}},e.prototype.getDocumentOptions=function(){return this.jsPDFDocument.__autoTableDocumentDefaults||{}},e.prototype.pageSize=function(){var t=this.jsPDFDocument.internal.pageSize;return t.width==null&&(t={width:t.getWidth(),height:t.getHeight()}),t},e.prototype.scaleFactor=function(){return this.jsPDFDocument.internal.scaleFactor},e.prototype.getLineHeightFactor=function(){var t=this.jsPDFDocument;return t.getLineHeightFactor?t.getLineHeightFactor():1.15},e.prototype.getLineHeight=function(t){return t/this.scaleFactor()*this.getLineHeightFactor()},e.prototype.pageNumber=function(){var t=this.jsPDFDocument.internal.getCurrentPageInfo();return t?t.pageNumber:this.jsPDFDocument.internal.getNumberOfPages()},e})(),uL=function(e,t){return uL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},uL(e,t)};function lxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");uL(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var cxe=(function(e){lxe(t,e);function t(r){var n=e.call(this)||this;return n._element=r,n}return t})(Array);function Eht(e){return{font:"helvetica",fontStyle:"normal",overflow:"linebreak",fillColor:!1,textColor:20,halign:"left",valign:"top",fontSize:10,cellPadding:5/e,lineColor:200,lineWidth:0,cellWidth:"auto",minCellHeight:0,minCellWidth:0}}function yht(e){var t={striped:{table:{fillColor:255,textColor:80,fontStyle:"normal"},head:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},body:{},foot:{textColor:255,fillColor:[41,128,185],fontStyle:"bold"},alternateRow:{fillColor:245}},grid:{table:{fillColor:255,textColor:80,fontStyle:"normal",lineWidth:.1},head:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},body:{},foot:{textColor:255,fillColor:[26,188,156],fontStyle:"bold",lineWidth:0},alternateRow:{}},plain:{head:{fontStyle:"bold"},foot:{fontStyle:"bold"}}};return t[e]}function _T(e,t,r){r.applyStyles(t,!0);var n=Array.isArray(e)?e:[e],a=n.map(function(i){return r.getTextWidth(i)}).reduce(function(i,o){return Math.max(i,o)},0);return a}function Axe(e,t,r,n){var a=t.settings.tableLineWidth,i=t.settings.tableLineColor;e.applyStyles({lineWidth:a,lineColor:i});var o=uxe(a,!1);o&&e.rect(r.x,r.y,t.getWidth(e.pageSize().width),n.y-r.y,o)}function uxe(e,t){var r=e>0,n=t||t===0;return r&&n?"DF":r?"S":n?"F":null}function z4(e,t){var r,n,a,i;if(e=e||t,Array.isArray(e)){if(e.length>=4)return{top:e[0],right:e[1],bottom:e[2],left:e[3]};if(e.length===3)return{top:e[0],right:e[1],bottom:e[2],left:e[1]};if(e.length===2)return{top:e[0],right:e[1],bottom:e[0],left:e[1]};e.length===1?e=e[0]:e=t}return typeof e=="object"?(typeof e.vertical=="number"&&(e.top=e.vertical,e.bottom=e.vertical),typeof e.horizontal=="number"&&(e.right=e.horizontal,e.left=e.horizontal),{left:(r=e.left)!==null&&r!==void 0?r:t,top:(n=e.top)!==null&&n!==void 0?n:t,right:(a=e.right)!==null&&a!==void 0?a:t,bottom:(i=e.bottom)!==null&&i!==void 0?i:t}):(typeof e!="number"&&(e=t),{top:e,right:e,bottom:e,left:e})}function dxe(e,t){var r=z4(t.settings.margin,0);return e.pageSize().width-(r.left+r.right)}function Cht(e,t,r,n,a){var i={},o=1.3333333333333333,s=rP(t,function(C){return a.getComputedStyle(C).backgroundColor});s!=null&&(i.fillColor=s);var l=rP(t,function(C){return a.getComputedStyle(C).color});l!=null&&(i.textColor=l);var c=Bht(n,r);c&&(i.cellPadding=c);var A="borderTopColor",u=o*r,d=n.borderTopWidth;if(n.borderBottomWidth===d&&n.borderRightWidth===d&&n.borderLeftWidth===d){var f=(parseFloat(d)||0)/u;f&&(i.lineWidth=f)}else i.lineWidth={top:(parseFloat(n.borderTopWidth)||0)/u,right:(parseFloat(n.borderRightWidth)||0)/u,bottom:(parseFloat(n.borderBottomWidth)||0)/u,left:(parseFloat(n.borderLeftWidth)||0)/u},i.lineWidth.top||(i.lineWidth.right?A="borderRightColor":i.lineWidth.bottom?A="borderBottomColor":i.lineWidth.left&&(A="borderLeftColor"));var h=rP(t,function(C){return a.getComputedStyle(C)[A]});h!=null&&(i.lineColor=h);var g=["left","right","center","justify"];g.indexOf(n.textAlign)!==-1&&(i.halign=n.textAlign),g=["middle","bottom","top"],g.indexOf(n.verticalAlign)!==-1&&(i.valign=n.verticalAlign);var p=parseInt(n.fontSize||"");isNaN(p)||(i.fontSize=p/o);var m=wht(n);m&&(i.fontStyle=m);var y=(n.fontFamily||"").toLowerCase();return e.indexOf(y)!==-1&&(i.font=y),i}function wht(e){var t="";return(e.fontWeight==="bold"||e.fontWeight==="bolder"||parseInt(e.fontWeight)>=700)&&(t="bold"),(e.fontStyle==="italic"||e.fontStyle==="oblique")&&(t+="italic"),t}function rP(e,t){var r=fxe(e,t);if(!r)return null;var n=r.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!n||!Array.isArray(n))return null;var a=[parseInt(n[1]),parseInt(n[2]),parseInt(n[3])],i=parseInt(n[4]);return i===0||isNaN(a[0])||isNaN(a[1])||isNaN(a[2])?null:a}function fxe(e,t){var r=t(e);return r==="rgba(0, 0, 0, 0)"||r==="transparent"||r==="initial"||r==="inherit"?e.parentElement==null?null:fxe(e.parentElement,t):r}function Bht(e,t){var r=[e.paddingTop,e.paddingRight,e.paddingBottom,e.paddingLeft],n=96/(72/t),a=(parseInt(e.lineHeight)-parseInt(e.fontSize))/t/2,i=r.map(function(s){return parseInt(s||"0")/n}),o=z4(i,0);return a>o.top&&(o.top=a),a>o.bottom&&(o.bottom=a),o}function hxe(e,t,r,n,a){var i,o;n===void 0&&(n=!1),a===void 0&&(a=!1);var s;typeof t=="string"?s=r.document.querySelector(t):s=t;var l=Object.keys(e.getFontList()),c=e.scaleFactor(),A=[],u=[],d=[];if(!s)return console.error("Html table could not be found with input: ",t),{head:A,body:u,foot:d};for(var f=0;f<s.rows.length;f++){var h=s.rows[f],g=(o=(i=h?.parentElement)===null||i===void 0?void 0:i.tagName)===null||o===void 0?void 0:o.toLowerCase(),p=xht(l,c,r,h,n,a);p&&(g==="thead"?A.push(p):g==="tfoot"?d.push(p):u.push(p))}return{head:A,body:u,foot:d}}function xht(e,t,r,n,a,i){for(var o=new cxe(n),s=0;s<n.cells.length;s++){var l=n.cells[s],c=r.getComputedStyle(l);if(a||c.display!=="none"){var A=void 0;i&&(A=Cht(e,l,t,c,r)),o.push({rowSpan:l.rowSpan,colSpan:l.colSpan,styles:A,_element:l,content:Mht(l)})}}var u=r.getComputedStyle(n);if(o.length>0&&(a||u.display!=="none"))return o}function Mht(e){var t=e.cloneNode(!0);return t.innerHTML=t.innerHTML.replace(/\n/g,"").replace(/ +/g," "),t.innerHTML=t.innerHTML.split(/<br.*?>/).map(function(r){return r.trim()}).join(`
`),t.innerText||t.textContent||""}function Iht(e,t,r){for(var n=0,a=[e,t,r];n<a.length;n++){var i=a[n];i&&typeof i!="object"&&console.error("The options parameter should be of type object, is: "+typeof i),i.startY&&typeof i.startY!="number"&&(console.error("Invalid value for startY option",i.startY),delete i.startY)}}function kf(e,t,r,n,a){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(e),o=1;o<arguments.length;o++){var s=arguments[o];if(s!=null)for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(i[l]=s[l])}return i}function gxe(e,t){var r=new DE(e),n=r.getDocumentOptions(),a=r.getGlobalOptions();Iht(a,n,t);var i=kf({},a,n,t),o;typeof window<"u"&&(o=window);var s=bht(a,n,t),l=Sht(a,n,t),c=Rht(r,i),A=Qht(r,i,o);return{id:t.tableId,content:A,hooks:l,styles:s,settings:c}}function bht(e,t,r){for(var n={styles:{},headStyles:{},bodyStyles:{},footStyles:{},alternateRowStyles:{},columnStyles:{}},a=function(l){if(l==="columnStyles"){var c=e[l],A=t[l],u=r[l];n.columnStyles=kf({},c,A,u)}else{var d=[e,t,r],f=d.map(function(h){return h[l]||{}});n[l]=kf({},f[0],f[1],f[2])}},i=0,o=Object.keys(n);i<o.length;i++){var s=o[i];a(s)}return n}function Sht(e,t,r){for(var n=[e,t,r],a={didParseCell:[],willDrawCell:[],didDrawCell:[],willDrawPage:[],didDrawPage:[]},i=0,o=n;i<o.length;i++){var s=o[i];s.didParseCell&&a.didParseCell.push(s.didParseCell),s.willDrawCell&&a.willDrawCell.push(s.willDrawCell),s.didDrawCell&&a.didDrawCell.push(s.didDrawCell),s.willDrawPage&&a.willDrawPage.push(s.willDrawPage),s.didDrawPage&&a.didDrawPage.push(s.didDrawPage)}return a}function Rht(e,t){var r,n,a,i,o,s,l,c,A,u,d,f,h=z4(t.margin,40/e.scaleFactor()),g=(r=Tht(e,t.startY))!==null&&r!==void 0?r:h.top,p;t.showFoot===!0?p="everyPage":t.showFoot===!1?p="never":p=(n=t.showFoot)!==null&&n!==void 0?n:"everyPage";var m;t.showHead===!0?m="everyPage":t.showHead===!1?m="never":m=(a=t.showHead)!==null&&a!==void 0?a:"everyPage";var y=(i=t.useCss)!==null&&i!==void 0?i:!1,C=t.theme||(y?"plain":"striped"),w=!!t.horizontalPageBreak,B=(o=t.horizontalPageBreakRepeat)!==null&&o!==void 0?o:null;return{includeHiddenHtml:(s=t.includeHiddenHtml)!==null&&s!==void 0?s:!1,useCss:y,theme:C,startY:g,margin:h,pageBreak:(l=t.pageBreak)!==null&&l!==void 0?l:"auto",rowPageBreak:(c=t.rowPageBreak)!==null&&c!==void 0?c:"auto",tableWidth:(A=t.tableWidth)!==null&&A!==void 0?A:"auto",showHead:m,showFoot:p,tableLineWidth:(u=t.tableLineWidth)!==null&&u!==void 0?u:0,tableLineColor:(d=t.tableLineColor)!==null&&d!==void 0?d:200,horizontalPageBreak:w,horizontalPageBreakRepeat:B,horizontalPageBreakBehaviour:(f=t.horizontalPageBreakBehaviour)!==null&&f!==void 0?f:"afterAllRows"}}function Tht(e,t){var r=e.getLastAutoTable(),n=e.scaleFactor(),a=e.pageNumber(),i=!1;if(r&&r.startPageNumber){var o=r.startPageNumber+r.pageNumber-1;i=o===a}return typeof t=="number"?t:(t==null||t===!1)&&i&&r?.finalY!=null?r.finalY+20/n:null}function Qht(e,t,r){var n=t.head||[],a=t.body||[],i=t.foot||[];if(t.html){var o=t.includeHiddenHtml;if(r){var s=hxe(e,t.html,r,o,t.useCss)||{};n=s.head||n,a=s.body||n,i=s.foot||n}else console.error("Cannot parse html in non browser environment")}var l=t.columns||Dht(n,a,i);return{columns:l,head:n,body:a,foot:i}}function Dht(e,t,r){var n=e[0]||t[0]||r[0]||[],a=[];return Object.keys(n).filter(function(i){return i!=="_element"}).forEach(function(i){var o=1,s;Array.isArray(n)?s=n[parseInt(i)]:s=n[i],typeof s=="object"&&!Array.isArray(s)&&(o=s?.colSpan||1);for(var l=0;l<o;l++){var c=void 0;Array.isArray(n)?c=a.length:c=i+(l>0?"_".concat(l):"");var A={dataKey:c};a.push(A)}}),a}var dL=(function(){function e(t,r,n){this.table=r,this.pageNumber=r.pageNumber,this.settings=r.settings,this.cursor=n,this.doc=t.getDocument()}return e})(),Fht=(function(e){lxe(t,e);function t(r,n,a,i,o,s){var l=e.call(this,r,n,s)||this;return l.cell=a,l.row=i,l.column=o,l.section=i.section,l}return t})(dL),Nht=(function(){function e(t,r){this.pageNumber=1,this.id=t.id,this.settings=t.settings,this.styles=t.styles,this.hooks=t.hooks,this.columns=r.columns,this.head=r.head,this.body=r.body,this.foot=r.foot}return e.prototype.getHeadHeight=function(t){return this.head.reduce(function(r,n){return r+n.getMaxCellHeight(t)},0)},e.prototype.getFootHeight=function(t){return this.foot.reduce(function(r,n){return r+n.getMaxCellHeight(t)},0)},e.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},e.prototype.callCellHooks=function(t,r,n,a,i,o){for(var s=0,l=r;s<l.length;s++){var c=l[s],A=new Fht(t,this,n,a,i,o),u=c(A)===!1;if(n.text=Array.isArray(n.text)?n.text:[n.text],u)return!1}return!0},e.prototype.callEndPageHooks=function(t,r){t.applyStyles(t.userStyles);for(var n=0,a=this.hooks.didDrawPage;n<a.length;n++){var i=a[n];i(new dL(t,this,r))}},e.prototype.callWillDrawPageHooks=function(t,r){for(var n=0,a=this.hooks.willDrawPage;n<a.length;n++){var i=a[n];i(new dL(t,this,r))}},e.prototype.getWidth=function(t){if(typeof this.settings.tableWidth=="number")return this.settings.tableWidth;if(this.settings.tableWidth==="wrap"){var r=this.columns.reduce(function(a,i){return a+i.wrappedWidth},0);return r}else{var n=this.settings.margin;return t-n.left-n.right}},e})(),pxe=(function(){function e(t,r,n,a,i){i===void 0&&(i=!1),this.height=0,this.raw=t,t instanceof cxe&&(this.raw=t._element,this.element=t._element),this.index=r,this.section=n,this.cells=a,this.spansMultiplePages=i}return e.prototype.getMaxCellHeight=function(t){var r=this;return t.reduce(function(n,a){var i;return Math.max(n,((i=r.cells[a.index])===null||i===void 0?void 0:i.height)||0)},0)},e.prototype.hasRowSpan=function(t){var r=this;return t.filter(function(n){var a=r.cells[n.index];return a?a.rowSpan>1:!1}).length>0},e.prototype.canEntireRowFit=function(t,r){return this.getMaxCellHeight(r)<=t},e.prototype.getMinimumRowHeight=function(t,r){var n=this;return t.reduce(function(a,i){var o=n.cells[i.index];if(!o)return 0;var s=r.getLineHeight(o.styles.fontSize),l=o.padding("vertical"),c=l+s;return c>a?c:a},0)},e})(),vxe=(function(){function e(t,r,n){var a;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=r,this.section=n,this.raw=t;var i=t;t!=null&&typeof t=="object"&&!Array.isArray(t)?(this.rowSpan=t.rowSpan||1,this.colSpan=t.colSpan||1,i=(a=t.content)!==null&&a!==void 0?a:t,t._element&&(this.raw=t._element)):(this.rowSpan=1,this.colSpan=1);var o=i!=null?""+i:"",s=/\r\n|\r|\n/g;this.text=o.split(s)}return e.prototype.getTextPos=function(){var t;if(this.styles.valign==="top")t=this.y+this.padding("top");else if(this.styles.valign==="bottom")t=this.y+this.height-this.padding("bottom");else{var r=this.height-this.padding("vertical");t=this.y+r/2+this.padding("top")}var n;if(this.styles.halign==="right")n=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var a=this.width-this.padding("horizontal");n=this.x+a/2+this.padding("left")}else n=this.x+this.padding("left");return{x:n,y:t}},e.prototype.getContentHeight=function(t,r){r===void 0&&(r=1.15);var n=Array.isArray(this.text)?this.text.length:1,a=this.styles.fontSize/t*r,i=n*a+this.padding("vertical");return Math.max(i,this.styles.minCellHeight)},e.prototype.padding=function(t){var r=z4(this.styles.cellPadding,0);return t==="vertical"?r.top+r.bottom:t==="horizontal"?r.left+r.right:r[t]},e})(),_ht=(function(){function e(t,r,n){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=t,this.raw=r,this.index=n}return e.prototype.getMaxCustomCellWidth=function(t){for(var r=0,n=0,a=t.allRows();n<a.length;n++){var i=a[n],o=i.cells[this.index];o&&typeof o.styles.cellWidth=="number"&&(r=Math.max(r,o.styles.cellWidth))}return r},e})();function kht(e,t){Pht(e,t);var r=[],n=0;t.columns.forEach(function(i){var o=i.getMaxCustomCellWidth(t);o?i.width=o:(i.width=i.wrappedWidth,r.push(i)),n+=i.width});var a=t.getWidth(e.pageSize().width)-n;a&&(a=fL(r,a,function(i){return Math.max(i.minReadableWidth,i.minWidth)})),a&&(a=fL(r,a,function(i){return i.minWidth})),a=Math.abs(a),!t.settings.horizontalPageBreak&&a>.1/e.scaleFactor()&&(a=a<1?a:Math.round(a),console.warn("Of the table content, ".concat(a," units width could not fit page"))),jht(t),zht(t,e),Oht(t)}function Pht(e,t){var r=e.scaleFactor(),n=t.settings.horizontalPageBreak,a=dxe(e,t);t.allRows().forEach(function(i){for(var o=0,s=t.columns;o<s.length;o++){var l=s[o],c=i.cells[l.index];if(c){var A=t.hooks.didParseCell;t.callCellHooks(e,A,c,i,l,null);var u=c.padding("horizontal");c.contentWidth=_T(c.text,c.styles,e)+u;var d=_T(c.text.join(" ").split(/[^\S\u00A0]+/),c.styles,e);if(c.minReadableWidth=d+c.padding("horizontal"),typeof c.styles.cellWidth=="number")c.minWidth=c.styles.cellWidth,c.wrappedWidth=c.styles.cellWidth;else if(c.styles.cellWidth==="wrap"||n===!0)c.contentWidth>a?(c.minWidth=a,c.wrappedWidth=a):(c.minWidth=c.contentWidth,c.wrappedWidth=c.contentWidth);else{var f=10/r;c.minWidth=c.styles.minCellWidth||f,c.wrappedWidth=c.contentWidth,c.minWidth>c.wrappedWidth&&(c.wrappedWidth=c.minWidth)}}}}),t.allRows().forEach(function(i){for(var o=0,s=t.columns;o<s.length;o++){var l=s[o],c=i.cells[l.index];if(c&&c.colSpan===1)l.wrappedWidth=Math.max(l.wrappedWidth,c.wrappedWidth),l.minWidth=Math.max(l.minWidth,c.minWidth),l.minReadableWidth=Math.max(l.minReadableWidth,c.minReadableWidth);else{var A=t.styles.columnStyles[l.dataKey]||t.styles.columnStyles[l.index]||{},u=A.cellWidth||A.minCellWidth;u&&typeof u=="number"&&(l.minWidth=u,l.wrappedWidth=u)}c&&(c.colSpan>1&&!l.minWidth&&(l.minWidth=c.minWidth),c.colSpan>1&&!l.wrappedWidth&&(l.wrappedWidth=c.minWidth))}})}function fL(e,t,r){for(var n=t,a=e.reduce(function(f,h){return f+h.wrappedWidth},0),i=0;i<e.length;i++){var o=e[i],s=o.wrappedWidth/a,l=n*s,c=o.width+l,A=r(o),u=c<A?A:c;t-=u-o.width,o.width=u}if(t=Math.round(t*1e10)/1e10,t){var d=e.filter(function(f){return t<0?f.width>r(f):!0});d.length&&(t=fL(d,t,r))}return t}function Oht(e){for(var t={},r=1,n=e.allRows(),a=0;a<n.length;a++)for(var i=n[a],o=0,s=e.columns;o<s.length;o++){var l=s[o],c=t[l.index];if(r>1)r--,delete i.cells[l.index];else if(c)c.cell.height+=i.height,r=c.cell.colSpan,delete i.cells[l.index],c.left--,c.left<=1&&delete t[l.index];else{var A=i.cells[l.index];if(!A)continue;if(A.height=i.height,A.rowSpan>1){var u=n.length-a,d=A.rowSpan>u?u:A.rowSpan;t[l.index]={cell:A,left:d,row:i}}}}}function jht(e){for(var t=e.allRows(),r=0;r<t.length;r++)for(var n=t[r],a=null,i=0,o=0,s=0;s<e.columns.length;s++){var l=e.columns[s];if(o-=1,o>1&&e.columns[s+1])i+=l.width,delete n.cells[l.index];else if(a){var c=a;delete n.cells[l.index],a=null,c.width=l.width+i}else{var c=n.cells[l.index];if(!c)continue;if(o=c.colSpan,i=0,c.colSpan>1){a=c,i+=l.width;continue}c.width=l.width+i}}}function zht(e,t){for(var r={count:0,height:0},n=0,a=e.allRows();n<a.length;n++){for(var i=a[n],o=0,s=e.columns;o<s.length;o++){var l=s[o],c=i.cells[l.index];if(c){t.applyStyles(c.styles,!0);var A=c.width-c.padding("horizontal");if(c.styles.overflow==="linebreak")c.text=t.splitTextToSize(c.text,A+1/t.scaleFactor(),{fontSize:c.styles.fontSize});else if(c.styles.overflow==="ellipsize")c.text=sne(c.text,A,c.styles,t,"...");else if(c.styles.overflow==="hidden")c.text=sne(c.text,A,c.styles,t,"");else if(typeof c.styles.overflow=="function"){var u=c.styles.overflow(c.text,A);typeof u=="string"?c.text=[u]:c.text=u}c.contentHeight=c.getContentHeight(t.scaleFactor(),t.getLineHeightFactor());var d=c.contentHeight/c.rowSpan;c.rowSpan>1&&r.count*r.height<d*c.rowSpan?r={height:d,count:c.rowSpan}:r&&r.count>0&&r.height>d&&(d=r.height),d>i.height&&(i.height=d)}}r.count--}}function sne(e,t,r,n,a){return e.map(function(i){return Lht(i,t,r,n,a)})}function Lht(e,t,r,n,a){var i=1e4*n.scaleFactor();if(t=Math.ceil(t*i)/i,t>=_T(e,r,n))return e;for(;t<_T(e+a,r,n)&&!(e.length<=1);)e=e.substring(0,e.length-1);return e.trim()+a}function mxe(e,t){var r=new DE(e),n=Yht(t,r.scaleFactor()),a=new Nht(t,n);return kht(r,a),r.applyStyles(r.userStyles),a}function Yht(e,t){var r=e.content,n=Hht(r.columns);if(r.head.length===0){var a=lne(n,"head");a&&r.head.push(a)}if(r.foot.length===0){var a=lne(n,"foot");a&&r.foot.push(a)}var i=e.settings.theme,o=e.styles;return{columns:n,head:nP("head",r.head,n,o,i,t),body:nP("body",r.body,n,o,i,t),foot:nP("foot",r.foot,n,o,i,t)}}function nP(e,t,r,n,a,i){var o={},s=t.map(function(l,c){for(var A=0,u={},d=0,f=0,h=0,g=r;h<g.length;h++){var p=g[h];if(o[p.index]==null||o[p.index].left===0)if(f===0){var m=void 0;Array.isArray(l)?m=l[p.index-d-A]:m=l[p.dataKey];var y={};typeof m=="object"&&!Array.isArray(m)&&(y=m?.styles||{});var C=Ght(e,p,c,a,n,i,y),w=new vxe(m,C,e);u[p.dataKey]=w,u[p.index]=w,f=w.colSpan-1,o[p.index]={left:w.rowSpan-1,times:f}}else f--,d++;else o[p.index].left--,f=o[p.index].times,A++}return new pxe(l,c,e,u)});return s}function lne(e,t){var r={};return e.forEach(function(n){if(n.raw!=null){var a=Uht(t,n.raw);a!=null&&(r[n.dataKey]=a)}}),Object.keys(r).length>0?r:null}function Uht(e,t){if(e==="head"){if(typeof t=="object")return t.header||null;if(typeof t=="string"||typeof t=="number")return t}else if(e==="foot"&&typeof t=="object")return t.footer;return null}function Hht(e){return e.map(function(t,r){var n,a;return typeof t=="object"?a=(n=t.dataKey)!==null&&n!==void 0?n:r:a=r,new _ht(a,t,r)})}function Ght(e,t,r,n,a,i,o){var s=yht(n),l;e==="head"?l=a.headStyles:e==="body"?l=a.bodyStyles:e==="foot"&&(l=a.footStyles);var c=kf({},s.table,s[e],a.styles,l),A=a.columnStyles[t.dataKey]||a.columnStyles[t.index]||{},u=e==="body"?A:{},d=e==="body"&&r%2===0?kf({},s.alternateRow,a.alternateRowStyles):{},f=Eht(i),h=kf({},f,c,d,u);return kf(h,o)}function Kht(e,t,r){var n;r===void 0&&(r={});var a=dxe(e,t),i=new Map,o=[],s=[],l=[];Array.isArray(t.settings.horizontalPageBreakRepeat)?l=t.settings.horizontalPageBreakRepeat:(typeof t.settings.horizontalPageBreakRepeat=="string"||typeof t.settings.horizontalPageBreakRepeat=="number")&&(l=[t.settings.horizontalPageBreakRepeat]),l.forEach(function(d){var f=t.columns.find(function(h){return h.dataKey===d||h.index===d});f&&!i.has(f.index)&&(i.set(f.index,!0),o.push(f.index),s.push(t.columns[f.index]),a-=f.wrappedWidth)});for(var c=!0,A=(n=r?.start)!==null&&n!==void 0?n:0;A<t.columns.length;){if(i.has(A)){A++;continue}var u=t.columns[A].wrappedWidth;if(c||a>=u)c=!1,o.push(A),s.push(t.columns[A]),a-=u;else break;A++}return{colIndexes:o,columns:s,lastIndex:A-1}}function Vht(e,t){for(var r=[],n=0;n<t.columns.length;n++){var a=Kht(e,t,{start:n});a.columns.length&&(r.push(a),n=a.lastIndex)}return r}function Exe(e,t){var r=t.settings,n=r.startY,a=r.margin,i={x:a.left,y:n},o=t.getHeadHeight(t.columns)+t.getFootHeight(t.columns),s=n+a.bottom+o;if(r.pageBreak==="avoid"){var l=t.body,c=l.reduce(function(d,f){return d+f.height},0);s+=c}var A=new DE(e);(r.pageBreak==="always"||r.startY!=null&&s>A.pageSize().height)&&(Cxe(A),i.y=a.top),t.callWillDrawPageHooks(A,i);var u=kf({},i);t.startPageNumber=A.pageNumber(),r.horizontalPageBreak?Jht(A,t,u,i):(A.applyStyles(A.userStyles),(r.showHead==="firstPage"||r.showHead==="everyPage")&&t.head.forEach(function(d){return Jf(A,t,d,i,t.columns)}),A.applyStyles(A.userStyles),t.body.forEach(function(d,f){var h=f===t.body.length-1;kT(A,t,d,h,u,i,t.columns)}),A.applyStyles(A.userStyles),(r.showFoot==="lastPage"||r.showFoot==="everyPage")&&t.foot.forEach(function(d){return Jf(A,t,d,i,t.columns)})),Axe(A,t,u,i),t.callEndPageHooks(A,i),t.finalY=i.y,e.lastAutoTable=t,A.applyStyles(A.userStyles)}function Jht(e,t,r,n){var a=Vht(e,t),i=t.settings;if(i.horizontalPageBreakBehaviour==="afterAllRows")a.forEach(function(c,A){e.applyStyles(e.userStyles),A>0?Yw(e,t,r,n,c.columns,!0):cne(e,t,n,c.columns),Wht(e,t,r,n,c.columns),aP(e,t,n,c.columns)});else for(var o=-1,s=a[0],l=function(){var c=o;if(s){e.applyStyles(e.userStyles);var A=s.columns;o>=0?Yw(e,t,r,n,A,!0):cne(e,t,n,A),c=Ane(e,t,o+1,n,A),aP(e,t,n,A)}var u=c-o;a.slice(1).forEach(function(d){e.applyStyles(e.userStyles),Yw(e,t,r,n,d.columns,!0),Ane(e,t,o+1,n,d.columns,u),aP(e,t,n,d.columns)}),o=c};o<t.body.length-1;)l()}function cne(e,t,r,n){var a=t.settings;e.applyStyles(e.userStyles),(a.showHead==="firstPage"||a.showHead==="everyPage")&&t.head.forEach(function(i){return Jf(e,t,i,r,n)})}function Wht(e,t,r,n,a){e.applyStyles(e.userStyles),t.body.forEach(function(i,o){var s=o===t.body.length-1;kT(e,t,i,s,r,n,a)})}function Ane(e,t,r,n,a,i){e.applyStyles(e.userStyles),i=i??t.body.length;var o=Math.min(r+i,t.body.length),s=-1;return t.body.slice(r,o).forEach(function(l,c){var A=r+c===t.body.length-1,u=yxe(e,t,A,n);l.canEntireRowFit(u,a)&&(Jf(e,t,l,n,a),s=r+c)}),s}function aP(e,t,r,n){var a=t.settings;e.applyStyles(e.userStyles),(a.showFoot==="lastPage"||a.showFoot==="everyPage")&&t.foot.forEach(function(i){return Jf(e,t,i,r,n)})}function Xht(e,t,r){var n=r.getLineHeight(e.styles.fontSize),a=e.padding("vertical"),i=Math.floor((t-a)/n);return Math.max(0,i)}function qht(e,t,r,n){var a={};e.spansMultiplePages=!0,e.height=0;for(var i=0,o=0,s=r.columns;o<s.length;o++){var l=s[o],c=e.cells[l.index];if(c){Array.isArray(c.text)||(c.text=[c.text]);var A=new vxe(c.raw,c.styles,c.section);A=kf(A,c),A.text=[];var u=Xht(c,t,n);c.text.length>u&&(A.text=c.text.splice(u,c.text.length));var d=n.scaleFactor(),f=n.getLineHeightFactor();c.contentHeight=c.getContentHeight(d,f),c.contentHeight>=t&&(c.contentHeight=t,A.styles.minCellHeight-=t),c.contentHeight>e.height&&(e.height=c.contentHeight),A.contentHeight=A.getContentHeight(d,f),A.contentHeight>i&&(i=A.contentHeight),a[l.index]=A}}var h=new pxe(e.raw,-1,e.section,a,!0);h.height=i;for(var g=0,p=r.columns;g<p.length;g++){var l=p[g],A=h.cells[l.index];A&&(A.height=h.height);var c=e.cells[l.index];c&&(c.height=e.height)}return h}function Zht(e,t,r,n){var a=e.pageSize().height,i=n.settings.margin,o=i.top+i.bottom,s=a-o;t.section==="body"&&(s-=n.getHeadHeight(n.columns)+n.getFootHeight(n.columns));var l=t.getMinimumRowHeight(n.columns,e),c=l<r;if(l>s)return console.error("Will not be able to print row ".concat(t.index," correctly since it's minimum height is larger than page height")),!0;if(!c)return!1;var A=t.hasRowSpan(n.columns),u=t.getMaxCellHeight(n.columns)>s;return u?(A&&console.error("The content of row ".concat(t.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(A||n.settings.rowPageBreak==="avoid")}function kT(e,t,r,n,a,i,o){var s=yxe(e,t,n,i);if(r.canEntireRowFit(s,o))Jf(e,t,r,i,o);else if(Zht(e,r,s,t)){var l=qht(r,s,t,e);Jf(e,t,r,i,o),Yw(e,t,a,i,o),kT(e,t,l,n,a,i,o)}else Yw(e,t,a,i,o),kT(e,t,r,n,a,i,o)}function Jf(e,t,r,n,a){n.x=t.settings.margin.left;for(var i=0,o=a;i<o.length;i++){var s=o[i],l=r.cells[s.index];if(!l){n.x+=s.width;continue}e.applyStyles(l.styles),l.x=n.x,l.y=n.y;var c=t.callCellHooks(e,t.hooks.willDrawCell,l,r,s,n);if(c===!1){n.x+=s.width;continue}$ht(e,l,n);var A=l.getTextPos();sxe(l.text,A.x,A.y,{halign:l.styles.halign,valign:l.styles.valign,maxWidth:Math.ceil(l.width-l.padding("left")-l.padding("right"))},e.getDocument()),t.callCellHooks(e,t.hooks.didDrawCell,l,r,s,n),n.x+=s.width}n.y+=r.height}function $ht(e,t,r){var n=t.styles;if(e.getDocument().setFillColor(e.getDocument().getFillColor()),typeof n.lineWidth=="number"){var a=uxe(n.lineWidth,n.fillColor);a&&e.rect(t.x,r.y,t.width,t.height,a)}else typeof n.lineWidth=="object"&&(n.fillColor&&e.rect(t.x,r.y,t.width,t.height,"F"),egt(e,t,r,n.lineWidth))}function egt(e,t,r,n){var a,i,o,s;n.top&&(a=r.x,i=r.y,o=r.x+t.width,s=r.y,n.right&&(o+=.5*n.right),n.left&&(a-=.5*n.left),l(n.top,a,i,o,s)),n.bottom&&(a=r.x,i=r.y+t.height,o=r.x+t.width,s=r.y+t.height,n.right&&(o+=.5*n.right),n.left&&(a-=.5*n.left),l(n.bottom,a,i,o,s)),n.left&&(a=r.x,i=r.y,o=r.x,s=r.y+t.height,n.top&&(i-=.5*n.top),n.bottom&&(s+=.5*n.bottom),l(n.left,a,i,o,s)),n.right&&(a=r.x+t.width,i=r.y,o=r.x+t.width,s=r.y+t.height,n.top&&(i-=.5*n.top),n.bottom&&(s+=.5*n.bottom),l(n.right,a,i,o,s));function l(c,A,u,d,f){e.getDocument().setLineWidth(c),e.getDocument().line(A,u,d,f,"S")}}function yxe(e,t,r,n){var a=t.settings.margin.bottom,i=t.settings.showFoot;return(i==="everyPage"||i==="lastPage"&&r)&&(a+=t.getFootHeight(t.columns)),e.pageSize().height-n.y-a}function Yw(e,t,r,n,a,i){a===void 0&&(a=[]),i===void 0&&(i=!1),e.applyStyles(e.userStyles),t.settings.showFoot==="everyPage"&&!i&&t.foot.forEach(function(s){return Jf(e,t,s,n,a)}),t.callEndPageHooks(e,n);var o=t.settings.margin;Axe(e,t,r,n),Cxe(e),t.pageNumber++,n.x=o.left,n.y=o.top,r.y=o.top,t.callWillDrawPageHooks(e,n),t.settings.showHead==="everyPage"&&(t.head.forEach(function(s){return Jf(e,t,s,n,a)}),e.applyStyles(e.userStyles))}function Cxe(e){var t=e.pageNumber();e.setPage(t+1);var r=e.pageNumber();return r===t?(e.addPage(),!0):!1}function tgt(e){e.API.autoTable=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];var n=t[0],a=gxe(this,n),i=mxe(this,a);return Exe(this,i),this},e.API.lastAutoTable=!1,e.API.autoTableText=function(t,r,n,a){sxe(t,r,n,a,this)},e.API.autoTableSetDefaults=function(t){return DE.setDefaults(t,this),this},e.autoTableSetDefaults=function(t,r){DE.setDefaults(t,r)},e.API.autoTableHtmlToJson=function(t,r){var n;if(r===void 0&&(r=!1),typeof window>"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=new DE(this),i=hxe(a,t,window,r,!1),o=i.head,s=i.body,l=((n=o[0])===null||n===void 0?void 0:n.map(function(c){return c.content}))||[];return{columns:l,rows:s,data:s}}}var iP;function rgt(e,t){var r=gxe(e,t),n=mxe(e,r);Exe(e,n)}try{if(typeof window<"u"&&window){var une=window,dne=une.jsPDF||((iP=une.jspdf)===null||iP===void 0?void 0:iP.jsPDF);dne&&tgt(dne)}}catch(e){console.error("Could not apply autoTable plugin",e)}const Yv=5,FE=4,ngt=5,L4=297,agt=210,hL=L4/2,wxe=1,vH=L4-2*Yv,NE=14,mH=Yv+2,Bxe=L4-2*mH,xxe=6,fne=8,Mxe=10,Ixe=12,hne=100;function igt(){return new Promise(e=>setTimeout(e,1e3))}const gne=e=>{const r=String(e).match(/\d+$/);return r?parseInt(r[0],10):null};function pne(e,t,r,n,a){const i=gne(r),o=gne(n);return async function(s,l){const c=l();s(pV(!0)),await igt();let A=new bn({orientation:"l",unit:"mm",format:"a4"});A.addFileToVFS("Roboto-Regular.ttf",Cft),A.addFont("Roboto-Regular.ttf","custom","normal"),A.setFont("custom");const u=`${c.cti.settings.data.environment.FINESS} - ${c.cti.settings.data.environment.ENVIRONMENT}`;A=ogt(A,e,c.cti.components.favorites.hiddenColumns,t,i,o,u,c,a),A.putTotalPages("{total_pages_count_string}"),window.open(A.output("bloburl")),setTimeout(()=>s(pV(!1)),2e3)}}function ogt(e,t,r,n,a,i,o,s,l){const c=Object.values(t.run.data).filter(A=>A.visible===!0);return Object.values(c).forEach((A,u)=>{if(n==="TOUT"||a===u){const d=A.label?A.label:A.excelLabel;e=vne(e,t.run.title!==""?t.run.title:t.desc.attributes.label,o,d),e.setTextColor(0,0,0);const f=t.run?.viewFilters?.filter(y=>y!=="");let h=0;if(f?.length){e.setFontSize(Mxe);const y=e.getTextDimensions(f[0]).h,C=lgt(e,f);h=y*(C+3),cgt(e,t,f,y,h)}e.setFontSize(Ixe);const g=Agt(e,t,o,A,h);e=gL(e,t.run.title,o,d);let p=sgt(t,s,A,r);const m=p.map(y=>sy(y.titleText.replace(/<br>/g,`
`)));Object.values(A.similitabs).sort((y,C)=>Number(y.id)-Number(C.id)).forEach((y,C)=>{if(n==="TOUT"||i===C||Object.keys(A.similitabs).length<=1){let w=[],B=[],x=[],M=[];if(l&&Object.keys(l).length){const N=yH(y.data[0]),_=zf(N,l.key,l.order);M=Sx(_)}else M=y.data[0];let S={},R={},b=M.map((N,_)=>{let P=[];return N.LVL==="1"&&w.push(_),N.LVL==="2"&&B.push(_),N.LVL==="3"&&x.push(_),N.BKGD_COLOR&&N.BKGD_COLOR!==""&&(S[_]=N.BKGD_COLOR),N.COLOR&&N.COLOR!==""&&(R[_]=N.COLOR),p.forEach((k,j)=>{let Y=null;if(!N[k.dataKey])return;if(N[k.dataKey].symbol&&Object.keys(N[k.dataKey].symbol).length){var X=document.createElement("div");X.innerHTML=N[k.dataKey].symbol.html,Y=X.innerText}let K=N[k.dataKey].sanitizedText;K.length>hne&&(K=K.substring(0,hne)),Y?P.push(`${Y} ${K}`):P.push(K)}),P}),T=y.data[1].map((N,_)=>{let P=[];return p.forEach(k=>{N[k.dataKey]&&(N[k.dataKey].sanitizedText==="TOTAL"?P.push("TOTAL GÉNÉRAL"):P.push(N[k.dataKey].sanitizedText))}),P});const D=FE+NE+wxe*2,F=!g.length&&f.length?D+h:D;rgt(e,{startY:F,margin:{left:Yv,right:Yv,top:D},head:[m],body:b,foot:T,rowPageBreak:"auto",horizontalPageBreak:!0,horizontalPageBreakBehaviour:"immediately",horizontalPageBreakRepeat:0,headStyles:{fontSize:fne,fillColor:[255,180,136],textColor:[0,0,0],halign:"left"},footStyles:{fontSize:fne,fillColor:[152,193,217],textColor:[0,0,0],overflow:"ellipsize"},bodyStyles:{font:"custom",fontSize:xxe,fillColor:[245,245,245],halign:"left"},alternateRowStyles:{fillColor:[255,255,255]},allSectionHooks:!0,showFoot:"lastPage",didParseCell:function(N){if(w.includes(N.row.index)&&N.section==="body"&&B.length&&(N.cell.styles.fillColor=[254,210,151]),B.includes(N.row.index)&&N.section!=="body"&&x.length&&(N.cell.styles.textColor=[15,77,148]),S[N.row.index]&&N.section==="body"){let _=S[N.row.index];if(_.length<7){const P=7-_.length;let k="#";for(let j=0;j<P;j++)k=k+"0";k=k+_.replace("#","").replace("0x",""),_=`${k.substring(0,7)}`}N.cell.styles.fillColor=_}if(R[N.row.index]&&N.section==="body"){let _=R[N.row.index];if(_.length<7){const P=7-_.length;let k="#";for(let j=0;j<P;j++)k=k+"0";k=k+_.replace("#","").replace("0x",""),_=`${k.substring(0,7)}`}N.cell.styles.textColor=_}N.cell.text[0].includes("▼")&&(N.cell.styles.textColor=Mn.red),N.cell.text[0].includes("▲")&&(N.cell.styles.textColor=Mn.green)},didDrawPage:function(N){const _=t.run.title!==""?t.run.title:t.desc.attributes.label;e=vne(e,_,o,d,y.name),e=gL(e,_,o,d)}}),e.addPage()}})}}),e}const sgt=(e,t,r,n)=>{const a=n.map(s=>s.dataField);let i=t.cti.history.columns[`${t.cti.view.runRef}_${r.label}`];if(i)return i.filter(s=>s.hidden!==!0);let o=Object.values(r.datagrid.columns).filter(s=>s.visible===!0&&s.hidden!==!0&&!a.includes(s.dataKey)&&s.printable!=="false");return o=o.filter(s=>s?.visibleCondition?ca(s.visibleCondition,e):!0),e?.desc?.attributes?.isFavorite==="true"&&o.sort((s,l)=>Number(s?.order)-Number(l?.order)),o};function vne(e,t,r,n,a=""){e.setFontSize(Mxe),e.setTextColor(255,255,255);const i=e.getTextDimensions(t).h,o=a?`${n} - ${a}`:n;let s=o?FE+NE/2-i:FE+NE/2;return e.setFillColor(1,43,67),e.rect(Yv,FE,vH,NE,"F"),e.text(t,hL,s,{align:"center",baseline:"middle"}),o&&(s+=i*2,e.text(o,hL,s,{align:"center",baseline:"middle"})),e}function lgt(e,t){let r=0;return t.forEach((n,a)=>{const i=e.splitTextToSize(sy(n),Bxe);r+=i.length}),r}function cgt(e,t,r,n,a){const i=FE+NE+wxe;e.setFillColor(255,136,1),e.rect(Yv,i,vH,a,"F");let o=1.3,s=1;r.forEach((l,c)=>{const A=e.splitTextToSize(sy(l),Bxe);let u=i+n;c>0&&(u=i+n*o*s),e.text(A,mH,u,{baseline:"top"}),s+=A.length})}function Agt(e,t,r,n,a){const i=Lo(n.label),o=n.label?n.label:n.excelLabel;let s=n.charts.length>1,l=[],c=[];if(s===!1){let d=document.querySelector(`div[tabname="${i}"][similitabname="synthese"]`);d===null&&(d=document.querySelector(`div[tabname="${i}"]`)),l=d!==null?d.querySelectorAll("canvas"):[],c=d!==null?d.querySelectorAll(".graph-title"):[]}else{let d=document.querySelectorAll(`.slick-slide:not(.slick-cloned) div[tabname="${i}"][similitabname="synthese"]`);d===null&&(d=document.querySelectorAll(`.slick-slide:not(.slick-cloned) div[tabname="${i}"]`)),d.forEach(f=>{l=[...l,...f.querySelectorAll("canvas")],c=[...c,...f.querySelectorAll(".graph-title")]})}const A=[...c].map(d=>d.innerHTML),u=FE+NE+a+10;return[...l].forEach((d,f)=>{f!==0&&f%2===0&&(e.addPage(),e=gL(e,t.run.title,r,o)),e.addImage(d,"PNG",Yv+f%2*145,u+2,145,150),e.setFontSize(Ixe);const h=f%2===0?1:2;e.text(A[f],L4/4*(f%2+h),u,{align:"center"})}),l.length&&e.addPage(),l}function gL(e,t,r,n,a=""){e.setFontSize(xxe),e.setTextColor(0,0,0);const i=`Le ${ei().format("DD/MM/YYYY")} - ${r} `,o=agt-ngt;e.text(i,mH,o);let s=a?`${n} - ${a}`:n;s||(s=t),e.text(s,hL,o,{align:"center"});const l="{total_pages_count_string}";let c="Page "+e.internal.getNumberOfPages();return typeof e.putTotalPages=="function"&&(c=c+"/"+l),e.text(c,vH,o,{align:"center"}),e}function sy(e){let t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}const ugt=(e,t,r)=>{if(r>=e.length)for(var n=r-e.length+1;n--;)e.push(void 0);return e.splice(r,0,e.splice(t,1)[0]),e};function oP(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&n.push.apply(n,Object.getOwnPropertySymbols(r).filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),n.forEach(function(a){te(e,a,r[a])})}return e}var sP,mne;function dgt(){if(mne)return sP;mne=1;var e=function(t,r,n,a,i,o,s,l){if(!t){var c;if(r===void 0)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var A=[n,a,i,o,s,l],u=0;c=new Error(r.replace(/%s/g,function(){return A[u++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}};return sP=e,sP}var fgt=dgt();const Uv=gn(fgt);var hgt=(function(){function e(){Vn(this,e),te(this,"refs",{})}return Jn(e,[{key:"add",value:function(r,n){this.refs[r]||(this.refs[r]=[]),this.refs[r].push(n)}},{key:"remove",value:function(r,n){var a=this.getIndex(r,n);a!==-1&&this.refs[r].splice(a,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var r=this;return this.refs[this.active.collection].find(function(n){var a=n.node;return a.sortableInfo.index==r.active.index})}},{key:"getIndex",value:function(r,n){return this.refs[r].indexOf(n)}},{key:"getOrderedRefs",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[r].sort(ggt)}}]),e})();function ggt(e,t){var r=e.node.sortableInfo.index,n=t.node.sortableInfo.index;return r-n}function bxe(e,t){return Object.keys(e).reduce(function(r,n){return t.indexOf(n)===-1&&(r[n]=e[n]),r},{})}var C0={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},Sxe=(function(){if(typeof window>"u"||typeof document>"u")return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||e.OLink===""&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}})();function BI(e,t){Object.keys(t).forEach(function(r){e.style[r]=t[r]})}function xI(e,t){e.style["".concat(Sxe,"Transform")]=t==null?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function lP(e,t){e.style["".concat(Sxe,"TransitionDuration")]=t==null?"":"".concat(t,"ms")}function gw(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function Ene(e,t,r){return Math.max(e,Math.min(r,t))}function fE(e){return e.substr(-2)==="px"?parseFloat(e):0}function pgt(e){var t=window.getComputedStyle(e);return{bottom:fE(t.marginBottom),left:fE(t.marginLeft),right:fE(t.marginRight),top:fE(t.marginTop)}}function EH(e,t){var r=t.displayName||t.name;return r?"".concat(e,"(").concat(r,")"):e}function cP(e,t){var r=e.getBoundingClientRect();return{top:r.top+t.top,left:r.left+t.left}}function K1(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function vgt(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}function AR(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(e){var n={left:r.left+e.offsetLeft,top:r.top+e.offsetTop};return e.parentNode===t?n:AR(e.parentNode,t,n)}}function mgt(e,t,r){return e<r&&e>t?e-1:e>r&&e<t?e+1:e}function yne(e){var t=e.lockOffset,r=e.width,n=e.height,a=t,i=t,o="px";if(typeof t=="string"){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);Uv(s!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=parseFloat(t),i=parseFloat(t),o=s[1]}return Uv(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),o==="%"&&(a=a*r/100,i=i*n/100),{x:a,y:i}}function Egt(e){var t=e.height,r=e.width,n=e.lockOffset,a=Array.isArray(n)?n:[n,n];Uv(a.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",n);var i=Je(a,2),o=i[0],s=i[1];return[yne({height:t,lockOffset:o,width:r}),yne({height:t,lockOffset:s,width:r})]}function ygt(e){var t=window.getComputedStyle(e),r=/(auto|scroll)/,n=["overflow","overflowX","overflowY"];return n.find(function(a){return r.test(t[a])})}function Rxe(e){return e instanceof HTMLElement?ygt(e)?e:Rxe(e.parentNode):null}function Cgt(e){var t=window.getComputedStyle(e);return t.display==="grid"?{x:fE(t.gridColumnGap),y:fE(t.gridRowGap)}:{x:0,y:0}}var Rp={ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40},sv={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function wgt(e){var t="input, textarea, select, canvas, [contenteditable]",r=e.querySelectorAll(t),n=e.cloneNode(!0),a=ir(n.querySelectorAll(t));return a.forEach(function(i,o){if(i.type!=="file"&&(i.value=r[o].value),i.type==="radio"&&i.name&&(i.name="__sortableClone__".concat(i.name)),i.tagName===sv.Canvas&&r[o].width>0&&r[o].height>0){var s=i.getContext("2d");s.drawImage(r[o],0,0)}}),n}function Bgt(e){var t,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=(function(a){fa(i,a);function i(){var o,s;Vn(this,i);for(var l=arguments.length,c=new Array(l),A=0;A<l;A++)c[A]=arguments[A];return s=AA(this,(o=Pi(i)).call.apply(o,[this].concat(c))),te(Bt(Bt(s)),"wrappedInstance",E.createRef()),s}return Jn(i,[{key:"componentDidMount",value:function(){var s=Ko.findDOMNode(this);s.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return Uv(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.wrappedInstance.current}},{key:"render",value:function(){var s=n.withRef?this.wrappedInstance:null;return E.createElement(e,ge({ref:s},this.props))}}]),i})(E.Component),te(t,"displayName",EH("sortableHandle",e)),r}function Cne(e){return e.sortableHandle!=null}var xgt=(function(){function e(t,r){Vn(this,e),this.container=t,this.onScrollCallback=r}return Jn(e,[{key:"clear",value:function(){this.interval!=null&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(r){var n=this,a=r.translate,i=r.minTranslate,o=r.maxTranslate,s=r.width,l=r.height,c={x:0,y:0},A={x:1,y:1},u={x:10,y:10},d=this.container,f=d.scrollTop,h=d.scrollLeft,g=d.scrollHeight,p=d.scrollWidth,m=d.clientHeight,y=d.clientWidth,C=f===0,w=g-f-m===0,B=h===0,x=p-h-y===0;a.y>=o.y-l/2&&!w?(c.y=1,A.y=u.y*Math.abs((o.y-l/2-a.y)/l)):a.x>=o.x-s/2&&!x?(c.x=1,A.x=u.x*Math.abs((o.x-s/2-a.x)/s)):a.y<=i.y+l/2&&!C?(c.y=-1,A.y=u.y*Math.abs((a.y-l/2-i.y)/l)):a.x<=i.x+s/2&&!B&&(c.x=-1,A.x=u.x*Math.abs((a.x-s/2-i.x)/s)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(c.x!==0||c.y!==0)&&(this.interval=setInterval(function(){n.isAutoScrolling=!0;var M={left:A.x*c.x,top:A.y*c.y};n.container.scrollTop+=M.top,n.container.scrollLeft+=M.left,n.onScrollCallback(M)},5))}}]),e})();function Mgt(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}}function Igt(e){var t=[sv.Input,sv.Textarea,sv.Select,sv.Option,sv.Button];return!!(t.indexOf(e.target.tagName)!==-1||gw(e.target,function(r){return r.contentEditable==="true"}))}var Txe={axis:W.oneOf(["x","y","xy"]),contentWindow:W.any,disableAutoscroll:W.bool,distance:W.number,getContainer:W.func,getHelperDimensions:W.func,helperClass:W.string,helperContainer:W.oneOfType([W.func,typeof HTMLElement>"u"?W.any:W.instanceOf(HTMLElement)]),hideSortableGhost:W.bool,keyboardSortingTransitionDuration:W.number,lockAxis:W.string,lockOffset:W.oneOfType([W.number,W.string,W.arrayOf(W.oneOfType([W.number,W.string]))]),lockToContainerEdges:W.bool,onSortEnd:W.func,onSortMove:W.func,onSortOver:W.func,onSortStart:W.func,pressDelay:W.number,pressThreshold:W.number,keyCodes:W.shape({lift:W.arrayOf(W.number),drop:W.arrayOf(W.number),cancel:W.arrayOf(W.number),up:W.arrayOf(W.number),down:W.arrayOf(W.number)}),shouldCancelStart:W.func,transitionDuration:W.number,updateBeforeSortStart:W.func,useDragHandle:W.bool,useWindowAsScrollContainer:W.bool},Qxe={lift:[Rp.SPACE],drop:[Rp.SPACE],cancel:[Rp.ESC],up:[Rp.UP,Rp.LEFT],down:[Rp.DOWN,Rp.RIGHT]},bgt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Mgt,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:Qxe,shouldCancelStart:Igt,transitionDuration:300,useWindowAsScrollContainer:!1},Sgt=Object.keys(Txe);function Rgt(e){Uv(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}function Tgt(e,t){try{var r=e()}catch(n){return t(!0,n)}return r&&r.then?r.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}var Dxe=E.createContext({manager:{}});function Fxe(e){var t,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=(function(a){fa(i,a);function i(o){var s;Vn(this,i),s=AA(this,Pi(i).call(this,o)),te(Bt(Bt(s)),"state",{}),te(Bt(Bt(s)),"handleStart",function(c){var A=s.props,u=A.distance,d=A.shouldCancelStart;if(!(c.button===2||d(c))){s.touched=!0,s.position=K1(c);var f=gw(c.target,function(C){return C.sortableInfo!=null});if(f&&f.sortableInfo&&s.nodeIsChild(f)&&!s.state.sorting){var h=s.props.useDragHandle,g=f.sortableInfo,p=g.index,m=g.collection,y=g.disabled;if(y||h&&!gw(c.target,Cne))return;s.manager.active={collection:m,index:p},!vgt(c)&&c.target.tagName===sv.Anchor&&c.preventDefault(),u||(s.props.pressDelay===0?s.handlePress(c):s.pressTimer=setTimeout(function(){return s.handlePress(c)},s.props.pressDelay))}}}),te(Bt(Bt(s)),"nodeIsChild",function(c){return c.sortableInfo.manager===s.manager}),te(Bt(Bt(s)),"handleMove",function(c){var A=s.props,u=A.distance,d=A.pressThreshold;if(!s.state.sorting&&s.touched&&!s._awaitingUpdateBeforeSortStart){var f=K1(c),h={x:s.position.x-f.x,y:s.position.y-f.y},g=Math.abs(h.x)+Math.abs(h.y);s.delta=h,!u&&(!d||g>=d)?(clearTimeout(s.cancelTimer),s.cancelTimer=setTimeout(s.cancel,0)):u&&g>=u&&s.manager.isActive()&&s.handlePress(c)}}),te(Bt(Bt(s)),"handleEnd",function(){s.touched=!1,s.cancel()}),te(Bt(Bt(s)),"cancel",function(){var c=s.props.distance,A=s.state.sorting;A||(c||clearTimeout(s.pressTimer),s.manager.active=null)}),te(Bt(Bt(s)),"handlePress",function(c){try{var A=s.manager.getActive(),u=(function(){if(A){var d=function(){var b=B.sortableInfo.index,T=pgt(B),D=Cgt(s.container),F=s.scrollContainer.getBoundingClientRect(),N=g({index:b,node:B,collection:x});if(s.node=B,s.margin=T,s.gridGap=D,s.width=N.width,s.height=N.height,s.marginOffset={x:s.margin.left+s.margin.right+s.gridGap.x,y:Math.max(s.margin.top,s.margin.bottom,s.gridGap.y)},s.boundingClientRect=B.getBoundingClientRect(),s.containerBoundingRect=F,s.index=b,s.newIndex=b,s.axis={x:h.indexOf("x")>=0,y:h.indexOf("y")>=0},s.offsetEdge=AR(B,s.container),M?s.initialOffset=K1(oP({},c,{pageX:s.boundingClientRect.left,pageY:s.boundingClientRect.top})):s.initialOffset=K1(c),s.initialScroll={left:s.scrollContainer.scrollLeft,top:s.scrollContainer.scrollTop},s.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},s.helper=s.helperContainer.appendChild(wgt(B)),BI(s.helper,{boxSizing:"border-box",height:"".concat(s.height,"px"),left:"".concat(s.boundingClientRect.left-T.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(s.boundingClientRect.top-T.top,"px"),width:"".concat(s.width,"px")}),M&&s.helper.focus(),m&&(s.sortableGhost=B,BI(B,{opacity:0,visibility:"hidden"})),s.minTranslate={},s.maxTranslate={},M){var _=w?{top:0,left:0,width:s.contentWindow.innerWidth,height:s.contentWindow.innerHeight}:s.containerBoundingRect,P=_.top,k=_.left,j=_.width,Y=_.height,X=P+Y,K=k+j;s.axis.x&&(s.minTranslate.x=k-s.boundingClientRect.left,s.maxTranslate.x=K-(s.boundingClientRect.left+s.width)),s.axis.y&&(s.minTranslate.y=P-s.boundingClientRect.top,s.maxTranslate.y=X-(s.boundingClientRect.top+s.height))}else s.axis.x&&(s.minTranslate.x=(w?0:F.left)-s.boundingClientRect.left-s.width/2,s.maxTranslate.x=(w?s.contentWindow.innerWidth:F.left+F.width)-s.boundingClientRect.left-s.width/2),s.axis.y&&(s.minTranslate.y=(w?0:F.top)-s.boundingClientRect.top-s.height/2,s.maxTranslate.y=(w?s.contentWindow.innerHeight:F.top+F.height)-s.boundingClientRect.top-s.height/2);p&&p.split(" ").forEach(function(U){return s.helper.classList.add(U)}),s.listenerNode=c.touches?c.target:s.contentWindow,M?(s.listenerNode.addEventListener("wheel",s.handleKeyEnd,!0),s.listenerNode.addEventListener("mousedown",s.handleKeyEnd,!0),s.listenerNode.addEventListener("keydown",s.handleKeyDown)):(C0.move.forEach(function(U){return s.listenerNode.addEventListener(U,s.handleSortMove,!1)}),C0.end.forEach(function(U){return s.listenerNode.addEventListener(U,s.handleSortEnd,!1)})),s.setState({sorting:!0,sortingIndex:b}),C&&C({node:B,index:b,collection:x,isKeySorting:M,nodes:s.manager.getOrderedRefs(),helper:s.helper},c),M&&s.keyMove(0)},f=s.props,h=f.axis,g=f.getHelperDimensions,p=f.helperClass,m=f.hideSortableGhost,y=f.updateBeforeSortStart,C=f.onSortStart,w=f.useWindowAsScrollContainer,B=A.node,x=A.collection,M=s.manager.isKeySorting,S=(function(){if(typeof y=="function"){s._awaitingUpdateBeforeSortStart=!0;var R=Tgt(function(){var b=B.sortableInfo.index;return Promise.resolve(y({collection:x,index:b,node:B,isKeySorting:M},c)).then(function(){})},function(b,T){if(s._awaitingUpdateBeforeSortStart=!1,b)throw T;return T});if(R&&R.then)return R.then(function(){})}})();return S&&S.then?S.then(d):d(S)}})();return Promise.resolve(u&&u.then?u.then(function(){}):void 0)}catch(d){return Promise.reject(d)}}),te(Bt(Bt(s)),"handleSortMove",function(c){var A=s.props.onSortMove;typeof c.preventDefault=="function"&&c.cancelable&&c.preventDefault(),s.updateHelperPosition(c),s.animateNodes(),s.autoscroll(),A&&A(c)}),te(Bt(Bt(s)),"handleSortEnd",function(c){var A=s.props,u=A.hideSortableGhost,d=A.onSortEnd,f=s.manager,h=f.active.collection,g=f.isKeySorting,p=s.manager.getOrderedRefs();s.listenerNode&&(g?(s.listenerNode.removeEventListener("wheel",s.handleKeyEnd,!0),s.listenerNode.removeEventListener("mousedown",s.handleKeyEnd,!0),s.listenerNode.removeEventListener("keydown",s.handleKeyDown)):(C0.move.forEach(function(B){return s.listenerNode.removeEventListener(B,s.handleSortMove)}),C0.end.forEach(function(B){return s.listenerNode.removeEventListener(B,s.handleSortEnd)}))),s.helper.parentNode.removeChild(s.helper),u&&s.sortableGhost&&BI(s.sortableGhost,{opacity:"",visibility:""});for(var m=0,y=p.length;m<y;m++){var C=p[m],w=C.node;C.edgeOffset=null,C.boundingClientRect=null,xI(w,null),lP(w,null),C.translate=null}s.autoScroller.clear(),s.manager.active=null,s.manager.isKeySorting=!1,s.setState({sorting:!1,sortingIndex:null}),typeof d=="function"&&d({collection:h,newIndex:s.newIndex,oldIndex:s.index,isKeySorting:g,nodes:p},c),s.touched=!1}),te(Bt(Bt(s)),"autoscroll",function(){var c=s.props.disableAutoscroll,A=s.manager.isKeySorting;if(c){s.autoScroller.clear();return}if(A){var u=oP({},s.translate),d=0,f=0;s.axis.x&&(u.x=Math.min(s.maxTranslate.x,Math.max(s.minTranslate.x,s.translate.x)),d=s.translate.x-u.x),s.axis.y&&(u.y=Math.min(s.maxTranslate.y,Math.max(s.minTranslate.y,s.translate.y)),f=s.translate.y-u.y),s.translate=u,xI(s.helper,s.translate),s.scrollContainer.scrollLeft+=d,s.scrollContainer.scrollTop+=f;return}s.autoScroller.update({height:s.height,maxTranslate:s.maxTranslate,minTranslate:s.minTranslate,translate:s.translate,width:s.width})}),te(Bt(Bt(s)),"onAutoScroll",function(c){s.translate.x+=c.left,s.translate.y+=c.top,s.animateNodes()}),te(Bt(Bt(s)),"handleKeyDown",function(c){var A=c.keyCode,u=s.props,d=u.shouldCancelStart,f=u.keyCodes,h=f===void 0?{}:f,g=oP({},Qxe,h);s.manager.active&&!s.manager.isKeySorting||!s.manager.active&&(!g.lift.includes(A)||d(c)||!s.isValidSortingTarget(c))||(c.stopPropagation(),c.preventDefault(),g.lift.includes(A)&&!s.manager.active?s.keyLift(c):g.drop.includes(A)&&s.manager.active?s.keyDrop(c):g.cancel.includes(A)?(s.newIndex=s.manager.active.index,s.keyDrop(c)):g.up.includes(A)?s.keyMove(-1):g.down.includes(A)&&s.keyMove(1))}),te(Bt(Bt(s)),"keyLift",function(c){var A=c.target,u=gw(A,function(g){return g.sortableInfo!=null}),d=u.sortableInfo,f=d.index,h=d.collection;s.initialFocusedNode=A,s.manager.isKeySorting=!0,s.manager.active={index:f,collection:h},s.handlePress(c)}),te(Bt(Bt(s)),"keyMove",function(c){var A=s.manager.getOrderedRefs(),u=A[A.length-1].node.sortableInfo.index,d=s.newIndex+c,f=s.newIndex;if(!(d<0||d>u)){s.prevIndex=f,s.newIndex=d;var h=mgt(s.newIndex,s.prevIndex,s.index),g=A.find(function(M){var S=M.node;return S.sortableInfo.index===h}),p=g.node,m=s.containerScrollDelta,y=g.boundingClientRect||cP(p,m),C=g.translate||{x:0,y:0},w={top:y.top+C.y-m.top,left:y.left+C.x-m.left},B=f<d,x={x:B&&s.axis.x?p.offsetWidth-s.width:0,y:B&&s.axis.y?p.offsetHeight-s.height:0};s.handleSortMove({pageX:w.left+x.x,pageY:w.top+x.y,ignoreTransition:c===0})}}),te(Bt(Bt(s)),"keyDrop",function(c){s.handleSortEnd(c),s.initialFocusedNode&&s.initialFocusedNode.focus()}),te(Bt(Bt(s)),"handleKeyEnd",function(c){s.manager.active&&s.keyDrop(c)}),te(Bt(Bt(s)),"isValidSortingTarget",function(c){var A=s.props.useDragHandle,u=c.target,d=gw(u,function(f){return f.sortableInfo!=null});return d&&d.sortableInfo&&!d.sortableInfo.disabled&&(A?Cne(u):u.sortableInfo)});var l=new hgt;return Rgt(o),s.manager=l,s.wrappedInstance=E.createRef(),s.sortableContextValue={manager:l},s.events={end:s.handleEnd,move:s.handleMove,start:s.handleStart},s}return Jn(i,[{key:"componentDidMount",value:function(){var s=this,l=this.props.useWindowAsScrollContainer,c=this.getContainer();Promise.resolve(c).then(function(A){s.container=A,s.document=s.container.ownerDocument||document;var u=s.props.contentWindow||s.document.defaultView||window;s.contentWindow=typeof u=="function"?u():u,s.scrollContainer=l?s.document.scrollingElement||s.document.documentElement:Rxe(s.container)||s.container,s.autoScroller=new xgt(s.scrollContainer,s.onAutoScroll),Object.keys(s.events).forEach(function(d){return C0[d].forEach(function(f){return s.container.addEventListener(f,s.events[d],!1)})}),s.container.addEventListener("keydown",s.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var s=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach(function(l){return C0[l].forEach(function(c){return s.container.removeEventListener(c,s.events[l])})}),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(s){var l=this.props,c=l.lockAxis,A=l.lockOffset,u=l.lockToContainerEdges,d=l.transitionDuration,f=l.keyboardSortingTransitionDuration,h=f===void 0?d:f,g=this.manager.isKeySorting,p=s.ignoreTransition,m=K1(s),y={x:m.x-this.initialOffset.x,y:m.y-this.initialOffset.y};if(y.y-=window.pageYOffset-this.initialWindowScroll.top,y.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=y,u){var C=Egt({height:this.height,lockOffset:A,width:this.width}),w=Je(C,2),B=w[0],x=w[1],M={x:this.width/2-B.x,y:this.height/2-B.y},S={x:this.width/2-x.x,y:this.height/2-x.y};y.x=Ene(this.minTranslate.x+M.x,this.maxTranslate.x-S.x,y.x),y.y=Ene(this.minTranslate.y+M.y,this.maxTranslate.y-S.y,y.y)}c==="x"?y.y=0:c==="y"&&(y.x=0),g&&h&&!p&&lP(this.helper,h),xI(this.helper,y)}},{key:"animateNodes",value:function(){var s=this.props,l=s.transitionDuration,c=s.hideSortableGhost,A=s.onSortOver,u=this.containerScrollDelta,d=this.windowScrollDelta,f=this.manager.getOrderedRefs(),h={left:this.offsetEdge.left+this.translate.x+u.left,top:this.offsetEdge.top+this.translate.y+u.top},g=this.manager.isKeySorting,p=this.newIndex;this.newIndex=null;for(var m=0,y=f.length;m<y;m++){var C=f[m].node,w=C.sortableInfo.index,B=C.offsetWidth,x=C.offsetHeight,M={height:this.height>x?x/2:this.height/2,width:this.width>B?B/2:this.width/2},S=g&&w>this.index&&w<=p,R=g&&w<this.index&&w>=p,b={x:0,y:0},T=f[m].edgeOffset;T||(T=AR(C,this.container),f[m].edgeOffset=T,g&&(f[m].boundingClientRect=cP(C,u)));var D=m<f.length-1&&f[m+1],F=m>0&&f[m-1];if(D&&!D.edgeOffset&&(D.edgeOffset=AR(D.node,this.container),g&&(D.boundingClientRect=cP(D.node,u))),w===this.index){c&&(this.sortableGhost=C,BI(C,{opacity:0,visibility:"hidden"}));continue}l&&lP(C,l),this.axis.x?this.axis.y?R||w<this.index&&(h.left+d.left-M.width<=T.left&&h.top+d.top<=T.top+M.height||h.top+d.top+M.height<=T.top)?(b.x=this.width+this.marginOffset.x,T.left+b.x>this.containerBoundingRect.width-M.width&&D&&(b.x=D.edgeOffset.left-T.left,b.y=D.edgeOffset.top-T.top),this.newIndex===null&&(this.newIndex=w)):(S||w>this.index&&(h.left+d.left+M.width>=T.left&&h.top+d.top+M.height>=T.top||h.top+d.top+M.height>=T.top+x))&&(b.x=-(this.width+this.marginOffset.x),T.left+b.x<this.containerBoundingRect.left+M.width&&F&&(b.x=F.edgeOffset.left-T.left,b.y=F.edgeOffset.top-T.top),this.newIndex=w):S||w>this.index&&h.left+d.left+M.width>=T.left?(b.x=-(this.width+this.marginOffset.x),this.newIndex=w):(R||w<this.index&&h.left+d.left<=T.left+M.width)&&(b.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=w)):this.axis.y&&(S||w>this.index&&h.top+d.top+M.height>=T.top?(b.y=-(this.height+this.marginOffset.y),this.newIndex=w):(R||w<this.index&&h.top+d.top<=T.top+M.height)&&(b.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=w))),xI(C,b),f[m].translate=b}this.newIndex==null&&(this.newIndex=this.index),g&&(this.newIndex=p);var N=g?this.prevIndex:p;A&&this.newIndex!==N&&A({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:N,isKeySorting:g,nodes:f,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return Uv(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.wrappedInstance.current}},{key:"getContainer",value:function(){var s=this.props.getContainer;return typeof s!="function"?Ko.findDOMNode(this):s(n.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var s=n.withRef?this.wrappedInstance:null;return E.createElement(Dxe.Provider,{value:this.sortableContextValue},E.createElement(e,ge({ref:s},bxe(this.props,Sgt))))}},{key:"helperContainer",get:function(){var s=this.props.helperContainer;return typeof s=="function"?s():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var s=this.props.useWindowAsScrollContainer;return s?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),i})(E.Component),te(t,"displayName",EH("sortableList",e)),te(t,"defaultProps",bgt),te(t,"propTypes",Txe),r}var Nxe={index:W.number.isRequired,collection:W.oneOfType([W.number,W.string]),disabled:W.bool},Qgt=Object.keys(Nxe);function _xe(e){var t,r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return r=t=(function(a){fa(i,a);function i(){var o,s;Vn(this,i);for(var l=arguments.length,c=new Array(l),A=0;A<l;A++)c[A]=arguments[A];return s=AA(this,(o=Pi(i)).call.apply(o,[this].concat(c))),te(Bt(Bt(s)),"wrappedInstance",E.createRef()),s}return Jn(i,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(s){this.node&&(s.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),s.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),s.collection!==this.props.collection&&(this.unregister(s.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var s=this.props,l=s.collection,c=s.disabled,A=s.index,u=Ko.findDOMNode(this);u.sortableInfo={collection:l,disabled:c,index:A,manager:this.context.manager},this.node=u,this.ref={node:u},this.context.manager.add(l,this.ref)}},{key:"unregister",value:function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(s,this.ref)}},{key:"getWrappedInstance",value:function(){return Uv(n.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.wrappedInstance.current}},{key:"render",value:function(){var s=n.withRef?this.wrappedInstance:null;return E.createElement(e,ge({ref:s},bxe(this.props,Qgt)))}}]),i})(E.Component),te(t,"displayName",EH("sortableElement",e)),te(t,"contextType",Dxe),te(t,"propTypes",Nxe),te(t,"defaultProps",{collection:0}),r}const{Text:MI}=Hg,Dgt=({columns:e,handleReorder:t,handleReset:r})=>{const n=E.useRef(),[a,i]=E.useState(e),[o,s]=E.useState(0);E.useEffect(()=>{i(e.map(f=>({...f})))},[e]),E.useEffect(()=>{n.current.scrollTop=o},[a,o]);const l=ut(f=>f.cti.ui.primaryColor),c=_xe(({dataKey:f,hidden:h,titleText:g})=>{const p=m=>{let y=a.map(w=>({...w})),C=y.find(w=>w.dataKey===f);C.hidden=!C.hidden,s(n.current.scrollTop),i(y),t(y)};return v.jsx("li",{children:v.jsxs("div",{className:"column-item",children:[v.jsxs(MI,{style:{display:"flex"},disabled:h,children:[v.jsx("div",{className:"dots"}),v.jsx("div",{className:"dots"})]}),v.jsx(MI,{disabled:h,className:"column-item-text",children:sy(g)}),h?v.jsx(MI,{disabled:h,style:{marginLeft:"auto"},children:v.jsx(RY,{style:{fontSize:"14px",marginRight:"6px"},onClick:p})}):v.jsx(MI,{disabled:h,style:{marginLeft:"auto"},children:v.jsx(TY,{style:{fontSize:"14px",marginRight:"6px",color:l},onClick:p})})]})})}),A=Fxe(({columns:f})=>v.jsx("ul",{style:{maxHeight:"500px",overflow:"scroll",marginBottom:"0px"},ref:n,children:f.map((h,g)=>v.jsx(c,{index:g,...h}))})),u=({oldIndex:f,newIndex:h},g)=>{const p=ugt(a,f,h);s(n.current.scrollTop),i(p),t(p)},d=()=>{let f=[];a.some(h=>h.hidden===!0)?f=a.map(h=>({...h,hidden:!1})):f=a.map(h=>({...h,hidden:!0})),i(f),t(f)};return v.jsxs("div",{className:"column-manager",children:[v.jsx("div",{className:"column-manager-header",children:v.jsx("span",{children:"Gestion des Colonnes"})}),v.jsx(A,{columns:a,onSortEnd:u,distance:1}),v.jsx("div",{className:"column-manager-footer",children:v.jsxs("div",{className:"column-manager-footer-actions",children:[v.jsx(yt,{type:"primary",onClick:d,style:{width:"100%",borderRight:"none"},children:"Afficher/Cacher tout"}),v.jsx(yt,{type:"primary",onClick:r,style:{width:"100%"},children:"Reset"})]})})]})},Fgt=({columns:e,tableData:t,totalData:r,view:n,tabName:a})=>{const[i,o]=E.useState([]),[s,l]=E.useState([]),[c,A]=E.useState([]),[u,d]=E.useState([]),[f,h]=E.useState([]),[g,p]=E.useState(1),[m,y]=E.useState(null),[C,w]=E.useState(null),[B,x]=E.useState(null),[M,S]=E.useState(null),R=ut(Ie=>Ie.cti.view.isLoading),b=ut(Ie=>Ie.cti.view.rendering),T=ut(Ie=>Ie.cti.view.runRef),D=ut(Ie=>Ie.cti.history.expand),F=ut(Ie=>Ie.cti.history.columns),N=ut(Ie=>Ie.cti.settings.user.expandedRows),_=ut(Ie=>Ie.cti.ui.primaryColor),P=E.useRef(),k=E.useRef(),j=wn();E.useEffect(()=>{if(t){Y(!0);let Ie=yH(t);if(Ie||(Ie=[]),r||(r=[]),!xo(Ie,i)){o(Ie);const we=fe(Ie);we.length&&A(we)}if(xo(r,u)||d(r),!xo(e,f)){let we=t.reduce((Te,Ke)=>Number(Ke.LVL)>Te?Number(Ke.LVL):Te,1);we>6&&(we=1),p(we);let Re=e.map(Te=>({...Te}));we===1?Re.shift():Re[0].width=20*(we-1),h(Re)}j(gve({}))}Y(!1)},[t]),E.useEffect(()=>{b===!1&&T&&D[T]&&(xo(D[T],s)||l(D[T]))},[T,D,i,b]),E.useEffect(()=>{b===!1&&T&&F[T]&&(xo(F[`${T}_${a}`],f)||h(F[`${T}_${a}`]))},[T,F,i,b]);const Y=le.useCallback(Ie=>{Ie!==b&&j(Pve(Ie))},[j,b]);E.useEffect(()=>{(R||b)&&c.length&&n.run.data[a]?.datagrid?.treeDefaultOpenLevel!=="0"&&N==="ouvert"&&l(c),R!==b&&Y(R)},[R,Y,i.length,c.length,b,c,n.run,a]);const X=E.useCallback(({scrollLeft:Ie,scrollTop:we})=>{P.current&&P.current.scrollToLeft(Ie)},[]),K=E.useCallback(({scrollLeft:Ie,scrollTop:we})=>{k.current&&k.current.scrollToLeft(Ie)},[]),U=E.useCallback(({column:Ie,width:we})=>{let Re=f.map(Ke=>({...Ke})),Te=Re.find(Ke=>Ke.key===Ie.key);Te.width=we,h(Re)},[f]),H=Ie=>{j(RJ(`${T}_${a}`,Ie)),j(m3e(a,Ie)),h(Ie)},L=()=>{j(RJ(`${T}_${a}`,e)),h(e)},V=()=>{k.current&&k.current.scrollToRow(0)},J=le.useCallback(({expanded:Ie,rowData:we,rowIndex:Re,rowKey:Te})=>{let Ke=[...s];if(Ke.includes(Te)){const mt=Ke.indexOf(Te);Ke.splice(mt,1)}else Ke.push(Te);l(Ke),j(bF(T,Ke))},[s,j,T]),ee=()=>{l(c),j(bF(T,c))},ae=()=>{l([]),j(bF(T,[]))},ne=Ie=>{if(!Ie){let Re=f.filter(Te=>Te.hidden).map(Te=>({XMLType:"COLUMN",dataField:Te.dataField,hide:Te.hidden.toString()}));j(g3e(Re))}};function fe(Ie){return Ie.reduce(he,[])}function he(Ie,we){return we.children&&(Ie.concat(we.children.reduce(he,Ie)),Ie.push(we.key)),Ie}const ye=le.useCallback(({column:Ie,rowData:we})=>({onClick:Re=>{x(null);let Te={};for(let Ke in we)we[Ke].text&&we[Ke].text!==null?Te[Ke]=we[Ke].text:we[Ke].text===null?Te[Ke]="":Te[Ke]=we[Ke];if(Ie.selectable){const Ke=document.getElementsByClassName("selected");if(Ke)for(let mt of Ke)mt.classList.remove("selected");w(null),m&&xo(m.row,we)&&xo(m.column,Ie)?(Re.currentTarget.classList.remove("selected"),y(null),j($h(null,null))):(Re.currentTarget.classList.toggle("selected"),y({row:we,column:Ie}),j($h(Te,Ie)))}else{const Ke=document.getElementsByClassName("selected");if(Ke)for(let mt of Ke)mt.classList.remove("selected");y(null),j($h(null,null)),xo(we,C)?(w(null),j(rw(null))):(w(we),j(rw(Te)))}}}),[m,C,j]),be=le.useCallback(({column:Ie,rowData:we})=>({onClick:Re=>{w(null);let Te={};for(let Ke in we)we[Ke].text&&we[Ke].text!==null?Te[Ke]=we[Ke].text:we[Ke].text===null?Te[Ke]="":Te[Ke]=we[Ke];if(Ie.selectable){const Ke=document.getElementsByClassName("selected");if(Ke)for(let mt of Ke)mt.classList.remove("selected");x(null),M&&xo(M.row,we)&&xo(M.column,Ie)?(Re.currentTarget.classList.remove("selected"),S(null),j($h(null,null))):(Re.currentTarget.classList.toggle("selected"),S({row:we,column:Ie}),j($h(Te,Ie)))}else{const Ke=document.getElementsByClassName("selected");if(Ke)for(let mt of Ke)mt.classList.remove("selected");S(null),j($h(null,null)),xo(we,B)?(x(null),j(rw(null))):(x(we),j(rw(Te)))}}}),[M,B,j]),Se=E.useCallback(({column:Ie})=>{let we={width:"100%",height:"100%",display:"flex",flexFlow:"column",justifyContent:"center"};return Ie.headerStyles&&Ie.headerStyles.forEach(Re=>{we[Re.name]=Re.value}),v.jsx(Xr,{title:Ie.description.trim(),children:v.jsx("div",{style:we,dangerouslySetInnerHTML:{__html:`<div class="col-header-height-detect">${Ie.titleText}</div>`}})})},[]),ve=le.useCallback(({columns:Ie,rowData:we,rowIndex:Re})=>{let Te="";return xo(C,we)&&(m&&m.row.key!==we.key?Te+=" selected":m||(Te+=" selected")),we.LVL==="1"&&we.children&&(Te+=" level-one"),we.LVL==="2"&&we.children&&(Te+=" level-two"),Re%2===0&&(Te+=" even-row"),Te},[m,C]),de=le.useCallback(()=>0,[]),Ue=le.useMemo(()=>({fontSize:"11px",fontWeight:"700",backgroundColor:"f8f8f8"}),[]),at=le.useMemo(()=>({TableHeaderCell:Se}),[Se]),Ve=cat(e);return n?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"table-actions",style:{color:_},children:[v.jsx(Xr,{title:"Remonter en haut du tableau",children:v.jsx(F_e,{onClick:V})}),v.jsx(Xr,{title:"Refermer tout",children:v.jsx(v_e,{onClick:ae})}),v.jsx(Xr,{title:"Ouvrir tout",placement:"topRight",children:v.jsx(FDe,{onClick:ee})}),v.jsx(Xr,{title:"Gérer les colonnes",placement:"topRight",children:v.jsx(JQ,{content:v.jsx(Dgt,{columns:f,handleReorder:H,handleReset:L}),placement:"bottomRight",trigger:["click"],onOpenChange:ne,children:v.jsx(_Y,{})})})]}),v.jsx("div",{className:"content-table",children:v.jsx(Hn,{ref:k,columns:f,data:i,rowKey:"key",headerHeight:Ve,expandColumnKey:g>1?e.filter(Ie=>Ie.hidden!==!0)[0].dataKey:null,components:at,cellProps:ye,onScroll:X,onColumnResizeEnd:U,rowClassName:ve,expandedRowKeys:s,onRowExpand:J,defaultStyles:!1,fixed:n.desc.attributes.favoriteEssential!=="true",view:n})}),u.length>0&&v.jsx("div",{className:"total-table",style:{height:40*u.length},children:v.jsx(Hn,{ref:P,headerHeight:0,columns:f,data:u,rowKey:"key",rowHeight:40,onScroll:K,cellProps:be,getScrollbarSize:de,style:Ue,noOverlay:!0,defaultStyles:!1,selectedRow:B,fixed:n.desc.attributes.favoriteEssential!=="true"})})]}):null};function yH(e){const t=cl(e,i=>i.LVL);let r=0;if(e.every(i=>!i.OID1||!i.OID2)||(Object.keys(t).includes("6")&&(r=Number(Object.keys(t)[Object.keys(t).length-2])),Object.keys(t).length<2)||!e[0].LVL||e[0].LVL!=="1")return e;let a=e.map(i=>({...i})).reduce((i,o)=>{let s=i[o.OID1]||{},l={},c={},A={};if(o.TABD==="-9999999"){if(o.LVL==="1")i[o.OID1]=o;else if(o.LVL==="2"){s.children=s.children||{};let u=o.OID2!=="-1"?o.OID2:Object.keys(s.children).length++;s.children[u]=o}else if(o.LVL==="3"){if(!s.children)return i;l=s.children[o.OID2]||{},l.children=l.children||{};let u=o.OID3!=="-1"?o.OID3:Object.keys(l.children).length++;l.children[u]=o}else o.LVL==="4"?(l=s.children[o.OID2]||{},c=l.children[o.OID3]||{},c.children=c.children||{},c.children[o.OID4]=o):o.LVL==="5"&&(l=s.children[o.OID2]||{},c=l.children[o.OID3]||{},A=c.children[o.OID4]||{},A.children=A.children||{},A.children[o.OID5]=o);if(r!==0&&o.LVL==="6"){let u=i;for(let d=1;d<=r;d++)u=d===1?u[o[`OID${d}`]]:u.children[o[`OID${d}`]],u&&(u.children=u?.children||{});u&&(u.children[o.OID6]=o)}}else o.LVL==="1"?i[o.OID2]=o:o.LVL==="2"&&(s=i[o.OID2]||{},s.children=s.children||{},s.children[o.OID3]=o);return i},{});return a=kxe(a),a}function kxe(e){return Object.values(e).map(r=>(r.children&&(r.children=kxe(r.children)),r))}const Ngt=le.memo(Fgt);var uR={exports:{}},_gt=uR.exports,wne;function kgt(){return wne||(wne=1,(function(e,t){(function(r,n){n()})(_gt,function(){function r(c,A){return typeof A>"u"?A={autoBom:!1}:typeof A!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),A={autoBom:!A}),A.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(c.type)?new Blob(["\uFEFF",c],{type:c.type}):c}function n(c,A,u){var d=new XMLHttpRequest;d.open("GET",c),d.responseType="blob",d.onload=function(){l(d.response,A,u)},d.onerror=function(){console.error("could not download file")},d.send()}function a(c){var A=new XMLHttpRequest;A.open("HEAD",c,!1);try{A.send()}catch{}return 200<=A.status&&299>=A.status}function i(c){try{c.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),c.dispatchEvent(A)}}var o=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Ho=="object"&&Ho.global===Ho?Ho:void 0,s=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),l=o.saveAs||(typeof window!="object"||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!s?function(c,A,u){var d=o.URL||o.webkitURL,f=document.createElement("a");A=A||c.name||"download",f.download=A,f.rel="noopener",typeof c=="string"?(f.href=c,f.origin===location.origin?i(f):a(f.href)?n(c,A,u):i(f,f.target="_blank")):(f.href=d.createObjectURL(c),setTimeout(function(){d.revokeObjectURL(f.href)},4e4),setTimeout(function(){i(f)},0))}:"msSaveOrOpenBlob"in navigator?function(c,A,u){if(A=A||c.name||"download",typeof c!="string")navigator.msSaveOrOpenBlob(r(c,u),A);else if(a(c))n(c,A,u);else{var d=document.createElement("a");d.href=c,d.target="_blank",setTimeout(function(){i(d)})}}:function(c,A,u,d){if(d=d||open("","_blank"),d&&(d.document.title=d.document.body.innerText="downloading..."),typeof c=="string")return n(c,A,u);var f=c.type==="application/octet-stream",h=/constructor/i.test(o.HTMLElement)||o.safari,g=/CriOS\/[\d]+/.test(navigator.userAgent);if((g||f&&h||s)&&typeof FileReader<"u"){var p=new FileReader;p.onloadend=function(){var C=p.result;C=g?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),d?d.location.href=C:location=C,d=null},p.readAsDataURL(c)}else{var m=o.URL||o.webkitURL,y=m.createObjectURL(c);d?d.location=y:location.href=y,d=null,setTimeout(function(){m.revokeObjectURL(y)},4e4)}});o.saveAs=l.saveAs=l,e.exports=l})})(uR)),uR.exports}var CH=kgt(),AP,Bne;function Pgt(){return Bne||(Bne=1,AP=function(e,t,r,n){var a=typeof n<"u"?[n,e]:[e],i=new Blob(a,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(i,t);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),s=document.createElement("a");s.style.display="none",s.href=o,s.setAttribute("download",t),typeof s.download>"u"&&s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),setTimeout(function(){document.body.removeChild(s),window.URL.revokeObjectURL(o)},200)}}),AP}var Ogt=Pgt();const Y4=gn(Ogt);function au(e,t=null){const r=e.split("/"),n=r[r.length-1].split("?")[0];return t?n+"_RUN_"+t:n+"_DESC"}function U4(e){return JCe(JSON.stringify(e))}function MB(e,t={},r=1){let n=e.replace(".XML","");const a=U4(t);return r?n+"_DESC":n+"_RUN_"+a}async function PT(e){return new Promise(async(t,r)=>{let n;try{n=await Ji.keys();const a=n.find(i=>i.substring(9).startsWith(e)||i.startsWith(e));t(a)}catch(a){r(a)}})}async function dc(e){return new Promise(async function(r,n){let a;try{a=await Ji.getItem(e),a!==null&&(a=JSON.parse(Pl.inflate(a,{to:"string"}))),r(a)}catch(i){n(i)}})}async function Hv(e,t){const r=Pl.deflate(JSON.stringify(t),{to:"string"});return new Promise((n,a)=>{try{Ji.setItem(e,r),n(e)}catch(i){a(i)}})}function jgt(e,t){if(t[e])return t[e]}const Pxe=async(e=null)=>{let r=(await Ji.keys()).filter(i=>i.includes("_RUN_")||i.includes("_DESC"));if(e!==null){const i=e[e.length-1];r=r.filter(o=>o.includes(i))}const n=r.length;let a=[];for(let i=0;i<n;i++)a.push(n3e(r[i]));Promise.all(a),ya({type:"success",message:"Rechargement",description:"Rechargement des vues terminé"})},zgt=e=>{let t=!1,r=Object.values(e?.desc?.selections);if(r.length>0){let n=r.filter(a=>a.label==="Paramètres de l'analyse");n.length>0&&n[0].group.filter(o=>o.label==="Rapport").length>0&&(t=!0)}return t};function uP(e,t,r,n,a,i){return async function(o,s){const l=s();let c=Au(Hgt(l.cti.settings.data.environment,e,t,parseInt(r),n,l),!0),A=new FormData;A.append("csv_application",a??"EXCEL"),A.append("csv_separator",i??";"),A.append("data",c);let u=Ii();const d=await To({method:"post",url:u+"modules/base/php/getCsvFromView.php",data:A,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}});let f=e.desc.attributes.name+".xlsx";Y4(d.data,f)}}function Lgt(e,t){oy(()=>import("./exceljs.min-IPmj6BNj.js").then(r=>r.e),[],import.meta.url).then(r=>{const n=new r.Workbook;n.creator="CTI Santé";var a=n.addWorksheet(e.table_texte);let i=[];t.forEach(s=>{i.push([s.code,s.texte,s.complement,s.section_texte,s.utilise])}),a.addTable({name:"ListeTable",ref:"A10",headerRow:!0,style:{theme:"TableStyleLight1",showRowStripes:!0,headerRow:!0},columns:[{name:"Code",filterButton:!0},{name:"Texte",filterButton:!0},{name:"Complément",filterButton:!0},{name:"Section",filterButton:!0},{name:"Reférence",filterButton:!0}],rows:i}),a.getCell("A2").font={bold:!0},a.getCell("A2").value=`Classe ${e.texte}`,a.getColumn(1).width="30",a.getColumn(2).width="30",a.getColumn(3).width="30",a.getColumn(4).width="30",a.getColumn(5).width="30";const o="liste"+e.texte+"_"+e.code+"_"+e.table_texte;n.xlsx.writeBuffer().then(function(s){var l=new Blob([s],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});CH.saveAs(l,o+".xlsx")})})}function Ygt(e,t){oy(()=>import("./exceljs.min-IPmj6BNj.js").then(r=>r.e),[],import.meta.url).then(r=>{const n=new r.Workbook;n.creator="CTI Santé";var a=n.addWorksheet("Liste ("+t.table_texte+")");a.getCell("A2").value="Liste "+e.texte+" | "+e.chapitre+" ("+t.table_texte+") ";let i=[];Object.values(t.oids).forEach(s=>{const l=Object.values(t.records).find(c=>c.oid===s.oid);i.push([l.code,l.texte,l.complement,l.utilise])}),a.addTable({name:"ListeTable",ref:"A10",headerRow:!0,style:{theme:"TableStyleLight1",showRowStripes:!0,headerRow:!0},columns:[{name:t.table_texte,filterButton:!0},{name:"Texte",filterButton:!0},{name:"Complément",filterButton:!0},{name:"Reférence",filterButton:!0}],rows:i}),a.getCell("A2").font={bold:!0},a.getColumn(1).width="30",a.getColumn(2).width="30",a.getColumn(3).width="30",a.getColumn(4).width="30";const o="liste"+e.texte+"_"+e.chapitre+"_"+t.table_texte;n.xlsx.writeBuffer().then(function(s){var l=new Blob([s],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});CH.saveAs(l,o+".xlsx")})})}const Ugt=(e,t)=>{oy(()=>import("./exceljs.min-IPmj6BNj.js").then(r=>r.e),[],import.meta.url).then(r=>{const n=new r.Workbook;n.creator="CTI Santé";var a=n.addWorksheet(t.title);let i=[];Array.isArray(t.fields)?i=t.fields.map(c=>({name:c.title,filterButton:!0,dataKey:c.dataKey,hidden:c.hidden?c.hidden:!1})):i=t.fields[1].map(c=>({name:c.title,filterButton:!0,isSC:c.isSC,dataKey:c.dataKey,hidden:c.hidden?c.hidden:!1}));let o=[];i.forEach(c=>{if(!c.hidden&&(o.push(c),c.isSC)){const A=c.dataKey;o.push({title:"S",name:`${c.name} - S`,dataKey:A.replace("p_","s_"),key:A.replace("p_","s_"),dataIndex:A.replace("p_","s_")}),o.push({title:"C",name:`${c.name} - C`,dataKey:A.replace("p_","c_"),key:A.replace("p_","c_"),dataIndex:A.replace("p_","c_")})}});let s=e.map(c=>{let A=[];return o.forEach(u=>{A.push(c[u.dataKey])}),A});a.addTable({name:"ListeTable",ref:"A10",headerRow:!0,style:{theme:"TableStyleLight1",showRowStripes:!0,headerRow:!0},columns:o,rows:s}),a.getCell("A2").font={bold:!0},a.getCell("A2").value=`Table ${t.title}`,a.getColumn(1).width="30",a.getColumn(2).width="30",a.getColumn(3).width="30",a.getColumn(4).width="30",a.getColumn(5).width="30";const l=`Table_${t.title}`;n.xlsx.writeBuffer().then(function(c){var A=new Blob([c],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});CH.saveAs(A,l+".xlsx")})})},xne=(e,t,r=!1,n={},a={})=>{let i={XMLType:r?"TOTALROW":"ROW",c0:e.LVL},o=1;return Object.values(t).forEach(s=>{let l=e[s.dataField],c=s.type;l?c==="Date"?l.text.length===6?l=new ei(l.text,"YYYYMM").format("YYYY/MM/DD"):l=l.text:c==="Number"?l=Number.isInteger(Number(l.text))?Number(l.text).toString().split(".")[0]:Number(l.text).toFixed(2):l?.sanitizedText&&l.sanitizedText!==""?l=Bat(l.sanitizedText):l="":l="",i[`c${o}`]=l,o=o+1}),a?.SELECT?.GROUPBY_LABEL&&(i.g1=a.SELECT.GROUPBY_LABEL),a?.SELECT?.GROUPBY_2_LABEL&&(i.g2=a.SELECT.GROUPBY_2_LABEL),a?.SELECT?.GROUPBY_3_LABEL&&(i.g3=a.SELECT.GROUPBY_3_LABEL),a?.SELECT?.ARBRE1_LABEL&&(i.g1=a.SELECT.ARBRE1_LABEL,i.g6=a.SELECT.GROUPBY_LABEL),a?.SELECT?.ARBRE2_LABEL&&(i.g2=a.SELECT.ARBRE2_LABEL),a?.SELECT?.ARBRE3_LABEL&&(i.g3=a.SELECT.ARBRE3_LABEL),a?.SELECT?.ARBRE4_LABEL&&(i.g4=a.SELECT.ARBRE4_LABEL),a?.SELECT?.ARBRE5_LABEL&&(i.g5=a.SELECT.ARBRE5_LABEL),i},Hgt=(e,t,r,n,a,i)=>{const o=Object.values(t.run.data).filter(u=>u.visible===!0),s=t.run.viewFilters.filter(u=>u!=="").map(u=>({XMLType:"SELECTIONS",displayText:sy(u)}));let l={data:{XMLType:"EXCELEXPORT",environnement:e.ENVIRONMENT,viewName:t.desc.attributes.name,title:t.run.title,mode:r,children:[...s],isReport:zgt(t)}};const c=sl.getState().cti.globalVariables,A=sl.getState().cti.history.sort;return Object.values(o).forEach((u,d)=>{const f=u.label?`${d+1} - ${u.label.latinise().replace(/[^0-9a-zA-Z -]/g,"")}`:`${d+1} - ${u.excelLabel.latinise().replace(/[^0-9a-zA-Z -]/g,"")}`??`Onglet ${d+1}`,h=u.label?u.label.latinise().replace(/[^0-9a-zA-Z -]/g,""):u.excelLabel.latinise().replace(/[^0-9a-zA-Z -]/g,"");let g={XMLType:"ONGLET",excelLabel:f,excelLongLabel:f,children:[{XMLType:"DATAGRID",total:u.datagrid.total,children:[]}]},p=Ggt(i,t,h,u);t?.desc?.attributes?.isFavorite==="true"&&p.sort((C,w)=>Number(C?.order)-Number(w?.order));const m=Object.values(u.similitabs)[0]?.data[0];let y={};if(m&&(y=m[1]??{}),Object.values(p).forEach(C=>{let w=C.visible;if(!w&&C.visibleCondition&&(w=ca(C.visibleCondition,t)),w){let B=C.outputFormat?C.outputFormat.trim():"";/^=/gm.test(B)&&(B=ca(B,t,y));let M={XMLType:"COLUMN",dataField:C.dataField,headerText:sy(C.titleText),type:C.type,outputFormat:B,textAlign:C.style.textAlign??"left",currency:"",currencyAlign:"",visible:C.visible,totalFunction:"text",totalComplement:C.totalComplement,printable:"true"};g.children[0].children.push(M)}}),Object.values(u.similitabs).forEach((C,w)=>{const B=f.slice(0,17),x=C.name?`${B} - ${w+1} ${C.name}`:`${B} - ${w+1}`,M=C.name?`${f} - ${w+1} ${C.name}`:`${f} - ${w+1}`;let S={XMLType:"SIMILITAB",id:C.id,excelLabel:x.latinise().replace(/[^0-9a-zA-Z -]/g,""),excelLonglabel:M.latinise().replace(/[^0-9a-zA-Z -]/g,""),children:[{XMLType:"DATA",children:[]}]},R=C.data[0],b=yH(R),T=zf(b,A.key??"key",A.order??"asc");R=Sx(T).map(N=>xne(N,p,!1,t,c));let F=C.data[1].sort(N=>N.key).map(N=>xne(N,p,!0,t,c));R=R.concat(F),S.children[0].children=R,(r==="TOUT"||!t.run.data.Onglet||a===C.id)&&g.children.push(S)}),!Object.values(u.similitabs).length){const C={XMLType:"SIMILITAB",id:1,execelLabel:f.latinise().replace(/[^0-9a-zA-Z -]/g,""),excelLonglabel:f.latinise().replace(/[^0-9a-zA-Z -]/g,""),children:[{XMLType:"DATA"}]};g.children.push(C)}g.children=g.children.sort((C,w)=>C.XMLType==="SIMILITAB"&&w.XMLType==="SIMILITAB"?Number(C.id)-Number(w.id):1),(r==="TOUT"||n===d||a===d)&&l.data.children.push(g)}),l},Ggt=(e,t,r,n)=>{let a=e.cti.history.columns[`${e.cti.view.runRef}_${r}`];if(a)a=a.filter(o=>o.hidden!==!0);else{a=Object.values(n.datagrid.columns).map(l=>({...l,hidden:l.hidden?l.hidden:!ca(l.visibleCondition,t)}));const o=e.cti.components.favorites.hiddenColumns,s=o?o.map(l=>l.dataField):[];a=a.filter(l=>!l.hidden&&!s.includes(l.dataKey))}return a.filter(o=>o.dataKey!=="EXPAND")};function ym(e,t,r){if(e.length){let n=Object.keys(e[0]),a=[];if(r.forEach(o=>{n.includes(o)&&a.push(o)}),!a.length)return e;const i=t.split(" ");return e.filter(o=>i.every(s=>a.some(l=>o[l].toLowerCase().includes(s.toLowerCase()))))}else return e}function Mne(e,t,r,n=!0){let a=Object.keys(e),i=r.filter(l=>a.includes(l));if(!i.length)return!1;const o=t.split(/\s/).filter(l=>l!==""),s=l=>i.some(c=>(e[c]||"").toString().toLowerCase().includes(l.toLowerCase()));return n?o.every(s):o.some(s)}var dP,Ine;function Kgt(){if(Ine)return dP;Ine=1;var e=py(),t=ZB(),r=Ps(),n=e?e.isConcatSpreadable:void 0;function a(i){return r(i)||t(i)||!!(n&&i&&i[n])}return dP=a,dP}var fP,bne;function Vgt(){if(bne)return fP;bne=1;var e=qY(),t=Kgt();function r(n,a,i,o,s){var l=-1,c=n.length;for(i||(i=t),s||(s=[]);++l<c;){var A=n[l];a>0&&i(A)?a>1?r(A,a-1,i,o,s):e(s,A):o||(s[s.length]=A)}return s}return fP=r,fP}var hP,Sne;function Jgt(){if(Sne)return hP;Sne=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return hP=e,hP}var gP,Rne;function Wgt(){if(Rne)return gP;Rne=1;var e=HB();function t(r,n){if(r!==n){var a=r!==void 0,i=r===null,o=r===r,s=e(r),l=n!==void 0,c=n===null,A=n===n,u=e(n);if(!c&&!u&&!s&&r>n||s&&l&&A&&!c&&!u||i&&l&&A||!a&&A||!o)return 1;if(!i&&!s&&!u&&r<n||u&&a&&o&&!i&&!s||c&&a&&o||!l&&o||!A)return-1}return 0}return gP=t,gP}var pP,Tne;function Xgt(){if(Tne)return pP;Tne=1;var e=Wgt();function t(r,n,a){for(var i=-1,o=r.criteria,s=n.criteria,l=o.length,c=a.length;++i<l;){var A=e(o[i],s[i]);if(A){if(i>=c)return A;var u=a[i];return A*(u=="desc"?-1:1)}}return r.index-n.index}return pP=t,pP}var vP,Qne;function qgt(){if(Qne)return vP;Qne=1;var e=MY(),t=r7(),r=ax(),n=dwe(),a=Jgt(),i=xQ(),o=Xgt(),s=nx(),l=Ps();function c(A,u,d){u.length?u=e(u,function(g){return l(g)?function(p){return t(p,g.length===1?g[0]:g)}:g}):u=[s];var f=-1;u=e(u,i(r));var h=n(A,function(g,p,m){var y=e(u,function(C){return C(g)});return{criteria:y,index:++f,value:g}});return a(h,function(g,p){return o(g,p,d)})}return vP=c,vP}var mP,Dne;function Zgt(){if(Dne)return mP;Dne=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return mP=e,mP}var EP,Fne;function $gt(){if(Fne)return EP;Fne=1;var e=Zgt(),t=Math.max;function r(n,a,i){return a=t(a===void 0?n.length-1:a,0),function(){for(var o=arguments,s=-1,l=t(o.length-a,0),c=Array(l);++s<l;)c[s]=o[a+s];s=-1;for(var A=Array(a+1);++s<a;)A[s]=o[s];return A[a]=i(c),e(n,this,A)}}return EP=r,EP}var yP,Nne;function ept(){if(Nne)return yP;Nne=1;function e(t){return function(){return t}}return yP=e,yP}var CP,_ne;function tpt(){if(_ne)return CP;_ne=1;var e=ept(),t=WCe(),r=nx(),n=t?function(a,i){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(i),writable:!0})}:r;return CP=n,CP}var wP,kne;function rpt(){if(kne)return wP;kne=1;var e=800,t=16,r=Date.now;function n(a){var i=0,o=0;return function(){var s=r(),l=t-(s-o);if(o=s,l>0){if(++i>=e)return arguments[0]}else i=0;return a.apply(void 0,arguments)}}return wP=n,wP}var BP,Pne;function npt(){if(Pne)return BP;Pne=1;var e=tpt(),t=rpt(),r=t(e);return BP=r,BP}var xP,One;function Oxe(){if(One)return xP;One=1;var e=nx(),t=$gt(),r=npt();function n(a,i){return r(t(a,i,e),a+"")}return xP=n,xP}var MP,jne;function jxe(){if(jne)return MP;jne=1;var e=ex(),t=jg(),r=BQ(),n=mc();function a(i,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],i):!1}return MP=a,MP}var IP,zne;function apt(){if(zne)return IP;zne=1;var e=Vgt(),t=qgt(),r=Oxe(),n=jxe(),a=r(function(i,o){if(i==null)return[];var s=o.length;return s>1&&n(i,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(i,e(o,1),[])});return IP=a,IP}var ipt=apt();const zxe=gn(ipt),Lxe=({section:e,handleEdit:t,handleClose:r})=>{const[n,a]=E.useState(""),[i,o]=E.useState("");return E.useEffect(()=>{e&&(a(e.include_code),o(e.exclude_code))},[e]),v.jsxs("div",{className:"section-form",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Codes à inclure"}),v.jsx(jt.TextArea,{value:n,onChange:s=>a(s.target.value)})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Codes à exclure"}),v.jsx(jt.TextArea,{value:i,onChange:s=>o(s.target.value)})]})}),v.jsxs("div",{className:"form-row form-buttons",style:{marginTop:"12px"},children:[v.jsx(yt,{onClick:r,style:{marginRight:"8px"},children:"Annuler"}),v.jsx(yt,{onClick:()=>t(e.oid,n,i),type:"primary",children:"Appliquer"})]})]})};Lxe.propTypes={section:W.object,handleEdit:W.func,handleClose:W.func};const Yxe=({node:e,handleSetCode:t,handleSetText:r,byCode:n,handleEdit:a,handleDelete:i})=>{const[o,s]=E.useState(!1),[l,c]=E.useState(!1),[A,u]=E.useState(""),[d,f]=E.useState(""),[h,g]=E.useState(!1),[p,m]=E.useState(!1),y=E.useRef(),C=E.useRef();E.useEffect(()=>{e&&(u(e.code),f(e.texte))},[e]),E.useEffect(()=>{o&&y.current.focus()},[o]),E.useEffect(()=>{l&&C.current.focus()},[l]);const w=()=>{s(!o)},B=()=>{c(!l)},x=D=>{u(D.target.value)},M=D=>{f(D.target.value)},S=D=>{s(!1),t(e.oid,A)},R=D=>{c(!1),r(e.oid,d)},b=()=>{g(!h)},T=D=>{m(D)};return v.jsxs("div",{className:"editable-title",onMouseEnter:b,onMouseLeave:b,children:[o?v.jsx(jt,{ref:y,style:{width:"20%"},value:A,onChange:x,onBlur:S}):v.jsx("div",{className:"editable-code",onClick:w,children:A}),l?v.jsx(jt,{ref:C,style:{marginLeft:"6px",width:"50%"},value:d,onChange:M,onBlur:R}):v.jsx("div",{className:"editable-text",onClick:B,children:`${d} (${e.elements.length})`}),v.jsxs("div",{className:"title-buttons",children:[v.jsx(JQ,{trigger:"click",content:v.jsx(Lxe,{section:e,handleEdit:a,handleClose:()=>m(!1)}),visible:p,onVisibleChange:T,children:n||p?v.jsx(yt,{type:"link",className:"edit-button-title",children:v.jsx(bY,{})}):null}),v.jsx(Ni,{title:"Etes vous sur de vouloir supprimer cette section ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:()=>i(e.oid),children:v.jsx(yt,{type:"link",className:"delete-button-title",children:v.jsx(ki,{})})})]})]})};Yxe.propTypes={node:W.object,handleSetCode:W.func,handleSetText:W.func,handleEdit:W.func,handleDelete:W.func};const jy=(e,t)=>{const[r,n]=E.useState(!1);return E.useEffect(()=>{e&&!t.ISROLECTI?n(!0):n(!1)},[t,e]),r},Uxe=({selectedClasse:e,handleCloseEditor:t})=>{const r=wn(),[n]=We.useForm(),a=ut(tt=>tt.cti.content.moduleId.replace("iCTI_","")),i=ut(tt=>tt.cti.components.classes.data.selectedClasse),o=ut(tt=>tt.cti.components.classes.loading),s=ut(tt=>tt.cti.content),[l,c]=E.useState([]),[A,u]=E.useState([]),[d,f]=E.useState([]),[h,g]=E.useState({}),[p,m]=E.useState(!1),[y,C]=E.useState(null),[w,B]=E.useState([]),[x,M]=E.useState([]),[S,R]=E.useState([]),b=ut(tt=>tt.cti.settings.data.session),[T,D]=E.useState(!1),[F,N]=E.useState(!0),[_,P]=E.useState(""),[k,j]=E.useState(""),[Y,X]=E.useState(!1);E.useEffect(()=>{e&&r(oft(e))},[e,r]),E.useEffect(()=>{if(Object.keys(i).length){const tt=Ke(i);g(tt),n.setFieldsValue(tt),c(mft(i))}else n.setFieldsValue({})},[i]),E.useEffect(()=>{if(Object.keys(i).length){let tt=Ie(i);tt=we(tt),u(tt)}},[i,_,T,F,k]),E.useEffect(()=>{if(h.sections){let tt=Te(h.sections);f(mt(tt))}else f([])},[h]);const K=jy(i.is_cti==="1",b),U=(tt,rt)=>{if(y||rt){let lt={...h},At=rt||lt.sections.find($e=>$e.oid===y.oid);if(At){let $e=[],ce=lt.sections.filter(Tt=>Tt.oid!==At.oid),qe=Ie(h);(tt||x).forEach(Tt=>{const He=qe.find(Ge=>Ge.oid===Tt.toString());At.elements.some(Ge=>Ge.oid===He.oid)||(He.section_texte=`${At.code} - ${At.texte}`,He.section_id=At.oid,$e.push(He),ce.forEach(Ge=>{Ge.elements=Ge.elements.filter(Ee=>Ee.oid!==He.oid)}))}),At.elements=At.elements.concat($e),u(we(qe))}g({...lt}),M([]),m(!0)}},H=(tt,rt)=>{let lt=Ie(h),At={...h};const $e=tt||S;let ce=h.sections.find(qe=>qe.oid==="0");$e.forEach(qe=>{let ct=lt.find(He=>He.oid===qe.oid);ct&&(ce.elements.push(ct),ct.section_id="0",ct.section_texte="");let Tt;At.sections.forEach(He=>{He.elements.forEach(Ge=>{Ge.oid===qe.oid&&(Tt=He)})}),Tt.elements=Tt.elements.filter(He=>He.oid!==qe.oid)}),lt=we(lt),g(At),u(lt),R([]),m(!0)},L=tt=>{let rt=n.getFieldsValue();for(let At in rt)rt[At]===!0&&(rt[At]="1"),rt[At]===!1&&(rt[At]="0");let lt={...h,...rt};r(sft(lt)),m(!1),g({}),t()},V=tt=>{D(tt.target.checked)},J=tt=>{N(tt.target.checked)},ee=tt=>{P(tt.target.value)},ae=tt=>{j(tt.target.value)},ne=(tt,rt)=>{let lt={...h},At=lt.sections.find($e=>$e.oid===tt);At&&(At.texte=rt),g(lt),m(!0)},fe=(tt,rt)=>{let lt={...h},At=lt.sections.find($e=>$e.oid===tt);At&&(At.code=rt),g(lt),m(!0)},he=tt=>{m(!0);const rt=Object.keys(tt)[0];if(rt==="contenu_by_code"){let lt={...h};lt[rt]=tt[rt],g(lt)}},ye=(tt,rt)=>{rt.node.section_id?(C(null),R([rt.node])):(C({...rt.node}),R([...rt.node.children])),rt.selected||R([]),B(tt)},be=()=>{let tt={...h};const lt=-(tt.sections.filter(At=>+(At.oid<0)).length+1).toString();tt.sections.push({oid:lt,texte:"Nouvelle section",code:`S${tt.sections.length}`,include_code:"",exclude_code:"",elements:[]}),g(tt)},Se=tt=>{let rt={...h},lt=rt.sections.filter(At=>At.oid!==tt);rt.sections=lt,g(rt)},ve=async(tt,rt,lt)=>{let At={...h},$e;if($e=At.sections.find(ce=>ce.oid===tt),$e&&($e.include_code=rt,$e.exclude_code=lt),rt!==""){H($e.elements),$e.elements=[];const ce={schema:s.moduleId.replace("iCTI_",""),table_id:i.table_id,include_code:rt,exclude_code:lt},qe=await jBe(ce);U(qe,$e)}g(At)},de=()=>{r(cft(i.oid,i.table_id)),g({}),t()},Ue=tt=>{let rt=[...x];Array.isArray(tt)?rt=rt.concat(tt):rt.includes(tt)?rt=rt.filter(lt=>lt!==tt):rt.push(tt),M([...new Set(rt)])},at=()=>{if(x.length)M([]);else{let tt=A.map(rt=>rt.oid);M(tt)}},Ve=()=>{g({}),t()};function Ie(tt){let rt=[];return tt.sections.forEach(lt=>{lt.elements&&(rt=rt.concat(lt.elements))}),rt=zxe(rt,lt=>lt.code),rt}function we(tt){let rt=[...tt];return T&&(rt=rt.filter(lt=>lt.utilise==="O")),F&&(rt=rt.filter(lt=>lt.section_id==="0")),rt=ym(rt,_,["code","texte","complement"]),rt=Re(rt,k),rt}function Re(tt,rt,lt){let At=rt.match(/\w*\*?/gm);return tt.filter(ce=>At.includes(ce.code)?!0:At.length!==1&&At[0]!==""?At.some(qe=>{if(qe!==""&&qe.slice(-1)==="*"){let ct=qe.slice(0,-1);return ce.code.startsWith(ct)}else return!1}):!0)}function Te(tt,rt="",lt=!1){let At=[];return tt.forEach(($e,ce)=>{if($e.code!==""){const qe=(rt!==""?rt+"_":"")+ce;let ct={...$e,key:qe,isLeaf:!0,title:$e.texte,editable:lt};$e.elements&&(ct.children=Te($e.elements,qe,lt),ct.isLeaf=!1,ct.editable=!0),At.push(ct)}}),At}function Ke(tt){let rt={...tt};for(let lt in i)switch(lt){case"is_cti":rt[lt]=rt[lt]==="1";break;case"contenu_by_code":rt[lt]=rt[lt]==="1";break;case"contenu_non_replicable_ailleurs":rt[lt]=rt[lt]==="1";break;case"show_omit":rt[lt]=rt[lt]==="1";break;case"est_lecture_seule":rt[lt]=rt[lt]==="1";break;case"est_partagee_modification":rt[lt]=rt[lt]==="1";break}return rt}function mt(tt,rt){return tt.map(lt=>({...lt,title:lt.editable?v.jsx(Yxe,{node:lt,handleSetText:ne,handleSetCode:fe,byCode:n.getFieldValue("contenu_by_code"),handleEdit:ve,handleDelete:Se}):`${lt.title} (${lt.code})`,children:lt.children?mt(lt.children):null}))}return v.jsx(v.Fragment,{children:v.jsxs(We,{form:n,onValuesChange:he,style:{height:"100%",display:"flex",flexFlow:"column"},disabled:K,children:[v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:[p?v.jsx(Ni,{title:"Des modifications sont en cours. Etes vous sur de vouloir annuler ?",okText:"Retour à la liste",cancelText:"Continuer à modifier",onConfirm:Ve,children:v.jsx(yt,{type:"link",style:{height:"100%",paddingRight:"20px"},disabled:!1,children:v.jsx(MR,{})})}):v.jsx(yt,{type:"link",style:{height:"100%",paddingRight:"20px"},disabled:!1,children:v.jsx(MR,{onClick:Ve})}),"Gestion des classes"]}),v.jsxs("div",{className:"header-actions",children:[v.jsx(yt,{size:"default",icon:v.jsx(Zhe,{}),onClick:()=>{const tt=n.getFieldsValue();Lgt(tt,A)},children:"Exporter"},"formExcelExportBtn"),b.ISROLECTI&&v.jsx(yt,{size:"default",icon:v.jsx(my,{}),onClick:()=>{lft(`iCTI_${a}`,i.oid,i.table_name)},children:"SQL"},"formSQLExportBtn"),v.jsx(Ni,{title:"Vous vous vraiment supprimer cette classe ?",onConfirm:de,okText:"Supprimer",cancelText:"Annuler",children:v.jsx(yt,{size:"default",icon:v.jsx(ki,{}),disabled:i.est_lecture_seule==="true"||K,children:"Supprimer"})}),v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(lA,{}),loading:Y,disabled:!p||i.est_lecture_seule==="true",onClick:L,children:"Enregistrer"},"formSubmitbtn")]})]}),v.jsxs("div",{className:"classes-description",children:[v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Code:"}),v.jsx(We.Item,{name:"code",children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Texte:"}),v.jsx(We.Item,{name:"texte",children:v.jsx(jt,{})})]})]}),v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Lecture seule:"}),v.jsx("b",{children:i.est_lecture_seule==="1"?"Oui":"Non"})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Saisie par code"}),v.jsx(We.Item,{name:"contenu_by_code",valuePropName:"checked",children:v.jsx(bo,{})})]})]}),b.ISROLECTI&&v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Classe CTI"}),v.jsx(We.Item,{name:"is_cti",valuePropName:"checked",children:v.jsx(un,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Contenu non réplicable ailleurs"}),v.jsx(We.Item,{name:"contenu_non_replicable_ailleurs",valuePropName:"checked",children:v.jsx(un,{})})]})]})]}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"classes-editor-content",children:[v.jsxs("div",{className:"classes-sections",children:[v.jsxs("div",{className:"tree-header",children:[v.jsx("span",{children:"Sections"}),v.jsx("div",{className:"header-actions",children:v.jsx(yt,{type:"link",onClick:be,children:v.jsx(em,{})})})]}),v.jsx(Id,{treeData:d,blockNode:!0,onSelect:ye,selectedKeys:w})]}),v.jsxs("div",{className:"transfer-actions",children:[v.jsx(yt,{type:"link",onClick:()=>U(),disabled:h.contenu_by_code||!y||!x.length||K,children:v.jsx(EQ,{})}),v.jsx(yt,{type:"link",onClick:()=>H(),disabled:h.contenu_by_code||!S.length||K,children:v.jsx(NY,{})})]}),v.jsxs(fm,{className:"classes-options",defaultSize:{width:"50%"},enable:{top:!1,right:!1,bottom:!1,left:!0,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},children:[v.jsxs("div",{className:"options-search",children:[v.jsx("div",{className:"options-dragger",children:v.jsx(b5e,{style:{fontSize:16}})}),v.jsxs("div",{className:"form-column",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Recherche par texte"}),v.jsx(jt,{value:_,onChange:ee})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Référencés uniquement"}),v.jsx(un,{checked:T,onChange:V})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Non attribués uniquement"}),v.jsx(un,{checked:F,onChange:J})]})})]}),v.jsxs("div",{className:"form-column",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{style:{minWidth:"100px"},children:"Liste de codes"}),v.jsx(jt.TextArea,{value:k,onChange:ae})]})}),v.jsx("div",{className:"form-row",children:v.jsx("div",{className:"form-item",children:v.jsx(yt,{type:"primary",onClick:at,children:"De/Sélectionner"})})})]})]}),v.jsx("div",{className:"options-table",children:v.jsx(Hn,{fixed:!1,columns:l,data:A,loading:o,selectedRows:x,onRowSelect:Ue,shiftMulti:!0})})]})]})})]})})};Uxe.propType={selectedClasse:W.object,handleCloseEditor:W.func};const opt=le.memo(Uxe),{DirectoryTree:Lne}=Id,Hxe=({tables:e,refTables:t,showReferences:r,handleSelectedClasse:n,search:a})=>{const[i,o]=E.useState(null),[s,l]=E.useState(null),[c,A]=E.useState([]),[u,d]=E.useState([]),[f,h]=E.useState(null),g=ut(M=>M.cti.content.moduleId),p=wn(),m=ut(M=>M.cti.components.classes.loading);E.useEffect(()=>{e&&t&&(o(B(e)),l(B(t)))},[e,t]),E.useEffect(()=>{const M=bU(i);A(M)},[i]),E.useEffect(()=>{if(a==="")d([]);else{const M=c.map(S=>S.title.toLowerCase().includes(a.toLowerCase())?mB(S.key,i):null).filter((S,R,b)=>S&&b.indexOf(S)===R);d(M)}},[a,i,c]);const y=M=>{d(M)},C=M=>{const R=Sx(s).find(b=>b.key===M[0]);R&&h(R.classe_id)},w=()=>{ya({type:"info",message:"Synchronisation",description:"La synchronisation est en cours"}),p(Aft(f,g)),h(null)};function B(M,S="",R=!1){let b=[];return Object.values(M).forEach((T,D)=>{const F=(S!==""?S+"_":"")+Lo(T.texte);let N={title:T.texte,key:F,table_id:T.table_id};T.table_id===void 0&&(N.key=F);let _,P;T.classes!==void 0&&(_=x(T.classes,F)),T.groups!==void 0&&(P=B(T.groups,F,R)),_!==void 0&&P!==void 0?N.children=_.concat(P):_!==void 0?N.children=_:N.children=P,b.push(N)}),b.sort((T,D)=>T.title.localeCompare(D.title,void 0,{numeric:!0,sensitivity:"base"}))}function x(M,S,R){let b=[];return Object.values(M).forEach(T=>{let D={title:T.texte,key:S+"_"+Lo(T.texte),isLeaf:!0,table_id:T.table_id,classe_id:T.classe_id,code:T.code};T.classe_id==="-1"?D.icon=v.jsx(em,{}):D.icon=v.jsx(rB,{}),b.push(D)}),b.sort((T,D)=>Number(T.classe_id)-Number(D.classe_id))}return v.jsxs("div",{className:"component-content",children:[v.jsxs("div",{className:"classes-manager-classes",children:[m?v.jsx("div",{className:"listes-spin-loader",children:v.jsx(g4,{})}):null,v.jsx(Lne,{onSelect:n,treeData:i,expandedKeys:u,onExpand:y})]}),v.jsxs("div",{className:"cti-listes-manager-references",style:{display:r?"flex":"none"},children:[v.jsxs("div",{className:"references-header",children:[v.jsx("h3",{children:"Classes de références"}),v.jsx(yt,{style:{marginLeft:"10px"},size:"small",onClick:w,icon:v.jsx(yy,{}),disabled:!f,children:"Importer"},"importBtn")]}),v.jsx("div",{className:"references-tree",children:v.jsx(Lne,{treeData:s,onSelect:C})})]})]})};Hxe.propTypes={tables:W.object,refTables:W.object,showReferences:W.bool,handleSelectedClasse:W.func,search:W.string};const spt=le.memo(Hxe),lpt=()=>{const[e,t]=E.useState(!1),[r,n]=E.useState(!1),[a,i]=E.useState(null),[o,s]=E.useState(""),l=ut(C=>C.cti.components.classes.data),c=ut(C=>C.cti.components.classes.loading),A=ut(C=>C.cti.content.moduleId),u=ut(C=>C.router.location.query),d=wn(),f=qf();E.useEffect(()=>{d(DT()),t(!1),i(null)},[A,d]),E.useEffect(()=>{if(u&&Object.keys(l.tables).length&&u.classe&&a===null){const C=u.classe,B=y(Object.values(l.tables)).find(x=>x.code===C);if(B){const x={classeId:B.classe_id,tableId:B.table_id};i(x),t(!0)}else f.replace({search:""})}},[u,l.tables,f,d,a]);const h=()=>{t(!1),f.push({search:""}),d(d3e())},g=C=>{s(C.target.value)},p=()=>{n(!r)},m=(C,w)=>{if(w.node.isLeaf===!0){const B={classeId:w.node.classe_id,tableId:w.node.table_id,key:w.node.key};f.replace({search:`?classe=${w.node.code}`}),i(B),t(!0)}};function y(C){let w=[];return Object.values(C).forEach(B=>{w=[...w,...Object.values(B.classes)]}),w}return e?v.jsx(opt,{selectedClasse:a,handleCloseEditor:h}):v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des classes"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des classes"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(jt,{placeholder:"Recherche",value:o,onChange:g}),v.jsx(yt,{onClick:()=>{d(DT())},icon:v.jsx(tm,{}),loading:c,children:"Actualiser"},"refreshBtn"),v.jsx(yt,{style:{width:"148.5px"},type:r?"secondary":"primary",onClick:p,icon:v.jsx(rB,{}),children:r?"Cacher références":"Afficher références"},"showReferencesBtn")]})]}),v.jsx(spt,{tables:l.tables,refTables:l.refTables,showReferences:r,handleSelectedClasse:m,search:o})]})},cpt=le.memo(lpt);var dR={exports:{}},Apt=dR.exports,Yne;function upt(){return Yne||(Yne=1,(function(e,t){(function(r,n,a){e.exports=a(),e.exports.default=a()})("slugify",Apt,function(){var r=JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","ǈ":"LJ","ǉ":"lj","ǋ":"NJ","ǌ":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"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","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`),n=JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');function a(i,o){if(typeof i!="string")throw new Error("slugify: string argument expected");o=typeof o=="string"?{replacement:o}:o||{};var s=n[o.locale]||{},l=o.replacement===void 0?"-":o.replacement,c=o.trim===void 0?!0:o.trim,A=i.normalize().split("").reduce(function(u,d){var f=s[d];return f===void 0&&(f=r[d]),f===void 0&&(f=d),f===l&&(f=" "),u+f.replace(o.remove||/[^\w\s$*_+~.()'"!\-:@]+/g,"")},"");return o.strict&&(A=A.replace(/[^A-Za-z0-9\s]/g,"")),c&&(A=A.trim()),A=A.replace(/\s+/g,l),o.lower&&(A=A.toLowerCase()),A}return a.extend=function(i){Object.assign(r,i)},a})})(dR)),dR.exports}var dpt=upt();const Gv=gn(dpt);function fpt(e){let t=Nt(e,"HTTP_SERVICE"),r=Nt(t[0],"MODULE"),n=[];return r.forEach(a=>{let i=Yr(a);function o(c){let A={};return Nt(c,"MENUINFO").forEach(u=>{let d=Yr(u);A[d.code]=d}),A}let s=o(a);Zh(s)||(i.informations=s);function l(c){let A={};return Nt(c,"MENUITEM").forEach(u=>{let d=Yr(u);if(d?.jisavailable!=="false"){if(!Zh(Nt(u,"MENUITEM"))){let f=l(u);d.children=f}A[Gv(d.label,{lower:!0})]=d}}),A}i.children=l(a),n[Gv(i.name,{lower:!0})]=i}),n}const H4=e=>async function(t,r){const n=r(),a=n.cti.ui.primaryColor;t(TJ(!0)),ya({message:"Accueil",description:"Chargement de vos paramètres",key:"menu",duration:0,icon:v.jsx(Cg,{style:{color:a}})});try{const i=await jn("modules/base/php/getNavigation.php");n.cti.ui.download===0&&t(s8e(Math.floor(Math.random()*8+9)));let o=fpt(i),s={...o},l=Pl.deflate(JSON.stringify(s),{to:"string"});await Ji.setItem("navigation",l),t(bve(o)),e&&t(GY(e)),t(TJ(!1)),hc.close("menu")}catch(i){t(LOe(i)),console.log(i)}},hpt=()=>function(e,t){const n=t().cti.menu.selectedModuleKey;e(GY(null)),e(H4(n))},gpt=()=>async function(e,t){const n=await Ji.getItem("navigation");if(n===null)e(H4());else try{let a=JSON.parse(Pl.inflate(n,{to:"string"}));e(bve(a))}catch{throw new Error("Erreur lors de la récupération de la navigation")}};let pw=!1;function Une(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0];if(r){t=Yr(r);const n=Nt(r,"skipFirstSelection");if(n&&n.length>0){let a=Yr(n);t.skipFirstSelection=a}return t}else return}function ppt(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0],n=Nt(r,"PRESENTATION");return Nt(n[0],"ONGLET").forEach((i,o)=>{let s=Ept(i),l=mpt(i),c=Nt(i,"INPUTSELECTION"),A=vpt(i),u=Yr(i);if(c&&c.length>0){let f=[];c.forEach(h=>{let g=Yr(h);f.push(g)}),u.inputSelections=f}u.charts=l,u.datagrid=s,u.selections=A;const d=u.label?Gv(u.label,{lower:!0}):o;t[d]=u}),t}function vpt(e){let t=[],r=Nt(e,"SELECTIONS");return r&&r.length>0&&r.forEach(n=>{let a=Nt(n,"GROUP");a&&a.length>0&&a.forEach(i=>{let o=Nt(i,"FIELD");o&&o.length>0&&o.forEach(s=>{let l=Yr(s),c=Nt(s,"OPTION");if(c&&c.length>0){let A=oa(c);A=A.map(u=>({...u,title:u.label})),A=um(A),l.options=A}t.push(l)})})}),t}function mpt(e){let t=Nt(e,"CHART"),r={};return t.forEach((n,a)=>{let i=Yr(n),o=Nt(n,"CHART");if(o.length>0){let s={};o.forEach((l,c)=>{let A=Hne(l);s[c]=A}),i.subCharts=s}else i=Hne(n);r[a]=i}),r}function Hne(e){let t={},r=Nt(e,"SERIE");r[0]!==void 0&&r.forEach((o,s)=>{let l=Yr(o);t[s]=l});let n={},a=Nt(e,"CATEGORY");a[0]!==void 0&&a.forEach((o,s)=>{let l=Yr(o),c=Nt(o,"ITEM");c.length&&(l.items=oa(c)),n[s]=l});let i=Yr(e);return i.categories=n,i.series=t,i}function Ept(e){let t=Nt(e,"DATAGRID"),r=Yr(t[0]);r.sortable=r.sortable!=="false";let n=Nt(t[0],"COLUMN");r.columns=Gxe(n);let a=Nt(t[0],"ROWSTYLE");r.rowStyles=pL(a);let i=Nt(t[0],"LINE");return i.length>0&&(r.lines=Cpt(i)),r}function Gxe(e){let t={};return e.forEach(r=>{let n=Yr(r),a=Nt(r,"CALC"),i=Nt(r,"CELLSTYLE"),o=Nt(r,"HEADERCELLSTYLE");a.length>0&&(n.calcs=ypt(a)),i.length>0&&(n.cellStyles=pL(i)),o.length>0&&(n.headerStyles=pL(o)),t[n.dataField]=n}),t}function ypt(e){let t=[];return e.forEach(r=>{let n=Yr(r);if(n.dataField==="*calc"){let a=Nt(r,"CALC");n.calcs=oa(a)}t.push(n)}),t}function pL(e){let t=[];return e.forEach(r=>{let n=Yr(r);t.push(n)}),t.filter(r=>r["jis-ignore"]!=="true"&&r.name!=="toolTip")}function Cpt(e){let t=[];return e.forEach(r=>{let n=Yr(r),a=Nt(r,"COLUMN"),i=Nt(r,"ROWSTYLE");a.length>0&&(n.columns=Gxe(a)),a.length>0&&(n.rowStyles=oa(i)),t.push(n)}),t}const Gne=e=>{let t={},r={};return Nt(e,"ARG").forEach((i,o)=>{let s=Yr(i);t[`${s.name}-${o}`]={name:s.name,value:s.value}}),Nt(e,"ARGS").forEach((i,o)=>{let s=Yr(i);r[`${s.name}-${o}`]=s}),{args:t,allArgs:r}};function Kne(e){let t=Nt(e,"HTTP_SERVICE"),r=Nt(t[0],"PRESENTATION"),n=Nt(r[0],"VIEWLINKS"),a={};return n.length>0&&Nt(n[0],"VIEWLINK").forEach((o,s)=>{const{args:l,allArgs:c}=Gne(o);let A={};Nt(o,"VIEWITEM").forEach(f=>{let h=Yr(f);const{args:g,allArgs:p}=Gne(f);Object.keys(g).length>0&&(h.args=g),Object.keys(p).length>0&&(h.allArgs=p),A[h.label]=h});let d=Yr(o);Object.keys(l).length>0&&(d.args=l),Object.keys(c).length>0&&(d.allArgs=c),Object.keys(A).length>0&&(d.viewitems=A),d.rowContext=!(d.rowContext&&d.rowContext==="false"),a[`${Gv(d.label,{lower:!0})}-${s}`]=d}),a}function wpt(e){let t=Nt(e,"HTTP_SERVICE"),r=Nt(t[0],"PRESENTATION"),n=Nt(r[0],"VIEWLINKS");if(n.length){let a=Nt(n[0],"VIEWREF");return oa(a)}else return[]}function Vne(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0],n=Nt(r,"VIEWPROPERTIES")[0];return Nt(n,"PROPERTY").forEach(i=>{let o=Yr(i);t[o.name]=o.value}),t}function Jne(e){let t={},r=e.getElementsByTagName("HTTP_SERVICE")[0];return Nt(r,"VIEWARG").forEach(a=>{let i=Yr(a);t[i.key]=i.value}),t}function Wne(e){return xpt(e)}function Bpt(e){let t={};for(let r=0;r<e.attributes.length;r++){let n=e.attributes[r];[void 0,""].includes(n)||(t[n.name]=n.value)}return t}function xpt(e){var t={};let r=0;for(const n in e.getElementsByTagName("SELECTIONS"))if(e.getElementsByTagName("SELECTIONS").hasOwnProperty(n)){const a=e.getElementsByTagName("SELECTIONS")[n];t[r]=Bpt(a),t[r].group=Mpt(a),r++}return t}function Mpt(e){let t=Nt(e,"GROUP"),r=[];return t&&t.forEach(n=>{let a=Yr(n);a.field=Xne(n);let i=Nt(n,"GROUP");if(i&&i.length){let o=[];i.forEach(s=>{let l=Yr(s);l.field=Xne(s),o.push(l)}),a.group=o}r.push(a)}),r}function Xne(e){var t=[];let r=Nt(e,"FIELD");return r&&r.length&&r.forEach(n=>{let a=Yr(n);a.value=a.default??a.value;let i=Nt(n,"OPTION"),o=oa(i);o=o.map(s=>(s.title=s.label??"",delete s.key,s)),o.length>0&&(a.options=um(o,!1,!0)),t.push(a)}),t}function Ipt(e){let t=ppt(e);var r=[];let n=e.getElementsByTagName("HTTP_SERVICE")[0];Nt(n,"DATA").forEach(function(s){let l=[];Nt(s,"ROW").forEach(function(d){let f=Yr(d);l.push(f)});let A=cl(l,u=>u.TABD);r.push(A)});let i={};return Object.values(t).forEach(o=>{let s={},l=0;o.queryNumber!==void 0&&(l=o.queryNumber);let c=[];c=r[l];let A=[];Object.values(c).forEach((d,f)=>{let h=[...d];o.template_count&&o.inputSelections&&o.inputSelections.length===1&&(h=h.filter(y=>ca(o.inputSelections[0].condition,null,y)));const g=o.datagrid.lines;if(g&&Object.keys(h).length>0){let y;y=h[0],y&&(h=[],Object.values(g).forEach(C=>{if(C.rowStyles){const R=C.rowStyles.find(b=>b.name==="hide");if(R&&ca(R.condition,{run:{}},y))return}let w=" ",B=[],x="",M="",S="";C.columns&&(w=y[Object.values(C.columns)[0].dataField],Object.values(C.columns).forEach(R=>{R.outputFormat&&(x=R.outputFormat,M=R.inputFormat),R.type&&(S=R.type),R.cellStyles&&(B=R.cellStyles.map(b=>({...b,column:R.toDataField})),B=B.filter(b=>b.name==="cellIndicator"))})),h.push({...y,KEY:C.key,LABEL:C.label,VAL:w,symbols:B,outputFormat:x,inputFormat:M,type:S})}))}let p={};p.data=h,p.name=d[0].TABDLL,p.id=d[0].TABD;let m=p.name;(m==="undefined"||m===void 0)&&(m=`similitab_${f}`),s[`${m}-${d[0].TABD}`]=p});const u=o.label??o.excelLabel;i[u]={...o},i[u].label=u,i[u].similitabs=s,i[u].datagrid.rowStyles=i[u].datagrid.rowStyles?i[u].datagrid.rowStyles.concat(A):A}),i}function bpt(e){let t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"ERROR"),n=oa(r);return n.length?n:null}async function ly(e,t,r=null){pw=!1;let n={},a={},i=bpt(e);if(i)return i.forEach(s=>{Ki(8500,"Erreur retournée par le serveur",s)}),{viewData:{desc:null,run:null,errors:i},dynamicSelect:[]};t?(n={selections:Wne(e),attributes:Une(e),viewlinks:Kne(e),viewRefs:wpt(e)},a={args:Jne(e),properties:Vne(e),executed:!1,forceServer:!1}):(r?n=r:n={selections:Wne(e),attributes:Une(e),viewlinks:Kne(e)},a={properties:Vne(e),data:Ipt(e),args:Jne(e),executed:!0}),a.args.init!==void 0&&delete a.args.init;const o={desc:n,run:a};if(o.desc.selections){const s=Rf(o.desc.attributes.globals);let l=sl.getState();if(s==="globals_"||s===null||s===l.cti.globals.module&&Object.keys(l.cti.globals.data).length)pw=!0;else{let c=s.replace("globals_","");sl.dispatch(iy(c));const A=sl.subscribe(()=>{l=sl.getState(),s===l.cti.globals.module&&Object.keys(l.cti.globals.data).length&&(pw=!0,A())});for(;pw===!1;)await Kxe(500)}}return Spt(o)}const Kxe=e=>new Promise(t=>{setTimeout(async()=>{pw===!0||await Kxe(1e3),t()},e)});function Spt(e){let t=[],r;if(e.desc.selections){e.desc.selections=Cat(e.desc.selections,e.run.properties),r=S4(e),e.desc.attributes.title&&(e.desc.attributes.title.includes("=")?e.run.title=ca(e.desc.attributes.title,e,null,null,r):e.run.title=e.desc.attributes.title);let n=[];Object.values(e.desc.selections).forEach(a=>{a.displayText&&a.displayText!==""&&n.push(ca(a.displayText,e,null,null,r))}),e.run.viewFilters=n}return e.run.data&&(e.run.data=pat(e.run.data,e,r),t=SU(e.run.data)),{viewData:e,dynamicSelect:t,globalVariables:r}}function _E(e,t,r={},n=!1){return function(a,i){if(a(rm(!0)),t!=="")a(Qpt(e,t,n));else{const o=au(e).split("_")[0],s=jgt(o,r);if(!s)a(wH(e));else{const l=s.substring(0,7);Ko.unstable_batchedUpdates(()=>{a(YY("?p="+l,{type:"view"})),a(_E(e,l,r))})}}}}function Rpt(e,t,r){return async function(a){a(yPe(e));const i=au(e),o=au(e,t);let s=await PT(i),l=await PT(o),c=[],A,u=[],d=r;if(!s||!l){const p=au(e).split("_")[0];if(!s||d._FORCE_UPDATE){const w=await cy(p+".XML",d,1,d,!0);let B=await ly(w,1);A=B.viewData,u=B.dynamicSelect,A.errors?a(KE(A.errors)):(a(pg(B.globalVariables)),d=A.run.args,s=MB(p),await Hv(s,A.desc))}else A={desc:await dc(s)};const m=A.desc.selections,y=PY(m,[]);for(let w in d){const B=d[w];if(B&&typeof B=="string"&&(B.startsWith("#LI")||B.startsWith("#LS")||B.startsWith("#LC")||B.startsWith("#SL")||B.startsWith("#CH")||w==="MOIS"||w==="TOMOIS"||w==="CHAMP"||w==="PERIODE"||w==="TOPERIODE")){const x=y.find(M=>M.name===w);if(x&&x.UI==="combo"){const S=Hf(x.treeData,[]).find(R=>R.option.aliasData===B);S&&(d[w]=S.option.data)}}else B&&typeof B=="string"&&B.includes("-999999")&&(d[w]="-1")}if(l=MB(p,d,0),await dc(l)===null){const w=await cy(p+".XML",d,0,null,!0),B=await ly(w,0,A.desc);A=B.viewData;let x=B.dynamicSelect;A.errors?a(KE(A.errors)):(a(pg(B.globalVariables)),c=u.concat(x),await Hv(l,A.run))}}c.length>0&&a(GE(c));const f=await dc(l),h=await dc(s);a(pg(S4({run:f,desc:h})));const g=l.split("_")[2].substring(0,7);a(YY("?p="+g)),a(Tg(s,l,!1,!1)),a($h(null,null))}}function Tpt(e,t,r,n){return async function(i){const o=await dc(n);if(o&&o.executed){const s=SU(o.data);s.length>0&&i(GE(s)),i(Tg(r,n,!1,!1))}else{const s=au(e).split("_")[0],l=await cy(s+".XML",t,0);let{viewData:c,dynamicSelect:A,globalVariables:u}=await ly(l,0);c.errors?i(KE(c.errors)):(i(pg(u)),await Hv(n,c.run),A.length>0&&i(GE(A)),i(Tg(r,n,!1,!1)))}}}function Qpt(e,t,r){return async function(n){const a=au(e,t);try{const i=await PT(a);if(!i)n(wH(e,!1));else if(r===!0){const o=await dc(i);n(qne(o,i,e,t))}else try{const o=await dc(i);o.executed===!0?n(Fpt(e,i,t)):o.forceServer?n(qne(o,i,e,t)):n(Dpt(e,i))}catch(o){Ki(8401,i,o)}}catch(i){Ki(8401,a,i)}}}function Dpt(e,t){return async function(r){try{const n=au(e),a=await dc(n),i=await dc(t),o={desc:a,run:i},s=Rf(o.desc.attributes.globals);let l=sl.getState();const c=S4(o,a.selections);if(s!==l.cti.globals.module){let u=s.replace("globals_","");l.cti.globals.isLoading===!1&&sl.dispatch(iy(u))}const A=!(a.selections&&!Object.keys(a.selections).length);a===void 0?r(wH(e)):(r(pg(c)),r(Tg(n,t,A)))}catch(n){Ki(8400,`DESC: ${au(e)}, RUN: ${t}`,n)}}}function Tg(e,t,r,n=!1){return function(i){Ko.unstable_batchedUpdates(()=>{if(i($Oe(e)),t!==null){const o=t.split("_")[0],s=t.split("_")[2];i(eje(t)),i(NOe(o,s))}i(ZOe(r)),r===!0&&i(Pve(!1)),i(rm(n))})}}function Fpt(e,t,r){return async function(n){try{const a=au(e),i=await PT(a),o=await dc(t);if(i){const s=SU(o.data);s.length>0&&n(GE(s));const l=await dc(a),A=S4({desc:l,run:o},l.selection);n(pg(A)),n(Tg(i,t,!1,!1))}}catch(a){Ki(8401,t,a)}}}function wH(e){return async function(r){const n=au(e).split("_")[0],a=await cy(n+".XML");let{viewData:i,globalVariables:o}=await ly(a,1);if(i.errors)r(KE(i.errors));else{r(pg(o));const s=i.run.args;let l={},c=["-1","null"];for(let h in s){let g=s[h];c.includes(g)||(l[h]=g)}const u=U4(l).substring(0,7);r(YY("?p="+u,{type:"view"}));const d=MB(n),f=MB(n,l,0);if(await Hv(d,i.desc),i.desc.attributes.skipFirstSelection&&i.desc.attributes.skipFirstSelection==="true")r(Tpt(e,i.run.args,d,f));else{await Hv(f,i.run);const h=!(i.desc.selections&&!Object.keys(i.desc.selections).length);r(Tg(d,f,h))}}}}function qne(e,t,r,n){return async function(i,o){i(nz(!0));const s=t.split("_")[0],l=au(r),c=await dc(l),A=e.args,u=await cy(s+".XML",A,0,n);let{viewData:d,dynamicSelect:f,globalVariables:h}=await ly(u,0,c);d.errors?(i(KE(d.errors)),i(Tg(l,null,!1))):(i(pg(h)),Hv(t,d.run),f.length>0&&i(GE(f)),i(Tg(l,t,!1)),i(nz(!1)))}}const Npt=()=>async function(e,t){const r=t(),n={user:r.cti.settings.data.session.CONNECTEDUSER,viewName:r.cti.menu.item.name};await jn("modules/base/php/httpService_view_cancelExec.php",n),e(rm(!1))};async function cy(e,t,r=1,n="",a){const i=!(r===1&&!a);let o=new FormData,s={url:e,init:r,shargs:n};i&&(s._OPTION_FORCEDEFAULT=1);for(const A in s)o.append(A,s[A]);for(const A in t)A!=="init"&&o.append(A,t[A]);const l=Ii()+"modules/base/php/getVue.php";let c=await To({method:"post",url:l,data:o,credentials:"include",cache:"no-cache",headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});return c.status>=400&&ya({type:"error",duration:0,message:"Le serveur a retourné une erreur",description:"Veuillez changer de vue ou recharger la page"}),new Promise((A,u)=>{try{let d=Pg(c.data);A(d)}catch{u()}})}const _pt=(e,t)=>async function(r,n){const a={definition:e};try{if(await jn("modules/base/php/addFavorite.php",a),r(H4()),t){let i=window.location.pathname.split("/"),o="";await Pxe(i),ya({type:"warn",message:"Rechargement du favori",description:"En cours"}),r(_E(i[i.length-1],o))}}catch(i){throw console.log(i),new Error("Erreur lors de l'ajout du favori")}},kpt=e=>async function(t,r){const n={myFavorites:e};try{await jn("modules/base/php/setMyFavorites.php",n),t(H4())}catch{throw new Error("Erreur lors de la mise à jour des favoris")}},Ppt=()=>async function(e,t){e(BJ(!0));try{const r=await jn("modules/base/php/getMyfavorites.php"),[n,a]=Sit(r);Ko.unstable_batchedUpdates(()=>{e(p3e(n,a)),e(BJ(!1))})}catch{throw new Error("Erreur lors du chargement des favoris")}},BH=e=>{let t=[];return e.forEach(r=>{let n={XMLType:"MENUITEM",...r};r.children&&(n.children=BH(r.children)),delete n.key,delete n.isLeaf,delete n.editable,t.push(n)}),t};function Zne(e){let t={settings:{XMLType:"SETTINGS",children:[]}},r={XMLType:"PROFILE"};if(Object.entries(e).forEach(n=>{if(n[0]!=="auths"){let a=n[1];r[n[0]]=a}}),delete r.key,delete r.longFile,delete r.file,delete r.role,delete r.disabled_display,delete r.referentUsers,delete r.granted_modules,delete r.ctiusrdir_rule,delete r.ctisrvdir_rule,delete r.lastConnexion_token,delete r.lastConnexion_datetime,delete r.favorites,delete r.specialite,delete r.security_level_id,delete r.ctiusrdir_synchronize_force,t.settings.children.push(r),e.auths&&e.auths.forEach(n=>{if(n){let a={XMLType:"AUT",...n};delete a.key,t.settings.children.push(a)}}),e.favorites){let n={XMLType:"FAVORITE",name:"Favoris",label:"Mes favoris",children:BH(e.favorites)};t.settings.children.push(n)}return Au(t,!0)}function Opt(){let e={profil:"",name:"Nouvel utilisateur",password:"",description:"",mail:"",hasMailExploit:"false",disabled:"false",isadmin:"false",isCTI:"false",isdecideur:"false",ismedecin:"false",homeview:"",hidenames:"false",referentUser:"",referentUser2:"",referentUser3:"",referentUser4:"",referentUser5:"",referentUser_withDashboard:"false",referentUser_withFavorite:"false",security_level_id:"-1",default_ctiusrdir_synchronize_all:"false",default_ctiusrdir_synchronize_name:"false",default_ctiusrdir_synchronize_role:"false",default_ctiusrdir_synchronize_password:"false",default_ctiusrdir_synchronize_aut:"false",FAVORIS_PARTAGES_ALL:!1,FAVORIS_PARTAGES_PMSI:!1,FAVORIS_PARTAGES_PMSISSR:!1,FAVORIS_PARTAGES_PMSIPSY:!1,FAVORIS_PARTAGES_ACTIVITE:!1,FAVORIS_PARTAGES_RH:!1,FAVORIS_PARTAGES_COMPTA:!1,FAVORIS_PARTAGES_EIS:!1,FAVORIS_PARTAGES_PARTIAL:!1,FAVORIS_PARTAGES_PMSIHAD:!1};const t=[{type:"module",module:"iCTI_eis",name:"iCTI_eis",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_qualite",name:"iCTI_qualite",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsi",name:"iCTI_pmsi",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsimpact",name:"iCTI_pmsimpact",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsissr",name:"iCTI_pmsissr",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsipsy",name:"iCTI_pmsipsy",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_pmsihad",name:"iCTI_pmsihad",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_ssae",name:"iCTI_ssae",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_dpi",name:"iCTI_dpi",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_activite",name:"iCTI_activite",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_compta",name:"iCTI_compta",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_rh",name:"iCTI_rh",granted:"none",refProfile:"*user",dataProfileGranted:"partial",dataProfile:"NONE"},{type:"module",module:"iCTI_eco",name:"iCTI_eco",granted:"none",refProfile:"*user",dataGranted:"partial",dataRule1:"NONE"},{type:"module",module:"iCTI_specifique",name:"iCTI_specifique",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_tools",name:"iCTI_tools",granted:"none",refProfile:"*user"},{type:"module",module:"iCTI_tools",name:"iCTI_tools",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_ALL",name:"FAVORIS_PARTAGES_ALL",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PMSI",name:"FAVORIS_PARTAGES_PMSI",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PMSISSR",name:"FAVORIS_PARTAGES_PMSISSR",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PMSIPSY",name:"FAVORIS_PARTAGES_PMSIPSY",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_ACTIVITE",name:"FAVORIS_PARTAGES_ACTIVITE",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_RH",name:"FAVORIS_PARTAGES_RH",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_COMPTA",name:"FAVORIS_PARTAGES_COMPTA",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_EIS",name:"FAVORIS_PARTAGES_EIS",granted:"none",refProfile:"*user"},{type:"module",module:"FAVORIS_PARTAGES_PARTIAL",name:"FAVORIS_PARTAGES_PARTIAL",granted:"none",refProfile:"*user"},{type:"token",name:"*ALL",granted:"full"}];return e.auths=t,e}const jpt=e=>({...e,code:"",profil:"",name:`Copie de ${e.name}`,password:"",auths:[...e.auths],favorites:[...e.favorites]}),Vxe=({text:e,nodeKey:t,setLabel:r})=>{const[n,a]=E.useState(e),[i,o]=E.useState(!1),[s,l]=E.useState(!1),c=E.useRef(),A=wn();E.useEffect(()=>{s&&c.current.focus(),A(v3e(s))},[s,A]);const u=g=>{a(g.target.value)},d=()=>{o(!i)},f=()=>{l(!s)},h=g=>{l(!1),r(t,n)};return v.jsx("div",{className:"editable-title",onMouseEnter:d,onMouseLeave:d,children:s?v.jsx(jt,{ref:c,draggable:!1,style:{marginLeft:"6px",width:"50%"},value:n,onChange:u,onBlur:h}):v.jsx(v.Fragment,{children:v.jsx("div",{className:"editable-label",onClick:f,children:n})})})};Vxe.propTypes={text:W.string,nodeKey:W.string,setLabel:W.func};const{DirectoryTree:$ne}=Id,zpt=()=>{const e=wn(),[t,r]=E.useState([]),[n,a]=E.useState(!1),[i,o]=E.useState([]),[s,l]=E.useState([]),[c,A]=E.useState([]),[u,d]=E.useState([]),[f,h]=E.useState([]),g=ut(P=>P.cti.components.favorites.data),p=ut(P=>P.cti.components.favorites.loading),m=ut(P=>P.cti.components.favorites.selected);E.useEffect(()=>{e(Ppt())},[e]),E.useEffect(()=>{if(g.myFavorites){const P=y(g.myFavorites,"",!0);r(P)}if(g.allViews){const P=y(g.allViews);o(P)}},[g,e]);function y(P,k="",j=!1){let Y=[];return Object.values(P).forEach((X,K)=>{const U=(k!==""?k+"_":"")+K;let H={...X,key:U,isLeaf:!0,title:X.label,editable:j};delete H.icon,X.children&&(H.children=y(X.children,U,j),H.isLeaf=!1,H.checkable=!1),Y.push(H)}),Y}function C(P,k){let j=t.map(Y=>({...Y}));B(j,P,(Y,X,K)=>{Y.label=k}),r(j)}function w(P,k=""){let j=[];return P.forEach((Y,X)=>{const K=(k!==""?k+"_":"")+X+Y.name;Y.key=K,Y.children&&(Y.children=w(Y.children,K),Y.isLeaf=!1),j.push(Y)}),j}function B(P,k,j){for(let Y=0;Y<P.length;Y++){if(P[Y].key===k)return j(P[Y],Y,P);P[Y].children&&B(P[Y].children,k,j)}}const x=(P,k,j)=>{hc[P]({message:k,description:j})},M=()=>{a(!0);const P={name:"Nouveau dossier",label:"Nouveau dossier",editable:!0,key:(t.length+1).toString(),view:"",isLeaf:!1,children:[]},k=w([...t,P]);r(k)},S=(P,k)=>{if(k.checked)h([...f,...k.checkedNodes]);else{const j=f.findIndex(X=>X.key===k.node.key);let Y=[...f];Y.splice(j,1),h(Y)}l(P)},R=(P,k)=>{if(k.checked)d([...u,k.node]);else{const j=u.findIndex(X=>X.key===k.node.key);let Y=[...u];Y.splice(j,1),d(Y)}A(P)},b=()=>{a(!0);const P=y(u,"",!0),k=w([...t,...P]);r(k),d([]),A([])},T=()=>{a(!0);let P=t.map(j=>({...j}));f.forEach(j=>{B(P,j.key,(Y,X,K)=>{K.splice(X,1)})});const k=w(P);h([]),l([]),r(k)},D=({event:P,node:k,dragNode:j,dropPosition:Y,dropToGap:X})=>{a(!0);let K=t.map(L=>({...L}));const U=k.key,H=j.key;if(!X)B(K,U,L=>{if(!L.isLeaf){let V;B(K,H,(J,ee,ae)=>{V={...J},ae.splice(ee,1)}),L.children=L.children||[],L.children.push(V)}});else if((k.children||[]).length>0&&k.expanded&&Y===1){let L;B(K,H,(V,J,ee)=>{L={...V},ee.splice(J,1)}),B(K,U,V=>{V.children=V.children||[],V.children.unshift(L)})}else{let L;B(K,H,(ee,ae,ne)=>{L={...ee},ne.splice(ae,1)});let V,J;B(K,U,(ee,ae,ne)=>{V=ne,J=ae}),Y===-1?V.splice(J,0,L):V.splice(J+1,0,L)}r(K)},F=()=>{let P={sendFavorites:{XMLType:"MYFAVORITES",children:BH(t)}};const k=Au(P,!0);x("info","Mise à jour en cours","La mise à jour de vos favoris est en cours. Cela va prendre quelques instants"),e(kpt(k))},N=P=>P?.map(k=>({...k,title:k.editable?v.jsx(Vxe,{text:k.label,nodeKey:k.key,setLabel:C}):k.label,children:k.children?N(k.children):null})),_=N(t);return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des favoris"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("h1",{className:"header-title",children:"Organisation de mes favoris"}),v.jsx("div",{className:"favorites-actions",children:v.jsx(ny,{handleClick:F,disabledAction:!n,toolTipTitle:"Enregistrer"})})]}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"favorites-editor",children:[v.jsxs("div",{className:"favorites-editor-items",children:[v.jsxs("div",{className:"tree-header",children:[v.jsx("h2",{children:"Mes Favoris"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(yt,{type:"link",onClick:M,children:v.jsx(TFe,{})}),v.jsx(yt,{type:"link",onClick:T,children:v.jsx(ki,{})})]})]}),p?null:v.jsx($ne,{checkable:!0,treeData:_,draggable:!m,blockNode:!0,onDrop:D,checkedKeys:s,onCheck:S})]}),v.jsx("div",{className:"transfer-actions",children:v.jsx(yt,{type:"link",onClick:b,children:v.jsx(EQ,{})})}),v.jsxs("div",{className:"favorites-editor-menu",children:[v.jsx("h2",{className:"tree-header",children:"Vues disponibles"}),p?v.jsx("div",{className:"favorites-loader",children:v.jsx(go,{size:"small"})}):v.jsx($ne,{checkable:!0,treeData:i,checkedKeys:c,onCheck:R})]})]})})]})};var bP={},SP={exports:{}},RP={exports:{}},eae;function Xa(){return eae||(eae=1,(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(RP)),RP.exports}var tae;function Ha(){return tae||(tae=1,(function(e){var t=Xa().default;function r(n,a){if(typeof WeakMap=="function")var i=new WeakMap,o=new WeakMap;return(e.exports=r=function(l,c){if(!c&&l&&l.__esModule)return l;var A,u,d={__proto__:null,default:l};if(l===null||t(l)!="object"&&typeof l!="function")return d;if(A=c?o:i){if(A.has(l))return A.get(l);A.set(l,d)}for(var f in l)f!=="default"&&{}.hasOwnProperty.call(l,f)&&((u=(A=Object.defineProperty)&&Object.getOwnPropertyDescriptor(l,f))&&(u.get||u.set)?A(d,f,u):d[f]=l[f]);return d},e.exports.__esModule=!0,e.exports.default=e.exports)(n,a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(SP)),SP.exports}var TP={exports:{}},rae;function qr(){return rae||(rae=1,(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(TP)),TP.exports}var QP={exports:{}},DP={exports:{}},FP={exports:{}},nae;function Lpt(){return nae||(nae=1,(function(e){var t=Xa().default;function r(n,a){if(t(n)!="object"||!n)return n;var i=n[Symbol.toPrimitive];if(i!==void 0){var o=i.call(n,a||"default");if(t(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(FP)),FP.exports}var aae;function Jxe(){return aae||(aae=1,(function(e){var t=Xa().default,r=Lpt();function n(a){var i=r(a,"string");return t(i)=="symbol"?i:i+""}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(DP)),DP.exports}var iae;function oo(){return iae||(iae=1,(function(e){var t=Jxe();function r(n,a,i){return(a=t(a))in n?Object.defineProperty(n,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[a]=i,n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(QP)),QP.exports}var NP={exports:{}},oae;function Ga(){return oae||(oae=1,(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(r){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var i in a)({}).hasOwnProperty.call(a,i)&&(r[i]=a[i])}return r},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(NP)),NP.exports}var II={exports:{}},V1={},_P={exports:{}},sae;function ul(){return sae||(sae=1,(function(e){var t=oo();function r(a,i){var o=Object.keys(a);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),o.push.apply(o,s)}return o}function n(a){for(var i=1;i<arguments.length;i++){var o=arguments[i]!=null?arguments[i]:{};i%2?r(Object(o),!0).forEach(function(s){t(a,s,o[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(s){Object.defineProperty(a,s,Object.getOwnPropertyDescriptor(o,s))})}return a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(_P)),_P.exports}var bI={},lae;function Ypt(){if(lae)return bI;lae=1,Object.defineProperty(bI,"__esModule",{value:!0});var e={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"};return bI.default=e,bI}var J1={},kP={exports:{}},PP={exports:{}},cae;function Wxe(){return cae||(cae=1,(function(e){function t(r){if(Array.isArray(r))return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(PP)),PP.exports}var OP={exports:{}},Aae;function Upt(){return Aae||(Aae=1,(function(e){function t(r,n){var a=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(a!=null){var i,o,s,l,c=[],A=!0,u=!1;try{if(s=(a=a.call(r)).next,n===0){if(Object(a)!==a)return;A=!1}else for(;!(A=(i=s.call(a)).done)&&(c.push(i.value),c.length!==n);A=!0);}catch(d){u=!0,o=d}finally{try{if(!A&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(u)throw o}}return c}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(OP)),OP.exports}var jP={exports:{}},zP={exports:{}},uae;function Xxe(){return uae||(uae=1,(function(e){function t(r,n){(n==null||n>r.length)&&(n=r.length);for(var a=0,i=Array(n);a<n;a++)i[a]=r[a];return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(zP)),zP.exports}var dae;function xH(){return dae||(dae=1,(function(e){var t=Xxe();function r(n,a){if(n){if(typeof n=="string")return t(n,a);var i={}.toString.call(n).slice(8,-1);return i==="Object"&&n.constructor&&(i=n.constructor.name),i==="Map"||i==="Set"?Array.from(n):i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(n,a):void 0}}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(jP)),jP.exports}var LP={exports:{}},fae;function qxe(){return fae||(fae=1,(function(e){function t(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(LP)),LP.exports}var hae;function _d(){return hae||(hae=1,(function(e){var t=Wxe(),r=Upt(),n=xH(),a=qxe();function i(o,s){return t(o)||r(o,s)||n(o,s)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(kP)),kP.exports}var YP={exports:{}},UP={exports:{}},gae;function Hpt(){return gae||(gae=1,(function(e){function t(r,n){if(r==null)return{};var a={};for(var i in r)if({}.hasOwnProperty.call(r,i)){if(n.indexOf(i)!==-1)continue;a[i]=r[i]}return a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(UP)),UP.exports}var pae;function Vg(){return pae||(pae=1,(function(e){var t=Hpt();function r(n,a){if(n==null)return{};var i,o,s=t(n,a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(n);for(o=0;o<l.length;o++)i=l[o],a.indexOf(i)===-1&&{}.propertyIsEnumerable.call(n,i)&&(s[i]=n[i])}return s}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(YP)),YP.exports}var W1={},vae;function MH(){if(vae)return W1;vae=1,Object.defineProperty(W1,"__esModule",{value:!0}),W1.default=void 0;var e=Ur(),t=(0,e.createContext)({});return W1.default=t,W1}var X1={},Xs={};const Zxe=Ya(O4e);var rc={},mae;function $xe(){if(mae)return rc;mae=1,Object.defineProperty(rc,"__esModule",{value:!0}),rc.call=i,rc.default=void 0,rc.note=n,rc.noteOnce=s,rc.preMessage=void 0,rc.resetWarned=a,rc.warning=r,rc.warningOnce=o;var e={},t=rc.preMessage=function(c){};function r(l,c){}function n(l,c){}function a(){e={}}function i(l,c,A){!c&&!e[A]&&(l(!1,A),e[A]=!0)}function o(l,c){i(r,l,c)}function s(l,c){i(n,l,c)}return o.preMessage=t,o.resetWarned=a,o.noteOnce=s,rc.default=o,rc}var Tp={},SI={},Eae;function Dx(){if(Eae)return SI;Eae=1,Object.defineProperty(SI,"__esModule",{value:!0}),SI.default=e;function e(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}return SI}var RI={},yae;function Gpt(){if(yae)return RI;yae=1,Object.defineProperty(RI,"__esModule",{value:!0}),RI.default=e;function e(t,r){if(!t)return!1;if(t.contains)return t.contains(r);for(var n=r;n;){if(n===t)return!0;n=n.parentNode}return!1}return RI}var Cae;function IH(){if(Cae)return Tp;Cae=1;var e=qr().default;Object.defineProperty(Tp,"__esModule",{value:!0}),Tp.clearContainerCache=p,Tp.injectCSS=d,Tp.removeCSS=h,Tp.updateCSS=m;var t=e(ul()),r=e(Dx()),n=e(Gpt()),a="data-rc-order",i="data-rc-priority",o="rc-util-key",s=new Map;function l(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=y.mark;return C?C.startsWith("data-")?C:"data-".concat(C):o}function c(y){if(y.attachTo)return y.attachTo;var C=document.querySelector("head");return C||document.body}function A(y){return y==="queue"?"prependQueue":y?"prepend":"append"}function u(y){return Array.from((s.get(y)||y).children).filter(function(C){return C.tagName==="STYLE"})}function d(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!(0,r.default)())return null;var w=C.csp,B=C.prepend,x=C.priority,M=x===void 0?0:x,S=A(B),R=S==="prependQueue",b=document.createElement("style");b.setAttribute(a,S),R&&M&&b.setAttribute(i,"".concat(M)),w!=null&&w.nonce&&(b.nonce=w?.nonce),b.innerHTML=y;var T=c(C),D=T.firstChild;if(B){if(R){var F=(C.styles||u(T)).filter(function(N){if(!["prepend","prependQueue"].includes(N.getAttribute(a)))return!1;var _=Number(N.getAttribute(i)||0);return M>=_});if(F.length)return T.insertBefore(b,F[F.length-1].nextSibling),b}T.insertBefore(b,D)}else T.appendChild(b);return b}function f(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=c(C);return(C.styles||u(w)).find(function(B){return B.getAttribute(l(C))===y})}function h(y){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},w=f(y,C);if(w){var B=c(C);B.removeChild(w)}}function g(y,C){var w=s.get(y);if(!w||!(0,n.default)(document,w)){var B=d("",C),x=B.parentNode;s.set(y,x),y.removeChild(B)}}function p(){s.clear()}function m(y,C){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},B=c(w),x=u(B),M=(0,t.default)((0,t.default)({},w),{},{styles:x});g(B,M);var S=f(C,M);if(S){var R,b;if((R=M.csp)!==null&&R!==void 0&&R.nonce&&S.nonce!==((b=M.csp)===null||b===void 0?void 0:b.nonce)){var T;S.nonce=(T=M.csp)===null||T===void 0?void 0:T.nonce}return S.innerHTML!==y&&(S.innerHTML=y),S}var D=d(y,M);return D.setAttribute(l(M),C),D}return Tp}var wae;function bH(){if(wae)return Xs;wae=1;var e=qr(),t=Xa();Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.generate=g,Xs.getSecondaryColor=p,Xs.iconStyles=void 0,Xs.isIconDefinition=f,Xs.normalizeAttrs=h,Xs.normalizeTwoToneColors=m,Xs.useInsertStyles=Xs.svgBaseProps=void 0,Xs.warning=d;var r=e(ul()),n=e(Xa()),a=Zxe,i=u(Ur()),o=e($xe()),s=IH(),l=e(MH()),c=e(Ghe());function A(C){if(typeof WeakMap!="function")return null;var w=new WeakMap,B=new WeakMap;return(A=function(M){return M?B:w})(C)}function u(C,w){if(C&&C.__esModule)return C;if(C===null||t(C)!="object"&&typeof C!="function")return{default:C};var B=A(w);if(B&&B.has(C))return B.get(C);var x={__proto__:null},M=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in C)if(S!=="default"&&{}.hasOwnProperty.call(C,S)){var R=M?Object.getOwnPropertyDescriptor(C,S):null;R&&(R.get||R.set)?Object.defineProperty(x,S,R):x[S]=C[S]}return x.default=C,B&&B.set(C,x),x}function d(C,w){(0,o.default)(C,"[@ant-design/icons] ".concat(w))}function f(C){return(0,n.default)(C)==="object"&&typeof C.name=="string"&&typeof C.theme=="string"&&((0,n.default)(C.icon)==="object"||typeof C.icon=="function")}function h(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(C).reduce(function(w,B){var x=C[B];switch(B){case"class":w.className=x,delete w.class;break;default:delete w[B],w[(0,c.default)(B)]=x}return w},{})}function g(C,w,B){return B?i.default.createElement(C.tag,(0,r.default)((0,r.default)({key:w},h(C.attrs)),B),(C.children||[]).map(function(x,M){return g(x,"".concat(w,"-").concat(C.tag,"-").concat(M))})):i.default.createElement(C.tag,(0,r.default)({key:w},h(C.attrs)),(C.children||[]).map(function(x,M){return g(x,"".concat(w,"-").concat(C.tag,"-").concat(M))}))}function p(C){return(0,a.generate)(C)[0]}function m(C){return C?Array.isArray(C)?C:[C]:[]}Xs.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var y=Xs.iconStyles=`
.anticon {
  display: inline-flex;
  alignItems: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`;return Xs.useInsertStyles=function(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:y,B=(0,i.useContext)(l.default),x=B.csp;(0,i.useEffect)(function(){(0,s.updateCSS)(w,"@ant-design-icons",{prepend:!0,csp:x})},[])},Xs}var Bae;function eMe(){if(Bae)return X1;Bae=1;var e=qr();Object.defineProperty(X1,"__esModule",{value:!0}),X1.default=void 0;var t=e(Vg()),r=e(ul()),n=bH(),a=["icon","className","onClick","style","primaryColor","secondaryColor"],i={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function o(c){var A=c.primaryColor,u=c.secondaryColor;i.primaryColor=A,i.secondaryColor=u||(0,n.getSecondaryColor)(A),i.calculated=!!u}function s(){return(0,r.default)({},i)}var l=function(A){var u=A.icon,d=A.className,f=A.onClick,h=A.style,g=A.primaryColor,p=A.secondaryColor,m=(0,t.default)(A,a),y=i;if(g&&(y={primaryColor:g,secondaryColor:p||(0,n.getSecondaryColor)(g)}),(0,n.useInsertStyles)(),(0,n.warning)((0,n.isIconDefinition)(u),"icon should be icon definiton, but got ".concat(u)),!(0,n.isIconDefinition)(u))return null;var C=u;return C&&typeof C.icon=="function"&&(C=(0,r.default)((0,r.default)({},C),{},{icon:C.icon(y.primaryColor,y.secondaryColor)})),(0,n.generate)(C.icon,"svg-".concat(C.name),(0,r.default)({className:d,onClick:f,style:h,"data-icon":C.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},m))};return l.displayName="IconReact",l.getTwoToneColors=s,l.setTwoToneColors=o,X1.default=l,X1}var q1={},xae;function Kpt(){if(xae)return q1;xae=1;var e=qr();Object.defineProperty(q1,"__esModule",{value:!0}),q1.getTwoToneColor=i,q1.setTwoToneColor=a;var t=e(_d()),r=e(eMe()),n=bH();function a(o){var s=(0,n.normalizeTwoToneColors)(o),l=(0,t.default)(s,2),c=l[0],A=l[1];return r.default.setTwoToneColors({primaryColor:c,secondaryColor:A})}function i(){var o=r.default.getTwoToneColors();return o.calculated?[o.primaryColor,o.secondaryColor]:o.primaryColor}return q1}var Mae;function kd(){if(Mae)return J1;Mae=1;var e=qr(),t=Xa();Object.defineProperty(J1,"__esModule",{value:!0}),J1.default=void 0;var r=e(ul()),n=e(_d()),a=e(oo()),i=e(Vg()),o=h(Ur()),s=e(Ro()),l=e(MH()),c=e(eMe()),A=Kpt(),u=bH(),d=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];function f(p){if(typeof WeakMap!="function")return null;var m=new WeakMap,y=new WeakMap;return(f=function(w){return w?y:m})(p)}function h(p,m){if(p&&p.__esModule)return p;if(p===null||t(p)!="object"&&typeof p!="function")return{default:p};var y=f(m);if(y&&y.has(p))return y.get(p);var C={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var B in p)if(B!=="default"&&{}.hasOwnProperty.call(p,B)){var x=w?Object.getOwnPropertyDescriptor(p,B):null;x&&(x.get||x.set)?Object.defineProperty(C,B,x):C[B]=p[B]}return C.default=p,y&&y.set(p,C),C}(0,A.setTwoToneColor)("#1890ff");var g=o.forwardRef(function(p,m){var y=p.className,C=p.icon,w=p.spin,B=p.rotate,x=p.tabIndex,M=p.onClick,S=p.twoToneColor,R=(0,i.default)(p,d),b=o.useContext(l.default),T=b.prefixCls,D=T===void 0?"anticon":T,F=b.rootClassName,N=(0,s.default)(F,D,(0,a.default)((0,a.default)({},"".concat(D,"-").concat(C.name),!!C.name),"".concat(D,"-spin"),!!w||C.name==="loading"),y),_=x;_===void 0&&M&&(_=-1);var P=B?{msTransform:"rotate(".concat(B,"deg)"),transform:"rotate(".concat(B,"deg)")}:void 0,k=(0,u.normalizeTwoToneColors)(S),j=(0,n.default)(k,2),Y=j[0],X=j[1];return o.createElement("span",(0,r.default)((0,r.default)({role:"img","aria-label":C.name},R),{},{ref:m,tabIndex:_,onClick:M,className:N}),o.createElement(c.default,{icon:C,primaryColor:Y,secondaryColor:X,style:P}))});return g.displayName="AntdIcon",g.getTwoToneColor=A.getTwoToneColor,g.setTwoToneColor=A.setTwoToneColor,J1.default=g,J1}var Iae;function Vpt(){if(Iae)return V1;Iae=1;var e=qr(),t=Xa();Object.defineProperty(V1,"__esModule",{value:!0}),V1.default=void 0;var r=e(ul()),n=s(Ur()),a=e(Ypt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return V1.default=c,V1}var bae;function tMe(){return bae||(bae=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Vpt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(II,II.exports)),II.exports}const Jpt=Ya(I$e);var HP={},GP={},TI={},Sae;function G4(){if(Sae)return TI;Sae=1,Object.defineProperty(TI,"__esModule",{value:!0}),TI.default=e;function e(t,r){var n=Object.assign({},t);return Array.isArray(r)&&r.forEach(function(a){delete n[a]}),n}return TI}var KP={},QI={},Rae;function rMe(){if(Rae)return QI;Rae=1;var e=Ha().default;Object.defineProperty(QI,"__esModule",{value:!0}),QI.default=r;var t=e(Ur());function r(n,a,i){var o=t.useRef({});return(!("value"in o.current)||i(o.current.condition,a))&&(o.current.value=n(),o.current.condition=a),o.current.value}return QI}var Z1={},VP={exports:{}},JP={exports:{}},Tae;function Wpt(){return Tae||(Tae=1,(function(e){var t=Xxe();function r(n){if(Array.isArray(n))return t(n)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(JP)),JP.exports}var WP={exports:{}},Qae;function nMe(){return Qae||(Qae=1,(function(e){function t(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(WP)),WP.exports}var XP={exports:{}},Dae;function Xpt(){return Dae||(Dae=1,(function(e){function t(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(XP)),XP.exports}var Fae;function K4(){return Fae||(Fae=1,(function(e){var t=Wpt(),r=nMe(),n=xH(),a=Xpt();function i(o){return t(o)||r(o)||n(o)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(VP)),VP.exports}var qP={exports:{}},Nae;function qpt(){return Nae||(Nae=1,(function(e){var t=Wxe(),r=nMe(),n=xH(),a=qxe();function i(o){return t(o)||r(o)||n(o)||a()}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports})(qP)),qP.exports}var DI={},_ae;function Zpt(){if(_ae)return DI;_ae=1,Object.defineProperty(DI,"__esModule",{value:!0}),DI.default=e;function e(t,r){for(var n=t,a=0;a<r.length;a+=1){if(n==null)return;n=n[r[a]]}return n}return DI}var kae;function $pt(){if(kae)return Z1;kae=1;var e=qr().default;Object.defineProperty(Z1,"__esModule",{value:!0}),Z1.default=s,Z1.merge=u;var t=e(Xa()),r=e(ul()),n=e(K4()),a=e(qpt()),i=e(Zpt());function o(d,f,h,g){if(!f.length)return h;var p=(0,a.default)(f),m=p[0],y=p.slice(1),C;return!d&&typeof m=="number"?C=[]:Array.isArray(d)?C=(0,n.default)(d):C=(0,r.default)({},d),g&&h===void 0&&y.length===1?delete C[m][y[0]]:C[m]=o(C[m],y,h,g),C}function s(d,f,h){var g=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return f.length&&g&&h===void 0&&!(0,i.default)(d,f.slice(0,-1))?d:o(d,f,h,g)}function l(d){return(0,t.default)(d)==="object"&&d!==null&&Object.getPrototypeOf(d)===Object.prototype}function c(d){return Array.isArray(d)?[]:{}}var A=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function u(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var g=c(f[0]);return f.forEach(function(p){function m(y,C){var w=new Set(C),B=(0,i.default)(p,y),x=Array.isArray(B);if(x||l(B)){if(!w.has(B)){w.add(B);var M=(0,i.default)(g,y);x?g=s(g,y,[]):(!M||(0,t.default)(M)!=="object")&&(g=s(g,y,c(B))),A(B).forEach(function(S){m([].concat((0,n.default)(y),[S]),w)})}}else g=s(g,y,B)}m([])}),g}return Z1}var ZP={},Pae;function evt(){return Pae||(Pae=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Ur();e.default=(0,t.createContext)(void 0)})(ZP)),ZP}var $P={},e3={},Oae;function Cm(){return Oae||(Oae=1,(function(e){var t=Ha().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.noop=n,Object.defineProperty(e,"resetWarned",{enumerable:!0,get:function(){return r.resetWarned}});var r=t($xe());function n(){}var a=n;e.default=a})(e3)),e3}var $1={},t3={},eC={},jae;function tvt(){if(jae)return eC;jae=1,Object.defineProperty(eC,"__esModule",{value:!0}),eC.default=void 0;var e={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"};return eC.default=e,eC}var r3={},n3={},tC={},zae;function rvt(){if(zae)return tC;zae=1,Object.defineProperty(tC,"__esModule",{value:!0}),tC.default=void 0;var e={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,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"},t=e;return tC.default=t,tC}var a3={},Lae;function aMe(){return Lae||(Lae=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={placeholder:"Select time",rangePlaceholder:["Start time","End time"]};e.default=t})(a3)),a3}var Yae;function iMe(){return Yae||(Yae=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ga()),n=t(rvt()),a=t(aMe()),i={lang:(0,r.default)({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"]},n.default),timePickerLocale:(0,r.default)({},a.default)};e.default=i})(n3)),n3}var Uae;function nvt(){return Uae||(Uae=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(iMe());e.default=r.default})(r3)),r3}var Hae;function SH(){return Hae||(Hae=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(tvt()),n=t(nvt()),a=t(iMe()),i=t(aMe()),o="${label} is not a valid ${type}",s={locale:"en",Pagination:r.default,DatePicker:a.default,TimePicker:i.default,Calendar:n.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"},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",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"},PageHeader:{back:"Back"},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:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},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"}};e.default=s})(t3)),t3}var Gae;function oMe(){if(Gae)return $1;Gae=1;var e=qr().default;Object.defineProperty($1,"__esModule",{value:!0}),$1.changeConfirmLocale=a,$1.getConfirmLocale=i;var t=e(Ga()),r=e(SH()),n=(0,t.default)({},r.default.Modal);function a(o){o?n=(0,t.default)((0,t.default)({},n),o):n=(0,t.default)({},r.default.Modal)}function i(){return n}return $1}var i3={},Kae;function sMe(){return Kae||(Kae=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Ur(),r=(0,t.createContext)(void 0);e.default=r})(i3)),i3}var Vae;function avt(){return Vae||(Vae=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ANT_MARK=void 0;var n=r(Ga()),a=t(Ur());r(Cm());var i=oMe(),o=r(sMe());e.ANT_MARK="internalMark";var s=function(c){var A=c.locale,u=A===void 0?{}:A,d=c.children;c._ANT_MARK__,a.useEffect(function(){return(0,i.changeConfirmLocale)(u&&u.Modal),function(){(0,i.changeConfirmLocale)()}},[u]);var f=a.useMemo(function(){return(0,n.default)((0,n.default)({},u),{exist:!0})},[u]);return a.createElement(o.default.Provider,{value:f},d)};e.default=s})($P)),$P}var o3={},s3={},Jae;function ivt(){return Jae||(Jae=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(SH());e.default=r.default})(s3)),s3}var Wae;function lMe(){return Wae||(Wae=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.useLocaleReceiver=e.default=void 0;var n=r(Ga()),a=t(Ur()),i=r(sMe()),o=r(ivt()),s=function(c){var A=c.componentName,u=A===void 0?"global":A,d=c.defaultLocale,f=c.children,h=a.useContext(i.default),g=a.useMemo(function(){var m,y=d||o.default[u],C=(m=h?.[u])!==null&&m!==void 0?m:{};return(0,n.default)((0,n.default)({},y instanceof Function?y():y),C||{})},[u,d,h]),p=a.useMemo(function(){var m=h&&h.locale;return h&&h.exist&&!m?o.default.locale:m},[h]);return f(g,p,h)};e.default=s,e.useLocaleReceiver=function(c,A){var u=a.useContext(i.default),d=a.useMemo(function(){var f,h=A||o.default[c],g=(f=u?.[c])!==null&&f!==void 0?f:{};return(0,n.default)((0,n.default)({},typeof h=="function"?h():h),g||{})},[c,A,u]);return[d]}})(o3)),o3}var l3={},FI={exports:{}},rC={},NI={},Xae;function ovt(){if(Xae)return NI;Xae=1,Object.defineProperty(NI,"__esModule",{value:!0});var e={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"};return NI.default=e,NI}var qae;function svt(){if(qae)return rC;qae=1;var e=qr(),t=Xa();Object.defineProperty(rC,"__esModule",{value:!0}),rC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(ovt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return rC.default=c,rC}var Zae;function lvt(){return Zae||(Zae=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(svt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(FI,FI.exports)),FI.exports}var _I={exports:{}},nC={},kI={},$ae;function cvt(){if($ae)return kI;$ae=1,Object.defineProperty(kI,"__esModule",{value:!0});var e={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"};return kI.default=e,kI}var eie;function Avt(){if(eie)return nC;eie=1;var e=qr(),t=Xa();Object.defineProperty(nC,"__esModule",{value:!0}),nC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(cvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return nC.default=c,nC}var tie;function RH(){return tie||(tie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Avt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(_I,_I.exports)),_I.exports}var PI={exports:{}},aC={},OI={},rie;function uvt(){if(rie)return OI;rie=1,Object.defineProperty(OI,"__esModule",{value:!0});var e={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"};return OI.default=e,OI}var nie;function dvt(){if(nie)return aC;nie=1;var e=qr(),t=Xa();Object.defineProperty(aC,"__esModule",{value:!0}),aC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(uvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return aC.default=c,aC}var aie;function fvt(){return aie||(aie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(dvt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(PI,PI.exports)),PI.exports}var jI={exports:{}},iC={},zI={},iie;function hvt(){if(iie)return zI;iie=1,Object.defineProperty(zI,"__esModule",{value:!0});var e={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"};return zI.default=e,zI}var oie;function gvt(){if(oie)return iC;oie=1;var e=qr(),t=Xa();Object.defineProperty(iC,"__esModule",{value:!0}),iC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(hvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return iC.default=c,iC}var sie;function pvt(){return sie||(sie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(gvt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(jI,jI.exports)),jI.exports}var LI={exports:{}},oC={},YI={},lie;function vvt(){if(lie)return YI;lie=1,Object.defineProperty(YI,"__esModule",{value:!0});var e={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"};return YI.default=e,YI}var cie;function mvt(){if(cie)return oC;cie=1;var e=qr(),t=Xa();Object.defineProperty(oC,"__esModule",{value:!0}),oC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(vvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return oC.default=c,oC}var Aie;function cMe(){return Aie||(Aie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(mvt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(LI,LI.exports)),LI.exports}const AMe=Ya(BYe);var c3={},UI={},sC={},A3={exports:{}},uie;function Eu(){return uie||(uie=1,(function(e){function t(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(A3)),A3.exports}var u3={exports:{}},die;function Pd(){return die||(die=1,(function(e){var t=Jxe();function r(a,i){for(var o=0;o<i.length;o++){var s=i[o];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(a,t(s.key),s)}}function n(a,i,o){return i&&r(a.prototype,i),o&&r(a,o),Object.defineProperty(a,"prototype",{writable:!1}),a}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(u3)),u3.exports}var d3={exports:{}},f3={exports:{}},fie;function Evt(){return fie||(fie=1,(function(e){function t(r,n){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(a,i){return a.__proto__=i,a},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(f3)),f3.exports}var hie;function Od(){return hie||(hie=1,(function(e){var t=Evt();function r(n,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(a&&a.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),a&&t(n,a)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(d3)),d3.exports}var h3={exports:{}},g3={exports:{}},gie;function jd(){return gie||(gie=1,(function(e){function t(r){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(g3)),g3.exports}var p3={exports:{}},pie;function TH(){return pie||(pie=1,(function(e){function t(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e.exports=t=function(){return!!r},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(p3)),p3.exports}var v3={exports:{}},m3={exports:{}},vie;function Jg(){return vie||(vie=1,(function(e){function t(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(m3)),m3.exports}var mie;function zd(){return mie||(mie=1,(function(e){var t=Xa().default,r=Jg();function n(a,i){if(i&&(t(i)=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return r(a)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(v3)),v3.exports}var Eie;function yvt(){return Eie||(Eie=1,(function(e){var t=jd(),r=TH(),n=zd();function a(i){var o=r();return function(){var s,l=t(i);if(o){var c=t(this).constructor;s=Reflect.construct(l,arguments,c)}else s=l.apply(this,arguments);return n(this,s)}}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports})(h3)),h3.exports}var yie;function Cvt(){if(yie)return sC;yie=1;var e=qr(),t=Xa();Object.defineProperty(sC,"__esModule",{value:!0}),sC.default=void 0;var r=e(Ga()),n=e(oo()),a=e(Eu()),i=e(Pd()),o=e(Od()),s=e(yvt()),l=d(Ur()),c=e(mY()),A=e(Ro());function u(h){if(typeof WeakMap!="function")return null;var g=new WeakMap,p=new WeakMap;return(u=function(y){return y?p:g})(h)}function d(h,g){if(h&&h.__esModule)return h;if(h===null||t(h)!=="object"&&typeof h!="function")return{default:h};var p=u(g);if(p&&p.has(h))return p.get(h);var m={},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in h)if(C!=="default"&&Object.prototype.hasOwnProperty.call(h,C)){var w=y?Object.getOwnPropertyDescriptor(h,C):null;w&&(w.get||w.set)?Object.defineProperty(m,C,w):m[C]=h[C]}return m.default=h,p&&p.set(h,m),m}var f=(function(h){(0,o.default)(p,h);var g=(0,s.default)(p);function p(){var m;(0,a.default)(this,p);for(var y=arguments.length,C=new Array(y),w=0;w<y;w++)C[w]=arguments[w];return m=g.call.apply(g,[this].concat(C)),m.closeTimer=null,m.close=function(B){B&&B.stopPropagation(),m.clearCloseTimer();var x=m.props,M=x.onClose,S=x.noticeKey;M&&M(S)},m.startCloseTimer=function(){m.props.duration&&(m.closeTimer=window.setTimeout(function(){m.close()},m.props.duration*1e3))},m.clearCloseTimer=function(){m.closeTimer&&(clearTimeout(m.closeTimer),m.closeTimer=null)},m}return(0,i.default)(p,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentDidUpdate",value:function(y){(this.props.duration!==y.duration||this.props.updateMark!==y.updateMark||this.props.visible!==y.visible&&this.props.visible)&&this.restartCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"restartCloseTimer",value:function(){this.clearCloseTimer(),this.startCloseTimer()}},{key:"render",value:function(){var y=this,C=this.props,w=C.prefixCls,B=C.className,x=C.closable,M=C.closeIcon,S=C.style,R=C.onClick,b=C.children,T=C.holder,D="".concat(w,"-notice"),F=Object.keys(this.props).reduce(function(_,P){return(P.substr(0,5)==="data-"||P.substr(0,5)==="aria-"||P==="role")&&(_[P]=y.props[P]),_},{}),N=l.createElement("div",(0,r.default)({className:(0,A.default)(D,B,(0,n.default)({},"".concat(D,"-closable"),x)),style:S,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer,onClick:R},F),l.createElement("div",{className:"".concat(D,"-content")},b),x?l.createElement("a",{tabIndex:0,onClick:this.close,className:"".concat(D,"-close")},M||l.createElement("span",{className:"".concat(D,"-close-x")})):null);return T?c.default.createPortal(N,T):N}}]),p})(l.Component);return sC.default=f,f.defaultProps={onClose:function(){},duration:1.5},sC}var Cie;function uMe(){if(Cie)return UI;Cie=1;var e=qr(),t=Xa();Object.defineProperty(UI,"__esModule",{value:!0}),UI.default=c;var r=e(K4()),n=e(Ga()),a=e(_d()),i=l(Ur()),o=e(Cvt());function s(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(s=function(h){return h?d:u})(A)}function l(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!=="object"&&typeof A!="function")return{default:A};var d=s(u);if(d&&d.has(A))return d.get(A);var f={},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&Object.prototype.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}function c(A){var u=i.useRef({}),d=i.useState([]),f=(0,a.default)(d,2),h=f[0],g=f[1];function p(m){var y=!0;A.add(m,function(C,w){var B=w.key;if(C&&(!u.current[B]||y)){var x=i.createElement(o.default,(0,n.default)({},w,{holder:C}));u.current[B]=x,g(function(M){var S=M.findIndex(function(b){return b.key===w.key});if(S===-1)return[].concat((0,r.default)(M),[x]);var R=(0,r.default)(M);return R[S]=x,R})}y=!1})}return[p,i.createElement(i.Fragment,null,h)]}return UI}var wie;function wvt(){return wie||(wie=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var n=r(Ga()),a=r(_d()),i=r(uMe()),o=t(Ur()),s=dMe(),l=Cc();function c(A,u){var d=function(){var h,g,p=null,m={add:function(R,b){p?.component.add(R,b)}},y=(0,i.default)(m),C=(0,a.default)(y,2),w=C[0],B=C[1];function x(S){var R=S.prefixCls,b=h("message",R),T=h(),D=S.key||(0,s.getKeyThenIncreaseKey)(),F=new Promise(function(_){var P=function(){return typeof S.onClose=="function"&&S.onClose(),_(!0)};A((0,n.default)((0,n.default)({},S),{prefixCls:b,rootPrefixCls:T,getPopupContainer:g}),function(k){var j=k.prefixCls,Y=k.instance;p=Y,w(u((0,n.default)((0,n.default)({},S),{key:D,onClose:P}),j))})}),N=function(){p&&p.removeNotice(D)};return N.then=function(_,P){return F.then(_,P)},N.promise=F,N}var M=o.useRef({});return M.current.open=x,s.typeList.forEach(function(S){return(0,s.attachTypeApi)(M.current,S)}),[M.current,o.createElement(l.ConfigConsumer,{key:"holder"},function(S){return h=S.getPrefixCls,g=S.getPopupContainer,B})]};return d}})(c3)),c3}var Bie;function dMe(){return Bie||(Bie=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.attachTypeApi=j,e.getInstance=e.default=void 0,e.getKeyThenIncreaseKey=R,e.typeList=void 0;var n=r(Ga()),a=r(oo()),i=r(lvt()),o=r(RH()),s=r(fvt()),l=r(pvt()),c=r(cMe()),A=r(Ro()),u=r(AMe),d=t(Ur()),f=t(Cc()),h=r(wvt()),g,p=3,m,y=1,C="",w="move-up",B=!1,x,M,S=!1;function R(){return y++}function b(Y){Y.top!==void 0&&(m=Y.top,g=null),Y.duration!==void 0&&(p=Y.duration),Y.prefixCls!==void 0&&(C=Y.prefixCls),Y.getContainer!==void 0&&(x=Y.getContainer,g=null),Y.transitionName!==void 0&&(w=Y.transitionName,g=null,B=!0),Y.maxCount!==void 0&&(M=Y.maxCount,g=null),Y.rtl!==void 0&&(S=Y.rtl)}function T(Y,X){var K=Y.prefixCls,U=Y.getPopupContainer,H=(0,f.globalConfig)(),L=H.getPrefixCls,V=H.getRootPrefixCls,J=H.getIconPrefixCls,ee=L("message",K||C),ae=V(Y.rootPrefixCls,ee),ne=J();if(g){X({prefixCls:ee,rootPrefixCls:ae,iconPrefixCls:ne,instance:g});return}var fe={prefixCls:ee,transitionName:B?w:"".concat(ae,"-").concat(w),style:{top:m},getContainer:x||U,maxCount:M};u.default.newInstance(fe,function(he){if(g){X({prefixCls:ee,rootPrefixCls:ae,iconPrefixCls:ne,instance:g});return}g=he,X({prefixCls:ee,rootPrefixCls:ae,iconPrefixCls:ne,instance:he})})}var D={info:l.default,success:i.default,error:o.default,warning:s.default,loading:c.default},F=e.typeList=Object.keys(D);function N(Y,X,K){var U=Y.duration!==void 0?Y.duration:p,H=D[Y.type],L=(0,A.default)("".concat(X,"-custom-content"),(0,a.default)((0,a.default)({},"".concat(X,"-").concat(Y.type),Y.type),"".concat(X,"-rtl"),S===!0));return{key:Y.key,duration:U,style:Y.style||{},className:Y.className,content:d.createElement(f.default,{iconPrefixCls:K},d.createElement("div",{className:L},Y.icon||H&&d.createElement(H,null),d.createElement("span",null,Y.content))),onClose:Y.onClose,onClick:Y.onClick}}function _(Y){var X=Y.key||R(),K=new Promise(function(H){var L=function(){return typeof Y.onClose=="function"&&Y.onClose(),H(!0)};T(Y,function(V){var J=V.prefixCls,ee=V.iconPrefixCls,ae=V.instance;ae.notice(N((0,n.default)((0,n.default)({},Y),{key:X,onClose:L}),J,ee))})}),U=function(){var L;g&&(g.removeNotice(X),(L=Y.onClose)===null||L===void 0||L.call(Y))};return U.then=function(H,L){return K.then(H,L)},U.promise=K,U}function P(Y){return Object.prototype.toString.call(Y)==="[object Object]"&&!!Y.content}var k={open:_,config:b,destroy:function(X){if(g)if(X){var K=g,U=K.removeNotice;U(X)}else{var H=g,L=H.destroy;L(),g=null}}};function j(Y,X){Y[X]=function(K,U,H){return P(K)?Y.open((0,n.default)((0,n.default)({},K),{type:X})):(typeof U=="function"&&(H=U,U=void 0),Y.open({content:K,duration:U,type:X,onClose:H}))}}F.forEach(function(Y){return j(k,Y)}),k.warn=k.warning,k.useMessage=(0,h.default)(T,N),e.getInstance=function(){return null},e.default=k})(l3)),l3}var E3={},y3={exports:{}},C3={exports:{}},xie;function fMe(){return xie||(xie=1,(function(e){function t(r,n){this.v=r,this.k=n}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(C3)),C3.exports}var w3={exports:{}},B3={exports:{}},Mie;function hMe(){return Mie||(Mie=1,(function(e){function t(r,n,a,i){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}e.exports=t=function(l,c,A,u){function d(f,h){t(l,f,function(g){return this._invoke(f,h,g)})}c?o?o(l,c,{value:A,enumerable:!u,configurable:!u,writable:!u}):l[c]=A:(d("next",0),d("throw",1),d("return",2))},e.exports.__esModule=!0,e.exports.default=e.exports,t(r,n,a,i)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(B3)),B3.exports}var Iie;function gMe(){return Iie||(Iie=1,(function(e){var t=hMe();function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,a,i=typeof Symbol=="function"?Symbol:{},o=i.iterator||"@@iterator",s=i.toStringTag||"@@toStringTag";function l(p,m,y,C){var w=m&&m.prototype instanceof A?m:A,B=Object.create(w.prototype);return t(B,"_invoke",(function(x,M,S){var R,b,T,D=0,F=S||[],N=!1,_={p:0,n:0,v:n,a:P,f:P.bind(n,4),d:function(j,Y){return R=j,b=0,T=n,_.n=Y,c}};function P(k,j){for(b=k,T=j,a=0;!N&&D&&!Y&&a<F.length;a++){var Y,X=F[a],K=_.p,U=X[2];k>3?(Y=U===j)&&(T=X[(b=X[4])?5:(b=3,3)],X[4]=X[5]=n):X[0]<=K&&((Y=k<2&&K<X[1])?(b=0,_.v=j,_.n=X[1]):K<U&&(Y=k<3||X[0]>j||j>U)&&(X[4]=k,X[5]=j,_.n=U,b=0))}if(Y||k>1)return c;throw N=!0,j}return function(k,j,Y){if(D>1)throw TypeError("Generator is already running");for(N&&j===1&&P(j,Y),b=j,T=Y;(a=b<2?n:T)||!N;){R||(b?b<3?(b>1&&(_.n=-1),P(b,T)):_.n=T:_.v=T);try{if(D=2,R){if(b||(k="next"),a=R[k]){if(!(a=a.call(R,T)))throw TypeError("iterator result is not an object");if(!a.done)return a;T=a.value,b<2&&(b=0)}else b===1&&(a=R.return)&&a.call(R),b<2&&(T=TypeError("The iterator does not provide a '"+k+"' method"),b=1);R=n}else if((a=(N=_.n<0)?T:x.call(M,_))!==c)break}catch(X){R=n,b=1,T=X}finally{D=1}}return{value:a,done:N}}})(p,y,C),!0),B}var c={};function A(){}function u(){}function d(){}a=Object.getPrototypeOf;var f=[][o]?a(a([][o]())):(t(a={},o,function(){return this}),a),h=d.prototype=A.prototype=Object.create(f);function g(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,d):(p.__proto__=d,t(p,s,"GeneratorFunction")),p.prototype=Object.create(h),p}return u.prototype=d,t(h,"constructor",d),t(d,"constructor",u),u.displayName="GeneratorFunction",t(d,s,"GeneratorFunction"),t(h),t(h,s,"Generator"),t(h,o,function(){return this}),t(h,"toString",function(){return"[object Generator]"}),(e.exports=r=function(){return{w:l,m:g}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(w3)),w3.exports}var x3={exports:{}},M3={exports:{}},I3={exports:{}},bie;function pMe(){return bie||(bie=1,(function(e){var t=fMe(),r=hMe();function n(a,i){function o(l,c,A,u){try{var d=a[l](c),f=d.value;return f instanceof t?i.resolve(f.v).then(function(h){o("next",h,A,u)},function(h){o("throw",h,A,u)}):i.resolve(f).then(function(h){d.value=h,A(d)},function(h){return o("throw",h,A,u)})}catch(h){u(h)}}var s;this.next||(r(n.prototype),r(n.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),r(this,"_invoke",function(l,c,A){function u(){return new i(function(d,f){o(l,A,d,f)})}return s=s?s.then(u,u):u()},!0)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(I3)),I3.exports}var Sie;function vMe(){return Sie||(Sie=1,(function(e){var t=gMe(),r=pMe();function n(a,i,o,s,l){return new r(t().w(a,i,o,s),l||Promise)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(M3)),M3.exports}var Rie;function Bvt(){return Rie||(Rie=1,(function(e){var t=vMe();function r(n,a,i,o,s){var l=t(n,a,i,o,s);return l.next().then(function(c){return c.done?c.value:l.next()})}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(x3)),x3.exports}var b3={exports:{}},Tie;function xvt(){return Tie||(Tie=1,(function(e){function t(r){var n=Object(r),a=[];for(var i in n)a.unshift(i);return function o(){for(;a.length;)if((i=a.pop())in n)return o.value=i,o.done=!1,o;return o.done=!0,o}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(b3)),b3.exports}var S3={exports:{}},Qie;function Mvt(){return Qie||(Qie=1,(function(e){var t=Xa().default;function r(n){if(n!=null){var a=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],i=0;if(a)return a.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}}}throw new TypeError(t(n)+" is not iterable")}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(S3)),S3.exports}var Die;function Ivt(){return Die||(Die=1,(function(e){var t=fMe(),r=gMe(),n=Bvt(),a=vMe(),i=pMe(),o=xvt(),s=Mvt();function l(){var c=r(),A=c.m(l),u=(Object.getPrototypeOf?Object.getPrototypeOf(A):A.__proto__).constructor;function d(g){var p=typeof g=="function"&&g.constructor;return!!p&&(p===u||(p.displayName||p.name)==="GeneratorFunction")}var f={throw:1,return:2,break:3,continue:3};function h(g){var p,m;return function(y){p||(p={stop:function(){return m(y.a,2)},catch:function(){return y.v},abrupt:function(w,B){return m(y.a,f[w],B)},delegateYield:function(w,B,x){return p.resultName=B,m(y.d,s(w),x)},finish:function(w){return m(y.f,w)}},m=function(w,B,x){y.p=p.prev,y.n=p.next;try{return w(B,x)}finally{p.next=y.n}}),p.resultName&&(p[p.resultName]=y.v,p.resultName=void 0),p.sent=y.v,p.next=y.n;try{return g.call(this,p)}finally{y.p=p.prev,y.n=p.next}}}return(e.exports=l=function(){return{wrap:function(m,y,C,w){return c.w(h(m),y,C,w&&w.reverse())},isGeneratorFunction:d,mark:c.m,awrap:function(m,y){return new t(m,y)},AsyncIterator:i,async:function(m,y,C,w,B){return(d(y)?a:n)(h(m),y,C,w,B)},keys:o,values:s}},e.exports.__esModule=!0,e.exports.default=e.exports)()}e.exports=l,e.exports.__esModule=!0,e.exports.default=e.exports})(y3)),y3.exports}var HI={exports:{}},lC={},GI={},Fie;function bvt(){if(Fie)return GI;Fie=1,Object.defineProperty(GI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{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"}}]},name:"check-circle",theme:"outlined"};return GI.default=e,GI}var Nie;function Svt(){if(Nie)return lC;Nie=1;var e=qr(),t=Xa();Object.defineProperty(lC,"__esModule",{value:!0}),lC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(bvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return lC.default=c,lC}var _ie;function Rvt(){return _ie||(_ie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Svt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(HI,HI.exports)),HI.exports}var KI={exports:{}},cC={},VI={},kie;function Tvt(){if(kie)return VI;kie=1,Object.defineProperty(VI,"__esModule",{value:!0});var e={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 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};return VI.default=e,VI}var Pie;function Qvt(){if(Pie)return cC;Pie=1;var e=qr(),t=Xa();Object.defineProperty(cC,"__esModule",{value:!0}),cC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(Tvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return cC.default=c,cC}var Oie;function Dvt(){return Oie||(Oie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Qvt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(KI,KI.exports)),KI.exports}var JI={exports:{}},AC={},WI={},jie;function Fvt(){if(jie)return WI;jie=1,Object.defineProperty(WI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};return WI.default=e,WI}var zie;function Nvt(){if(zie)return AC;zie=1;var e=qr(),t=Xa();Object.defineProperty(AC,"__esModule",{value:!0}),AC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(Fvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return AC.default=c,AC}var Lie;function _vt(){return Lie||(Lie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Nvt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(JI,JI.exports)),JI.exports}var XI={exports:{}},uC={},qI={},Yie;function kvt(){if(Yie)return qI;Yie=1,Object.defineProperty(qI,"__esModule",{value:!0});var e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};return qI.default=e,qI}var Uie;function Pvt(){if(Uie)return uC;Uie=1;var e=qr(),t=Xa();Object.defineProperty(uC,"__esModule",{value:!0}),uC.default=void 0;var r=e(ul()),n=s(Ur()),a=e(kvt()),i=e(kd());function o(A){if(typeof WeakMap!="function")return null;var u=new WeakMap,d=new WeakMap;return(o=function(h){return h?d:u})(A)}function s(A,u){if(A&&A.__esModule)return A;if(A===null||t(A)!="object"&&typeof A!="function")return{default:A};var d=o(u);if(d&&d.has(A))return d.get(A);var f={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var g in A)if(g!=="default"&&{}.hasOwnProperty.call(A,g)){var p=h?Object.getOwnPropertyDescriptor(A,g):null;p&&(p.get||p.set)?Object.defineProperty(f,g,p):f[g]=A[g]}return f.default=A,d&&d.set(A,f),f}var l=function(u,d){return n.createElement(i.default,(0,r.default)((0,r.default)({},u),{},{ref:d,icon:a.default}))},c=n.forwardRef(l);return uC.default=c,uC}var Hie;function Ovt(){return Hie||(Hie=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(Pvt());function n(i){return i&&i.__esModule?i:{default:i}}var a=r;t.default=a,e.exports=a})(XI,XI.exports)),XI.exports}var R3={},Gie;function jvt(){return Gie||(Gie=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var n=r(Ga()),a=r(_d()),i=r(uMe()),o=t(Ur()),s=Cc();function l(c,A){var u=function(){var f,h=null,g={add:function(M,S){h?.component.add(M,S)}},p=(0,i.default)(g),m=(0,a.default)(p,2),y=m[0],C=m[1];function w(x){var M=x.prefixCls,S=f("notification",M);c((0,n.default)((0,n.default)({},x),{prefixCls:S}),function(R){var b=R.prefixCls,T=R.instance;h=T,y(A(x,b))})}var B=o.useRef({});return B.current.open=w,["success","info","warning","error"].forEach(function(x){B.current[x]=function(M){return B.current.open((0,n.default)((0,n.default)({},M),{type:x}))}}),[B.current,o.createElement(s.ConfigConsumer,{key:"holder"},function(x){return f=x.getPrefixCls,C})]};return u}})(R3)),R3}var Kie;function zvt(){return Kie||(Kie=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.getInstance=e.default=void 0;var n=r(Ivt()),a=r(Ga()),i=r(oo()),o=r(Rvt()),s=r(Dvt()),l=r(tMe()),c=r(_vt()),A=r(Ovt()),u=r(Ro()),d=r(AMe),f=t(Ur()),h=t(Cc()),g=r(jvt()),p=function(j,Y,X,K){function U(H){return H instanceof X?H:new X(function(L){L(H)})}return new(X||(X=Promise))(function(H,L){function V(ae){try{ee(K.next(ae))}catch(ne){L(ne)}}function J(ae){try{ee(K.throw(ae))}catch(ne){L(ne)}}function ee(ae){ae.done?H(ae.value):U(ae.value).then(V,J)}ee((K=K.apply(j,[])).next())})},m={},y=4.5,C=24,w=24,B="",x="topRight",M,S,R=!1,b;function T(j){var Y=j.duration,X=j.placement,K=j.bottom,U=j.top,H=j.getContainer,L=j.closeIcon,V=j.prefixCls;V!==void 0&&(B=V),Y!==void 0&&(y=Y),X!==void 0?x=X:j.rtl&&(x="topLeft"),K!==void 0&&(w=K),U!==void 0&&(C=U),H!==void 0&&(M=H),L!==void 0&&(S=L),j.rtl!==void 0&&(R=j.rtl),j.maxCount!==void 0&&(b=j.maxCount)}function D(j){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:C,X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w,K;switch(j){case"top":K={left:"50%",transform:"translateX(-50%)",right:"auto",top:Y,bottom:"auto"};break;case"topLeft":K={left:0,top:Y,bottom:"auto"};break;case"topRight":K={right:0,top:Y,bottom:"auto"};break;case"bottom":K={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:X};break;case"bottomLeft":K={left:0,top:"auto",bottom:X};break;default:K={right:0,top:"auto",bottom:X};break}return K}function F(j,Y){var X=j.placement,K=X===void 0?x:X,U=j.top,H=j.bottom,L=j.getContainer,V=L===void 0?M:L,J=j.prefixCls,ee=(0,h.globalConfig)(),ae=ee.getPrefixCls,ne=ee.getIconPrefixCls,fe=ae("notification",J||B),he=ne(),ye="".concat(fe,"-").concat(K),be=m[ye];if(be){Promise.resolve(be).then(function(ve){Y({prefixCls:"".concat(fe,"-notice"),iconPrefixCls:he,instance:ve})});return}var Se=(0,u.default)("".concat(fe,"-").concat(K),(0,i.default)({},"".concat(fe,"-rtl"),R===!0));m[ye]=new Promise(function(ve){d.default.newInstance({prefixCls:fe,className:Se,style:D(K,U,H),getContainer:V,maxCount:b},function(de){ve(de),Y({prefixCls:"".concat(fe,"-notice"),iconPrefixCls:he,instance:de})})})}var N={success:o.default,info:A.default,error:s.default,warning:c.default};function _(j,Y,X){var K=j.duration,U=j.icon,H=j.type,L=j.description,V=j.message,J=j.btn,ee=j.onClose,ae=j.onClick,ne=j.key,fe=j.style,he=j.className,ye=j.closeIcon,be=ye===void 0?S:ye,Se=j.props,ve=K===void 0?y:K,de=null;U?de=f.createElement("span",{className:"".concat(Y,"-icon")},j.icon):H&&(de=f.createElement(N[H]||null,{className:"".concat(Y,"-icon ").concat(Y,"-icon-").concat(H)}));var Ue=typeof be>"u"?f.createElement("span",{className:"".concat(Y,"-close-x")},f.createElement(l.default,{className:"".concat(Y,"-close-icon")})):be,at=!L&&de?f.createElement("span",{className:"".concat(Y,"-message-single-line-auto-margin")}):null;return{content:f.createElement(h.default,{iconPrefixCls:X},f.createElement("div",{className:de?"".concat(Y,"-with-icon"):"",role:"alert"},de,f.createElement("div",{className:"".concat(Y,"-message")},at,V),f.createElement("div",{className:"".concat(Y,"-description")},L),J?f.createElement("span",{className:"".concat(Y,"-btn")},J):null)),duration:ve,closable:!0,closeIcon:Ue,onClose:ee,onClick:ae,key:ne,style:fe||{},className:(0,u.default)(he,(0,i.default)({},"".concat(Y,"-").concat(H),!!H)),props:Se}}function P(j){F(j,function(Y){var X=Y.prefixCls,K=Y.iconPrefixCls,U=Y.instance;U.notice(_(j,X,K))})}var k={open:P,close:function(Y){Object.keys(m).forEach(function(X){return Promise.resolve(m[X]).then(function(K){K.removeNotice(Y)})})},config:T,destroy:function(){Object.keys(m).forEach(function(Y){Promise.resolve(m[Y]).then(function(X){X.destroy()}),delete m[Y]})}};["success","info","warning","error"].forEach(function(j){k[j]=function(Y){return k.open((0,a.default)((0,a.default)({},Y),{type:j}))}}),k.warn=k.warning,k.useNotification=(0,g.default)(F,_),e.getInstance=function(Y){return p(void 0,void 0,void 0,(0,n.default)().mark(function X(){return(0,n.default)().wrap(function(U){for(;;)switch(U.prev=U.next){case 0:return U.abrupt("return",null);case 1:case"end":return U.stop()}},X)}))},e.default=k})(E3)),E3}var Fh={},Vie;function Lvt(){if(Vie)return Fh;Vie=1;var e=Ha().default,t=qr().default;Object.defineProperty(Fh,"__esModule",{value:!0}),Fh.ConfigContext=Fh.ConfigConsumer=void 0,Fh.withConfigConsumer=s;var r=t(Ga()),n=e(Ur()),a=function(c,A){return A||(c?"ant-".concat(c):"ant")},i=Fh.ConfigContext=n.createContext({getPrefixCls:a}),o=Fh.ConfigConsumer=i.Consumer;function s(l){return function(A){var u=function(h){return n.createElement(o,null,function(g){var p=l.prefixCls,m=g.getPrefixCls,y=h.prefixCls,C=m(p,y);return n.createElement(A,(0,r.default)({},g,h,{prefixCls:C}))})},d=A.constructor;return d&&d.displayName||A.name,u}}return Fh}var dC={};const Yvt=Ya(E4e);var Jie;function Uvt(){if(Jie)return dC;Jie=1;var e=qr().default;Object.defineProperty(dC,"__esModule",{value:!0}),dC.getStyle=o,dC.registerTheme=s;var t=Zxe,r=Yvt,n=e(Dx()),a=IH();e(Cm());var i="-ant-".concat(Date.now(),"-").concat(Math.random());function o(l,c){var A={},u=function(y,C){var w=y.clone();return w=C?.(w)||w,w.toRgbString()},d=function(y,C){var w=new r.TinyColor(y),B=(0,t.generate)(w.toRgbString());A["".concat(C,"-color")]=u(w),A["".concat(C,"-color-disabled")]=B[1],A["".concat(C,"-color-hover")]=B[4],A["".concat(C,"-color-active")]=B[6],A["".concat(C,"-color-outline")]=w.clone().setAlpha(.2).toRgbString(),A["".concat(C,"-color-deprecated-bg")]=B[0],A["".concat(C,"-color-deprecated-border")]=B[2]};if(c.primaryColor){d(c.primaryColor,"primary");var f=new r.TinyColor(c.primaryColor),h=(0,t.generate)(f.toRgbString());h.forEach(function(m,y){A["primary-".concat(y+1)]=m}),A["primary-color-deprecated-l-35"]=u(f,function(m){return m.lighten(35)}),A["primary-color-deprecated-l-20"]=u(f,function(m){return m.lighten(20)}),A["primary-color-deprecated-t-20"]=u(f,function(m){return m.tint(20)}),A["primary-color-deprecated-t-50"]=u(f,function(m){return m.tint(50)}),A["primary-color-deprecated-f-12"]=u(f,function(m){return m.setAlpha(m.getAlpha()*.12)});var g=new r.TinyColor(h[0]);A["primary-color-active-deprecated-f-30"]=u(g,function(m){return m.setAlpha(m.getAlpha()*.3)}),A["primary-color-active-deprecated-d-02"]=u(g,function(m){return m.darken(2)})}c.successColor&&d(c.successColor,"success"),c.warningColor&&d(c.warningColor,"warning"),c.errorColor&&d(c.errorColor,"error"),c.infoColor&&d(c.infoColor,"info");var p=Object.keys(A).map(function(m){return"--".concat(l,"-").concat(m,": ").concat(A[m],";")});return`
  :root {
    `.concat(p.join(`
`),`
  }
  `).trim()}function s(l,c){var A=o(l,c);(0,n.default)()&&(0,a.updateCSS)(A,"".concat(i,"-dynamic-theme"))}return dC}var T3={},Wie;function Fx(){return Wie||(Wie=1,(function(e){var t=Ha().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.DisabledContextProvider=void 0;var r=t(Ur()),n=r.createContext(!1);e.DisabledContextProvider=function(i){var o=i.children,s=i.disabled,l=r.useContext(n);return r.createElement(n.Provider,{value:s??l},o)},e.default=n})(T3)),T3}var Q3={},Xie;function V4(){return Xie||(Xie=1,(function(e){var t=Ha().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.SizeContextProvider=void 0;var r=t(Ur()),n=r.createContext(void 0);e.SizeContextProvider=function(i){var o=i.children,s=i.size;return r.createElement(n.Consumer,null,function(l){return r.createElement(n.Provider,{value:s||l},o)})},e.default=n})(Q3)),Q3}var qie;function Cc(){return qie||(qie=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ConfigConsumer",{enumerable:!0,get:function(){return h.ConfigConsumer}}),Object.defineProperty(e,"ConfigContext",{enumerable:!0,get:function(){return h.ConfigContext}}),e.globalConfig=e.defaultPrefixCls=e.defaultIconPrefixCls=e.default=e.configConsumerProps=void 0;var n=r(Ga()),a=r(MH()),i=r(rMe()),o=t(Ur()),s=$pt(),l=r(evt()),c=t(avt()),A=r(lMe()),u=r(SH()),d=r(dMe()),f=r(zvt()),h=Lvt(),g=Uvt(),p=Fx(),m=t(V4());e.configConsumerProps=["getTargetContainer","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","autoInsertSpaceInButton","locale","pageHeader"];var y=["getTargetContainer","getPopupContainer","renderEmpty","pageHeader","input","pagination","form"],C=e.defaultPrefixCls="ant",w=e.defaultIconPrefixCls="anticon",B,x;function M(){return B||C}function S(){return x||w}var R=function(F){var N=F.prefixCls,_=F.iconPrefixCls,P=F.theme;N!==void 0&&(B=N),_!==void 0&&(x=_),P&&(0,g.registerTheme)(M(),P)};e.globalConfig=function(){return{getPrefixCls:function(N,_){return _||(N?"".concat(M(),"-").concat(N):M())},getIconPrefixCls:S,getRootPrefixCls:function(N,_){return N||B||(_&&_.includes("-")?_.replace(/^(.*)-[^-]*$/,"$1"):M())}}};var b=function(F){var N=F.children,_=F.csp,P=F.autoInsertSpaceInButton,k=F.form,j=F.locale,Y=F.componentSize,X=F.direction,K=F.space,U=F.virtual,H=F.dropdownMatchSelectWidth,L=F.legacyLocale,V=F.parentContext,J=F.iconPrefixCls,ee=F.componentDisabled,ae=o.useCallback(function(Se,ve){var de=F.prefixCls;if(ve)return ve;var Ue=de||V.getPrefixCls("");return Se?"".concat(Ue,"-").concat(Se):Ue},[V.getPrefixCls,F.prefixCls]),ne=(0,n.default)((0,n.default)({},V),{csp:_,autoInsertSpaceInButton:P,locale:j||L,direction:X,space:K,virtual:U,dropdownMatchSelectWidth:H,getPrefixCls:ae});y.forEach(function(Se){var ve=F[Se];ve&&(ne[Se]=ve)});var fe=(0,i.default)(function(){return ne},ne,function(Se,ve){var de=Object.keys(Se),Ue=Object.keys(ve);return de.length!==Ue.length||de.some(function(at){return Se[at]!==ve[at]})}),he=o.useMemo(function(){return{prefixCls:J,csp:_}},[J,_]),ye=N,be=o.useMemo(function(){var Se,ve,de,Ue;return(0,s.merge)(((Se=u.default.Form)===null||Se===void 0?void 0:Se.defaultValidateMessages)||{},((de=(ve=fe.locale)===null||ve===void 0?void 0:ve.Form)===null||de===void 0?void 0:de.defaultValidateMessages)||{},((Ue=fe.form)===null||Ue===void 0?void 0:Ue.validateMessages)||{},k?.validateMessages||{})},[fe,k?.validateMessages]);return Object.keys(be).length>0&&(ye=o.createElement(l.default.Provider,{value:be},N)),j&&(ye=o.createElement(c.default,{locale:j,_ANT_MARK__:c.ANT_MARK},ye)),(J||_)&&(ye=o.createElement(a.default.Provider,{value:he},ye)),Y&&(ye=o.createElement(m.SizeContextProvider,{size:Y},ye)),ee!==void 0&&(ye=o.createElement(p.DisabledContextProvider,{disabled:ee},ye)),o.createElement(h.ConfigContext.Provider,{value:fe},ye)},T=function(F){return o.useEffect(function(){F.direction&&(d.default.config({rtl:F.direction==="rtl"}),f.default.config({rtl:F.direction==="rtl"}))},[F.direction]),o.createElement(A.default,null,function(N,_,P){return o.createElement(h.ConfigConsumer,null,function(k){return o.createElement(b,(0,n.default)({parentContext:k,legacyLocale:P},F))})})};T.ConfigContext=h.ConfigContext,T.SizeContext=m.default,T.config=R,e.default=T})(KP)),KP}var D3={},ZI={},$I={},Zie;function mMe(){if(Zie)return $I;Zie=1;var e=qr().default;Object.defineProperty($I,"__esModule",{value:!0}),$I.default=i;var t=e(Xa()),r=Symbol.for("react.element"),n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(o){return o&&(0,t.default)(o)==="object"&&(o.$$typeof===r||o.$$typeof===n)&&o.type===a}return $I}var $ie;function Hvt(){if($ie)return ZI;$ie=1;var e=qr().default;Object.defineProperty(ZI,"__esModule",{value:!0}),ZI.default=n;var t=e(mMe()),r=e(Ur());function n(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=[];return r.default.Children.forEach(a,function(s){s==null&&!i.keepEmpty||(Array.isArray(s)?o=o.concat(n(s)):(0,t.default)(s)&&s.props?o=o.concat(n(s.props.children,i)):o.push(s))}),o}return ZI}var eoe;function QH(){return eoe||(eoe=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.useCompactItemContext=e.default=e.SpaceCompactItemContext=e.NoCompactStyle=void 0;var n=r(Ga()),a=r(oo()),i=r(Ro()),o=r(Hvt()),s=t(Ur()),l=Cc(),c=function(f,h){var g={};for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&h.indexOf(p)<0&&(g[p]=f[p]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var m=0,p=Object.getOwnPropertySymbols(f);m<p.length;m++)h.indexOf(p[m])<0&&Object.prototype.propertyIsEnumerable.call(f,p[m])&&(g[p[m]]=f[p[m]]);return g},A=e.SpaceCompactItemContext=s.createContext(null);e.useCompactItemContext=function(h,g){var p=s.useContext(A),m=s.useMemo(function(){if(!p)return"";var y=p.compactDirection,C=p.isFirstItem,w=p.isLastItem,B=y==="vertical"?"-vertical-":"-";return(0,i.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)({},"".concat(h,"-compact").concat(B,"item"),!0),"".concat(h,"-compact").concat(B,"first-item"),C),"".concat(h,"-compact").concat(B,"last-item"),w),"".concat(h,"-compact").concat(B,"item-rtl"),g==="rtl"))},[h,g,p]);return{compactSize:p?.compactSize,compactDirection:p?.compactDirection,compactItemClassnames:m}},e.NoCompactStyle=function(h){var g=h.children;return s.createElement(A.Provider,{value:null},g)};var u=function(h){var g=h.children,p=c(h,["children"]);return s.createElement(A.Provider,{value:p},g)},d=function(h){var g=s.useContext(l.ConfigContext),p=g.getPrefixCls,m=g.direction,y=h.size,C=y===void 0?"middle":y,w=h.direction,B=h.block,x=h.prefixCls,M=h.className,S=h.children,R=c(h,["size","direction","block","prefixCls","className","children"]),b=p("space-compact",x),T=(0,i.default)(b,(0,a.default)((0,a.default)((0,a.default)({},"".concat(b,"-rtl"),m==="rtl"),"".concat(b,"-block"),B),"".concat(b,"-vertical"),w==="vertical"),M),D=s.useContext(A),F=(0,o.default)(S),N=s.useMemo(function(){return F.map(function(_,P){var k=_&&_.key||"".concat(b,"-item-").concat(P);return s.createElement(u,{key:k,compactSize:C,compactDirection:w,isFirstItem:P===0&&(!D||D?.isFirstItem),isLastItem:P===F.length-1&&(!D||D?.isLastItem)},_)})},[C,F,D]);return F.length===0?null:s.createElement("div",(0,n.default)({className:T},R),N)};e.default=d})(D3)),D3}var Nh={},toe;function DH(){if(toe)return Nh;toe=1;var e=Ha().default;Object.defineProperty(Nh,"__esModule",{value:!0}),Nh.cloneElement=i,Nh.isFragment=n,Nh.isValidElement=void 0,Nh.replaceElement=a;var t=e(Ur()),r=Nh.isValidElement=t.isValidElement;function n(o){return o&&r(o)&&o.type===t.Fragment}function a(o,s,l){return r(o)?t.cloneElement(o,typeof l=="function"?l(o.props||{}):l):s}function i(o,s){return a(o,o,s)}return Nh}var Qp={},roe;function J4(){return roe||(roe=1,Object.defineProperty(Qp,"__esModule",{value:!0}),Qp.tupleNum=Qp.tuple=void 0,Qp.tuple=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r},Qp.tupleNum=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r}),Qp}var F3={},qs={},noe;function EMe(){if(noe)return qs;noe=1;var e=qr().default;Object.defineProperty(qs,"__esModule",{value:!0}),qs.useComposeRef=qs.supportRef=qs.supportNodeRef=qs.getNodeRef=qs.fillRef=qs.composeRef=void 0;var t=e(Xa()),r=Ur(),n=Ime(),a=e(rMe()),i=e(mMe()),o=Number(r.version.split(".")[0]),s=qs.fillRef=function(d,f){typeof d=="function"?d(f):(0,t.default)(d)==="object"&&d&&"current"in d&&(d.current=f)},l=qs.composeRef=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];var g=f.filter(Boolean);return g.length<=1?g[0]:function(p){f.forEach(function(m){s(m,p)})}};qs.useComposeRef=function(){for(var d=arguments.length,f=new Array(d),h=0;h<d;h++)f[h]=arguments[h];return(0,a.default)(function(){return l.apply(void 0,f)},f,function(g,p){return g.length!==p.length||g.every(function(m,y){return m!==p[y]})})};var c=qs.supportRef=function(d){var f,h;if(!d)return!1;if(A(d)&&o>=19)return!0;var g=(0,n.isMemo)(d)?d.type.type:d.type;return!(typeof g=="function"&&!((f=g.prototype)!==null&&f!==void 0&&f.render)&&g.$$typeof!==n.ForwardRef||typeof d=="function"&&!((h=d.prototype)!==null&&h!==void 0&&h.render)&&d.$$typeof!==n.ForwardRef)};function A(u){return(0,r.isValidElement)(u)&&!(0,i.default)(u)}return qs.supportNodeRef=function(d){return A(d)&&c(d)},qs.getNodeRef=function(d){if(d&&A(d)){var f=d;return f.props.propertyIsEnumerable("ref")?f.props.ref:f.ref}return null},qs}var N3={},fC={},aoe;function Gvt(){if(aoe)return fC;aoe=1,Object.defineProperty(fC,"__esModule",{value:!0}),fC.default=void 0;var e=function(s){return+setTimeout(s,16)},t=function(s){return clearTimeout(s)};typeof window<"u"&&"requestAnimationFrame"in window&&(e=function(s){return window.requestAnimationFrame(s)},t=function(s){return window.cancelAnimationFrame(s)});var r=0,n=new Map;function a(o){n.delete(o)}var i=function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;r+=1;var c=r;function A(u){if(u===0)a(c),s();else{var d=e(function(){A(u-1)});n.set(c,d)}}return A(l),c};return i.cancel=function(o){var s=n.get(o);return a(o),t(s)},fC.default=i,fC}var ioe;function Kvt(){return ioe||(ioe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var r=t(Gvt()),n=0,a={};function i(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,l=n++,c=s;function A(){c-=1,c<=0?(o(),delete a[l]):a[l]=(0,r.default)(A)}return a[l]=(0,r.default)(A),l}i.cancel=function(s){s!==void 0&&(r.default.cancel(a[s]),delete a[s])},i.ids=a})(N3)),N3}var ooe;function Vvt(){return ooe||(ooe=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(Eu()),a=r(Pd()),i=r(zd()),o=r(TH()),s=r(jd()),l=r(Jg()),c=r(Od()),A=IH(),u=EMe(),d=t(Ur()),f=Cc(),h=r(Kvt()),g=DH();function p(x,M,S){return M=(0,s.default)(M),(0,i.default)(x,(0,o.default)()?Reflect.construct(M,S||[],(0,s.default)(x).constructor):M.apply(x,S))}var m;function y(x){return!x||x.offsetParent===null||x.hidden}function C(x){return x instanceof Document?x.body:Array.from(x.childNodes).find(function(M){return M?.nodeType===Node.ELEMENT_NODE})}function w(x){var M=(x||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return M&&M[1]&&M[2]&&M[3]?!(M[1]===M[2]&&M[2]===M[3]):!0}var B=(function(x){(0,c.default)(M,x);function M(){var S;return(0,n.default)(this,M),S=p(this,M,arguments),S.containerRef=d.createRef(),S.animationStart=!1,S.destroyed=!1,S.onClick=function(R,b){var T,D,F=S.props,N=F.insertExtraNode,_=F.disabled;if(!(_||!R||y(R)||R.className.includes("-leave"))){S.extraNode=document.createElement("div");var P=(0,l.default)(S),k=P.extraNode,j=S.context.getPrefixCls;k.className="".concat(j(""),"-click-animating-node");var Y=S.getAttributeName();if(R.setAttribute(Y,"true"),b&&b!=="#fff"&&b!=="#ffffff"&&b!=="rgb(255, 255, 255)"&&b!=="rgba(255, 255, 255, 1)"&&w(b)&&!/rgba\((?:\d*, ){3}0\)/.test(b)&&b!=="transparent"){k.style.borderColor=b;var X=((T=R.getRootNode)===null||T===void 0?void 0:T.call(R))||R.ownerDocument,K=(D=C(X))!==null&&D!==void 0?D:X;m=(0,A.updateCSS)(`
      [`.concat(j(""),"-click-animating-without-extra-node='true']::after, .").concat(j(""),`-click-animating-node {
        --antd-wave-shadow-color: `).concat(b,`;
      }`),"antd-wave",{csp:S.csp,attachTo:K})}N&&R.appendChild(k),["transition","animation"].forEach(function(U){R.addEventListener("".concat(U,"start"),S.onTransitionStart),R.addEventListener("".concat(U,"end"),S.onTransitionEnd)})}},S.onTransitionStart=function(R){if(!S.destroyed){var b=S.containerRef.current;!R||R.target!==b||S.animationStart||S.resetEffect(b)}},S.onTransitionEnd=function(R){!R||R.animationName!=="fadeEffect"||S.resetEffect(R.target)},S.bindAnimationEvent=function(R){if(!(!R||!R.getAttribute||R.getAttribute("disabled")||R.className.includes("disabled"))){var b=function(D){if(!(D.target.tagName==="INPUT"||y(D.target))){S.resetEffect(R);var F=getComputedStyle(R).getPropertyValue("border-top-color")||getComputedStyle(R).getPropertyValue("border-color")||getComputedStyle(R).getPropertyValue("background-color");S.clickWaveTimeoutId=window.setTimeout(function(){return S.onClick(R,F)},0),h.default.cancel(S.animationStartId),S.animationStart=!0,S.animationStartId=(0,h.default)(function(){S.animationStart=!1},10)}};return R.addEventListener("click",b,!0),{cancel:function(){R.removeEventListener("click",b,!0)}}}},S.renderWave=function(R){var b=R.csp,T=S.props.children;if(S.csp=b,!d.isValidElement(T))return T;var D=S.containerRef;return(0,u.supportRef)(T)&&(D=(0,u.composeRef)(T.ref,S.containerRef)),(0,g.cloneElement)(T,{ref:D})},S}return(0,a.default)(M,[{key:"componentDidMount",value:function(){this.destroyed=!1;var R=this.containerRef.current;!R||R.nodeType!==1||(this.instance=this.bindAnimationEvent(R))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var R=this.context.getPrefixCls,b=this.props.insertExtraNode;return b?"".concat(R(""),"-click-animating"):"".concat(R(""),"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(R){var b=this;if(!(!R||R===this.extraNode||!(R instanceof Element))){var T=this.props.insertExtraNode,D=this.getAttributeName();R.setAttribute(D,"false"),m&&(m.innerHTML=""),T&&this.extraNode&&R.contains(this.extraNode)&&R.removeChild(this.extraNode),["transition","animation"].forEach(function(F){R.removeEventListener("".concat(F,"start"),b.onTransitionStart),R.removeEventListener("".concat(F,"end"),b.onTransitionEnd)})}}},{key:"render",value:function(){return d.createElement(f.ConfigConsumer,null,this.renderWave)}}]),M})(d.Component);B.contextType=f.ConfigContext,e.default=B})(F3)),F3}var _3={},soe;function Jvt(){return soe||(soe=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GroupSizeContext=void 0;var n=r(Ga()),a=r(oo()),i=r(Ro()),o=t(Ur()),s=Cc();r(Cm());var l=function(u,d){var f={};for(var h in u)Object.prototype.hasOwnProperty.call(u,h)&&d.indexOf(h)<0&&(f[h]=u[h]);if(u!=null&&typeof Object.getOwnPropertySymbols=="function")for(var g=0,h=Object.getOwnPropertySymbols(u);g<h.length;g++)d.indexOf(h[g])<0&&Object.prototype.propertyIsEnumerable.call(u,h[g])&&(f[h[g]]=u[h[g]]);return f},c=e.GroupSizeContext=o.createContext(void 0),A=function(d){var f=o.useContext(s.ConfigContext),h=f.getPrefixCls,g=f.direction,p=d.prefixCls,m=d.size,y=d.className,C=l(d,["prefixCls","size","className"]),w=h("btn-group",p),B="";switch(m){case"large":B="lg";break;case"small":B="sm";break}var x=(0,i.default)(w,(0,a.default)((0,a.default)({},"".concat(w,"-").concat(B),B),"".concat(w,"-rtl"),g==="rtl"),y);return o.createElement(c.Provider,{value:m},o.createElement("div",(0,n.default)({},C,{className:x})))};e.default=A})(_3)),_3}var k3={};const Wvt=Ya(yYe);var loe;function Xvt(){return loe||(loe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(cMe()),n=t(Wvt),a=t(Ur()),i=function(){return{width:0,opacity:0,transform:"scale(0)"}},o=function(c){return{width:c.scrollWidth,opacity:1,transform:"scale(1)"}},s=function(c){var A=c.prefixCls,u=c.loading,d=c.existIcon,f=!!u;return d?a.default.createElement("span",{className:"".concat(A,"-loading-icon")},a.default.createElement(r.default,null)):a.default.createElement(n.default,{visible:f,motionName:"".concat(A,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:i,onAppearActive:o,onEnterStart:i,onEnterActive:o,onLeaveStart:o,onLeaveActive:i},function(h,g){var p=h.className,m=h.style;return a.default.createElement("span",{className:"".concat(A,"-loading-icon"),style:m,ref:g},a.default.createElement(r.default,{className:p}))})};e.default=s})(k3)),k3}var coe;function yMe(){return coe||(coe=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.convertLegacyProps=b,e.default=void 0;var n=r(Ga()),a=r(oo()),i=r(_d()),o=r(Xa()),s=r(Ro()),l=r(G4()),c=t(Ur()),A=Cc(),u=r(Fx()),d=r(V4()),f=QH(),h=DH(),g=J4();r(Cm());var p=r(Vvt()),m=t(Jvt()),y=r(Xvt()),C=function(F,N){var _={};for(var P in F)Object.prototype.hasOwnProperty.call(F,P)&&N.indexOf(P)<0&&(_[P]=F[P]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,P=Object.getOwnPropertySymbols(F);k<P.length;k++)N.indexOf(P[k])<0&&Object.prototype.propertyIsEnumerable.call(F,P[k])&&(_[P[k]]=F[P[k]]);return _},w=/^[\u4e00-\u9fa5]{2}$/,B=w.test.bind(w);function x(F){return typeof F=="string"}function M(F){return F==="text"||F==="link"}function S(F,N){if(F!=null){var _=N?" ":"";return typeof F!="string"&&typeof F!="number"&&x(F.type)&&B(F.props.children)?(0,h.cloneElement)(F,{children:F.props.children.split("").join(_)}):typeof F=="string"?B(F)?c.createElement("span",null,F.split("").join(_)):c.createElement("span",null,F):(0,h.isFragment)(F)?c.createElement("span",null,F):F}}function R(F,N){var _=!1,P=[];return c.Children.forEach(F,function(k){var j=(0,o.default)(k),Y=j==="string"||j==="number";if(_&&Y){var X=P.length-1,K=P[X];P[X]="".concat(K).concat(k)}else P.push(k);_=Y}),c.Children.map(P,function(k){return S(k,N)})}(0,g.tuple)("default","primary","ghost","dashed","link","text"),(0,g.tuple)("default","circle","round"),(0,g.tuple)("submit","button","reset");function b(F){return F==="danger"?{danger:!0}:{type:F}}var T=function(N,_){var P,k=N.loading,j=k===void 0?!1:k,Y=N.prefixCls,X=N.type,K=X===void 0?"default":X,U=N.danger,H=N.shape,L=H===void 0?"default":H,V=N.size,J=N.disabled,ee=N.className,ae=N.children,ne=N.icon,fe=N.ghost,he=fe===void 0?!1:fe,ye=N.block,be=ye===void 0?!1:ye,Se=N.htmlType,ve=Se===void 0?"button":Se,de=C(N,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),Ue=c.useContext(d.default),at=c.useContext(u.default),Ve=J??at,Ie=c.useContext(m.GroupSizeContext),we=c.useState(!!j),Re=(0,i.default)(we,2),Te=Re[0],Ke=Re[1],mt=c.useState(!1),tt=(0,i.default)(mt,2),rt=tt[0],lt=tt[1],At=c.useContext(A.ConfigContext),$e=At.getPrefixCls,ce=At.autoInsertSpaceInButton,qe=At.direction,ct=_||c.createRef(),Tt=function(){return c.Children.count(ae)===1&&!ne&&!M(K)},He=function(){if(!(!ct||!ct.current||ce===!1)){var qt=ct.current.textContent;Tt()&&B(qt)?rt||lt(!0):rt&&lt(!1)}},Ge=typeof j=="boolean"?j:j?.delay||!0;c.useEffect(function(){var vt=null;return typeof Ge=="number"?vt=window.setTimeout(function(){vt=null,Ke(Ge)},Ge):Ke(Ge),function(){vt&&(window.clearTimeout(vt),vt=null)}},[Ge]),c.useEffect(He,[ct]);var Ee=function(qt){var Xt=N.onClick;if(Te||Ve){qt.preventDefault();return}Xt?.(qt)},Et=$e("btn",Y),Yt=ce!==!1,$=(0,f.useCompactItemContext)(Et,qe),Fe=$.compactSize,je=$.compactItemClassnames,ue={large:"lg",small:"sm",middle:void 0},ie=Fe||Ie||V||Ue,Be=ie&&ue[ie]||"",Xe=Te?"loading":ne,Oe=(0,l.default)(de,["navigate"]),ft=(0,s.default)(Et,(P={},(0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)(P,"".concat(Et,"-").concat(L),L!=="default"&&L),"".concat(Et,"-").concat(K),K),"".concat(Et,"-").concat(Be),Be),"".concat(Et,"-icon-only"),!ae&&ae!==0&&!!Xe),"".concat(Et,"-background-ghost"),he&&!M(K)),"".concat(Et,"-loading"),Te),"".concat(Et,"-two-chinese-chars"),rt&&Yt&&!Te),"".concat(Et,"-block"),be),"".concat(Et,"-dangerous"),!!U),"".concat(Et,"-rtl"),qe==="rtl"),(0,a.default)(P,"".concat(Et,"-disabled"),Oe.href!==void 0&&Ve)),je,ee),wt=ne&&!Te?ne:c.createElement(y.default,{existIcon:!!ne,prefixCls:Et,loading:!!Te}),ot=ae||ae===0?R(ae,Tt()&&Yt):null;if(Oe.href!==void 0)return c.createElement("a",(0,n.default)({},Oe,{className:ft,onClick:Ee,ref:ct}),wt,ot);var it=c.createElement("button",(0,n.default)({},de,{type:ve,className:ft,onClick:Ee,disabled:Ve,ref:ct}),wt,ot);return M(K)?it:c.createElement(p.default,{disabled:!!Te},it)},D=c.forwardRef(T);D.Group=m.default,D.__ANT_BUTTON=!0,e.default=D})(GP)),GP}var Aoe;function qvt(){return Aoe||(Aoe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(yMe());e.default=r.default})(HP)),HP}var Zs={};const Zvt=Ya(qHe);var uoe;function Nx(){if(uoe)return Zs;uoe=1;var e=Ha().default,t=qr().default;Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.NoStyleItemContext=Zs.NoFormStyle=Zs.FormProvider=Zs.FormItemPrefixContext=Zs.FormItemInputContext=Zs.FormContext=void 0;var r=t(Ga()),n=Zvt,a=t(G4()),i=e(Ur()),o=i;Zs.FormContext=o.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),Zs.NoStyleItemContext=o.createContext(null),Zs.FormProvider=function(c){var A=(0,a.default)(c,["prefixCls"]);return o.createElement(n.FormProvider,(0,r.default)({},A))},Zs.FormItemPrefixContext=o.createContext({prefixCls:""});var s=Zs.FormItemInputContext=o.createContext({});return Zs.NoFormStyle=function(c){var A=c.children,u=c.status,d=c.override,f=(0,i.useContext)(s),h=(0,i.useMemo)(function(){var g=(0,r.default)({},f);return d&&delete g.isFormItemInput,u&&(delete g.status,delete g.hasFeedback,delete g.feedbackIcon),g},[u,d,f]);return o.createElement(s.Provider,{value:h},A)},Zs}var P3={},doe;function $vt(){return doe||(doe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getTransitionName=e.getTransitionDirection=e.default=void 0;var t=J4(),r=function(){return{height:0,opacity:0}},n=function(l){var c=l.scrollHeight;return{height:c,opacity:1}},a=function(l){return{height:l?l.offsetHeight:0}},i=function(l,c){return c?.deadline===!0||c.propertyName==="height"},o={motionName:"ant-motion-collapse",onAppearStart:r,onEnterStart:r,onAppearActive:n,onEnterActive:n,onLeaveStart:a,onLeaveActive:r,onAppearEnd:i,onEnterEnd:i,onLeaveEnd:i,motionDeadline:500};(0,t.tuple)("bottomLeft","bottomRight","topLeft","topRight"),e.getTransitionDirection=function(l){return l!==void 0&&(l==="topLeft"||l==="topRight")?"slide-down":"slide-up"},e.getTransitionName=function(l,c,A){return A!==void 0?A:"".concat(l,"-").concat(c)},e.default=o})(P3)),P3}var O3={},eb={},foe;function emt(){if(foe)return eb;foe=1;var e=qr().default;Object.defineProperty(eb,"__esModule",{value:!0}),eb.isStyleSupport=a;var t=e(Dx()),r=function(o){if((0,t.default)()&&window.document.documentElement){var s=Array.isArray(o)?o:[o],l=window.document.documentElement;return s.some(function(c){return c in l.style})}return!1},n=function(o,s){if(!r(o))return!1;var l=document.createElement("div"),c=l.style[o];return l.style[o]=s,l.style[o]!==c};function a(i,o){return!Array.isArray(i)&&o!==void 0?n(i,o):r(i)}return eb}var hoe;function tmt(){return hoe||(hoe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.detectFlexGapSupported=e.canUseDocElement=void 0,Object.defineProperty(e,"isStyleSupport",{enumerable:!0,get:function(){return n.isStyleSupport}});var r=t(Dx()),n=emt(),a=e.canUseDocElement=function(){return(0,r.default)()&&window.document.documentElement},i;e.detectFlexGapSupported=function(){if(!a())return!1;if(i!==void 0)return i;var s=document.createElement("div");return s.style.display="flex",s.style.flexDirection="column",s.style.rowGap="1px",s.appendChild(document.createElement("div")),s.appendChild(document.createElement("div")),document.body.appendChild(s),i=s.scrollHeight===1,document.body.removeChild(s),i}})(O3)),O3}var goe;function rmt(){return goe||(goe=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(oo()),a=r(Ga()),i=r(tMe()),o=r(Ro()),s=r(Jpt),l=t(Ur()),c=r(qvt()),A=yMe(),u=Cc(),d=Nx(),f=r(lMe()),h=QH(),g=$vt(),p=tmt();r(Cm());var m=oMe(),y=function(x,M){var S={};for(var R in x)Object.prototype.hasOwnProperty.call(x,R)&&M.indexOf(R)<0&&(S[R]=x[R]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var b=0,R=Object.getOwnPropertySymbols(x);b<R.length;b++)M.indexOf(R[b])<0&&Object.prototype.propertyIsEnumerable.call(x,R[b])&&(S[R[b]]=x[R[b]]);return S},C,w=function(M){C={x:M.pageX,y:M.pageY},setTimeout(function(){C=null},100)};(0,p.canUseDocElement)()&&document.documentElement.addEventListener("click",w,!0);var B=function(M){var S,R=l.useContext(u.ConfigContext),b=R.getPopupContainer,T=R.getPrefixCls,D=R.direction,F=function(ve){var de=M.onCancel;de?.(ve)},N=function(ve){var de=M.onOk;de?.(ve)},_=M.prefixCls,P=M.footer,k=M.visible,j=M.open,Y=j===void 0?!1:j,X=M.wrapClassName,K=M.centered,U=M.getContainer,H=M.closeIcon,L=M.focusTriggerAfterClose,V=L===void 0?!0:L,J=M.width,ee=J===void 0?520:J,ae=y(M,["prefixCls","footer","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose","width"]),ne=T("modal",_),fe=T(),he=l.createElement(f.default,{componentName:"Modal",defaultLocale:(0,m.getConfirmLocale)()},function(Se){var ve=M.okText,de=M.okType,Ue=de===void 0?"primary":de,at=M.cancelText,Ve=M.confirmLoading,Ie=Ve===void 0?!1:Ve;return l.createElement(l.Fragment,null,l.createElement(c.default,(0,a.default)({onClick:F},M.cancelButtonProps),at||Se.cancelText),l.createElement(c.default,(0,a.default)({},(0,A.convertLegacyProps)(Ue),{loading:Ie,onClick:N},M.okButtonProps),ve??Se.okText))}),ye=l.createElement("span",{className:"".concat(ne,"-close-x")},H||l.createElement(i.default,{className:"".concat(ne,"-close-icon")})),be=(0,o.default)(X,(0,n.default)((0,n.default)({},"".concat(ne,"-centered"),!!K),"".concat(ne,"-wrap-rtl"),D==="rtl"));return l.createElement(h.NoCompactStyle,null,l.createElement(d.NoFormStyle,{status:!0,override:!0},l.createElement(s.default,(0,a.default)({width:ee},ae,{getContainer:U===void 0?b:U,prefixCls:ne,wrapClassName:be,footer:P===void 0?he:P,visible:Y||k,mousePosition:(S=ae.mousePosition)!==null&&S!==void 0?S:C,onClose:F,closeIcon:ye,focusTriggerAfterClose:V,transitionName:(0,g.getTransitionName)(fe,"zoom",M.transitionName),maskTransitionName:(0,g.getTransitionName)(fe,"fade",M.maskTransitionName)}))))};e.default=B})(bP)),bP}var nmt=rmt();const amt=gn(nmt),CMe=({showGenerateModal:e,selectedImportId:t,handleShowGenerateModal:r,module:n,generateImportMutation:a,importOptions:i,handleImportOptions:o,updateProgression:s})=>{const l=()=>{a.mutate({import_id:t,module:n,...i},{onSettled:(c,A)=>{A||c.returnType==="error"?s(2,!0):s(3)}}),r()};return v.jsxs(amt,{open:e,title:"Options de génération",okText:"Lancer la génération",cancelText:"Annuler",onOk:l,onCancel:r,children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Générer contrôles expert"}),v.jsx(un,{checked:i.option_expert,onChange:c=>o(c.target.checked,"option_expert")})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Générer essentiels"}),v.jsx(un,{checked:i.option_essentiels,onChange:c=>o(c.target.checked,"option_essentiels")})]})})]})};CMe.propTypes={showGenerateModal:W.bool,handleShowGenerateModal:W.func,selectedImportId:W.string,module:W.string,importOptions:W.object,generateImportMutation:W.object,handleImportOptions:W.func,updateProgression:W.func};const zy="pmsi",_x="pmsissr",kx="pmsihad",Px="pmsipsy",imt="iCTI_pmsi",omt="iCTI_pmsissr",smt="iCTI_pmsihad",lmt="iCTI_pmsipsy",cmt={[imt]:zy,[omt]:_x,[smt]:kx,[lmt]:Px},poe={[zy]:{title:"RSS",dataKey:"nb_rss"},[_x]:{title:"RHS",dataKey:"nb_rhs"},[Px]:{title:"RPS",dataKey:"nb_rps"},[kx]:{title:"RPSS",dataKey:"nb_rpss"}},voe={[zy]:{title:"RUM",dataKey:"nb_rum"},[_x]:{title:"RHS Générés",dataKey:"nb_ref"},[Px]:{title:"RPA",dataKey:"nb_rpa"},[kx]:{title:"RAPSS",dataKey:"nb_rapss"}},Amt=[{key:"ZIN",label:"RSS IN.ZIP"},{key:"ZOU",label:"RSS OUT.ZIP"},{key:"ZIF",label:"RSF IN.ZIP"},{key:"DRUIDE_OQN",label:"DRUIDES OQN"},{key:"DRUIDE_SEJ",label:"DRUIDES SEJOURS"},{key:"DRUIDE_ACE",label:"DRUIDES RSF ACE"},{key:"RSS",label:"RSS"},{key:"RSF",label:"RSF"},{key:"FCP",label:"FICHCOMP (ex DG)"},{key:"MED",label:"Médecins"},{key:"RSSMED",label:"RSS - Médecins"},{key:"RSSNOM",label:"RSS - Noms"},{key:"ACTMED",label:"Actes Médecins"},{key:"VSJ",label:"Valorisation séjours"},{key:"VSE",label:"Valorisation ACE"},{key:"TSP",label:"FICHSUP transports"}],umt=[{key:"ZIN",label:"RHS IN.ZIP"},{key:"ZOU",label:"RHS OUT.ZIP"},{key:"ZIF",label:"RSF IN.ZIP"},{key:"RHS",label:"RHS"},{key:"RSF",label:"RSF"},{key:"VAL",label:"VAL DMA.CSV"}],moe=[{key:"ZIN",label:"RPSS IN.ZIP"},{key:"ZOU",label:"RPSS OUT.ZIP"},{key:"ZIF",label:"RSF IN.ZIP"},{key:"RPS",label:"RPSS"},{key:"RSF",label:"RSF"}],dmt={[zy]:Amt,[_x]:umt,[kx]:moe,[Px]:moe},fmt=[{title:"Nom",dataKey:"name"},{title:"Titre",dataKey:"title"},{title:"Démarré",dataKey:"start"},{title:"Terminé",dataKey:"end"},{title:"Statut",dataKey:"endStatus",width:50},{title:"Durée",dataKey:"duration"}],hmt=fmt.map(e=>({width:150,resizable:!0,key:e.dataKey,...e})),gmt=(e,t,r)=>[{title:"",dataIndex:"action",key:"deleteImport",render:(n,a,i)=>v.jsx(yt,{shape:"circle",icon:v.jsx(ki,{}),onClick:()=>r(a.fullname,t)})},{title:"Type",dataIndex:"type",key:"type",render:(n,a,i)=>{let o=e.find(s=>s.key===n);if(o)return o.label}},{title:"Mois",dataIndex:"mois",key:"month"},{title:"Fichier",dataIndex:"name",key:"file"},{title:"Date",dataIndex:"date",key:"date"},{title:"Taille",dataIndex:"size",key:"size"}],pmt=e=>[{title:"N°",dataKey:"oid"},{title:"Texte",dataKey:"texte",width:200},{title:"Date import",dataKey:"date_import",width:100},{title:"Etat",dataKey:"etat",width:100,dataGetter:({rowData:t})=>{let r="";return t.etat==="G"?r="Généré":t.etat==="C"&&(r="Contrôlé"),t.etat_en_cours==="G"&&(r=r+" - Génération en cours"),t.traitement_a_faire==="G"&&(r=r+" - Génération en attente"),r}},{title:"Finess",dataKey:"finess",width:150},{title:"Date début",dataKey:"date_debut",width:100},{title:"Date fin",dataKey:"date_fin",width:100},{title:poe[e].title,dataKey:poe[e].dataKey},{title:voe[e].title,dataKey:voe[e].dataKey},{title:"RSF",dataKey:"nb_rsf"},{title:"Erreur(s)",dataKey:"nb_erreurs"},{title:"Avertissement(s)",dataKey:"nb_avertissements",width:150}],vmt=e=>pmt(e).map(t=>({width:50,resizable:!0,key:t.dataKey,...t})),Eoe=e=>[{title:"N°",dataKey:"oid",width:50},{title:"Import dans CTI",dataKey:"date_text",dataGetter:({columns:t,column:r,columnIndex:n,rowData:a,rowIndex:i})=>e==="mco"?ei(a.date_text,"YYYY/MM/DD").format("DD/MM/YYYY"):a.date},{title:"Traitement du fichier MAT2A/OVALIDE",dataKey:"mat2a_date_text",dataGetter:({rowData:t})=>e==="mco"?ei(t.mat2a_date_text,"YYYY/MM/DD").format("DD/MM/YYYY"):t.mat2a_date},{title:"Année",dataKey:"mat2a_annee"},{title:"Mois",dataKey:"mat2a_mois"}],mmt=[{title:"RSA Transmis",dataKey:"mat2a_rsa_transmis"},{title:"RSA traités",dataKey:"mat2a_rsa_traites"},{title:"RSA séances",dataKey:"mat2a_rsa_seances"},{title:"RSA 0 nuits",dataKey:"mat2a_rsa_0_nuits"},{title:"Montant base de remboursement",dataKey:"mat2a_rsa_prestations_base_remb",dataGetter:({rowData:e})=>new Intl.NumberFormat("fr-FR",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}).format(e.mat2a_rsa_prestations_base_remb)}],Emt=[{title:"RHA",dataKey:"mat2a_rha"},{title:"Journées",dataKey:"mat2a_journees"},{title:"IVA",dataKey:"mat2a_iva"},{title:"Age moyen",dataKey:"mat2a_age_moyen"},{title:"% femmes",dataKey:"mat2a_pct_femmes"}],ymt=e=>{let t=[];return e==="mco"?t=Eoe(e).concat(mmt):t=Eoe(e).concat(Emt),t.map(r=>({width:150,resizable:!0,key:r.dataKey,...r}))},wMe=({jobsQueryData:e,isJobsQueryLoading:t,selectedJobId:r,handleSelectedJobId:n})=>v.jsx("div",{className:"import-jobs",children:v.jsx(Hn,{columns:hmt,data:e,loading:t,selectedRowOid:r,handleSelectedRowOid:n})});wMe.propTypes={jobsQueryData:W.array,isJobsQueryLoading:W.bool,selectedJobId:W.string,handleSelectedJobId:W.func};function FH(e){let t="";switch(e){case"mco":t="modules/pmsi/php/PMSI_getImportsMat2a.php";break;case"ssr":t="modules/pmsissr/php/PMSI_getImportsMat2a.php";break}return t}function Cmt(e){let t="";switch(e){case"mco":t="/modules/pmsi/php/PMSI_getFile_Mat2a.php?mat2a_import_id=";break;case"ssr":t="/modules/pmsissr/php/getFileMat2a.php?mat2a_import_id=";break}return t}function Ox(e,t,r){return`modules/${e}/php/${e===zy?r:t}`}function wmt(e){let t;switch(e){case"./CTI_BASE_TablesManager.swf":t="modules/base/php/BASE_getTableRecords.php";break;case"./CTI_ECO_TablesManager.swf":t="modules/eco/php/httpService_tablesManager_getData.php";break;case"./CTI_ACTI_TablesManager.swf":t="modules/activite/php/ACTI_getTableRecords.php";break;case"./CTI_PMSI_TablesManager.swf":t="modules/pmsi/php/PMSI_getTableRecords.php";break;case"./CTI_RH_TablesManager.swf":t="modules/rh/php/httpService_tablesManager_getData.php";break;case"./CTI_PMSISSR_TablesManager.swf":t="modules/pmsissr/php/PMSISSR_getTableRecords.php";break;case"./CTI_COMPTA_TablesManager.swf":t="modules/compta/php/COMPTA_getTableRecords.php";break;case"./CTI_SSAE_TablesManager.swf":t="modules/ssae/php/SSAE_getTableRecords.php";break;case"./CTI_DPI_TablesManager.swf":t="modules/dpi/php/DPI_getTableRecords.php";break;case"./CTI_ACTI_ConsoManager.swf":t="modules/activite/php/httpService_ACTI_consoManager_getData.php";break}return t}function Bmt(e){let t;switch(e){case"./CTI_ACTI_TablesManager.swf":t="modules/activite/php/httpService_ACTI_tableManager_copyRef.php";break;case"./CTI_PMSI_TablesManager.swf":t="modules/pmsi/php/httpService_PMSI_tableManager_copyRef.php";break;case"./CTI_RH_TablesManager.swf":t="mmodules/rh/php/httpService_RH_tableManager_copyRef.php";break;case"./CTI_ACTI_ConsoManager.swf":t="modules/activite/php/httpService_ACTI_consoManager_setData.php";break}return t}function BMe(e){let t;switch(e){case"./CTI_BASE_TablesManager.swf":t="modules/base/php/BASE_setTableRecord.php";break;case"./CTI_ECO_TablesManager.swf":t="modules/eco/php/httpService_tablesManager_setData.php";break;case"./CTI_ACTI_TablesManager.swf":t="modules/activite/php/ACTI_setTableRecord.php";break;case"./CTI_RH_TablesManager.swf":t="modules/rh/php/httpService_tablesManager_setData.php";break;case"./CTI_PMSI_TablesManager.swf":t="modules/pmsi/php/PMSI_setTableRecord.php";break;case"./CTI_PMSISSR_TablesManager.swf":t="modules/pmsissr/php/PMSISSR_setTableRecord.php";break;case"./CTI_COMPTA_TablesManager.swf":t="modules/compta/php/COMPTA_setTableRecord.php";break;case"./CTI_SSAE_TablesManager.swf":t="modules/ssae/php/SSAE_setTableRecord.php";break;case"./CTI_DPI_TablesManager.swf":t="modules/dpi/php/DPI_setTableRecord.php";break}return t}async function xMe(e,t,r){const n={oids:t,tableName:e};switch(r){case"iCTI_rh":await Sf("modules/rh/php/httpService_RH_tableManager_getSqlScript.php",n);break;case"iCTI_pmsi":await Sf("modules/pmsi/php/httpService_PMSI_tableManager_getSqlScript.php",n);break;case"iCTI_activite":await Sf("modules/activite/php/httpService_ACTI_tableManager_getSqlScript.php",n);break;case"iCTI_pmsissr":await Sf("modules/PMSISSR/php/httpService_PMSISSRtableManager_getSqlScript.php",n);break;default:await Sf("modules/base/php/httpService_listesManager_getSqlScript.php",n);break}}const xmt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"FILE"),n=Nt(t,"STATUS")[0];return{files:oa(r),statusMessage:Yr(n)}},W4=Ii(),Mmt=di.create({baseURL:W4,responseType:"json",headers:{"Content-Type":"multipart/form-data"}}),Ul=di.create({baseURL:W4,responseType:"json",headers:{"Content-Type":"application/json"}}),Imt=di.create({baseURL:W4,responseType:"arraybuffer",headers:{"Content-Type":"multipart/form-data"}}),bmt=di.create({baseURL:W4,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}}),Smt=e=>{const t=new FormData;for(const r in e)t.append(r,e[r]);return t},MMe="modules/base/php/import",Rmt=async e=>{let t=Ox(e,"getFiles.php","httpservice_PMSI_rssUpload_getFiles.php");const r=await jn(t);return xmt(r)},Tmt=async(e,t)=>{const r={type:t.type,importFile:t.name,importFileDate:t.lastModified.toString().substring(0,10),Filedata:t};let n=Ox(e,"upload.php","importUploadFiles.php");if(e==="pmsi"){const o=Smt(r);return(await Mmt.post(n,o)).data}const i=(await jn(n,r)).getElementsByTagName("HTTP_SERVICE")[0];return Yr(i)},Qmt=async e=>(await Ul.post(`${MMe}/removeFile.php`,{filename:e})).data,Dmt=async(e,t)=>{let r=Ox(e,"valideFiles.php","httpservice_PMSI_rssUpload_valideFiles.php");const a=(await jn(r,t)).getElementsByTagName("HTTP_SERVICE")[0];return Yr(a)},Fmt=async(e,t)=>{const r={module:e,import_id:t};return(await Ul.post(`${MMe}/execControl.php`,r)).data};class Ly{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const IB=typeof window>"u"||"Deno"in window;function Wc(){}function Nmt(e,t){return typeof e=="function"?e(t):e}function vL(e){return typeof e=="number"&&e>=0&&e!==1/0}function IMe(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vw(e,t,r){return jx(e)?typeof t=="function"?{...r,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function _mt(e,t,r){return jx(e)?{...t,mutationKey:e}:typeof e=="function"?{...t,mutationFn:e}:{...e}}function tg(e,t,r){return jx(e)?[{...t,queryKey:e},r]:[e||{},t]}function yoe(e,t){const{type:r="all",exact:n,fetchStatus:a,predicate:i,queryKey:o,stale:s}=e;if(jx(o)){if(n){if(t.queryHash!==NH(o,t.options))return!1}else if(!OT(t.queryKey,o))return!1}if(r!=="all"){const l=t.isActive();if(r==="active"&&!l||r==="inactive"&&l)return!1}return!(typeof s=="boolean"&&t.isStale()!==s||typeof a<"u"&&a!==t.state.fetchStatus||i&&!i(t))}function Coe(e,t){const{exact:r,fetching:n,predicate:a,mutationKey:i}=e;if(jx(i)){if(!t.options.mutationKey)return!1;if(r){if(pv(t.options.mutationKey)!==pv(i))return!1}else if(!OT(t.options.mutationKey,i))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||a&&!a(t))}function NH(e,t){return(t?.queryKeyHashFn||pv)(e)}function pv(e){return JSON.stringify(e,(t,r)=>mL(r)?Object.keys(r).sort().reduce((n,a)=>(n[a]=r[a],n),{}):r)}function OT(e,t){return bMe(e,t)}function bMe(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!bMe(e[r],t[r])):!1}function SMe(e,t){if(e===t)return e;const r=woe(e)&&woe(t);if(r||mL(e)&&mL(t)){const n=r?e.length:Object.keys(e).length,a=r?t:Object.keys(t),i=a.length,o=r?[]:{};let s=0;for(let l=0;l<i;l++){const c=r?l:a[l];o[c]=SMe(e[c],t[c]),o[c]===e[c]&&s++}return n===i&&s===n?e:o}return t}function jT(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function woe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function mL(e){if(!Boe(e))return!1;const t=e.constructor;if(typeof t>"u")return!0;const r=t.prototype;return!(!Boe(r)||!r.hasOwnProperty("isPrototypeOf"))}function Boe(e){return Object.prototype.toString.call(e)==="[object Object]"}function jx(e){return Array.isArray(e)}function RMe(e){return new Promise(t=>{setTimeout(t,e)})}function xoe(e){RMe(0).then(e)}function kmt(){if(typeof AbortController=="function")return new AbortController}function EL(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?SMe(e,t):t}class Pmt extends Ly{constructor(){super(),this.setup=t=>{if(!IB&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document>"u"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const zT=new Pmt,Moe=["online","offline"];class Omt extends Ly{constructor(){super(),this.setup=t=>{if(!IB&&window.addEventListener){const r=()=>t();return Moe.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{Moe.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator>"u"||typeof navigator.onLine>"u"?!0:navigator.onLine}}const LT=new Omt;function jmt(e){return Math.min(1e3*2**e,3e4)}function X4(e){return(e??"online")==="online"?LT.isOnline():!0}class TMe{constructor(t){this.revert=t?.revert,this.silent=t?.silent}}function fR(e){return e instanceof TMe}function QMe(e){let t=!1,r=0,n=!1,a,i,o;const s=new Promise((p,m)=>{i=p,o=m}),l=p=>{n||(f(new TMe(p)),e.abort==null||e.abort())},c=()=>{t=!0},A=()=>{t=!1},u=()=>!zT.isFocused()||e.networkMode!=="always"&&!LT.isOnline(),d=p=>{n||(n=!0,e.onSuccess==null||e.onSuccess(p),a?.(),i(p))},f=p=>{n||(n=!0,e.onError==null||e.onError(p),a?.(),o(p))},h=()=>new Promise(p=>{a=m=>{const y=n||!u();return y&&p(m),y},e.onPause==null||e.onPause()}).then(()=>{a=void 0,n||e.onContinue==null||e.onContinue()}),g=()=>{if(n)return;let p;try{p=e.fn()}catch(m){p=Promise.reject(m)}Promise.resolve(p).then(d).catch(m=>{var y,C;if(n)return;const w=(y=e.retry)!=null?y:3,B=(C=e.retryDelay)!=null?C:jmt,x=typeof B=="function"?B(r,m):B,M=w===!0||typeof w=="number"&&r<w||typeof w=="function"&&w(r,m);if(t||!M){f(m);return}r++,e.onFail==null||e.onFail(r,m),RMe(x).then(()=>{if(u())return h()}).then(()=>{t?f(m):g()})})};return X4(e.networkMode)?g():h().then(g),{promise:s,cancel:l,continue:()=>a?.()?s:Promise.resolve(),cancelRetry:c,continueRetry:A}}const _H=console;function zmt(){let e=[],t=0,r=A=>{A()},n=A=>{A()};const a=A=>{let u;t++;try{u=A()}finally{t--,t||s()}return u},i=A=>{t?e.push(A):xoe(()=>{r(A)})},o=A=>(...u)=>{i(()=>{A(...u)})},s=()=>{const A=e;e=[],A.length&&xoe(()=>{n(()=>{A.forEach(u=>{r(u)})})})};return{batch:a,batchCalls:o,schedule:i,setNotifyFunction:A=>{r=A},setBatchNotifyFunction:A=>{n=A}}}const Gi=zmt();class DMe{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),vL(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t??(IB?1/0:300*1e3))}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class Lmt extends DMe{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||_H,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||Ymt(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=EL(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r?.updatedAt,manual:r?.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(Wc).catch(Wc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!IMe(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,a;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return(i=this.retryer)==null||i.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(h=>h.options.queryFn);f&&this.setOptions(f.options)}const o=kmt(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};l(s);const c=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),A={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:c};if(l(A),(n=this.options.behavior)==null||n.onFetch(A),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((a=A.fetchOptions)==null?void 0:a.meta)){var u;this.dispatch({type:"fetch",meta:(u=A.fetchOptions)==null?void 0:u.meta})}const d=f=>{if(fR(f)&&f.silent||this.dispatch({type:"error",error:f}),!fR(f)){var h,g,p,m;(h=(g=this.cache.config).onError)==null||h.call(g,f,this),(p=(m=this.cache.config).onSettled)==null||p.call(m,this.state.data,f,this)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=QMe({fn:A.fetchFn,abort:o?.abort.bind(o),onSuccess:f=>{var h,g,p,m;if(typeof f>"u"){d(new Error(this.queryHash+" data is undefined"));return}this.setData(f),(h=(g=this.cache.config).onSuccess)==null||h.call(g,f,this),(p=(m=this.cache.config).onSettled)==null||p.call(m,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:d,onFail:(f,h)=>{this.dispatch({type:"failed",failureCount:f,error:h})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:A.options.retry,retryDelay:A.options.retryDelay,networkMode:A.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var a,i;switch(t.type){case"failed":return{...n,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(a=t.meta)!=null?a:null,fetchStatus:X4(this.options.networkMode)?"fetching":"paused",...!n.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...n,data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(i=t.dataUpdatedAt)!=null?i:Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=t.error;return fR(o)&&o.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...t.state}}};this.state=r(this.state),Gi.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function Ymt(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t<"u",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class Umt extends Ly{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var a;const i=r.queryKey,o=(a=r.queryHash)!=null?a:NH(i,r);let s=this.get(o);return s||(s=new Lmt({cache:this,logger:t.getLogger(),queryKey:i,queryHash:o,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){Gi.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=tg(t,r);return typeof n.exact>"u"&&(n.exact=!0),this.queries.find(a=>yoe(n,a))}findAll(t,r){const[n]=tg(t,r);return Object.keys(n).length>0?this.queries.filter(a=>yoe(n,a)):this.queries}notify(t){Gi.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){Gi.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){Gi.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class Hmt extends DMe{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||_H,this.observers=[],this.state=t.state||FMe(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...this.defaultOptions,...t},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}async execute(){const t=()=>{var M;return this.retryer=QMe({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(S,R)=>{this.dispatch({type:"failed",failureCount:S,error:R})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(M=this.options.retry)!=null?M:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,a,i,o,s,l,c,A;if(!r){var u,d,f,h;this.dispatch({type:"loading",variables:this.options.variables}),await((u=(d=this.mutationCache.config).onMutate)==null?void 0:u.call(d,this.state.variables,this));const S=await((f=(h=this.options).onMutate)==null?void 0:f.call(h,this.state.variables));S!==this.state.context&&this.dispatch({type:"loading",context:S,variables:this.state.variables})}const M=await t();return await((n=(a=this.mutationCache.config).onSuccess)==null?void 0:n.call(a,M,this.state.variables,this.state.context,this)),await((i=(o=this.options).onSuccess)==null?void 0:i.call(o,M,this.state.variables,this.state.context)),await((s=(l=this.mutationCache.config).onSettled)==null?void 0:s.call(l,M,null,this.state.variables,this.state.context,this)),await((c=(A=this.options).onSettled)==null?void 0:c.call(A,M,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:M}),M}catch(M){try{var g,p,m,y,C,w,B,x;throw await((g=(p=this.mutationCache.config).onError)==null?void 0:g.call(p,M,this.state.variables,this.state.context,this)),await((m=(y=this.options).onError)==null?void 0:m.call(y,M,this.state.variables,this.state.context)),await((C=(w=this.mutationCache.config).onSettled)==null?void 0:C.call(w,void 0,M,this.state.variables,this.state.context,this)),await((B=(x=this.options).onSettled)==null?void 0:B.call(x,void 0,M,this.state.variables,this.state.context)),M}finally{this.dispatch({type:"error",error:M})}}}dispatch(t){const r=n=>{switch(t.type){case"failed":return{...n,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"loading":return{...n,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!X4(this.options.networkMode),status:"loading",variables:t.variables};case"success":return{...n,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"};case"setState":return{...n,...t.state}}};this.state=r(this.state),Gi.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function FMe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class Gmt extends Ly{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const a=new Hmt({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(a),a}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){Gi.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact>"u"&&(t.exact=!0),this.mutations.find(r=>Coe(t,r))}findAll(t){return this.mutations.filter(r=>Coe(t,r))}notify(t){Gi.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return Gi.batch(()=>r.reduce((n,a)=>n.then(()=>a.continue().catch(Wc)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function Kmt(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,a,i,o;const s=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,l=(n=e.fetchOptions)==null||(a=n.meta)==null?void 0:a.fetchMore,c=l?.pageParam,A=l?.direction==="forward",u=l?.direction==="backward",d=((i=e.state.data)==null?void 0:i.pages)||[],f=((o=e.state.data)==null?void 0:o.pageParams)||[];let h=f,g=!1;const p=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>{var M;if((M=e.signal)!=null&&M.aborted)g=!0;else{var S;(S=e.signal)==null||S.addEventListener("abort",()=>{g=!0})}return e.signal}})},m=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),y=(x,M,S,R)=>(h=R?[M,...h]:[...h,M],R?[S,...x]:[...x,S]),C=(x,M,S,R)=>{if(g)return Promise.reject("Cancelled");if(typeof S>"u"&&!M&&x.length)return Promise.resolve(x);const b={queryKey:e.queryKey,pageParam:S,meta:e.options.meta};p(b);const T=m(b);return Promise.resolve(T).then(F=>y(x,S,F,R))};let w;if(!d.length)w=C([]);else if(A){const x=typeof c<"u",M=x?c:Ioe(e.options,d);w=C(d,x,M)}else if(u){const x=typeof c<"u",M=x?c:Vmt(e.options,d);w=C(d,x,M,!0)}else{h=[];const x=typeof e.options.getNextPageParam>"u";w=(s&&d[0]?s(d[0],0,d):!0)?C([],x,f[0]):Promise.resolve(y([],f[0],d[0]));for(let S=1;S<d.length;S++)w=w.then(R=>{if(s&&d[S]?s(d[S],S,d):!0){const T=x?f[S]:Ioe(e.options,R);return C(R,x,T)}return Promise.resolve(y(R,f[S],d[S]))})}return w.then(x=>({pages:x,pageParams:h}))}}}}function Ioe(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function Vmt(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class Jmt{constructor(t={}){this.queryCache=t.queryCache||new Umt,this.mutationCache=t.mutationCache||new Gmt,this.logger=t.logger||_H,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=zT.subscribe(()=>{zT.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=LT.subscribe(()=>{LT.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=tg(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll({...t,fetching:!0}).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const a=vw(t,r,n),i=this.getQueryData(a.queryKey);return i?Promise.resolve(i):this.fetchQuery(a)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const a=n.data;return[r,a]})}setQueryData(t,r,n){const a=this.queryCache.find(t),i=a?.state.data,o=Nmt(r,i);if(typeof o>"u")return;const s=vw(t),l=this.defaultQueryOptions(s);return this.queryCache.build(this,l).setData(o,{...n,manual:!0})}setQueriesData(t,r,n){return Gi.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:a})=>[a,this.setQueryData(a,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=tg(t,r),a=this.queryCache;Gi.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(t,r,n){const[a,i]=tg(t,r,n),o=this.queryCache,s={type:"active",...a};return Gi.batch(()=>(o.findAll(a).forEach(l=>{l.reset()}),this.refetchQueries(s,i)))}cancelQueries(t,r,n){const[a,i={}]=tg(t,r,n);typeof i.revert>"u"&&(i.revert=!0);const o=Gi.batch(()=>this.queryCache.findAll(a).map(s=>s.cancel(i)));return Promise.all(o).then(Wc).catch(Wc)}invalidateQueries(t,r,n){const[a,i]=tg(t,r,n);return Gi.batch(()=>{var o,s;if(this.queryCache.findAll(a).forEach(c=>{c.invalidate()}),a.refetchType==="none")return Promise.resolve();const l={...a,type:(o=(s=a.refetchType)!=null?s:a.type)!=null?o:"active"};return this.refetchQueries(l,i)})}refetchQueries(t,r,n){const[a,i]=tg(t,r,n),o=Gi.batch(()=>this.queryCache.findAll(a).filter(l=>!l.isDisabled()).map(l=>{var c;return l.fetch(void 0,{...i,cancelRefetch:(c=i?.cancelRefetch)!=null?c:!0,meta:{refetchPage:a.refetchPage}})}));let s=Promise.all(o).then(Wc);return i!=null&&i.throwOnError||(s=s.catch(Wc)),s}fetchQuery(t,r,n){const a=vw(t,r,n),i=this.defaultQueryOptions(a);typeof i.retry>"u"&&(i.retry=!1);const o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(Wc).catch(Wc)}fetchInfiniteQuery(t,r,n){const a=vw(t,r,n);return a.behavior=Kmt(),this.fetchQuery(a)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(Wc).catch(Wc)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(a=>pv(t)===pv(a.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>OT(t,n.queryKey));return r?.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(a=>pv(t)===pv(a.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>OT(t,n.mutationKey));return r?.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r={...this.defaultOptions.queries,...this.getQueryDefaults(t?.queryKey),...t,_defaulted:!0};return!r.queryHash&&r.queryKey&&(r.queryHash=NH(r.queryKey,r)),typeof r.refetchOnReconnect>"u"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary>"u"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:{...this.defaultOptions.mutations,...this.getMutationDefaults(t?.mutationKey),...t,_defaulted:!0}}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class Wmt extends Ly{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),boe(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yL(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yL(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,a=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),jT(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled<"u"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const i=this.hasListeners();i&&Soe(this.currentQuery,a,this.options,n)&&this.executeFetch(),this.updateResult(r),i&&(this.currentQuery!==a||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const o=this.computeRefetchInterval();i&&(this.currentQuery!==a||this.options.enabled!==n.enabled||o!==this.currentRefetchInterval)&&this.updateRefetchInterval(o)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return qmt(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch({refetchPage:t,...r}={}){return this.fetch({...r,meta:{refetchPage:t}})}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch({...t,cancelRefetch:(r=t.cancelRefetch)!=null?r:!0}).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(Wc)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),IB||this.currentResult.isStale||!vL(this.options.staleTime))return;const r=IMe(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!(IB||this.options.enabled===!1||!vL(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||zT.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,a=this.options,i=this.currentResult,o=this.currentResultState,s=this.currentResultOptions,l=t!==n,c=l?t.state:this.currentQueryInitialState,A=l?this.currentResult:this.previousQueryResult,{state:u}=t;let{dataUpdatedAt:d,error:f,errorUpdatedAt:h,fetchStatus:g,status:p}=u,m=!1,y=!1,C;if(r._optimisticResults){const S=this.hasListeners(),R=!S&&boe(t,r),b=S&&Soe(t,n,r,a);(R||b)&&(g=X4(t.options.networkMode)?"fetching":"paused",d||(p="loading")),r._optimisticResults==="isRestoring"&&(g="idle")}if(r.keepPreviousData&&!u.dataUpdatedAt&&A!=null&&A.isSuccess&&p!=="error")C=A.data,d=A.dataUpdatedAt,p=A.status,m=!0;else if(r.select&&typeof u.data<"u")if(i&&u.data===o?.data&&r.select===this.selectFn)C=this.selectResult;else try{this.selectFn=r.select,C=r.select(u.data),C=EL(i?.data,C,r),this.selectResult=C,this.selectError=null}catch(S){this.selectError=S}else C=u.data;if(typeof r.placeholderData<"u"&&typeof C>"u"&&p==="loading"){let S;if(i!=null&&i.isPlaceholderData&&r.placeholderData===s?.placeholderData)S=i.data;else if(S=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof S<"u")try{S=r.select(S),this.selectError=null}catch(R){this.selectError=R}typeof S<"u"&&(p="success",C=EL(i?.data,S,r),y=!0)}this.selectError&&(f=this.selectError,C=this.selectResult,h=Date.now(),p="error");const w=g==="fetching",B=p==="loading",x=p==="error";return{status:p,fetchStatus:g,isLoading:B,isSuccess:p==="success",isError:x,isInitialLoading:B&&w,data:C,dataUpdatedAt:d,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>c.dataUpdateCount||u.errorUpdateCount>c.errorUpdateCount,isFetching:w,isRefetching:w&&!B,isLoadingError:x&&u.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:y,isPreviousData:m,isRefetchError:x&&u.dataUpdatedAt!==0,isStale:kH(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,jT(n,r))return;this.currentResult=n;const a={cache:!0},i=()=>{if(!r)return!0;const{notifyOnChangeProps:o}=this.options,s=typeof o=="function"?o():o;if(s==="all"||!s&&!this.trackedProps.size)return!0;const l=new Set(s??this.trackedProps);return this.options.useErrorBoundary&&l.add("error"),Object.keys(this.currentResult).some(c=>{const A=c;return this.currentResult[A]!==r[A]&&l.has(A)})};t?.listeners!==!1&&i()&&(a.listeners=!0),this.notify({...a,...t})}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r?.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!fR(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){Gi.batch(()=>{if(t.onSuccess){var r,n,a,i;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(a=(i=this.options).onSettled)==null||a.call(i,this.currentResult.data,null)}else if(t.onError){var o,s,l,c;(o=(s=this.options).onError)==null||o.call(s,this.currentResult.error),(l=(c=this.options).onSettled)==null||l.call(c,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:A})=>{A(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function Xmt(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function boe(e,t){return Xmt(e,t)||e.state.dataUpdatedAt>0&&yL(e,t,t.refetchOnMount)}function yL(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&kH(e,t)}return!1}function Soe(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&kH(e,r)}function kH(e,t){return e.isStaleByTime(t.staleTime)}function qmt(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!jT(e.getCurrentResult(),t)}let Zmt=class extends Ly{constructor(t,r){super(),this.client=t,this.setOptions(r),this.bindMethods(),this.updateResult()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){var r;const n=this.options;this.options=this.client.defaultMutationOptions(t),jT(n,this.options)||this.client.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.currentMutation,observer:this}),(r=this.currentMutation)==null||r.setOptions(this.options)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.currentMutation)==null||t.removeObserver(this)}}onMutationUpdate(t){this.updateResult();const r={listeners:!0};t.type==="success"?r.onSuccess=!0:t.type==="error"&&(r.onError=!0),this.notify(r)}getCurrentResult(){return this.currentResult}reset(){this.currentMutation=void 0,this.updateResult(),this.notify({listeners:!0})}mutate(t,r){return this.mutateOptions=r,this.currentMutation&&this.currentMutation.removeObserver(this),this.currentMutation=this.client.getMutationCache().build(this.client,{...this.options,variables:typeof t<"u"?t:this.options.variables}),this.currentMutation.addObserver(this),this.currentMutation.execute()}updateResult(){const t=this.currentMutation?this.currentMutation.state:FMe(),r=t.status==="loading",n={...t,isLoading:r,isPending:r,isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset};this.currentResult=n}notify(t){Gi.batch(()=>{if(this.mutateOptions&&this.hasListeners()){if(t.onSuccess){var r,n,a,i;(r=(n=this.mutateOptions).onSuccess)==null||r.call(n,this.currentResult.data,this.currentResult.variables,this.currentResult.context),(a=(i=this.mutateOptions).onSettled)==null||a.call(i,this.currentResult.data,null,this.currentResult.variables,this.currentResult.context)}else if(t.onError){var o,s,l,c;(o=(s=this.mutateOptions).onError)==null||o.call(s,this.currentResult.error,this.currentResult.variables,this.currentResult.context),(l=(c=this.mutateOptions).onSettled)==null||l.call(c,void 0,this.currentResult.error,this.currentResult.variables,this.currentResult.context)}}t.listeners&&this.listeners.forEach(({listener:A})=>{A(this.currentResult)})})}};var j3={exports:{}},z3={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Roe;function $mt(){if(Roe)return z3;Roe=1;var e=Ur();function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,a=e.useEffect,i=e.useLayoutEffect,o=e.useDebugValue;function s(u,d){var f=d(),h=n({inst:{value:f,getSnapshot:d}}),g=h[0].inst,p=h[1];return i(function(){g.value=f,g.getSnapshot=d,l(g)&&p({inst:g})},[u,f,d]),a(function(){return l(g)&&p({inst:g}),u(function(){l(g)&&p({inst:g})})},[u]),o(f),f}function l(u){var d=u.getSnapshot;u=u.value;try{var f=d();return!r(u,f)}catch{return!0}}function c(u,d){return d()}var A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?c:s;return z3.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:A,z3}var Toe;function e0t(){return Toe||(Toe=1,j3.exports=$mt()),j3.exports}var t0t=e0t();const NMe=t0t.useSyncExternalStore,Qoe=E.createContext(void 0),_Me=E.createContext(!1);function kMe(e,t){return e||(t&&typeof window<"u"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Qoe),window.ReactQueryClientContext):Qoe)}const hs=({context:e}={})=>{const t=E.useContext(kMe(e,E.useContext(_Me)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},r0t=({client:e,children:t,context:r,contextSharing:n=!1})=>{E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]);const a=kMe(r,n);return E.createElement(_Me.Provider,{value:!r&&n},E.createElement(a.Provider,{value:e},t))},PMe=E.createContext(!1),n0t=()=>E.useContext(PMe);PMe.Provider;function a0t(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const i0t=E.createContext(a0t()),o0t=()=>E.useContext(i0t);function OMe(e,t){return typeof e=="function"?e(...t):!!e}const s0t=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},l0t=e=>{E.useEffect(()=>{e.clearReset()},[e])},c0t=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&OMe(r,[e.error,n]),A0t=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},u0t=(e,t)=>e.isLoading&&e.isFetching&&!t,d0t=(e,t,r)=>e?.suspense&&u0t(t,r),f0t=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function h0t(e,t){const r=hs({context:e.context}),n=n0t(),a=o0t(),i=r.defaultQueryOptions(e);i._optimisticResults=n?"isRestoring":"optimistic",i.onError&&(i.onError=Gi.batchCalls(i.onError)),i.onSuccess&&(i.onSuccess=Gi.batchCalls(i.onSuccess)),i.onSettled&&(i.onSettled=Gi.batchCalls(i.onSettled)),A0t(i),s0t(i,a),l0t(a);const[o]=E.useState(()=>new t(r,i)),s=o.getOptimisticResult(i);if(NMe(E.useCallback(l=>{const c=n?()=>{}:o.subscribe(Gi.batchCalls(l));return o.updateResult(),c},[o,n]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),E.useEffect(()=>{o.setOptions(i,{listeners:!1})},[i,o]),d0t(i,s,n))throw f0t(i,o,a);if(c0t({result:s,errorResetBoundary:a,useErrorBoundary:i.useErrorBoundary,query:o.getCurrentQuery()}))throw s.error;return i.notifyOnChangeProps?s:o.trackResult(s)}function zx(e,t,r){const n=vw(e,t,r);return h0t(n,Wmt)}function Hl(e,t,r){const n=_mt(e,t),a=hs({context:n.context}),[i]=E.useState(()=>new Zmt(a,n));E.useEffect(()=>{i.setOptions(n)},[i,n]);const o=NMe(E.useCallback(l=>i.subscribe(Gi.batchCalls(l)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=E.useCallback((l,c)=>{i.mutate(l,c).catch(g0t)},[i]);if(o.error&&OMe(i.options.useErrorBoundary,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}function g0t(){}const jMe=e=>zx({queryKey:["getUploadedImportFiles",e],queryFn:()=>Rmt(e)}),p0t=()=>{const e=hs();return Hl({mutationFn:({module:t,file:r})=>Tmt(t,r),onError:t=>{ll({description:t.response.data.message})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getUploadedImportFiles",n.module]}),!r&&t&&(t.returnCode==="KO"?ll({description:t.returnTexte}):Gg({message:"Fichier téléchargé",description:n.file.name}))}})},v0t=()=>{const e=hs();return Hl({mutationFn:({filename:t,module:r})=>Qmt(t),onError:t=>{ll({description:t.response.data.message})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getUploadedImportFiles",n.module]})}})},m0t=()=>{const e=hs();return Hl({mutationFn:({module:t,importOptions:r})=>Dmt(t,r),onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]})}})},E0t=()=>{const e=hs();return Hl({mutationFn:({module:t,import_id:r})=>Fmt(t,r),onError:t=>{const r=t.response.data.message;ll({message:"Erreur lancement des contrôle",description:r})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]}),r||ya({type:t.returnType,message:"Contrôle terminé",description:t.message})}})},zMe=({fileTypes:e,handleImportOptions:t,importOptions:r,module:n,progress:a,isShowProgressBar:i,updateProgression:o})=>{const s=E.useRef(),l=jMe(n),c=p0t(),A=v0t(),u=()=>{s.current.click()},d=(g,p)=>{o(-1),A.mutate({filename:g,module:p})},f=g=>{let p=g.target.files[0];l.data.files.reduce((y,C)=>p.name===C.name?!0:y,!1)?jnt({message:"Fichier déjà présent",description:p.name}):c.mutate({module:n,file:p})},h=[{title:"Validation des fichiers"},{title:"Contrôle des fichiers"},{title:"Lancement génération"}];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"import-new",children:[v.jsx("span",{className:"new-title",children:"Fichiers locaux à importer"}),v.jsxs("div",{className:"upload-form",children:[v.jsx(yt,{icon:v.jsx(XB,{}),loading:c.isLoading,disabled:c.isLoading,onClick:u,children:"Rechercher"}),v.jsx("input",{type:"file",ref:s,onChange:f,style:{display:"none"}}),v.jsxs("div",{className:"description",children:[v.jsx("span",{style:{marginRight:"20px"},children:"Texte"}),v.jsx(jt,{style:{width:"200px"},value:r.import_texte,onChange:g=>t(g.target.value,"import_texte")})]})]}),v.jsx(rh,{dataSource:l.data?.files??[],columns:gmt(e,n,d),loading:l.isLoading??!0,pagination:!1})]}),v.jsx("div",{className:"import-progress",style:{display:i&&a.current!==-1?"block":"none"},children:v.jsx(oCe,{current:a.current,status:a.status,items:h})})]})};zMe.propTypes={fileTypes:W.array,handleImportOptions:W.func,importOptions:W.object,module:W.string,progress:W.object,isShowProgressBar:W.bool,updateProgression:W.func};const LMe=({importData:e,importIsLoading:t,selectedImportId:r,handleSelectedImportId:n,module:a})=>v.jsx("div",{className:"import-state",children:v.jsx(Hn,{columns:vmt(a),data:e,loading:t,selectedRowOid:r,handleSelectedRowOid:n})});LMe.propTypes={importData:W.array,importIsLoading:W.bool,selectedImportId:W.string,handleSelectedImportId:W.func,module:W.string};const q4="modules/base/php/import",y0t=async e=>(await Ul.post(`${q4}/getImports.php`,e)).data,C0t=async(e,t)=>{const r={module:t,option:"D",import_id:e};await Ul.post(`${q4}/execImport.php`,r)},w0t=async(e,t)=>{const r={module:t,option:"C",import_id:e};return(await Ul.post(`${q4}/execImport.php`,r)).data},B0t=async(e,t,r)=>{const n={...r,module:t,option:"G",import_id:e};return(await Ul.post(`${q4}/execImport.php`,n)).data},x0t=async(e,t)=>{let r=new FormData;r.append("import_id",e);let n=Ox(t,"getImportRapport.php","PMSI_getImportRapport.php");const a=await Imt.post(n,r);return new TextDecoder("iso-8859-15").decode(a.data)},M0t=async(e,t,r)=>{let n=new FormData;n.append("import_id",e),n.append("data_type",r);let a=Ox(t,"getFile.php","PMSI_getFile.php");return await bmt.post(a,n)},I0t=e=>zx({queryKey:["getImports",e.module],queryFn:()=>y0t(e),staleTime:1e3*60*5,cacheTime:1e3*60*5}),b0t=(e,t,r=null)=>{const n=new Blob([e],{type:r||"application/octet-stream"}),a=window.URL.createObjectURL(n),i=document.createElement("a");i.href=a,i.setAttribute("download",t),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(a)},S0t=e=>{let t="",r=e.headers["content-disposition"];if(r&&r.indexOf("attachment")!==-1){const a=/filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/i.exec(r);a!=null&&a[1]&&(t=a[1].replace(/['"]/g,""))}return t},R0t=()=>{const e=hs();return Hl({mutationFn:({import_id:t,module:r})=>C0t(t,r),onError:t=>{const r=t.response.data.message;ll({description:r})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]}),r||Gg({message:"Suppression réussi"})}})},T0t=()=>{const e=hs();return Hl({mutationFn:({import_id:t,module:r})=>w0t(t,r),onMutate:()=>{ya({type:"info",message:"Contrôle",description:"Contrôle lancé"})},onError:t=>{const r=t.response.data.message;ll({message:"Erreur lancement des contrôle",description:r})},onSettled:async(t,r,n)=>{await e.invalidateQueries({queryKey:["getImports",n.module]}),r||ya({type:t.returnType,message:"Contrôle terminé",description:t.message})}})},Q0t=()=>{const e=hs();return Hl({mutationFn:({import_id:t,module:r,...n})=>B0t(t,r,n),onError:t=>{const r=t.response.data.message;ll({message:"Erreur génération",description:r})},onSuccess(t){t.returnType==="error"?ll({message:"Erreur bloquante",description:t.message}):ya({message:"Génération",description:"La génération a été lancé sur le serveur"})},onSettled:(t,r,n)=>{setTimeout(async()=>{await e.invalidateQueries({queryKey:["getImports",n.module]})},1e3)}})},D0t=()=>Hl({mutationFn:({import_id:e,module:t})=>x0t(e,t),onSettled:async(e,t)=>{const r=window.open();r.document.write(e),r.document.close()}}),F0t=()=>Hl({mutationFn:({import_id:e,module:t,fileImportType:r})=>M0t(e,t,r),onError:()=>{ll({message:"Erreur téléchargement",description:"Fichier non trouvé"})},onSuccess:e=>{let t=S0t(e);Gg({message:"Téléchargement",description:"Téléchargement débuté"}),b0t(e.data,t)}}),YMe=({importsQuery:e,fileTypes:t,selectedImportId:r,setShowGenerateModal:n,module:a,setIsShowProgressBar:i,generateImportMutation:o})=>{const s=R0t(),l=T0t(),c=D0t(),A=F0t(),u=hs(),d=async()=>{await u.invalidateQueries({queryKey:["getImports",a]})},f=()=>{s.mutate({import_id:r,module:a})},h=()=>{c.mutate({import_id:r,module:a})},g=()=>{l.mutate({import_id:r,module:a})},p=()=>{i(!1),n(!0)},m=async({key:w})=>{await A.mutateAsync({import_id:r,module:a,fileImportType:w})},C=(()=>{let w=[];const B=e.data?.find(x=>x.oid===r);return B&&(w=t.reduce((x,{key:M,label:S})=>{const R=`${M.toLocaleLowerCase()}_file_path`;return B[R]&&B[R]!==""?[...x,{label:S,key:M}]:x},[])),w})();return v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:d,disabled:e.isFetching,children:v.jsx(ao,{})})}),v.jsx(Xr,{title:"Supprimer l'import",children:v.jsx(Ni,{placement:"top",style:{zIndex:"4000"},title:"Etes vous sur de vouloir supprimer l'import ?",onConfirm:f,okText:"Supprimer",cancelText:"Annuler",children:v.jsx(yt,{type:"link",disabled:!r||s.isLoading,children:v.jsx(ki,{})})})}),v.jsx(yt,{size:"default",icon:v.jsx(QY,{}),loading:c.isLoading,disabled:!r||c.isLoading,onClick:h,children:"Dernier rapport"}),v.jsx(yt,{size:"default",icon:v.jsx(Cy,{}),loading:l.isLoading,disabled:!r||l.isLoading,onClick:g,children:"Recontrôler"}),v.jsx(yt,{size:"default",icon:v.jsx(_Y,{}),loading:o.isLoading,disabled:!r||o.isLoading,onClick:p,children:"Générer"}),v.jsx(Yg,{menu:{items:C,onClick:m},disabled:!r||A.isLoading,trigger:["click"],arrow:!0,children:v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(vQ,{}),loading:A.isLoading,children:"Télécharger fichier"})})]})};YMe.propTypes={importsQuery:W.object,fileTypes:W.array,selectedImportId:W.string,setShowGenerateModal:W.func,module:W.string,setIsShowProgressBar:W.func,generateImportMutation:W.object};const UMe=({importOptions:e,setShowGenerateModal:t,setSelectedImportId:r,module:n,updateProgression:a,setIsShowProgressBar:i,validateUploadedFilesMutation:o,controlUploadedFiles:s})=>{const c=!jMe(n).data?.files?.length||!e.import_texte,A=()=>{a(0),i(!0),o.mutate({module:n,importOptions:e},{onSuccess:d=>{d.returnCode==="OK"?u(d.import_id):(ll({message:"Erreur",description:d.returnTexte}),a(0,!0))}})},u=d=>{a(1),s.mutate({module:n,import_id:d},{onError:()=>{a(1,!0)},onSuccess:f=>{a(2),t(!0),r(d)}})};return v.jsx(Ni,{title:"Confirmez-vous le lancement de cet import ?",onConfirm:A,okText:"Lancer l'import",cancelText:"Annuler",disabled:c,children:v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(PNe,{}),loading:o.isLoading||s.isLoading,disabled:c,children:"Lancer l'import"})})};UMe.propTypes={importOptions:W.object,module:W.string,updateProgression:W.func,setShowGenerateModal:W.func,setIsShowProgressBar:W.func,setSelectedImportId:W.func,validateUploadedFilesMutation:W.object,controlUploadedFiles:W.object};const HMe=({module:e,jobsQueryIsFetching:t})=>{const r=hs(),n=async()=>{await r.invalidateQueries({queryKey:["getImportJobs",e]})};return v.jsx(v.Fragment,{children:v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",disabled:t,onClick:n,children:v.jsx(ao,{})})})})};HMe.propTypes={module:W.string,jobsQueryIsFetching:W.bool};const N0t="modules/base/php/import",_0t=async e=>(await Ul.post(`${N0t}/getImportJobs.php`,e)).data,k0t=(e,t)=>zx({queryKey:["getImportJobs",e.module],queryFn:()=>_0t(e),enabled:t==="jobs"}),GMe=({softcode:e})=>{const[t,r]=E.useState("state"),[n,a]=E.useState({current:-1,status:"process"}),[i,o]=E.useState(!1),[s,l]=E.useState(null),[c,A]=E.useState(null),[u,d]=E.useState(!1),[f,h]=E.useState({option_expert:!0,option_essentiels:!0}),g=cmt[e]??"",p=I0t({module:g}),m=k0t({module:g},t),y=m0t(),C=E0t(),w=Q0t();if(p.isError){const _=p.error.response.data.message;ya({type:"error",message:"Erreur",description:_})}const B=dmt[g]??[],M={[zy]:"RSS / RSF",[_x]:"RHS / RSF",[kx]:"RPSS",[Px]:"RPS"}[g]??"",S=_=>{r(_)},R=_=>{l(_)},b=_=>{A(_)},T=(_,P=!1)=>{a({current:_,status:P?"error":"process"})},D=()=>{d(_=>!_)},F=(_,P)=>{h(k=>({...k,[P]:_}))},N=()=>{switch(t){case"state":return v.jsx(YMe,{importsQuery:p,fileTypes:B,selectedImportId:s,setShowGenerateModal:d,module:g,setIsShowProgressBar:o,generateImportMutation:w});case"new":return v.jsx(UMe,{importOptions:f,setShowGenerateModal:d,setSelectedImportId:l,module:g,updateProgression:T,setIsShowProgressBar:o,validateUploadedFilesMutation:y,controlUploadedFiles:C});case"jobs":return v.jsx(HMe,{module:g,jobsQueryIsFetching:m.isFetching??!0});default:return null}};return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des imports"})}),v.jsx(CMe,{showGenerateModal:u,selectedImportId:s,handleShowGenerateModal:D,module:g,generateImportMutation:w,importOptions:f,handleImportOptions:F,updateProgression:T}),v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:["Import des fichiers ",M]}),v.jsx("div",{className:"header-actions",children:N()})]}),v.jsx("div",{className:"component-content",children:v.jsx(Oi,{onChange:S,defaultActiveKey:"state",items:[{label:"Etats des imports",key:"state",children:v.jsx(LMe,{importData:p.data??[],importIsLoading:p.isFetching??!0,selectedImportId:s,handleSelectedImportId:R,module:g})},{label:"Nouvel import",key:"new",children:v.jsx(zMe,{fileTypes:B,handleImportOptions:F,importOptions:f,module:g,progress:n,isShowProgressBar:i,updateProgression:T})},{label:"Historique des imports",key:"jobs",children:v.jsx(wMe,{jobsQueryData:m.data??[],selectedJobId:c,isJobsQueryLoading:m.isFetching??!0,handleSelectedJobId:b})}]})})]})};GMe.propTypes={softcode:W.string};const CL=e=>async function(t,r){const n=FH(e);t(UE(!0));const a={action:"get"};let{data:i}=await Vf(n,"post",a);t(j3e(i)),t(UE(!1))},P0t=(e,t)=>async function(r,n){if(r(UE(!0)),t==="ssr")await Vf(`api/pmsissr/importsOvalide/${e}`,"delete",{});else{const a=FH(t);await Vf(a,"post",{action:"delete",id:e})}r(z3e(e)),r(UE(!1))},O0t=async(e,t)=>{const n=`${Ii()}${Cmt(t)}${e}`,a=await To({method:"get",url:n,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}});Y4(a.data,"ovalide.zip")},j0t=(e,t,r)=>async function(n,a){const i=FH(r);n(UE(!0));const o={action:"post",fileName:e.name,fileData:e,typeEts:t};await Vf(i,"post",o),n(UE(!1)),n(CL(r))},wL=({module:e})=>{const[t,r]=E.useState(null),n=ut(h=>h.cti.components.ovalide.loading),a=ut(h=>h.cti.settings.data),i=ut(h=>h.cti.components.ovalide.data.imports),o=E.useRef(),s=wn();E.useEffect(()=>{s(CL(e))},[e,s]);const l=()=>{s(CL(e))},c=h=>{r(i.find(g=>g.oid===h))},A=()=>{t&&s(P0t(t.oid,e))},u=()=>{t&&O0t(t.oid,e)},d=h=>{o.current.click()},f=h=>{const g=h.target.files[0],p=a.environment.TYPEETS;s(j0t(g,p,e))};return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des imports"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Import des fichiers MAT2A/OVALIDE"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:l,children:v.jsx(ao,{})})}),v.jsx(Xr,{title:"Supprimer",children:v.jsx(yt,{type:"link",onClick:A,disabled:!t,children:v.jsx(ki,{})})}),v.jsx(Xr,{title:"Télécharger le fichier de l'import",children:v.jsx(yt,{type:"link",onClick:u,disabled:!t||!t.oid,children:v.jsx(vQ,{})})}),v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(XB,{}),onClick:d,children:"Importer un fichier"}),v.jsx("input",{type:"file",ref:o,onChange:f,style:{display:"none"}})]})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"ovalide-imports",children:v.jsx(Hn,{rowKey:"oid",columns:ymt(e),loading:n,data:i,selectedRow:t,onRowSelect:c})})})]})};wL.propTypes={module:W.string};const BL=e=>async function(t,r){t(jR(!0));const n={action:"get"};let{data:a}=await Vf("modules/pmsissr/php/PMSI_getImportsValo.php","post",n);t(gOe(a)),t(jR(!1))},z0t=(e,t)=>async function(r,n){r(jR(!0));const a={action:"post",fileName:e.name,fileData:e};await Vf("modules/pmsissr/php/PMSI_getImportsValo.php","post",a),r(jR(!1)),r(BL())},KMe=e=>{const t=ut(A=>A.cti.components.valo.data),r=ut(A=>A.cti.components.valo.loading),n=E.useRef(),a=wn();E.useEffect(()=>{a(BL())},[a]);const i=()=>{a(BL())},o=A=>{n.current.click()},s=A=>{const u=A.target.files[0];a(z0t(u))},c=[{title:"Import dans CTI",dataKey:"date"},{title:"Nombre séjour",dataKey:"nb_sejours"},{title:"Nombre séjour HC",dataKey:"nb_sejours_hc"},{title:"Nombre séjour HP",dataKey:"nb_sejours_hp"},{title:"Nombre séjour non valorisé",dataKey:"nb_sejours_non_valorises"},{title:"Nombre séjour pédiatrique",dataKey:"nb_sejours_pediatrique_valorises"},{title:"Année de valorisation",dataKey:"vclass"},{title:"Coefficient Géographique",dataKey:"coeffgeo"},{title:"Coefficient Spécialisation",dataKey:"coeffspe"},{title:"Coefficient prudentiel",dataKey:"coeffprud"},{title:"Coefficient honoraire",dataKey:"coeffhono"},{title:"Coefficient transition",dataKey:"coefftrans"},{title:"Fraction DMA",dataKey:"fracdma"}].map(A=>({width:100,resizable:!0,key:A.dataKey,...A}));return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des imports"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Imports VALO SSR"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:i,children:v.jsx(ao,{})})}),v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(XB,{}),onClick:o,children:"Importer un fichier"}),v.jsx("input",{type:"file",ref:n,onChange:s,style:{display:"none"}})]})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"valo-imports",children:v.jsx(Hn,{rowKey:"oid",columns:c,loading:r,data:t.imports})})})]})};KMe.propTypes={};const L0t=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"INDICATEUR"),n=Nt(t,"TABLE"),a=Nt(t,"THEME"),i=Nt(t,"THEME_SEARCH");return[VMe(r),JMe(n),Y0t(i),WMe(a)]},VMe=e=>{let t=[];return e&&e.forEach((r,n)=>{let a=Yr(r),i=Nt(r,"THEME"),o=[],s=[],l=[];i&&i.forEach(u=>{let d=Yr(u);o.push(d.oid)});for(let u=1;u<=6;u++)a[`theme_${u}_id`]!=="0"&&s.push(a[`theme_${u}_id`]);for(let u=1;u<=5;u++)a[`dimension_date_${u}`]!==""&&l.push(Number(a[`dimension_date_${u}`]));let c=a.entete,A=a.description;a.entete=c.replaceAll("&#xA;",`
`),a.description=A.replaceAll("&#xA;",`
`),a.themesSearch=o,a.themes=s,a.dimensions=l,a.is_cti=a.is_cti==="1",a.is_hide=a.is_hide==="1",a.key=n,t.push(a)}),t},JMe=e=>{let t=[];return e&&e.forEach(r=>{let n=Yr(r),a=[];n.nb_dimensions_date=Number(n.nb_dimensions_date);for(let i=1;i<=5;i++)n[`dimensions_date_texte_${i}`]!==""&&a.push({value:i,label:n[`dimensions_date_texte_${i}`]});n.dimensions=a,t.push(n)}),t},WMe=e=>{let t=[];return e&&e.forEach((r,n)=>{let a=Yr(r);a.title=a.label,a.value=a.data,t.push(a)}),um(t)},Y0t=e=>{let t=[];return e&&e.forEach((r,n)=>{let a=Yr(r);a.title=a.label,a.value=a.data,t.push(a)}),um(t)},U0t=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"RAPPORT"),n=Nt(t,"REFRAPPORT"),a=Nt(t,"COMBO_GROUP"),i=Nt(t,"COMBO_RAPPORT"),o=Nt(t,"COMBO_CONDITION"),s=Nt(t,"COMBO_TYPERAPPORT");return{reports:oa(r),refReports:oa(n),comboGroup:Doe(a),comboReport:J0t(i),comboCondition:W0t(o),conditions:oa(Nt(o[0],"RECORD")),comboType:Doe(s)}},H0t=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"RAPPORT")[0],n=Nt(r,"RUBRIQUE");let a=[];n&&n.length&&n.forEach((o,s)=>{let l=Yr(o),c=l.entete,A=l.description;l.entete=c.replaceAll("&#xA;",`
`),l.description=A.replaceAll("&#xA;",`
`),l.border_thickness=Number(l.border_thickness),l.is_hide=Number(l.is_hide),l.key=s,a.push(l)});let i=Yr(r);return i.sections=a,i},G0t=e=>{const t=e.getElementsByTagName("LASTSTATUS_ACTIVE")[0];return Yr(t).status},K0t=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"VIEW");return oa(r)},V0t=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"INDICATEUR"),n=Nt(t,"TABLE"),a=Nt(t,"THEME");return{tables:JMe(n),themes:WMe(a),indicators:VMe(r)}};function Doe(e){const t=Nt(e[0],"RECORD");let r=[];return t&&t.length&&t.forEach(n=>{let a=Yr(n);a.value=a.data??a.oid,r.push(a)}),r}function J0t(e){const t=Nt(e[0],"RECORD");let r=[];return t&&t.length&&t.forEach(n=>{let a=Yr(n);a.value=a.oid,r.push(a)}),r}function W0t(e){const t=Nt(e[0],"RECORD");let r=[];return t&&t.length&&t.forEach(n=>{let a=Yr(n);a.oid&&(a.value=a.oid,r.push(a))}),r=um(r),r}const bB=()=>async function(e,t){e(xJ(!0));const n={softCode:t().cti.content.moduleId},a=await jn("modules/base/php/getIndicateurs.php",n);let[i,o,s,l]=L0t(a);e(w3e(i,o,s,l)),e(xJ(!1))},X0t=async(e,t)=>{await Sf("modules/base/php/httpService_indicateursManager_getSqlScript.php",{softCode:e,indicateur:t})},Foe=(e,t,r=!1)=>async function(n,a){await jn("modules/base/php/setIndicateur.php",{action:r?"copy":"delete",softCode:e,oid:t}),n(r?bB():B3e(t))},q0t=(e,t)=>async function(r,n){const a={action:"save",softCode:e,...t};await jn("modules/base/php/setIndicateur.php",a),r(bB())},Kv=e=>async function(t,r){t(PR(!0));const n=Ii();let a=new FormData;a.append("modules",e),a.append("options","-separator -fulldefinition");try{const o=await To({method:"post",url:n+"modules/base/php/httpService_chooseIndicateurs_getIndicateurs.php",data:a,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});var i=new TextDecoder("iso-8859-15");const s=i.decode(o.data);let l=Nge(s);const{tables:c,themes:A,indicators:u}=V0t(l);t(W3e(c,A,u))}catch(o){throw console.log(o),new Error("Erreur lors de la récupérations des indicateurs")}},XMe=({selectedRowKeys:e,setSelectedRowKeys:t,selectionsModified:r,setSelectionsModified:n,handleAddIndicators:a,handleModifyIndicator:i,handleShowModal:o,tableData:s,options:l,joinedIndicatorIndex:c})=>{const A=f=>{if(!r)o();else{let h=[];e.forEach(g=>{h.push(s.find(p=>p.key===g))}),l.oneOnly?i(c?{value:h[0].oid,field:c}:h[0]):a(h),n(!1),f===!0?o():d(h.length)}},u=()=>{if(e.length)t([]);else{let f=s.map(h=>h.key);t(f)}};function d(f){tl.success(`${f} indicateurs ajoutés`)}return v.jsxs(v.Fragment,{children:[v.jsx(yt,{onClick:o,children:r?"Annuler":"Fermer"}),l.oneOnly===!1&&v.jsxs(v.Fragment,{children:[v.jsx(yt,{onClick:()=>A(!1),disabled:!r,children:"Ajouter et continuer"}),v.jsx(yt,{onClick:u,disabled:!r,children:"Tout (de) selectionner"})]}),v.jsx(yt,{type:"primary",onClick:()=>A(!0),disabled:!r,children:"Ajouter et fermer"})]})};XMe.propTypes={handleAddIndicators:W.func,handleModifyIndicator:W.func,handleShowModal:W.func,options:W.object,selectedRowKeys:W.array,setSelectedRowKeys:W.func,selectionsModified:W.bool,setSelectionsModified:W.func,tableData:W.array};function qMe(e){let t={width:"95%",height:"100%"};for(let r in e)switch(r){case"font_size":e[r]!=="0"&&(t.fontSize=`${e[r]}px`);break;case"font_weight":t.fontWeight=e[r];break;case"padding":t.paddingLeft=`${e[r]}px`;break;case"color":e.is_hide!==1&&(t.color=e[r]);break;case"background_color":e.is_hide!==1&&(t.backgroundColor=e[r]);break;case"border_thickness":e[r]===1&&(t.border="2px solid rgba(0, 0, 0, 0.5)");break;case"is_hide":e[r]===1&&(t.color=Mn.inactiveGrey);break}return t}const Yy=({label:e,isCti:t,icon:r,toolTipLabel:n})=>v.jsxs(v.Fragment,{children:[(t==="0"||t==="false"||!t)&&v.jsx(Xr,{title:n,children:"null"}),e]});Yy.propTypes={label:W.string,isCti:W.oneOfType([W.string,W.bool]),icon:W.string};const Z0t=e=>{const t=[{title:"Contexte",dataKey:"contexte",width:100},{title:"Code",dataKey:"code"},{title:"Nom",dataKey:"texte",frozen:"left",width:600,cellRenderer:({rowData:a})=>{const i=a.label?a.label:a.texte;return v.jsx("div",{className:"BaseTable__row-cell-text",children:v.jsx(Yy,{label:i,isCti:a.is_cti,icon:"Hospital",toolTipLabel:"Rapport créé par l'établissement"})})}},{title:"Condition",dataKey:"rapport_indicateur_condition"}];return((a,i)=>{if(i==="ESSENTIEL"){const o={title:"Groupe",dataKey:"group_texte",width:150};a.unshift(o)}})(t,e),t.map(a=>({width:200,resizable:!0,key:a.dataKey,...a}))};function $0t(e,t,r,n){let a=[{title:"N°",width:40,dataKey:"numero_rubrique",frozen:"left"},{title:"Nom",dataKey:"entete_etendue",frozen:"left",width:400,cellRenderer:({rowData:i})=>{const o=i.entete_etendue!==""?i.entete_etendue:i.indicateur_entete_etendue,s=qMe(i);return v.jsx("div",{style:s,className:"BaseTable__row-cell-text",children:v.jsx(Yy,{label:o,isCti:i.is_cti,style:s,icon:"Hospital",toolTipLabel:"Indicateur créé par l'établissement"})})}},{title:"Code",width:150,dataKey:"code"},{title:"Format de sortie",dataKey:"output_format",width:120,dataGetter:({rowData:i})=>{const o="output_format";return i[o]!==""?i[o]:i["indicateur_output_format"]}},{title:"Condition",dataKey:"indicateur_condition",width:120}];return e.type_rapport==="ESSENTIEL"?a.push({title:"Picto",width:75,dataKey:"picto_enabled",dataGetter:({rowData:i})=>{let o="";const s="picto_enabled",l="positif_is_good";return o+=i[s]==="1"?"+":"",o+=i[l]==="1"?" OK":"",o}},{title:"Série",width:800,dataGetter:({rowData:i})=>{let o="";return o=r(i,n).map(l=>l?.code).join(" / "),o}}):a.push({title:"Nom abrégé",dataKey:"entete",width:250,dataGetter:({rowData:i})=>i.entete!==""?i.entete:i.indicateur_entete},{title:"Fonction Total",width:150,dataKey:"total_function",dataGetter:({rowData:i})=>{let o="";return t.forEach(s=>{s.value===i.total_function&&(o+=s.title)}),o}}),e.type_rapport==="VUEPARAM"&&a.push({title:"Comparé avec",width:300,dataKey:"compared_indicator_label"}),a.map(i=>({width:200,...i,resizable:!0,key:i.dataKey,className:"cti-default-table",headerClassName:"cti-default-table"}))}const eEt=e=>[{title:"Code",dataIndex:"code",dataKey:"code",key:"code",width:250,resizable:!0},{title:"Nom",dataKey:"texte",dataIndex:"texte",key:"name",frozen:"left",width:400,cellRenderer:({rowData:t})=>{const r=t.texte!==""?t.texte:t.entete_etendue,n=qMe(t),a=t.is_cti?"1":"0";return v.jsx("div",{style:n,className:"BaseTable__row-cell-text",children:v.jsx(Yy,{label:r,isCti:a,style:n,icon:"Hospital",toolTipLabel:"Indicateur créé par l'établissement"})})}},{title:"Format de sortie",dataKey:"output_format",dataIndex:"output_format",key:"output_format",width:200},{title:"Table",dataKey:"table_name",dataGetter:({rowData:t})=>{let r=t.table_name;const n=e.find(a=>a.code===r);return n?n.texte:r},width:200,key:"table"}],Ld=({showModal:e,handleShowModal:t,handleAddIndicators:r,handleModifyIndicator:n,options:a,specifiedIndicators:i=[],joinedIndicatorIndex:o=null})=>{const[s,l]=E.useState([]),[c,A]=E.useState(""),[u,d]=E.useState([]),[f,h]=E.useState(!1),g=ut(B=>B.cti.components.reports.data),p=ut(B=>B.cti.components.indicators.data);E.useEffect(()=>{i.length?l(m(i)):l(m(g.indicators.indicators))},[g,c,i]),E.useEffect(()=>{d([])},[e]);function m(B){return ym(B,c,["texte","code"])}const y=v.jsx(XMe,{selectedRowKeys:u,setSelectedRowKeys:d,setSelectionsModified:h,selectionsModified:f,handleAddIndicators:r,handleModifyIndicator:n,handleShowModal:t,tableData:s,options:a,joinedIndicatorIndex:o}),C=B=>{A(B.target.value)},w=B=>{if(h(!0),a.oneOnly)u.length&&u[0]===B?d([]):d([B]);else{let x=[...u];Array.isArray(B)?x=x.concat(B):x.includes(B)?x=x.filter(M=>M!==B):x.push(B),d(x)}};return v.jsx(gi,{open:e,onCancel:t,footer:y,width:"75%",bodyStyle:{height:"70vh"},centered:!0,zIndex:3010,children:v.jsxs("div",{className:"indicator-modal",children:[v.jsxs("div",{className:"indicator-modal-header",children:[v.jsx("span",{className:"modal-title",children:"Choix d'un ou plusieurs indicateurs"}),v.jsxs("div",{className:"modal-search",children:[v.jsx("span",{children:"Rechercher par texte:"}),v.jsx(jt,{value:c,onChange:C})]})]}),v.jsx("div",{className:"indicator-modal-table",children:v.jsx(Hn,{rowKey:"key",columns:eEt(p.tables),data:s,selectedRow:a.oneOnly===!0?s.find(B=>B.key===u[0]):null,selectedRows:a.oneOnly===!1?u:null,shiftMulti:a.oneOnly!==!0,onRowSelect:w})})]})})};Ld.propTypes={showModal:W.bool,handleShowModal:W.func,handleAddIndicators:W.func,handleModifyIndicator:W.func,options:W.object,specifiedIndicators:W.array};Ld.defaultProps={specifiedIndicators:[]};const tEt=()=>v.jsx("div",{className:"form-row",children:v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Largeur"}),v.jsx(We.Item,{name:"width",children:v.jsx(jt,{className:"indicator-form-input"})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Format de sortie"}),v.jsx(We.Item,{name:"output_format",children:v.jsx(jt,{className:"indicator-form-input"})})]})]})}),rEt=e=>{let t=[{value:"*LIST",title:"Pas de fonction total"},{value:"Sommes",title:"Sommes",disabled:!0,children:[{title:"Somme",value:"SUM"},{title:"Somme du dernier mois",value:"SUMLASTMONTH"},{title:"Somme du premier mois",value:"SUMFIRSTMONTH"},{title:"Somme distincte",value:"base.cti_sum_distinct_on"}]},{value:"Bornes",title:"Bornes",disabled:!0,children:[{title:"Minimum",value:"MIN"},{title:"Maximum",value:"MAX"}]},{value:"Moyennes",title:"Moyennes",disabled:!0,children:[{title:"Moyenne",value:"AVG"},{title:"Moyenne sur 12 mois",value:"AVG12M"}]},{value:"Comptage",title:"Comptage",disabled:!0,children:[{title:"Comptage",value:"COUNT"},{title:"Comptage du dernier mois",value:"COUNTLASTMONTH"}]},{value:"Texte",title:"Texte",disabled:!0,children:[{title:"Aggrégation des valeurs",value:"LISTACUM"}]}];return e==="eis"&&t.filter(a=>a.value==="Texte")[0].children.push({title:"AGGVAL",data:"AGGVAL"}),t},nEt=[{title:"Pas de fonction total",value:"AGGVAL"},{title:"Pas de fonction total",value:"*LIST"},{title:"Somme",value:"SUM"},{title:"Somme du dernier mois",value:"SUMLASTMONTH"},{title:"Somme du premier mois",value:"SUMFIRSTMONTH"},{title:"Somme distincte",value:"base.cti_sum_distinct_on"},{title:"Minimum",value:"MIN"},{title:"Maximum",value:"MAX"},{title:"Moyenne",value:"AVG"},{title:"Moyenne sur 12 mois",value:"AVG12M"},{title:"Comptage",value:"COUNT"},{title:"Comptage du dernier mois",value:"COUNTLASTMONTH"},{title:"Aggrégation des valeurs",value:"LISTACUM"},{title:"Calcul entre indicateurs",value:"*CALC"}],YT=(e,t)=>{let r={},n=[];for(const[a,i]of Object.entries(e))/indicateur_associe_[\d]*_id/.test(a)&&i!=="0"&&(r[a]=i);if(r){const i=Object.values(r).map(o=>t?.indicators.find(s=>s.oid===o));i.forEach(o=>{for(const[s,l]of Object.entries(r))if(l===o?.oid){const c=s.match(/\d+/g);o.associatedIndicatorIndex=Number(c[0])}}),n=i}return n},ZMe=({textAreaLastCursorPosition:e,indicator:t,handleShowModal:r,handleChange:n})=>{const a=ut(u=>u.cti.components.indicators.data),i=YT(t,a),o=ut(u=>u.cti.menu.selectedModuleKey),s=u=>{let d="";const f=e,h="["+u.associatedIndicatorIndex+"]";t.column_name?e?d=t.column_name.slice(0,f)+h+t.column_name.slice(f):d=t.column_name+h:d=h,n({field:"column_name",value:d})},c=(u=>{for(const[d,f]of Object.entries(u))if(/indicateur_associe_[\d]*_id/.test(d)&&f==="0")return d;return null})(t),A=()=>{if(t.table_name&&!t.table_name.includes("*CALC"))return v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Fonction 'total'"}),v.jsx(We.Item,{name:"total_function",children:v.jsx(_i,{treeData:rEt(o),size:"large",treeDefaultExpandAll:!0,dropdownStyle:{maxHeight:400,overflow:"auto"},className:"indicator-form-input",onChange:n})})]});{const u=i.map((d,f)=>v.jsxs("li",{className:"editor__database-joined-indicator-list",children:[v.jsxs("span",{className:"editor__database-joined-indicator-list--key",children:["[",d.associatedIndicatorIndex,"] - "]}),v.jsx(yt,{type:"dashed",onClick:()=>s(d),children:v.jsx("span",{children:d.code})}),v.jsx(Mi,{placement:"top",title:"Modifier l'indicateur",children:v.jsx(yt,{type:"secondary",icon:v.jsx(Xf,{}),onClick:()=>r(`indicateur_associe_${d.associatedIndicatorIndex}_id`,t)})}),v.jsx(Mi,{placement:"top",title:"Supprimer l'indicateur",children:v.jsx(yt,{type:"danger",icon:v.jsx(ki,{}),className:"editor__database-joined-indicator--delete-button",onClick:()=>n({field:`indicateur_associe_${d.associatedIndicatorIndex}_id`,value:"0"})})})]},f));return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateurs associés:"}),v.jsxs("div",{className:"editor__database-joined-indicator-block",children:[i.length>0&&v.jsx("ul",{children:u}),i.length<=20&&v.jsx(yt,{onClick:()=>r(c,t),children:"Ajouter"})]})]})})}};return v.jsx(v.Fragment,{children:A()})};ZMe.propTypes={textAreaLastCursorPosition:W.oneOfType([W.string,W.number]),form:W.object,indicator:W.object,handleShowModal:W.func,handleChange:W.func};const $Me=({tableOptions:e,form:t,indicator:r,handleShowModal:n,handleChange:a})=>{const[i,o]=E.useState(null),s=l=>{o(l.target.selectionStart)};return v.jsx("div",{className:"form-row",children:v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Table"}),v.jsx(We.Item,{name:"table_name",children:v.jsx(sn,{className:"indicator-form-input",onChange:l=>a({field:"table_name",value:l}),children:e})})]}),r.table_name!==""&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Code SQL"}),v.jsx(We.Item,{name:"column_name",children:v.jsx(jt.TextArea,{autoSize:{minRows:4},className:"editor__database-textArea",onChange:l=>a({field:"column_name",value:l.target.value}),onMouseLeave:l=>s(l)})})]}),r.total_function!=="*LISTANON"&&v.jsx(ZMe,{textAreaLastCursorPosition:i,form:t,indicator:r,handleShowModal:n,handleChange:a})]})]})})};$Me.propTypes={tableOptions:W.array,form:W.object,indicator:W.object,handleShowModal:W.func};const hR=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",...e,children:v.jsx("path",{fill:"currentColor",d:"M9 7h2V5H9m1 13c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-18a10 10 0 1 0 0 20 10 10 0 0 0 0-20M9 15h2V9H9z"})}),SB=({copiedText:e,size:t="default",type:r="primary",tooltip:n="Copier",style:a})=>{const[i,o]=E.useState(!1),s=()=>{o(!i),navigator.clipboard.writeText(e)};return v.jsx(v.Fragment,{children:v.jsx(Xr,{title:"Copier",children:v.jsx(yt,{style:a,size:t,type:r,icon:i?v.jsx(lA,{style:{color:Mn.green}}):v.jsx($v,{}),onClick:s})})})};SB.propTypes={copiedText:W.string,size:W.string,type:W.string,tooltip:W.string};const eIe=({indicator:e,availableDimensions:t,indicatorDimensions:r,setIndicatorDimensions:n,handleChange:a})=>{const i=ut(c=>c.cti.content.moduleId),o=ut(c=>c.cti.settings.data.session),s=c=>{n(c)},l=c=>{let A={anonymized:c.target.checked};c.target.checked?(A.total_function="*LISTANON",e.table_name==="*CALC"&&(A.table_name="")):A.total_function="*LIST",a({fieldsToEdit:A})};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Code"}),v.jsx(We.Item,{name:"code",children:v.jsx(jt,{className:"indicator-form-input"})}),v.jsx(SB,{copiedText:e.code,type:"secondary",style:{marginLeft:8,marginBottom:5}},e.oid)]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom"}),v.jsx(We.Item,{name:"texte",children:v.jsx(jt,{className:"indicator-form-input"})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom abrégé"}),v.jsx(We.Item,{name:"entete",children:v.jsx(jt.TextArea,{className:"indicator-form-input"})}),v.jsx(Xr,{title:"Nom de l'entéte de la colonne qui apparait dans le rapport",children:v.jsx(hR,{style:{marginLeft:6,marginBottom:-1,color:Mn.lightBlue}})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Description"}),v.jsx(We.Item,{name:"description",children:v.jsx(jt.TextArea,{className:"indicator-form-input"})})]})}),o.ISROLECTI&&v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateur CTI"}),v.jsx(We.Item,{valuePropName:"checked",name:"is_cti",children:v.jsx(un,{size:"small",onChange:c=>a({field:"is_cti",value:c.target.checked})})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateur anonymisé"}),v.jsx(We.Item,{valuePropName:"checked",name:"anonymized",children:v.jsx(un,{size:"small",onChange:l,disabled:!o.ISROLECTI||!o.ISROLEADMIN})})]})}),i==="iCTI_activite"&&v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Dimension date"}),e.dimension_date===""||!e.dimension_date?v.jsx(We.Item,{name:"dimensions",children:v.jsx(_i,{treeData:t,value:r,multiple:!0,onChange:s})}):v.jsx("span",{children:e.dimension_date})]})})]})};eIe.propTypes={setModified:W.func,indicator:W.object,availableDimensions:W.array,setIndicatorDimensions:W.func,handleChange:W.func};const xL=({handleReset:e,toolTipTitle:t="Annuler les modifications",title:r="Des modifications sont en cours... Etes vous sur de vouloir annuler ?",discardText:n="Annuler les modifications",cancelText:a="Revenir à l'éditeur",size:i="default"})=>v.jsx(Xr,{title:t,children:v.jsx(Ni,{placement:"topRight",title:r,onConfirm:e,okText:n,cancelText:a,children:v.jsx(yt,{size:i,children:v.jsx(ao,{})})})});xL.propTypes={handleReset:W.func.isRequired,toolTipTitle:W.string,title:W.string,discardText:W.string,cancelText:W.string,size:W.string};const tIe=({modified:e,indicator:t,handleSubmit:r,handleReset:n,handleCopy:a,handleCloseEditor:i,handleDelete:o})=>{const s=ut(c=>c.cti.settings.data.session),l=c=>e&&t.oid!=="-1"?v.jsxs("div",{className:"editor-indicator-header",children:[v.jsx(ny,{handleClick:r,toolTipTitle:"Enregistrer"}),v.jsx(xL,{handleReset:n})]}):t.oid==="-1"?v.jsxs("div",{className:"editor-new-indicator-header",children:[v.jsx("div",{className:"editor__header-title",children:"Nouvel indicateur"}),v.jsxs("div",{className:"editor-indicator-header",children:[v.jsx(ny,{handleClick:r,toolTipTitle:"Enregistrer"}),v.jsx(xL,{handleReset:n})]})]}):v.jsxs("div",{className:"editor-new-indicator-header",children:[v.jsx("div",{className:"editor__header-title",children:"Modifier l'indicateur"}),v.jsxs("div",{className:"editor-indicator-action-button",children:[v.jsx(Xr,{title:"Copier l'indicateur",children:v.jsx(yt,{size:"default",type:"primary",icon:v.jsx($v,{}),onClick:a,children:"Copier"})}),s.ISROLECTI?v.jsx(yt,{size:"default",icon:v.jsx(my,{}),onClick:()=>{X0t(t.module,t.oid)},children:"SQL"}):null,v.jsx(Xr,{title:"Annuler",children:v.jsxs(yt,{onClick:i,children:[v.jsx(ao,{}),"Annuler"]})}),v.jsx(Xr,{title:"Supprimer l'indicateur",children:v.jsxs(yt,{onClick:o,type:"danger",disabled:c,children:[v.jsx(ki,{}),"Supprimer"]})})]})]});return v.jsx(v.Fragment,{children:l(jy(t.is_cti,s))})};tIe.propTypes={modified:W.bool,indicator:W.object,handleSubmit:W.func,handleReset:W.func,handleCopy:W.func,handleCloseEditor:W.func,handleDelete:W.func};const{Option:aEt}=sn,rIe=({indicator:e,setIndicator:t,showEditor:r,tables:n,handleCloseEditor:a,themes:i})=>{const[o,s]=E.useState(!1),[l,c]=E.useState(),[A,u]=E.useState(),[d,f]=E.useState(),[h,g]=E.useState(),[p,m]=E.useState(null),[y,C]=E.useState(!1),[w,B]=E.useState([]),x=ut(V=>V.cti.components.indicators.data),[M]=We.useForm(),S=wn(),R=ut(V=>V.cti.settings.data.session);E.useEffect(()=>{const V=n.find(J=>J.code===e.table_name);V&&g(V.dimensions)},[e,n]),E.useEffect(()=>{const V=Y();M.setFieldsValue(V),c(V),u(X(e)),f(K(e))},[e,x.indicators]);const b=({value:V,field:J,fieldsToEdit:ee})=>{s(!0);let ae=JSON.parse(JSON.stringify(e)),ne=M.getFieldsValue();for(const he in ne)ae[he]=ne[he];let fe={...ae};if(J&&V&&(fe={...ae,[J]:V}),ee){for(const he in ee)ae[he]=ee[he];fe={...ae,fieldsToEdit:ee}}t({...fe})},T=(V=null,J)=>{V&&(m(V),B(j(J))),C(!y)},D=()=>{s(!0)},F=()=>{M.setFieldsValue(l),s(!1),a()},N=()=>{S(Foe(e.module,e.oid)),a(),H("info","Indicateur","La suppression est en cours")},_=()=>{S(Foe(e.module,e.oid,!0)),H("info","Indicateur","La copie est en cours")},P=()=>{let V=k(e,M);S(q0t(e.module,V)),s(!1),H("info","Création de l'indicateur","L'indicateur est en cours de création.")},k=(V,J)=>{let ee=J.getFieldsValue();for(let fe in ee)ee[fe]===!0?ee[fe]="1":ee[fe]===!1?ee[fe]="0":ee[fe]||(ee[fe]="");const ae=U(i);for(let fe=1;fe<=6;fe++){let he="0";A[fe-1]&&(he=ae.find(ye=>ye.value===A[fe-1]).data),ee[`theme_${fe}_id`]=he}for(let fe=1;fe<=5;fe++){let he="";d[fe-1]&&(he=d[fe-1].toString()),ee[`dimension_date_${fe}`]=he}let ne={...V,...ee};return delete ne.dimensions,delete ne.themes,delete ne.anonymized,delete ne.themesSearch,delete ne.is_new,ne},j=V=>{let J=[];for(const[ne,fe]of Object.entries(V))/indicateur_associe_[\d]*_id/.test(ne)&&fe!=="0"&&J.push(fe);let ae=x.indicators.filter(ne=>!J.includes(ne.oid)).filter(ne=>![V.oid].includes(ne.oid));return ae.length>0?ae:[]};function Y(V){let J=M.getFieldsValue();for(let ae in J)J[ae]=null;return J.table_name=n[0].code,{...J,...e}}function X(V){let J=[];const ee=U(i);return V.themes.forEach(ae=>{const ne=ee.find(fe=>fe.data===ae);ne&&J.push(ne.value)}),J}function K(V){let J=[];const ee=n.find(ae=>ae.code===V.table_name);return V?.dimensions.forEach(ae=>{const ne=ee?.dimensions.find(fe=>fe.value===ae);ne&&J.push(ne.value)}),J}function U(V){let J=[];return V.forEach(ee=>{let ae={...ee};ae.children&&(J=J.concat(U(ae.children)),delete ae.children),J.push(ae)}),J}function H(V,J,ee){hc[V]({message:J,description:ee})}let L=n.map((V,J)=>v.jsx(aEt,{value:V.code,children:V.texte},J));return e.total_function==="*LISTANON"&&(L=L.filter(V=>V.props.value!=="*CALC")),v.jsxs(v.Fragment,{children:[v.jsx(Ld,{showModal:y,handleShowModal:()=>T(null),handleModifyIndicator:b,options:{oneOnly:!0},specifiedIndicators:w,joinedIndicatorIndex:p}),v.jsxs("div",{className:"editor-indicator-editor",style:{display:r?"flex":"none"},children:[v.jsx("div",{className:"editor-indicator-header ",children:v.jsx(tIe,{modified:o,indicator:e,handleSubmit:P,handleReset:F,handleCopy:_,handleCloseEditor:a,handleDelete:N})}),v.jsxs(We,{className:"indicator-editor-form",form:M,onValuesChange:D,disabled:jy(e.is_cti,R),children:[v.jsx("div",{className:"indicator-tab-column",children:v.jsx(Oi,{items:[{label:"Paramètre",key:"1",className:"scrollable-tab",children:v.jsx(eIe,{indicator:e,availableDimensions:h,indicatorDimensions:d,setIndicatorDimensions:f,handleChange:b})}]})}),e.code!=="CTI_SEP"&&v.jsx("div",{className:"indicator-tab-column",children:v.jsx(Oi,{items:[{label:"Base de donnée",key:"1",className:"scrollable-tab",children:v.jsx($Me,{tableOptions:L,form:M,indicator:e,handleShowModal:T,handleChange:b})},{label:"Présentation",key:"2",className:"scrollable-tab",children:v.jsx(tEt,{})}]})})]})]})]})};rIe.prototype={indicator:W.object,setIndicator:W.func,showEditor:W.bool,tables:W.arrayOf(W.object),handleCloseEditor:W.func,themes:W.arrayOf(W.object)};const iEt=[{title:"oid",key:"oid",dataKey:"oid",width:150},{title:"code",key:"code",dataKey:"code",width:150},{title:"Entête",key:"entete",dataKey:"entete",width:200},{title:"Libéllé",key:"texte",dataKey:"texte",width:200,flexGrow:2},{title:"CTI",key:"isCti",dataKey:"isCti",width:50,dataGetter:({rowData:e})=>v.jsx(un,{disabled:!0,checked:e.isCti})}],oEt=(e,t)=>{let r=[{title:"Code",dataKey:"code",width:250},{title:"Nom",dataKey:"texte",frozen:"left",width:500,cellRenderer:({rowData:n})=>{const a=n.texte,i=n.is_cti?"1":"0";return v.jsx("div",{className:"BaseTable__row-cell-text",children:v.jsx(Yy,{label:a,isCti:i,icon:"Hospital",toolTipLabel:"Indicateur créé par l'établissement"})})}},{title:"Nom abrégé",dataKey:"entete",width:400},{title:"Table",dataKey:"table_name",dataGetter:({rowData:n})=>{let a=n.table_name;const i=t.find(o=>o.code===a);return i?i.texte:a},width:200},{title:"Format de sortie",dataKey:"output_format",width:200}];return e==="iCTI_activite"&&r.push({title:"Dimension date",key:"date",dataKey:"dimension_date"}),r.map(n=>({width:200,...n,resizable:!0,key:n.dataKey,className:"cti-default-table",headerClassName:"cti-default-table"}))},sEt=({tables:e,selectedRow:t,handleSelectedRow:r,module:n,tableData:a})=>{const i=ut(s=>s.cti.components.indicators.loading),o=({columns:s,rowData:l,rowIndex:c})=>{let A="";return l.is_hide&&(A+="settings__rowTable-inactive"),c%2===0&&(A+=" even-row"),A};return v.jsx(Hn,{columns:oEt(n,e),data:a,loading:i,selectedRow:t,onRowSelect:r,rowClassName:o})},lEt=le.memo(sEt),nIe=({module:e})=>{const t=ut(b=>b.cti.components.indicators.data),[r,n]=E.useState(!1),[a,i]=E.useState(null),[o,s]=E.useState(null),[l,c]=E.useState("100%"),[A,u]=E.useState([]),d=wn(),[f,h]=E.useState(!1),[g,p]=E.useState(!1),m=ut(b=>b.cti.components.indicators.searchIndicatorFilterValue);E.useEffect(()=>{d(bB())},[d,e]),E.useEffect(()=>{i(null),n(!1),c("100%")},[t.indicators]),E.useEffect(()=>{let b=t.indicators.filter(T=>(!g||T.is_hide==="0")&&(!f||T.is_cti==="1"));m&&(b=ym(b,m,["texte","column_name","code","entete","table"])),u(b)},[t.indicators,m,f,g]);const y=b=>{h(b)},C=b=>{p(b)},w=b=>{const T=t.indicators.find(D=>D.key===b);T.anonymized=T.total_function==="*LISTANON",i(T),n(!0),c("55%"),s(T)},B=()=>{i(null),n(!1),c("100%")},x=b=>{d(x3e(b.target.value))},M=()=>{s({module:e,oid:"-1",themes:[],dimensions:[],custom_total_function:"",indicateur_associe_1_id:"0",indicateur_associe_2_id:"0",indicateur_associe_3_id:"0",indicateur_associe_4_id:"0",indicateur_associe_5_id:"0",indicateur_associe_6_id:"0",table_name:"",total_function:"*LIST",is_new:!0,is_cti:!1,is_hide:!1}),i(null),n(!0),c("55%")},S=()=>{d(bB())},R=b=>{c(l+b.height)};return t.tables.length?v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des indicateurs"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des indicateurs"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:S,children:v.jsx(ao,{})})}),v.jsx(Xr,{title:"Créer un nouvel indicateur",children:v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(WB,{}),onClick:M,children:"Ajouter un indicateur"})})]})]}),v.jsx("div",{className:"indicators-filters",children:v.jsxs(Uo,{children:[v.jsx(Ta,{span:12,children:v.jsx("div",{style:{display:"flex",flexDirection:"column",gap:10},children:v.jsxs("div",{className:"indicators-search text-search",children:[v.jsx("span",{style:{minWidth:161},children:"Filtre"}),v.jsx(jt,{className:"search-input",placeholder:"Recherche",value:m,onChange:x,style:{width:"50%"}})]})})}),v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"indicators__table-check",children:[v.jsx("span",{children:"Afficher uniquement :"}),v.jsxs("div",{className:"indicators__table-single-check",children:[v.jsx(bo,{size:"small",checked:f,onChange:y}),v.jsx("span",{children:"Indicateurs CTI"})]}),v.jsxs("div",{className:"indicators__table-single-check",children:[v.jsx(bo,{size:"small",checked:g,onChange:C}),v.jsx("span",{children:"Indicateurs actifs"})]})]})})]})}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"indicators-tab",children:[v.jsx(fm,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:l},onResizeStop:R,children:v.jsx(lEt,{tables:t.tables,selectedRow:a,handleSelectedRow:w,module:e,tableData:A})}),r&&v.jsx(rIe,{indicator:o,setIndicator:s,showEditor:r,tables:t.tables,themes:t.themes,handleCloseEditor:B,module:e})]})})]}):v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{style:{height:"auto"}})})};nIe.propTypes={module:W.string};const cEt=le.memo(nIe);function AEt(e){var t={};const r=e.getElementsByTagName("HTTP_SERVICE")[0],n=r.getElementsByTagName("SESSION")[0];let a={};for(let d=0;d<n.getElementsByTagName("PROPERTY").length;d++){const f=n.getElementsByTagName("PROPERTY")[d];a[f.getAttribute("name")]=f.getAttribute("value")}t.session=a;const i=r.getElementsByTagName("ENVIRONMENT")[0];let o={};for(let d=0;d<i.getElementsByTagName("PROPERTY").length;d++){const f=i.getElementsByTagName("PROPERTY")[d];o[f.getAttribute("name")]=f.getAttribute("value")}t.env=o;const s=r.getElementsByTagName("LICENCES")[0];let l=[];l.maxPc=r.getElementsByTagName("LICENCES")[0].getAttribute("maxPC");for(let d=0;d<s.getElementsByTagName("LICENCE").length;d++){const f=s.getElementsByTagName("LICENCE")[d];let h={};h.file=f.getAttribute("file"),h.machineName=f.getAttribute("machineName"),h.machineNameOK=f.getAttribute("machineNameOK"),h.finess=f.getAttribute("finess"),h.finessOK=f.getAttribute("finessOK"),h.softCode=f.getAttribute("softCode"),h.softCodeOK=f.getAttribute("softCodeOK"),h.endDate=f.getAttribute("endDate"),h.endDateOK=f.getAttribute("endDateOK"),h.key=d,l.push(h)}t.licences=l;const c=r.getElementsByTagName("MODULES")[0],A=Nt(c,"MODULE");let u=[];return Object.values(A).forEach((d,f)=>{let h=Yr(d);h.key=f,u.push(h)}),t.modules=u,t}const PH=()=>async function(e,t){const r=await jn("modules/outils/php/getLicences.php",{});let n=AEt(r),a=Pl.deflate(JSON.stringify(n),{to:"string"});Ji.setItem("licences",a),e(Eve(n)),e(nB(!1))},uEt=()=>async function(e,t){e(nB(!0));const r=await Ji.getItem("licences");if(r===null)e(PH());else try{let n=JSON.parse(Pl.inflate(r,{to:"string"}));e(Eve(n)),e(nB(!1))}catch(n){console.log(n)}},dEt=e=>async function(t,r){t(nB(!0));let n=new FormData;n.append("licenceKey",e);let a=Ii(),i=await To({method:"post",url:a+"modules/outils/php/addLicence.php",data:n,headers:{"Content-Type":"multipart/form-data"},responseType:"arraybuffer"});const s=Pg(i.data).getElementsByTagName("HTTP_SERVICE")[0],l=Nt(s,"RETURN")[0],c=Yr(l);t(nB(!1)),c.code==="OK"?t(PH()):t(yve("Une erreur est survenue pendant l'ajout de la licence"))},fEt=[{title:"Modules installés",dataKey:"label",key:"label",width:250,dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>v.jsxs("div",{children:[n.label," ",v.jsx("span",{style:{float:"right"},children:n.licenceOK==="OK"?v.jsx(IR,{twoToneColor:"#52c41a"}):v.jsx(bR,{twoToneColor:"#cf1322"})})]})},{title:"Code",dataKey:"softCode",key:"softCode",width:250},{title:"Expiration",dataKey:"licenceDate",key:"licenceDate",width:250},{title:"Type",dataKey:"licenceType",key:"licenceType",width:250}],hEt=[{title:"Licences serveur installées",dataKey:"machineName",key:"machineName",width:250},{title:"FINESS",dataKey:"finess",key:"finess",width:250,dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>v.jsxs("div",{children:[n.finess,v.jsx("span",{style:{float:"right"},children:n.finessOK==="true"?v.jsx(IR,{twoToneColor:"#52c41a"}):v.jsx(bR,{twoToneColor:"#cf1322"})})]})},{title:"Module",dataKey:"softCode",key:"softCode",width:250},{title:"Date expiration",dataKey:"endDate",key:"endDate",width:250,dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>v.jsxs("div",{children:[n.endDate,v.jsx("span",{style:{float:"right"},children:n.endDateOK==="true"?v.jsx(IR,{twoToneColor:"#52c41a"}):v.jsx(bR,{twoToneColor:"#cf1322"})})]})}],aIe=()=>{const[e,t]=E.useState(!1),[r,n]=E.useState(""),[a,i]=E.useState(!1),o=wn(),s=ut(h=>h.cti.licences.data),l=ut(h=>h.cti.licences.addError);E.useEffect(()=>{l&&(ya({type:"error",message:"Erreur",description:l}),o(yve(null)))},[l,o]);const c=()=>{o(PH())},A=h=>{t(h)},u=()=>{i(!a)},d=()=>{o(dEt(r)),n(""),u()},f=h=>{n(h.target.value)};return s?v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des licences"})}),v.jsx(gi,{open:a,onCancel:u,onOk:d,okText:"Ajouter",cancelText:"Annuler",title:"Ajouter une licence",children:v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Clé de la licence"}),v.jsx(jt,{value:r,onChange:f})]})})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestions des licences"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:c,children:v.jsx(ao,{})})}),v.jsx(yt,{type:"primary",onClick:u,children:"Ajouter une licence"})]})]}),v.jsx("div",{className:"licences-info",children:v.jsxs(Uo,{children:[v.jsxs(Ta,{span:12,children:[v.jsxs("div",{className:"licences-info-row",children:[v.jsx("span",{children:"FINESS :"}),s.env.FINESS]}),v.jsxs("div",{className:"licences-info-row",children:[v.jsx("span",{children:"Serveur :"}),s.session.SERVERNAME]})]}),v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"indicators-single-check",children:[v.jsx(bo,{size:"small",className:"switch",checked:e,onChange:A}),v.jsx("span",{children:"Afficher les licences installées"})]})})]})}),v.jsx("div",{className:"component-content",children:e?v.jsx(Hn,{columns:hEt,data:s.licences}):v.jsx(Hn,{columns:fEt,data:s.modules})})]}):v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{style:{height:"auto"}})})};aIe.propTypes={};const{confirm:gEt}=gi,iIe=({handleKillEditor:e})=>{const[t,r]=E.useState(!1),[n,a]=E.useState(!1),[i,o]=E.useState(!1),[s,l]=E.useState(!1),[c,A]=E.useState(!1),[u,d]=E.useState(!1),[f,h]=E.useState(""),[g,p]=E.useState([]),[m,y]=E.useState([]),[C,w]=E.useState([]),[B,x]=E.useState([]),[M,S]=E.useState([]),[R,b]=E.useState(null),[T,D]=E.useState(""),F=ut(we=>we.cti.components.listesManager.listeEditor),N=ut(we=>we.cti.content.moduleId.replace("iCTI_","")),_=ut(we=>we.cti.content),P=ut(we=>we.cti.settings.data.session),k=wn(),[j]=We.useForm();E.useEffect(()=>{F.liste&&(b(F.liste),A(!!parseInt(F.liste.contenu_by_code)))},[F]),E.useEffect(()=>{if(R){const we=X(),Re=Object.values(F.liste.oids).map(Te=>Te.oid);y(we.filter(Te=>Re.includes(Te.oid))),p(we),ee()}},[R,s,c]),E.useEffect(()=>{if(g){const we=g.filter(Re=>m.findIndex(Te=>Te.key===Re.key)===-1);w(Ve(we,!0))}},[T,g,f,m,s]);const Y=jy(R?.is_cti==="1",P);if(!R)return v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{style:{height:"auto"}})});function X(){return Object.values(F.liste.records).map((we,Re)=>({key:we.oid,oid:we.oid,code:we.code,texte:we.texte,complement:we.complement,utilise:we.utilise,disabled:!!c}))}const K=()=>{d(!1),e()},U=we=>{console.log("Failed:",we)},H=async(we,Re)=>{o(!0);let Te={...we};Te.liste_id=R.oid,Te.table_id=R.table_id,Te.liste_schema=F.liste.table_name==="t_finess"?"base":_.moduleId.replace("iCTI_",""),Te.schema=F.liste.table_name==="t_finess"?"base":_.moduleId.replace("iCTI_",""),Te.softCode="iCTI_"+_.moduleId.replace("iCTI_",""),Te.to_oids=c?"":m.map(mt=>mt.oid).join(","),Te.database="RH000004",Te.is_cti=we.is_cti?"1":"0",Te.est_partagee_modification=we.est_partagee_modification?"1":"0",Te.show_omit=we.show_omit?"1":"0",Te.contenu_non_replicable_ailleurs=we.contenu_non_replicable_ailleurs?"1":"0",Te.contenu_by_code=we.contenu_by_code?"1":"0",Te.include_code||(Te.include_code=""),Te.exclude_code||(Te.exclude_code=""),Te.action=Re;const Ke=!!parseInt(R.contenu_by_code);Te.liste_id!=="-1"&&(Te.contenu_by_code!==Ke||Te.contenu_by_code===!1)&&{...Te},k(gft(Te)),o(!1),K()},L=()=>{A(!c),ee()},V=()=>{vft(`iCTI_${N}`,F.liste_id,F.liste.table_name)},J=async()=>{r(!0);let we={};we.schema=_.moduleId.replace("iCTI_",""),we.table_id=R.table_id,we.exclude_code=j.getFieldValue("exclude_code"),we.include_code=j.getFieldValue("include_code");let Re=await jBe(we);be(Re),r(!1)},ee=()=>{if(c){const Re=(j.getFieldValue("include_code")+" "+j.getFieldValue("exclude_code")).trim()!=="";a(Re)}else a(!1)},ae=()=>{gEt({title:"Attention",icon:v.jsx(Ey,{}),content:"Confirmez-vous la suppresion de la liste ?",maskClosable:!0,centered:!0,onOk(){H({},"delete")}})},ne=()=>{d(!0)},fe=we=>{D(we.target.value)},he=we=>{h(we.target.value);let Re=X();Re=at(Re,we.target.value),p(Re)},ye=()=>{A(!1),j.setFieldsValue({contenu_by_code:!1})},be=we=>{if(d(!0),we){const Re=g.filter(Ke=>we.includes(Number(Ke.oid))),Te=g.filter(Ke=>!we.includes(Number(Ke.oid)));w(Ve(Te)),y(Ve(Re))}else{const Re=g.filter(Ke=>B.includes(Ke.key)),Te=g.filter(Ke=>!B.includes(Ke.key));y(Ve([...m,...Re])),w(Te),x([])}},Se=()=>{d(!0);let we=m.filter(Ke=>!M.includes(Ke.key)),Re=m.filter(Ke=>M.includes(Ke.key)),Te=Ve([...C,...Re]);y(we),w(Te),S([])},ve=we=>{let Re=[...B];Array.isArray(we)?Re=Re.concat(we):Re.includes(we)?Re=Re.filter(Te=>Te!==we):Re.push(we),x(Re)},de=we=>{let Re=[...M];Array.isArray(we)?Re=Re.concat(we):Re.includes(we)?Re=Re.filter(Te=>Te!==we):Re.push(we),S(Re)},Ue=()=>{B.length||M.length?(x([]),S([])):x(C.map(we=>we.key))};function at(we,Re,Te){let Ke=Re.match(/\w*\*?/gm);return we.filter(tt=>Ke.includes(tt.code)?!0:Ke.length!==1&&Ke[0]!==""?Ke.some(rt=>{if(rt!==""&&rt.slice(-1)==="*"){let lt=rt.slice(0,-1);return tt.code.startsWith(lt)}else return!1}):!0)}function Ve(we,Re=!1){let Te=we.sort((Ke,mt)=>Ke.code.localeCompare(mt.code));return Re&&(Te=ym(Te,T,["code","texte","complement"]),Te=at(Te,f),s===!0&&(Te=Te.filter(Ke=>Ke.utilise==="O"))),Te}let Ie=[{dataKey:"code",key:"code",title:R.table_texte,sorter:(we,Re)=>we.code.localeCompare(Re.code),width:200,resizable:!0},{dataKey:"texte",key:"texte",title:"Texte",sorter:(we,Re)=>we.texte.localeCompare(Re.texte),width:200,resizable:!0},{dataKey:"complement",key:"complement",title:"Complement",sorter:(we,Re)=>we.complement.localeCompare(Re.complement),width:200,resizable:!0},{dataKey:"utilise",key:"utilise",title:"Ref",sorter:(we,Re)=>we.utilise.localeCompare(Re.utilise),width:200,resizable:!0}];return v.jsx("div",{className:"list-editor",children:v.jsxs(We,{id:"formListEditor",name:"basic",form:j,style:{height:"100%",display:"flex",flexFlow:"column"},initialValues:{texte:R.texte,code:R.code,table:R.table_texte,chapitre:R.chapitre,include_code:R.include_code,exclude_code:R.exclude_code,is_cti:!!parseInt(R.is_cti),est_partagee_modification:!!parseInt(R.est_partagee_modification),show_omit:!!parseInt(R.show_omit),contenu_non_replicable_ailleurs:!!parseInt(R.contenu_non_replicable_ailleurs),contenu_by_code:!!parseInt(R.contenu_by_code)},size:"small",onFinish:we=>H(we,"save"),onValuesChange:ne,onFinishFailed:U,disabled:Y,children:[v.jsxs("div",{className:"component-header",children:[v.jsx(yt,{type:"text",style:{fontSize:"16px",lineHeight:"16px"},onClick:K,disabled:!1,children:v.jsx(MR,{})}),v.jsx("div",{className:"header-title",children:"Gestion des listes"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(yt,{size:"default",icon:v.jsx(Zhe,{}),onClick:()=>{const we=j.getFieldsValue();Ygt(we,R)},children:"Exporter"},"formExcelExportBtn"),P.ISROLECTI&&v.jsx(yt,{size:"default",icon:v.jsx(my,{}),onClick:V,children:"SQL"},"formSQLExportBtn"),v.jsx(yt,{size:"default",icon:v.jsx(ki,{}),onClick:ae,children:"Supprimer"},"formDeleteBtn"),u&&v.jsx(yt,{size:"default",type:"primary",htmlType:"submit",icon:v.jsx(lA,{}),loading:i,children:"Enregistrer"},"formSubmitbtn")]})]}),v.jsxs("div",{className:"listes-description",children:[v.jsxs("div",{className:"form-column",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Code:"}),v.jsx(We.Item,{name:"code",extra:"Id interne : "+R.oid,children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Texte:"}),v.jsx(We.Item,{name:"texte",children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Chapitre:"}),v.jsx(We.Item,{name:"chapitre",extra:`Table: ${R.table_texte}`,children:v.jsx(jt,{})})]})]}),v.jsxs("div",{className:"form-column checkbox-col",children:[P.ISROLECTI&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Liste CTI"}),v.jsx(We.Item,{valuePropName:"checked",name:"is_cti",children:v.jsx(un,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Modification partagée"}),v.jsx(We.Item,{valuePropName:"checked",name:"est_partagee_modification",children:v.jsx(un,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Liste sauf possible"}),v.jsx(We.Item,{valuePropName:"checked",name:"show_omit",children:v.jsx(un,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Contenu non réplicable ailleurs"}),v.jsx(We.Item,{valuePropName:"checked",name:"contenu_non_replicable_ailleurs",onClick:ye,children:v.jsx(un,{})})]})]}),v.jsxs("div",{className:"form-column code-col",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Saisie par code:"}),v.jsx(We.Item,{valuePropName:"checked",name:"contenu_by_code",children:v.jsx(bo,{onChange:L})}),v.jsx(yt,{disabled:!n||!c,style:{marginLeft:"15px"},type:"secondary",onClick:J,loading:t,children:"Appliquer"})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Codes inclus:"}),v.jsx(We.Item,{name:"include_code",children:v.jsx(jt,{disabled:!c,onChange:ee})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Codes exclus:"}),v.jsx(We.Item,{name:"exclude_code",children:v.jsx(jt,{disabled:!c,onChange:ee})})]})]})]}),v.jsx("div",{className:"component-content",children:v.jsxs("div",{className:"classes-editor-content",children:[v.jsx("div",{className:"selected-items-table",children:v.jsx(Hn,{columns:Ie,data:m,fixed:!1,shiftMulti:!0,selectedRows:M,onRowSelect:de})}),v.jsxs("div",{className:"transfer-actions",children:[v.jsx(yt,{type:"link",onClick:()=>be(),disabled:!B.length||c||Y,children:v.jsx(EQ,{})}),v.jsx(yt,{type:"link",onClick:()=>Se(),disabled:!M.length||c||Y,children:v.jsx(NY,{})})]}),v.jsxs("div",{className:"available-items",children:[v.jsxs("div",{className:"available-items-options",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Recherche par texte:"}),v.jsx(jt,{value:T,onChange:fe})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Recherche par code:"}),v.jsx(jt.TextArea,{value:f,onChange:he})]})}),v.jsxs("div",{className:"form-row",children:[v.jsx(yt,{type:"primary",onClick:Ue,children:"De/Sélectionner"}),v.jsx("span",{style:{margin:"0px 12px"},children:"Référencés uniquement"}),v.jsx(un,{checked:s,onChange:we=>l(we.target.checked)})]})]}),v.jsx("div",{className:"available-items-table",children:v.jsx(Hn,{columns:Ie,data:C,fixed:!1,shiftMulti:!0,selectedRows:B,onRowSelect:ve})})]})]})})]},R.oid)})};iIe.propTypes={handleKillEditor:W.func};const pEt=le.memo(iIe),{DirectoryTree:Noe}=Id,oIe=({module:e})=>{const[t,r]=E.useState(!1),[n,a]=E.useState(!1),[i,o]=E.useState([]),[s,l]=E.useState([]),[c,A]=E.useState(null),[u,d]=E.useState(""),[f,h]=E.useState([]),[g,p]=E.useState([]),m=ut(Y=>Y.cti.components.listesManager),y=ut(Y=>Y.cti.components.listesManager.loading),C=ut(Y=>Y.cti.content),w=ut(Y=>Y.cti.menu.item),B=ut(Y=>Y.router.location.query),x=wn(),M=qf();E.useEffect(()=>{x(zw(e))},[e,x]),E.useEffect(()=>{let Y=j(_(m.data.tables));o(Y)},[u,m.data.tables]),E.useEffect(()=>{if(B&&Object.keys(m.data.tables).length&&B.liste&&n===!1){const Y=B.liste,K=k(Object.values(m.data.tables)).find(U=>U.code===Y);if(K){const U={table_id:K.table_id,liste_id:K.liste_id,schema:K.schema};x(Ore(C,U)),a(!0)}else M.replace({search:""})}},[m.data,B,n,C,x,M]),E.useEffect(()=>{o(_(m.data.tables)),l(_(m.data.refTables))},[m]),E.useEffect(()=>{const Y=bU(i);h(Y)},[i]),E.useEffect(()=>{if(u==="")p([]);else{let Y=[];f.forEach(X=>{X.title.toLowerCase().includes(u.toLowerCase())&&(Y=Y.concat(gat(X.key,i)))}),Y=Y.filter((X,K,U)=>X&&U.indexOf(X)===K),p(Y)}},[u,i,f]);const S=()=>{M.replace({search:""}),a(!1),x(b3e()),x(R3e()),x(zw(C.moduleId))},R=(Y,X)=>{const K={table_id:X.node.table_id,liste_id:X.node.liste_id,treeSelectedKey:X.node.key,schema:X.node.schema};K.liste_id&&(M.push({search:`?liste=${X.node.code}`}),a(!0),x(Ore(C,K)))},b=Y=>{Y&&x(pft(Y,C.moduleId,w.name))},T=()=>{x(zw(C.moduleId))},D=()=>{r(!t)},F=Y=>{d(Y.target.value)},N=Y=>{p(Y)};function _(Y,X="",K=!1){let U=[];return Object.values(Y).forEach((H,L)=>{let V,J;const ee=(X!==""?X+"_":"")+Lo(H.texte)+L.toString();let ae={title:H.texte,key:H.table_id?L:ee,table_id:H.table_id};H.listes!==void 0&&(V=P(H.listes,ee)),H.groups!==void 0&&(J=_(H.groups,ee,K)),V!==void 0&&J!==void 0?ae.children=V.concat(J):V!==void 0?ae.children=V:ae.children=J,U.push(ae)}),U.sort((H,L)=>H.title.localeCompare(L.title,void 0,{numeric:!0,sensitivity:"base"}))}function P(Y,X,K){let U=[];return Object.values(Y).forEach((H,L)=>{let V={title:H.texte,key:X+"_"+Lo(H.texte),isLeaf:!0,table_id:H.table_id,liste_id:H.liste_id,code:H.code,schema:H.schema};H.liste_id==="-1"?V.icon=v.jsx(em,{}):V.icon=v.jsx(rB,{}),U.push(V)}),U.sort((H,L)=>Number(H.liste_id)-Number(L.liste_id))}function k(Y){let X=[];return Object.values(Y).forEach(K=>{K.groups&&Object.values(K.groups).forEach(U=>{U.listes&&(X=[...X,...Object.values(U.listes)]),U.groups&&Object.values(U.groups).forEach(H=>{H.listes&&(X=[...X,...Object.values(H.listes)])})})}),X}function j(Y,X){return Y}return n===!0?v.jsx(pEt,{handleKillEditor:S}):v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des listes"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des listes"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(jt,{placeholder:"Recherche",value:u,onChange:F}),v.jsx(yt,{onClick:T,icon:v.jsx(tm,{}),loading:y,children:"Actualiser"},"refreshBtn"),v.jsx(yt,{style:{width:"148.5px"},type:t?"secondary":"primary",onClick:D,icon:v.jsx(rB,{}),children:t?"Cacher références":"Afficher références"},"showReferencesBtn")]})]}),v.jsxs("div",{className:"component-content",children:[v.jsxs("div",{className:"listes-manager-listes",children:[y?v.jsx("div",{className:"listes-spin-loader",children:v.jsx(g4,{})}):null,v.jsx(Noe,{onSelect:R,treeData:i,expandedKeys:g,onExpand:N})]}),v.jsxs("div",{className:"cti-listes-manager-references",style:{display:t?"flex":"none"},children:[v.jsxs("div",{className:"references-header",children:[v.jsx("h3",{children:"Listes de références"}),v.jsx(yt,{style:{marginLeft:"10px"},size:"small",onClick:()=>b(c),icon:v.jsx(yy,{}),disabled:!c,children:"Importer"},"importBtn")]}),v.jsx("div",{className:"references-tree",children:v.jsx(Noe,{treeData:s,onSelect:(Y,X)=>{let K=X.node;K.table_id&&K.isLeaf?A(X.node.liste_id):A(null)}})})]})]})]})};oIe.propTypes={module:W.string};const vEt=le.memo(oIe),sIe=()=>{const[e,t]=E.useState(!1),r=ut(o=>o.cti.settings.data.session),[n]=We.useForm(),a=async o=>{const s=r.CONNECTEDUSER;try{await Dit(s,o.password,o.newPassword),ya({type:"success",message:"Succès",description:"Modification du mot de passe réussie !"}),n.resetFields()}catch{ya({type:"error",message:"Erreur",description:"Une erreur est survenue pendant la mise à jour du mot de passe..."})}},i=()=>{t(!0)};return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Modification du mot de passe"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("h1",{className:"header-title",children:"Modification du mot de passe"}),v.jsx("div",{className:"header-actions",children:v.jsx(ny,{handleClick:()=>n.submit(),disabledAction:!e,toolTipTitle:"Enregistrer"})})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"password-form",children:v.jsxs(We,{form:n,onValuesChange:i,onFinish:a,children:[v.jsx("div",{className:"row-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Mot de passe actuel :"}),v.jsx(We.Item,{name:"password",rules:[{required:!0,message:"Veuillez renseigner ce champ"}],children:v.jsx(jt.Password,{})})]})}),v.jsx("div",{className:"row-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nouveau mot de passe :"}),v.jsx(We.Item,{name:"newPassword",rules:[{required:!0,message:"Veuillez renseigner ce champ"}],children:v.jsx(jt.Password,{})})]})}),v.jsx("div",{className:"row-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Confirmer le nouveau mot de passe :"}),v.jsx(We.Item,{name:"confirmPassword",rules:[{required:!0,message:"Veuillez renseigner ce champ"},({getFieldValue:o})=>({validator(s,l){return!l||o("newPassword")===l?Promise.resolve():Promise.reject("Les mots de passes ne sont pas identiques !")}})],children:v.jsx(jt.Password,{})})]})})]})})})]})};sIe.propTypes={};const Lx=(e=!1)=>async function(t,r){t(kR(!0));const a={softCode:r().cti.content.moduleId},i=await jn("modules/base/php/getRapports.php",a),{reports:o,refReports:s,comboGroup:l,comboReport:c,comboCondition:A,conditions:u,comboType:d}=U0t(i);if(t(U3e(o,s,l,c,A,u,d)),t(kR(!1)),e){const f=await jn("modules/base/php/httpService_rapportsManager_getLastViews.php");let h=K0t(f);t(J3e(h))}},mEt=e=>async function(t,r){t(kR(!0));const a={softCode:r().cti.content.moduleId,oid:e},i=await jn("modules/base/php/httpService_rapportsManager_getRapport.php",a),o=H0t(i);t(H3e(o)),t(kR(!1))},EEt=async(e,t)=>{await Sf("modules/base/php/httpService_rapportsManager_getSqlScript.php",{softCode:e,rapports:t})},_oe=(e,t,r,n=!1)=>async function(a,i){await jn("modules/base/php/setRapport.php",{action:n?"copy":"delete",softCode:e,xmldef:t}),a(n===!0?Lx():V3e(r))},yEt=(e,t,r)=>async function(n,a){const i={action:"updateGeneralSettings",softCode:e,xmldef:t};try{await jn("modules/base/php/setRapport.php",i),n(K3e(r))}catch{throw new Error("Erreur lors de la mise à jour des paramètres")}},CEt=(e,t)=>async function(r,n){const a={action:"refcopy",softCode:e,refoid:t};try{await jn("modules/base/php/setRapport.php",a),r(Lx())}catch{throw new Error("Erreur lors de la mise à jour des rapports")}},wEt=e=>async function(t,r){t(PR(!0));const n={option:"calculEssentiels",context:e};try{await jn("modules/outils/php/execSystemExploit.php",n),setTimeout(()=>{t(OH("iCTI_aggregateCtiIndicators"))},1e4)}catch{throw new Error("Erreur lors de la mise à jour des rapports")}},OH=e=>async function(t,r){const n={job:e};let a="pending";try{const i=await jn("modules/outils/php/httpService_exploitManager_getExecStatus.php",n);a=G0t(i),a===""?t(PR(!1)):(t(PR(!0)),setTimeout(()=>{t(OH("iCTI_aggregateCtiIndicators"))},1e4))}catch{throw new Error("Erreur lors de la verification du statut du job")}},BEt=(e,t)=>async function(r,n){const a={xmldef:e,softCode:t,action:"save"};try{await jn("modules/base/php/setRapport.php",a),r(Lx())}catch{throw new Error("Erreur lors de la mise à jour du rapport")}},xEt={oid:"-1",code:"",texte:"",is_cti:"0",is_essentiel:"1",serie_entete_1:"",serie_entete_2:"",serie_entete_3:"",serie_entete_4:"",serie_entete_5:"",serie_entete_6:"",serie_entete_7:"",serie_entete_8:"",serie_entete_9:"",colonnes_essentiel:"ENTETE_ETENDUE|VAP101|VAP100|ECP100|TDP100|VAM112|VAM100|ECM100|TDM100|VAP201|VAP200|ECP200|TDP200|VAM212|VAM200|ECM200|TDM200",colonnes_essentiel_style:"",is_hide:"1",group_id:"13",group_texte:"Tableau de bord opérationnel",rapport_template_id:"0",is_template_updatable:"0",label:"",rapport_indicateur_condition_id_1:"0",rapport_indicateur_condition_id_2:"0",rapport_indicateur_condition_id_3:"0",rapport_indicateur_condition_id_4:"0",rapport_indicateur_condition_id_5:"0",sections:[],type_rapport:"ESSENTIEL"},MEt={key:0,numero_rubrique:"",indicateur_id:"",indicateur_texte:"",is_hide:"0",entete:"",indicateur_entete:"",entete_etendue:"",indicateur_entete_etendue:"",description:"",indicateur_description:"",output_format:"",indicateur_output_format:"",width:"0",indicateur_width:"0",picto_enabled:"",positif_is_good:"",periode_reference:"",row_height:"0",padding:"0",font_size:"0",font_weight:"",color:"",background_color:"",border_thickness:"0",viewlink:"",viewlink_label:"",viewlink_param:"",indicateur_associe_id:"0",indicateur_associe_texte:"",entete_etendue_2:"",indicateur_entete_etendue_2:"",description_2:"",indicateur_description_2:"",output_format_2:"",indicateur_output_format_2:"",picto_enabled_2:"",positif_is_good_2:"",indicateur_associe_3_id:"0",entete_etendue_3:"",description_3:"",output_format_3:"",picto_enabled_3:"",positif_is_good_3:"",indicateur_associe_4_id:"0",entete_etendue_4:"",description_4:"",output_format_4:"",picto_enabled_4:"",positif_is_good_4:"",indicateur_associe_5_id:"0",entete_etendue_5:"",description_5:"",output_format_5:"",picto_enabled_5:"",positif_is_good_5:"",indicateur_associe_6_id:"0",entete_etendue_6:"",description_6:"",output_format_6:"",picto_enabled_6:"",positif_is_good_6:"",indicateur_associe_7_id:"0",entete_etendue_7:"",description_7:"",output_format_7:"",picto_enabled_7:"",positif_is_good_7:"",indicateur_associe_8_id:"0",entete_etendue_8:"",description_8:"",output_format_8:"",picto_enabled_8:"",positif_is_good_8:"",indicateur_associe_9_id:"0",entete_etendue_9:"",description_9:"",output_format_9:"",picto_enabled_9:"",positif_is_good_9:"",base_nationale:"0",base_nationale_qualifiee:"0",specific_viewlink:"",specific_viewlink_label:"",specific_viewlink_param:"",indicateur_condition_id_1:"0",indicateur_condition_id_2:"0",indicateur_condition_id_3:"0",indicateur_condition_id_4:"0",indicateur_condition:"",field_tag:"",hide_on_zero_field:"",calc_formula:"",erase_rapport_indicateur_condition:"0"},tb=["ENTETE_ETENDUE","VAP101","VAP100","ECP100","TDP100","VAM112","VAM100","ECM100","TDM100","VAP201","VAP200","ECP200","TDP200","VAM212","VAM200","ECM200","TDM200"],IEt=e=>{let t=[];for(let r=1;r<10;r++)e.forEach(n=>{let a=n.key;if(r>1&&n.key==="ENTETE_ETENDUE")a=`${a}_${r}`;else if(r>1){const o=[...a.matchAll(/(?<prefix>[A-Z]{3})(?<serie>\d)(?<rest>.*)/gm)][0]?.groups;a=`${o.prefix}${r}${o.rest}`}t.push({...n,key:a,title:r===1?n.title:`${n.title} (${r})`,serie:r})});return t},bEt=[{title:"Entete ligne",indicateur:1,key:"ENTETE_ETENDUE",selected:"1",position:0},{title:"Cumul période Année",indicateur:1,key:"VAP100",selected:"1",position:0},{title:"Cumul période Année - 1",indicateur:1,key:"VAP101",selected:"0",position:0},{title:"Cumul période Année - 2",indicateur:1,key:"VAP102",selected:"1",position:0},{title:"Cumul 12 derniers mois",indicateur:1,key:"VAZ100",selected:"1",position:0},{title:"Cumul 4 derniers trimestres",indicateur:1,key:"VAQ100",selected:"1",position:0},{title:"Budget Année période ",indicateur:1,key:"BUP100",selected:"1",position:0},{title:"Budget Année total",indicateur:1,key:"BUA100",selected:"1",position:0},{title:"Ecart période Année / Année - 1",indicateur:1,key:"ECP100",selected:"1",position:0},{title:"Tendance période Année / Année - 1",indicateur:1,key:"TDP100",selected:"1",position:0},{title:"% atteinte budget Année période ",indicateur:1,key:"BTP100",selected:"1",position:0},{title:"% atteinte budget Année total",indicateur:1,key:"BTA100",selected:"1",position:0},{title:"Ecart budget Année période ",indicateur:1,key:"BEP100",selected:"1",position:0},{title:"Ecart budget Année total",indicateur:1,key:"BEA100",selected:"1",position:0},{title:"Ecart Moyen Année total",indicateur:1,key:"BNA100",selected:"1",position:0},{title:"Cumul période Exercice",indicateur:1,key:"VAY100",selected:"1",position:0},{title:"Cumul période Exercice - 1",indicateur:1,key:"VAY101",selected:"1",position:0},{title:"Cumul période Exercice - 2",indicateur:1,key:"VAY102",selected:"1",position:0},{title:"Budget Exercice période",indicateur:1,key:"BUY100",selected:"1",position:0},{title:"Budget Exercice total",indicateur:1,key:"BUX100",selected:"1",position:0},{title:"Ecart période Exercice / Exercice - 1",indicateur:1,key:"ECY100",selected:"1",position:0},{title:"Tendance période Exercice / Exercice - 1",indicateur:1,key:"TDY100",selected:"1",position:0},{title:"% atteinte Budget Exercice periode",indicateur:1,key:"BTY100",selected:"1",position:0},{title:"% atteinte Budget Exercice total",indicateur:1,key:"BTX100",selected:"1",position:0},{title:"Ecart Budget Exercice periode",indicateur:1,key:"BEY100",selected:"1",position:0},{title:"Ecart Budget Exercice total",indicateur:1,key:"BEX100",selected:"1",position:0},{title:"Budget mois",indicateur:1,key:"BUM100",selected:"1",position:0},{title:"Cumul mois",indicateur:1,key:"VAM100",selected:"1",position:0},{title:"Cumul mois Année - 1",indicateur:1,key:"VAM112",selected:"1",position:0},{title:"Cumul mois Année - 2",indicateur:1,key:"VAM124",selected:"1",position:0},{title:"Ecart mois Année / Année - 1",indicateur:1,key:"ECM100",selected:"1",position:0},{title:"Tendance mois Année / Année - 1",indicateur:1,key:"TDM100",selected:"1",position:0},{title:"Cumul mois - 1",indicateur:1,key:"VAM101",selected:"1",position:0},{title:"Ecart Mois / Mois - 1",indicateur:1,key:"ECM101",selected:"1",position:0},{title:"Tendance mois Mois / Mois - 1",indicateur:1,key:"TDM101",selected:"1",position:0},{title:"Cumul mois - 2",indicateur:1,key:"VAM102",selected:"1",position:0},{title:"Cumul mois - 3",indicateur:1,key:"VAM103",selected:"1",position:0},{title:"Cumul mois - 4",indicateur:1,key:"VAM104",selected:"1",position:0},{title:"Cumul mois - 5",indicateur:1,key:"VAM105",selected:"1",position:0},{title:"Cumul mois - 6",indicateur:1,key:"VAM106",selected:"1",position:0},{title:"Cumul mois - 7",indicateur:1,key:"VAM107",selected:"1",position:0},{title:"Cumul mois - 8",indicateur:1,key:"VAM108",selected:"1",position:0},{title:"Cumul mois - 9",indicateur:1,key:"VAM109",selected:"1",position:0},{title:"Cumul mois - 10",indicateur:1,key:"VAM110",selected:"1",position:0},{title:"Cumul mois - 11",indicateur:1,key:"VAM111",selected:"1",position:0},{title:"Evolution mensuelle Année",indicateur:1,key:"DAM100",selected:"1",position:0},{title:"Evolution mensuelle Exercice",indicateur:1,key:"DXM100",selected:"1",position:0},{title:"Evolution mensuelle 12 derniers mois",indicateur:1,key:"DZM100",selected:"1",position:0},{title:"Evolution mensuelle Budget Année",indicateur:1,key:"BAM100",selected:"1",position:0},{title:"Evolution mensuelle Budget Exercice",indicateur:1,key:"BXM100",selected:"1",position:0},{title:"Evolution mensuelle Budget 12 derniers mois",indicateur:1,key:"BZM100",selected:"1",position:0},{title:"Evolution mens. Année (Valeur+Budget)",indicateur:1,key:"FAM100",selected:"1",position:0},{title:"Evolution mens. Exercice (Valeur+Budget)",indicateur:1,key:"FXM100",selected:"1",position:0},{title:"Evolution mens. 12 derniers mois (Valeur+Budget)",indicateur:1,key:"FZM100",selected:"1",position:0},{title:"Cumul trimestre",indicateur:1,key:"VAT100",selected:"1",position:0},{title:"Cumul trimestre Année - 1",indicateur:1,key:"VAT112",selected:"1",position:0},{title:"Cumul trimestre Année - 2",indicateur:1,key:"VAT124",selected:"1",position:0},{title:"Ecart trimestre Année / Année - 1",indicateur:1,key:"ECT100",selected:"1",position:0},{title:"Tendance trimestre Année / Année - 1",indicateur:1,key:"TDT100",selected:"1",position:0},{title:"Evolution trimestrielle Année",indicateur:1,key:"DAT100",selected:"1",position:0},{title:"Evolution trimestrielle Exercice",indicateur:1,key:"DXT100",selected:"1",position:0},{title:"Evolution trimestrielle 4 derniers trimestres",indicateur:1,key:"DZT100",selected:"1",position:0},{title:"Evolution quotidienne mois en cours",indicateur:1,key:"VMJ100",selected:"1",position:0},{title:"MCO. Indicateurs nationaux période",indicateur:1,key:"NAP100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux mois",indicateur:1,key:"NAM100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux privé période",indicateur:1,key:"NRP100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux privé mois",indicateur:1,key:"NRM100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux public période",indicateur:1,key:"NUP100MCO",selected:"1",position:0},{title:"MCO. Indicateurs nationaux public mois",indicateur:1,key:"NUM100MCO",selected:"1",position:0}],nE=IEt(bEt),lIe=({formReport:e,form:t})=>{const r=[];for(let n=1;n<=9;n++)(n===1||e.sections.some(a=>a[`indicateur_associe_${n}_id`]!=="0"))&&r.push(n);return v.jsx(We,{form:t,children:r.map(n=>v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:`Nom abrégé série ${n}`}),v.jsx(We.Item,{name:`serie_entete_${n}`,children:v.jsx(jt,{})})]})},n))})};lIe.propTypes={formReport:W.object,form:W.object};var L3={};const SEt=Ya(LXe);var Y3={},koe;function REt(){return koe||(koe=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GroupContext=void 0;var n=r(Ga()),a=r(oo()),i=r(K4()),o=r(_d()),s=r(Ro()),l=r(G4()),c=t(Ur()),A=Cc(),u=r(cIe()),d=function(p,m){var y={};for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&m.indexOf(C)<0&&(y[C]=p[C]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,C=Object.getOwnPropertySymbols(p);w<C.length;w++)m.indexOf(C[w])<0&&Object.prototype.propertyIsEnumerable.call(p,C[w])&&(y[C[w]]=p[C[w]]);return y},f=e.GroupContext=c.createContext(null),h=function(m,y){var C=m.defaultValue,w=m.children,B=m.options,x=B===void 0?[]:B,M=m.prefixCls,S=m.className,R=m.style,b=m.onChange,T=d(m,["defaultValue","children","options","prefixCls","className","style","onChange"]),D=c.useContext(A.ConfigContext),F=D.getPrefixCls,N=D.direction,_=c.useState(T.value||C||[]),P=(0,o.default)(_,2),k=P[0],j=P[1],Y=c.useState([]),X=(0,o.default)(Y,2),K=X[0],U=X[1];c.useEffect(function(){"value"in T&&j(T.value||[])},[T.value]);var H=function(){return x.map(function(be){return typeof be=="string"||typeof be=="number"?{label:be,value:be}:be})},L=function(be){U(function(Se){return Se.filter(function(ve){return ve!==be})})},V=function(be){U(function(Se){return[].concat((0,i.default)(Se),[be])})},J=function(be){var Se=k.indexOf(be.value),ve=(0,i.default)(k);Se===-1?ve.push(be.value):ve.splice(Se,1),"value"in T||j(ve);var de=H();b?.(ve.filter(function(Ue){return K.includes(Ue)}).sort(function(Ue,at){var Ve=de.findIndex(function(we){return we.value===Ue}),Ie=de.findIndex(function(we){return we.value===at});return Ve-Ie}))},ee=F("checkbox",M),ae="".concat(ee,"-group"),ne=(0,l.default)(T,["value","disabled"]);x&&x.length>0&&(w=H().map(function(ye){return c.createElement(u.default,{prefixCls:ee,key:ye.value.toString(),disabled:"disabled"in ye?ye.disabled:T.disabled,value:ye.value,checked:k.includes(ye.value),onChange:ye.onChange,className:"".concat(ae,"-item"),style:ye.style},ye.label)}));var fe={toggleOption:J,value:k,disabled:T.disabled,name:T.name,registerValue:V,cancelValue:L},he=(0,s.default)(ae,(0,a.default)({},"".concat(ae,"-rtl"),N==="rtl"),S);return c.createElement("div",(0,n.default)({className:he,style:R},ne,{ref:y}),c.createElement(f.Provider,{value:fe},w))},g=c.forwardRef(h);e.default=c.memo(g)})(Y3)),Y3}var Poe;function cIe(){return Poe||(Poe=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(oo()),a=r(Ga()),i=r(Ro()),o=r(SEt),s=t(Ur()),l=s,c=Cc(),A=Nx();r(Cm());var u=REt(),d=r(Fx()),f=function(p,m){var y={};for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&m.indexOf(C)<0&&(y[C]=p[C]);if(p!=null&&typeof Object.getOwnPropertySymbols=="function")for(var w=0,C=Object.getOwnPropertySymbols(p);w<C.length;w++)m.indexOf(C[w])<0&&Object.prototype.propertyIsEnumerable.call(p,C[w])&&(y[C[w]]=p[C[w]]);return y},h=function(m,y){var C,w=m.prefixCls,B=m.className,x=m.children,M=m.indeterminate,S=M===void 0?!1:M,R=m.style,b=m.onMouseEnter,T=m.onMouseLeave,D=m.skipGroup,F=D===void 0?!1:D,N=m.disabled,_=f(m,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),P=l.useContext(c.ConfigContext),k=P.getPrefixCls,j=P.direction,Y=l.useContext(u.GroupContext),X=(0,s.useContext)(A.FormItemInputContext),K=X.isFormItemInput,U=(0,s.useContext)(d.default),H=(C=Y?.disabled||N)!==null&&C!==void 0?C:U,L=l.useRef(_.value);l.useEffect(function(){Y?.registerValue(_.value)},[]),l.useEffect(function(){if(!F)return _.value!==L.current&&(Y?.cancelValue(L.current),Y?.registerValue(_.value),L.current=_.value),function(){return Y?.cancelValue(_.value)}},[_.value]);var V=k("checkbox",w),J=(0,a.default)({},_);Y&&!F&&(J.onChange=function(){_.onChange&&_.onChange.apply(_,arguments),Y.toggleOption&&Y.toggleOption({label:x,value:_.value})},J.name=Y.name,J.checked=Y.value.includes(_.value));var ee=(0,i.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(V,"-wrapper"),!0),"".concat(V,"-rtl"),j==="rtl"),"".concat(V,"-wrapper-checked"),J.checked),"".concat(V,"-wrapper-disabled"),H),"".concat(V,"-wrapper-in-form-item"),K),B),ae=(0,i.default)((0,n.default)({},"".concat(V,"-indeterminate"),S)),ne=S?"mixed":void 0;return l.createElement("label",{className:ee,style:R,onMouseEnter:b,onMouseLeave:T},l.createElement(o.default,(0,a.default)({"aria-checked":ne},J,{prefixCls:V,className:ae,disabled:H,ref:y})),x!==void 0&&l.createElement("span",null,x))},g=l.forwardRef(h);e.default=g})(L3)),L3}var TEt=cIe();const jH=gn(TEt),AIe=({open:e,onCancel:t,onOk:r,draftStyles:n,setDraftStyles:a,selectedColumnKey:i})=>{const o=nE.find(s=>s.key===i);return v.jsx(gi,{open:e,onCancel:t,onOk:r,title:v.jsxs(v.Fragment,{children:["Styles de la colonne ",v.jsx("b",{children:o?.title||""})]}),okText:"Valider",cancelText:"Annuler",style:{top:200},children:v.jsxs("div",{className:"style-options",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Taille"}),v.jsx(jt,{name:"fontSize",type:"number",onChange:s=>a(l=>({...l,fontSize:s.target.value})),value:n?.fontSize})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Gras"}),v.jsx(jH,{name:"fontWeight",checked:n?.fontWeight==="bold",onChange:s=>a(l=>({...l,fontWeight:s.target.checked?"bold":"normal"}))})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Couleur"}),v.jsx(wB,{name:"color",triangle:"hide",position:"top",onChange:s=>a(l=>({...l,color:s.hex.replace("#","0x")})),color:n?.color?.replace("0x","#")})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Fond"}),v.jsx(wB,{name:"backgroundColor",triangle:"hide",position:"top",onChange:s=>a(l=>({...l,backgroundColor:s.hex.replace("#","0x")})),color:n?.backgroundColor?.replace("0x","#")})]})})]})})};AIe.propTypes={open:W.bool,onCancel:W.func,onOk:W.func,draftStyles:W.object,setDraftStyles:W.func,selectedColumnKey:W.string};const uIe=({form:e,formReport:t,setFormReport:r,setSelectedReportModified:n})=>{const[a,i]=E.useState(t.colonnes_essentiel?t.colonnes_essentiel.split("|"):tb),[o,s]=E.useState(null),[l,c]=E.useState(1),[A,u]=E.useState({}),[d,f]=E.useState(!1),h=xo(a,tb),g=b=>{i(tb),m(tb)},p=()=>{n(!0),r(b=>({...b,colonnes_essentiel_style:Ooe({})}))},m=b=>{n(!0),r(T=>({...T,colonnes_essentiel:b.join("|")}))},y=b=>{let D=a.map(_=>nE.find(P=>P.key===_)).filter(_=>_&&_.serie!==l).map(_=>_.key);const F=nE.filter(_=>_.serie===l&&b.includes(_.key)).map(_=>_.key),N=[...D,...F];i(N.sort((_,P)=>a.includes(_)&&a.indexOf(_)<a.indexOf(P)?-1:1)),m(N)},C=b=>{const T=b[0];if(T){s(T);const D=U3(t.colonnes_essentiel_style);u({...D[T]}),f(!0)}else s(null)},w=()=>{n(!0);let b={...t},T=U3(b.colonnes_essentiel_style),D=T[o]??{};for(const F in A)D[F]=A[F];T[o]=D,b.colonnes_essentiel_style=Ooe(T),r(b),f(!1)},B=({node:b,dragNode:T,dragNodesKeys:D,event:F})=>{const N=T.key,_=b.key,P=a.findIndex(Y=>Y===N),k=a.findIndex(Y=>Y===_);let j=[...a];j.splice(k,0,j.splice(P,1)[0]),i(j),m(j),n(!0)},x=()=>{const b=t.sections.reduce((F,N)=>{for(let _ in N)_.startsWith("indicateur_associe_")&&_.includes("_id")&&N[_]!=="0"&&F.push(_);return F},[]);let D=[...new Set(b)].map((F,N)=>({label:`Serie ${N+2}`,value:N+2}));return D.unshift({label:"Serie 1",value:1}),D},M=a.filter(b=>{let T=nE.find(D=>D.key===b);return T?T.serie===l:!1}),S=()=>nE.filter(T=>a.includes(T.key)).sort((T,D)=>a.indexOf(T.key)<a.indexOf(D.key)?-1:1).map(T=>{const F={...U3(t.colonnes_essentiel_style)[T.key]};return{...T,title:v.jsx("div",{style:{width:"80%",paddingLeft:4,...F},children:T.title})}}),R=()=>{f(!1),s(null)};return v.jsx("div",{className:"editor-essentials",children:v.jsx(Oi,{items:[{label:"Séries",key:"1",children:v.jsx(lIe,{form:e,formReport:t})},{label:"Colonnes à afficher",key:"3",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx(Ni,{okText:"Valider",cancelText:"Annuler",onConfirm:g,title:"Etes vous sûr de vouloir réinitialiser toutes les colonnes ?",children:v.jsx(yt,{style:{marginLeft:8},children:"Réinitialiser les colonnes"})}),v.jsx(Ni,{okText:"Valider",cancelText:"Annuler",onConfirm:p,title:"Etes vous sûr de vouloir réinitialiser tous les styles ?",children:v.jsx(yt,{style:{marginLeft:8},children:"Réinitialiser les styles"})})]})}),v.jsxs("div",{className:"column-lists",children:[v.jsxs("div",{className:"column-list",children:[v.jsx("div",{className:"tree-title",children:`Colonnes choisies ${h?"(par défaut)":"(personnalisées)"}`}),v.jsxs("div",{className:"essentials-left-content",children:[v.jsx(Id,{treeData:S(),onSelect:C,draggable:!0,onDrop:B}),v.jsx(AIe,{open:d,onCancel:R,setIsStyleModalVisible:f,onOk:w,selectedColumnKey:o,draftStyles:A,setDraftStyles:u},o)]})]}),v.jsxs("div",{className:"column-list",children:[v.jsx("div",{className:"tree-title",children:"Colonnes disponibles"}),v.jsx(sn,{style:{width:"100%"},value:l,options:x(),onChange:b=>c(b)}),v.jsx("div",{className:"essentials-right-content",children:v.jsx(Id,{checkable:!0,onCheck:y,selectable:!0,checkedKeys:M??[],treeData:nE.filter(b=>b.serie===l)})})]})]})]})}]})})};uIe.propTypes={form:W.object,formReport:W.object,setFormReport:W.func,setSelectedReportModified:W.func};const U3=e=>{let t={};return e&&(t=e.split("|").reduce((n,a)=>{const[i,o]=a.split(":");if(i&&o){let[s,l]=o.split("=");l=l.replace("0x","#");let c=n[i]??{};c[s]=l,n[i]=c}return n},{})),t},Ooe=e=>{let t="";for(let r in e){let n=e[r];for(let a in n){let i=n[a];a==="fontWeight"&&i!==!1?(i="bold",t=t+`${r}:${a}=${i}|`):a!=="fontWeight"&&(i=i.replace("#","0x"),t=t+`${r}:${a}=${i}|`)}}return t};var H3={};const dIe=Ya(pdt);var G3={};const QEt=Ya(Fdt);var K3={},joe;function DEt(){return joe||(joe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Eu()),n=t(Pd()),a=t(zd()),i=t(jd()),o=t(Jg()),s=t(Od()),l=t(Ur()),c=t(cA()),A=(function(d){(0,s.default)(f,d);function f(h){var g;return(0,r.default)(this,f),g=(0,a.default)(this,(0,i.default)(f).call(this,h)),g.renderHeaderRow=g.renderHeaderRow.bind((0,o.default)(g)),g.renderFrozenRow=g.renderFrozenRow.bind((0,o.default)(g)),g._setRef=g._setRef.bind((0,o.default)(g)),g}return(0,n.default)(f,[{key:"scrollTo",value:function(g){var p=this;requestAnimationFrame(function(){p.headerRef&&(p.headerRef.scrollLeft=g)})}},{key:"renderHeaderRow",value:function(g,p){var m=this.props,y=m.columns,C=m.headerRenderer;if(g<=0)return null;var w={width:"100%",height:g};return C({style:w,columns:y,headerIndex:p})}},{key:"renderFrozenRow",value:function(g,p){var m=this.props,y=m.columns,C=m.rowHeight,w=m.rowRenderer,B={width:"100%",height:C},x=-p-1;return w({style:B,columns:y,rowData:g,rowIndex:x})}},{key:"render",value:function(){var g=this.props,p=g.className,m=g.width,y=g.height,C=g.rowWidth,w=g.headerHeight,B=g.frozenData;if(y<=0)return null;var x={width:m,height:y,position:"relative",overflow:"hidden"},M={width:C,height:y},S=Array.isArray(w)?w:[w];return l.default.createElement("div",{role:"grid",ref:this._setRef,className:p,style:x},l.default.createElement("div",{role:"rowgroup",style:M},S.map(this.renderHeaderRow),B.map(this.renderFrozenRow)))}},{key:"_setRef",value:function(g){this.headerRef=g}}]),f})(l.default.PureComponent);A.propTypes={className:c.default.string,width:c.default.number.isRequired,height:c.default.number.isRequired,headerHeight:c.default.oneOfType([c.default.number,c.default.arrayOf(c.default.number)]).isRequired,rowWidth:c.default.number.isRequired,rowHeight:c.default.number.isRequired,columns:c.default.arrayOf(c.default.object).isRequired,data:c.default.array.isRequired,frozenData:c.default.array,headerRenderer:c.default.func.isRequired,rowRenderer:c.default.func.isRequired};var u=A;e.default=u})(K3)),K3}var Ui={},zoe;function Uy(){if(zoe)return Ui;zoe=1;var e=qr();Object.defineProperty(Ui,"__esModule",{value:!0}),Ui.renderElement=o,Ui.normalizeColumns=s,Ui.isObjectEqual=l,Ui.callOrReturn=c,Ui.hasChildren=A,Ui.unflatten=u,Ui.flattenOnKeys=d,Ui.cloneArray=f,Ui.noop=h,Ui.toString=g,Ui.getValue=m,Ui.getScrollbarSize=B,Ui.addClassName=x,Ui.removeClassName=M,Ui.getEstimatedTotalRowsHeight=S,Ui.throttle=Ui.debounce=void 0;var t=e(Xa()),r=e(oo()),n=e(Ur());function a(R,b){var T=Object.keys(R);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(R);b&&(D=D.filter(function(F){return Object.getOwnPropertyDescriptor(R,F).enumerable})),T.push.apply(T,D)}return T}function i(R){for(var b=1;b<arguments.length;b++){var T=arguments[b]!=null?arguments[b]:{};b%2?a(T,!0).forEach(function(D){(0,r.default)(R,D,T[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(R,Object.getOwnPropertyDescriptors(T)):a(T).forEach(function(D){Object.defineProperty(R,D,Object.getOwnPropertyDescriptor(T,D))})}return R}function o(R,b){return n.default.isValidElement(R)?b?n.default.cloneElement(R,b):R:typeof R=="function"?R.prototype&&R.prototype.isReactComponent?n.default.createElement(R,b):R.defaultProps?R(i({},R.defaultProps,{},b)):R(b):null}function s(R){var b=[];return n.default.Children.forEach(R,function(T){if(n.default.isValidElement(T)&&T.key){var D=i({},T.props,{key:T.key});b.push(D)}}),b}function l(R,b){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(R===b||R===null&&b===null)return!0;if(R===null||b===null||(0,t.default)(R)!=="object"||(0,t.default)(b)!=="object")return!1;var D=Object.keys(R),F=Object.keys(b);if(D.length!==F.length)return!1;for(var N=0;N<D.length;N++){var _=D[N];if(!(_==="_owner"&&R.$$typeof)){var P=R[_],k=b[_],j=(0,t.default)(P);if(j!==(0,t.default)(k))return!1;if(!(j==="function"&&T)){if(j==="object"){if(l(P,k,T))continue;return!1}if(P!==k)return!1}}}return!0}function c(R){for(var b=arguments.length,T=new Array(b>1?b-1:0),D=1;D<b;D++)T[D-1]=arguments[D];return typeof R=="function"?R.apply(void 0,T):R}function A(R){return Array.isArray(R.children)&&R.children.length>0}function u(R){for(var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"id",D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"parentId",F=[],N={},_=R.length,P=0;P<_;P++){var k=i({},R[P]),j=k[T],Y=k[D];Array.isArray(k.children)?N[j]=k.children.concat(N[j]||[]):N[j]||(N[j]=[]),k.children=N[j],Y!==void 0&&Y!==b?(N[Y]||(N[Y]=[]),N[Y].push(k)):F.push(k)}return F}function d(R,b){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},D=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"id";if(!b||!b.length)return R;var F=[],N=new Set;b.forEach(function(k){return N.add(k)});var _=[].concat(R);_.forEach(function(k){return T[k[D]]=0});for(var P=function(){var j=_.shift();F.push(j),N.has(j[D])&&Array.isArray(j.children)&&j.children.length>0&&(_=[].concat(j.children,_),j.children.forEach(function(Y){return T[Y[D]]=T[j[D]]+1}))};_.length>0;)P();return F}function f(R){return Array.isArray(R)?[].concat(R):[]}function h(){}function g(R){return typeof R=="string"?R:R==null?"":R.toString?R.toString():""}function p(R){for(var b=R.split("."),T=[],D=0;D<b.length;D++){for(var F=b[D];F[F.length-1]==="\\"&&b[D+1]!==void 0;)F=F.slice(0,-1)+".",F+=b[++D];T.push(F)}return T}function m(R,b,T){if(R===null||(0,t.default)(R)!=="object"||typeof b!="string")return T;for(var D=p(b),F=0;F<D.length;F++){if(!Object.prototype.propertyIsEnumerable.call(R,D[F]))return T;if(R=R[D[F]],R==null){if(F!==D.length-1)return T;break}}return R}var y=function(b){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,D;return function(){for(var F=this,N=arguments.length,_=new Array(N),P=0;P<N;P++)_[P]=arguments[P];clearTimeout(D),D=setTimeout(function(){return b.apply(F,_)},T)}};Ui.debounce=y;var C=function(b,T){var D,F,N;return function(){var _=this,P=arguments;D?(clearTimeout(F),F=setTimeout(function(){Date.now()-N>=T&&(b.apply(_,P),N=Date.now())},Math.max(T-(Date.now()-N),0))):(b.apply(_,P),N=Date.now(),D=!0)}};Ui.throttle=C;var w;function B(R){if((!w&&w!==0||R)&&typeof window<"u"&&window.document&&window.document.createElement){var b=document.createElement("div");b.style.position="absolute",b.style.top="-9999px",b.style.width="50px",b.style.height="50px",b.style.overflow="scroll",document.body.appendChild(b),w=b.offsetWidth-b.clientWidth,document.body.removeChild(b)}return w}function x(R,b){R.classList?R.classList.add(b):R.className.match(new RegExp("(?:^|\\s)".concat(b,"(?!\\S)")))||(R.className+=" ".concat(b))}function M(R,b){R.classList?R.classList.remove(b):R.className=R.className.replace(new RegExp("(?:^|\\s)".concat(b,"(?!\\S)"),"g"),"")}function S(R,b){return typeof b=="function"?R.reduce(function(T,D,F){return T+b({rowData:D,rowIndex:F})},0):R.length*b}return Ui}var Loe;function FEt(){return Loe||(Loe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ga()),n=t(Vg()),a=t(oo()),i=t(Eu()),o=t(Pd()),s=t(zd()),l=t(jd()),c=t(Jg()),A=t(Od()),u=t(Ur()),d=t(cA()),f=t(Ro()),h=QEt,g=t(dIe),p=t(DEt()),m=Uy();function y(x,M){var S=Object.keys(x);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(x);M&&(R=R.filter(function(b){return Object.getOwnPropertyDescriptor(x,b).enumerable})),S.push.apply(S,R)}return S}function C(x){for(var M=1;M<arguments.length;M++){var S=arguments[M]!=null?arguments[M]:{};M%2?y(S,!0).forEach(function(R){(0,a.default)(x,R,S[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(x,Object.getOwnPropertyDescriptors(S)):y(S).forEach(function(R){Object.defineProperty(x,R,Object.getOwnPropertyDescriptor(S,R))})}return x}var w=(function(x){(0,A.default)(M,x);function M(S){var R;return(0,i.default)(this,M),R=(0,s.default)(this,(0,l.default)(M).call(this,S)),R._setHeaderRef=R._setHeaderRef.bind((0,c.default)(R)),R._setBodyRef=R._setBodyRef.bind((0,c.default)(R)),R._setInnerRef=R._setInnerRef.bind((0,c.default)(R)),R._itemKey=R._itemKey.bind((0,c.default)(R)),R._getBodyWidth=R._getBodyWidth.bind((0,c.default)(R)),R._handleItemsRendered=R._handleItemsRendered.bind((0,c.default)(R)),R._resetColumnWidthCache=(0,g.default)(function(b){R.props.estimatedRowHeight&&R.bodyRef&&R.bodyRef.resetAfterColumnIndex(0,!1)}),R._getEstimatedTotalRowsHeight=(0,g.default)(m.getEstimatedTotalRowsHeight),R.renderRow=R.renderRow.bind((0,c.default)(R)),R}return(0,o.default)(M,[{key:"resetAfterRowIndex",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1?arguments[1]:void 0;this.props.estimatedRowHeight&&this.bodyRef&&this.bodyRef.resetAfterRowIndex(R,b)}},{key:"forceUpdateTable",value:function(){this.headerRef&&this.headerRef.forceUpdate(),this.bodyRef&&this.bodyRef.forceUpdate()}},{key:"scrollToPosition",value:function(R){this.headerRef&&this.headerRef.scrollTo(R.scrollLeft),this.bodyRef&&this.bodyRef.scrollTo(R)}},{key:"scrollToTop",value:function(R){this.bodyRef&&this.bodyRef.scrollTo({scrollTop:R})}},{key:"scrollToLeft",value:function(R){this.headerRef&&this.headerRef.scrollTo(R),this.bodyRef&&this.bodyRef.scrollToPosition({scrollLeft:R})}},{key:"scrollToRow",value:function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto";this.bodyRef&&this.bodyRef.scrollToItem({rowIndex:R,align:b})}},{key:"getTotalRowsHeight",value:function(){var R=this.props,b=R.data,T=R.rowHeight,D=R.estimatedRowHeight;return D?this.innerRef&&this.innerRef.clientHeight||this._getEstimatedTotalRowsHeight(b,D):b.length*T}},{key:"renderRow",value:function(R){var b=this.props,T=b.data,D=b.columns,F=b.rowRenderer,N=T[R.rowIndex];return F(C({},R,{columns:D,rowData:N}))}},{key:"render",value:function(){var R=this.props,b=R.containerStyle,T=R.classPrefix,D=R.className,F=R.data,N=R.frozenData,_=R.width,P=R.height,k=R.rowHeight,j=R.estimatedRowHeight,Y=R.getRowHeight,X=R.headerWidth,K=R.bodyWidth,U=R.useIsScrolling,H=R.onScroll,L=R.hoveredRowKey,V=R.overscanRowCount;R.style,R.onScrollbarPresenceChange;var J=(0,n.default)(R,["containerStyle","classPrefix","className","data","frozenData","width","height","rowHeight","estimatedRowHeight","getRowHeight","headerWidth","bodyWidth","useIsScrolling","onScroll","hoveredRowKey","overscanRowCount","style","onScrollbarPresenceChange"]),ee=this._getHeaderHeight(),ae=N.length,ne=k*ae,fe=(0,f.default)("".concat(T,"__table"),D),he=b?{style:b}:null,ye=j?h.VariableSizeGrid:h.FixedSizeGrid;return this._resetColumnWidthCache(K),u.default.createElement("div",(0,r.default)({role:"table",className:fe},he),u.default.createElement(ye,(0,r.default)({},J,{className:"".concat(T,"__body"),ref:this._setBodyRef,innerRef:this._setInnerRef,itemKey:this._itemKey,data:F,frozenData:N,width:_,height:Math.max(P-ee-ne,0),rowHeight:j?Y:k,estimatedRowHeight:typeof j=="function"?void 0:j,rowCount:F.length,overscanRowCount:V,columnWidth:j?this._getBodyWidth:K,columnCount:1,overscanColumnCount:0,useIsScrolling:U,hoveredRowKey:L,onScroll:H,onItemsRendered:this._handleItemsRendered,children:this.renderRow})),ee+ne>0&&u.default.createElement(p.default,(0,r.default)({},J,{className:"".concat(T,"__header"),ref:this._setHeaderRef,data:F,frozenData:N,width:_,height:Math.min(ee+ne,P),rowWidth:X,rowHeight:k,headerHeight:this.props.headerHeight,headerRenderer:this.props.headerRenderer,rowRenderer:this.props.rowRenderer,hoveredRowKey:ae>0?L:null})))}},{key:"_setHeaderRef",value:function(R){this.headerRef=R}},{key:"_setBodyRef",value:function(R){this.bodyRef=R}},{key:"_setInnerRef",value:function(R){this.innerRef=R}},{key:"_itemKey",value:function(R){var b=R.rowIndex,T=this.props,D=T.data,F=T.rowKey;return D[b][F]}},{key:"_getHeaderHeight",value:function(){var R=this.props.headerHeight;return Array.isArray(R)?R.reduce(function(b,T){return b+T},0):R}},{key:"_getBodyWidth",value:function(){return this.props.bodyWidth}},{key:"_handleItemsRendered",value:function(R){var b=R.overscanRowStartIndex,T=R.overscanRowStopIndex,D=R.visibleRowStartIndex,F=R.visibleRowStopIndex;this.props.onRowsRendered({overscanStartIndex:b,overscanStopIndex:T,startIndex:D,stopIndex:F})}}]),M})(u.default.PureComponent);w.propTypes={containerStyle:d.default.object,classPrefix:d.default.string,className:d.default.string,width:d.default.number.isRequired,height:d.default.number.isRequired,headerHeight:d.default.oneOfType([d.default.number,d.default.arrayOf(d.default.number)]).isRequired,headerWidth:d.default.number.isRequired,bodyWidth:d.default.number.isRequired,rowHeight:d.default.number.isRequired,estimatedRowHeight:d.default.oneOfType([d.default.func,d.default.number]),getRowHeight:d.default.func,columns:d.default.arrayOf(d.default.object).isRequired,data:d.default.array.isRequired,frozenData:d.default.array,rowKey:d.default.oneOfType([d.default.string,d.default.number]).isRequired,useIsScrolling:d.default.bool,overscanRowCount:d.default.number,hoveredRowKey:d.default.oneOfType([d.default.string,d.default.number]),style:d.default.object,onScrollbarPresenceChange:d.default.func,onScroll:d.default.func,onRowsRendered:d.default.func,headerRenderer:d.default.func.isRequired,rowRenderer:d.default.func.isRequired};var B=w;e.default=B})(G3)),G3}var V3={},Yoe;function NEt(){return Yoe||(Yoe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ga()),n=t(Vg()),a=t(Ur()),i=t(cA()),o=Uy(),s=function(A){var u=A.className,d=A.style,f=A.columns,h=A.headerIndex,g=A.cellRenderer,p=A.headerRenderer,m=A.expandColumnKey,y=A.expandIcon,C=A.tagName,w=(0,n.default)(A,["className","style","columns","headerIndex","cellRenderer","headerRenderer","expandColumnKey","expandIcon","tagName"]),B=f.map(function(x,M){return g({columns:f,column:x,columnIndex:M,headerIndex:h,expandIcon:x.key===m&&a.default.createElement(y,null)})});return p&&(B=(0,o.renderElement)(p,{cells:B,columns:f,headerIndex:h})),a.default.createElement(C,(0,r.default)({},w,{className:u,style:d}),B)};s.defaultProps={tagName:"div"},s.propTypes={isScrolling:i.default.bool,className:i.default.string,style:i.default.object,columns:i.default.arrayOf(i.default.object).isRequired,headerIndex:i.default.number,cellRenderer:i.default.func,headerRenderer:i.default.oneOfType([i.default.func,i.default.element]),expandColumnKey:i.default.string,expandIcon:i.default.func,tagName:i.default.elementType};var l=s;e.default=l})(V3)),V3}var J3={},Uoe;function _Et(){return Uoe||(Uoe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ga()),n=t(Vg()),a=t(Eu()),i=t(Pd()),o=t(zd()),s=t(jd()),l=t(Jg()),c=t(Od()),A=t(Ur()),u=t(cA()),d=Uy(),f=(function(g){(0,c.default)(p,g);function p(m){var y;return(0,a.default)(this,p),y=(0,o.default)(this,(0,s.default)(p).call(this,m)),y.state={measured:!1},y._setRef=y._setRef.bind((0,l.default)(y)),y._handleExpand=y._handleExpand.bind((0,l.default)(y)),y}return(0,i.default)(p,[{key:"componentDidMount",value:function(){this.props.estimatedRowHeight&&this.props.rowIndex>=0&&this._measureHeight(!0)}},{key:"componentDidUpdate",value:function(y,C){var w=this;this.props.estimatedRowHeight&&this.props.rowIndex>=0&&!this.props.getIsResetting()&&this.state.measured&&C.measured&&this.setState({measured:!1},function(){return w._measureHeight()})}},{key:"render",value:function(){var y=this.props,C=y.isScrolling,w=y.className,B=y.style,x=y.columns,M=y.rowIndex,S=y.rowData,R=y.expandColumnKey,b=y.depth,T=y.rowEventHandlers,D=y.estimatedRowHeight,F=y.rowRenderer,N=y.cellRenderer,_=y.expandIconRenderer,P=y.tagName;y.rowKey,y.getIsResetting,y.onRowHover,y.onRowExpand,y.onRowHeightChange;var k=(0,n.default)(y,["isScrolling","className","style","columns","rowIndex","rowData","expandColumnKey","depth","rowEventHandlers","estimatedRowHeight","rowRenderer","cellRenderer","expandIconRenderer","tagName","rowKey","getIsResetting","onRowHover","onRowExpand","onRowHeightChange"]),j=_({rowData:S,rowIndex:M,depth:b,onExpand:this._handleExpand}),Y=x.map(function(U,H){return N({isScrolling:C,columns:x,column:U,columnIndex:H,rowData:S,rowIndex:M,expandIcon:U.key===R&&j})});F&&(Y=(0,d.renderElement)(F,{isScrolling:C,cells:Y,columns:x,rowData:S,rowIndex:M,depth:b}));var X=this._getEventHandlers(T);if(D&&M>=0){B.height;var K=(0,n.default)(B,["height"]);return A.default.createElement(P,(0,r.default)({},k,{ref:this._setRef,className:w,style:this.state.measured?B:K},this.state.measured&&X),Y)}return A.default.createElement(P,(0,r.default)({},k,{className:w,style:B},X),Y)}},{key:"_setRef",value:function(y){this.ref=y}},{key:"_handleExpand",value:function(y){var C=this.props,w=C.onRowExpand,B=C.rowData,x=C.rowIndex,M=C.rowKey;w&&w({expanded:y,rowData:B,rowIndex:x,rowKey:M})}},{key:"_measureHeight",value:function(y){if(this.ref){var C=this.props,w=C.style,B=C.rowKey,x=C.onRowHeightChange,M=C.rowIndex,S=C.columns,R=this.ref.getBoundingClientRect().height;this.setState({measured:!0},function(){(y||R!==w.height)&&x(B,R,M,S[0]&&!S[0].__placeholder__&&S[0].frozen)})}}},{key:"_getEventHandlers",value:function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},C=this.props,w=C.rowData,B=C.rowIndex,x=C.rowKey,M=C.onRowHover,S={};if(Object.keys(y).forEach(function(T){var D=y[T];typeof D=="function"&&(S[T]=function(F){D({rowData:w,rowIndex:B,rowKey:x,event:F})})}),M){var R=S.onMouseEnter;S.onMouseEnter=function(T){M({hovered:!0,rowData:w,rowIndex:B,rowKey:x,event:T}),R&&R(T)};var b=S.onMouseLeave;S.onMouseLeave=function(T){M({hovered:!1,rowData:w,rowIndex:B,rowKey:x,event:T}),b&&b(T)}}return S}}]),p})(A.default.PureComponent);f.defaultProps={tagName:"div"},f.propTypes={isScrolling:u.default.bool,className:u.default.string,style:u.default.object,columns:u.default.arrayOf(u.default.object).isRequired,rowData:u.default.object.isRequired,rowIndex:u.default.number.isRequired,rowKey:u.default.oneOfType([u.default.string,u.default.number]),expandColumnKey:u.default.string,depth:u.default.number,rowEventHandlers:u.default.object,rowRenderer:u.default.oneOfType([u.default.func,u.default.element]),cellRenderer:u.default.func,expandIconRenderer:u.default.func,estimatedRowHeight:u.default.oneOfType([u.default.number,u.default.func]),getIsResetting:u.default.func,onRowHover:u.default.func,onRowExpand:u.default.func,onRowHeightChange:u.default.func,tagName:u.default.elementType};var h=f;e.default=h})(J3)),J3}var W3={},Hoe;function kEt(){return Hoe||(Hoe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ur()),n=t(cA()),a=function(s){var l=s.className,c=s.column;return s.columnIndex,r.default.createElement("div",{className:l},c.title)};a.propTypes={className:n.default.string,column:n.default.object,columnIndex:n.default.number};var i=a;e.default=i})(W3)),W3}var X3={},Goe;function PEt(){return Goe||(Goe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ur()),n=t(cA()),a=Uy(),i=function(l){var c=l.className,A=l.cellData;return l.column,l.columnIndex,l.rowData,l.rowIndex,r.default.createElement("div",{className:c},r.default.isValidElement(A)?A:(0,a.toString)(A))};i.propTypes={className:n.default.string,cellData:n.default.any,column:n.default.object,columnIndex:n.default.number,rowData:n.default.object,rowIndex:n.default.number};var o=i;e.default=o})(X3)),X3}var q3={},Koe;function fIe(){return Koe||(Koe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FrozenDirection=e.Alignment=void 0;var r=t(Eu()),n=t(zd()),a=t(jd()),i=t(Od()),o=t(Ur()),s=t(cA()),l={LEFT:"left",CENTER:"center",RIGHT:"right"};e.Alignment=l;var c={LEFT:"left",RIGHT:"right",DEFAULT:!0,NONE:!1};e.FrozenDirection=c;var A=(function(d){(0,i.default)(f,d);function f(){return(0,r.default)(this,f),(0,n.default)(this,(0,a.default)(f).apply(this,arguments))}return f})(o.default.Component);A.propTypes={className:s.default.oneOfType([s.default.string,s.default.func]),headerClassName:s.default.oneOfType([s.default.string,s.default.func]),style:s.default.object,title:s.default.node,dataKey:s.default.string,dataGetter:s.default.func,align:s.default.oneOf(["left","center","right"]),flexGrow:s.default.number,flexShrink:s.default.number,width:s.default.number.isRequired,maxWidth:s.default.number,minWidth:s.default.number,frozen:s.default.oneOf(["left","right",!0,!1]),hidden:s.default.bool,resizable:s.default.bool,sortable:s.default.bool,cellRenderer:s.default.oneOfType([s.default.func,s.default.element]),headerRenderer:s.default.oneOfType([s.default.func,s.default.element])},A.Alignment=l,A.FrozenDirection=c;var u=A;e.default=u})(q3)),q3}var Z3={},Voe;function hIe(){return Voe||(Voe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={ASC:"asc",DESC:"desc"},r=t;e.default=r})(Z3)),Z3}var $3={},Joe;function OEt(){return Joe||(Joe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ga()),n=t(Vg()),a=t(Eu()),i=t(Pd()),o=t(zd()),s=t(jd()),l=t(Jg()),c=t(Od()),A=t(Ur()),u=t(cA()),d=t(Ro()),f=(function(g){(0,c.default)(p,g);function p(m){var y;return(0,a.default)(this,p),y=(0,o.default)(this,(0,s.default)(p).call(this,m)),y._handleClick=y._handleClick.bind((0,l.default)(y)),y}return(0,i.default)(p,[{key:"render",value:function(){var y=this.props,C=y.expandable,w=y.expanded,B=y.indentSize,x=y.depth,M=y.onExpand,S=(0,n.default)(y,["expandable","expanded","indentSize","depth","onExpand"]);if(!C&&B===0)return null;var R=(0,d.default)("BaseTable__expand-icon",{"BaseTable__expand-icon--expanded":w});return A.default.createElement("div",(0,r.default)({},S,{className:R,onClick:C&&M?this._handleClick:null,style:{fontFamily:"initial",cursor:"pointer",userSelect:"none",width:"16px",minWidth:"16px",height:"16px",lineHeight:"16px",fontSize:"16px",textAlign:"center",transition:"transform 0.15s ease-out",transform:"rotate(".concat(C&&w?90:0,"deg)"),marginLeft:x*B}}),C&&"▸")}},{key:"_handleClick",value:function(y){y.stopPropagation(),y.preventDefault();var C=this.props,w=C.onExpand,B=C.expanded;w(!B)}}]),p})(A.default.PureComponent);f.defaultProps={depth:0,indentSize:16},f.propTypes={expandable:u.default.bool,expanded:u.default.bool,indentSize:u.default.number,depth:u.default.number,onExpand:u.default.func};var h=f;e.default=h})($3)),$3}var eO={},Woe;function jEt(){return Woe||(Woe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(oo()),n=t(Ur()),a=t(cA()),i=t(Ro()),o=t(hIe());function s(u,d){var f=Object.keys(u);if(Object.getOwnPropertySymbols){var h=Object.getOwnPropertySymbols(u);d&&(h=h.filter(function(g){return Object.getOwnPropertyDescriptor(u,g).enumerable})),f.push.apply(f,h)}return f}function l(u){for(var d=1;d<arguments.length;d++){var f=arguments[d]!=null?arguments[d]:{};d%2?s(f,!0).forEach(function(h){(0,r.default)(u,h,f[h])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(f)):s(f).forEach(function(h){Object.defineProperty(u,h,Object.getOwnPropertyDescriptor(f,h))})}return u}var c=function(d){var f=d.sortOrder,h=d.className,g=d.style,p=(0,i.default)("BaseTable__sort-indicator",h,{"BaseTable__sort-indicator--descending":f===o.default.DESC});return n.default.createElement("div",{className:p,style:l({userSelect:"none",width:"16px",height:"16px",lineHeight:"16px",textAlign:"center"},g)},f===o.default.DESC?"↓":"↑")};c.propTypes={sortOrder:a.default.oneOf([o.default.ASC,o.default.DESC]),className:a.default.string,style:a.default.object};var A=c;e.default=A})(eO)),eO}var tO={},Xoe;function zEt(){return Xoe||(Xoe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.addUserSelectStyles=m,e.removeUserSelectStyles=y,e.default=void 0;var r=t(Ga()),n=t(oo()),a=t(Vg()),i=t(Eu()),o=t(Pd()),s=t(zd()),l=t(jd()),c=t(Jg()),A=t(Od()),u=t(Ur()),d=t(cA()),f=Uy();function h(M,S){var R=Object.keys(M);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(M);S&&(b=b.filter(function(T){return Object.getOwnPropertyDescriptor(M,T).enumerable})),R.push.apply(R,b)}return R}function g(M){for(var S=1;S<arguments.length;S++){var R=arguments[S]!=null?arguments[S]:{};S%2?h(R,!0).forEach(function(b){(0,n.default)(M,b,R[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(R)):h(R).forEach(function(b){Object.defineProperty(M,b,Object.getOwnPropertyDescriptor(R,b))})}return M}var p=null;function m(M){if(M){var S=M.getElementById("react-draggable-style-el");S||(S=M.createElement("style"),S.type="text/css",S.id="react-draggable-style-el",S.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
`,S.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
`,M.getElementsByTagName("head")[0].appendChild(S)),M.body&&(0,f.addClassName)(M.body,"react-draggable-transparent-selection")}}function y(M){if(M)try{if(M.body&&(0,f.removeClassName)(M.body,"react-draggable-transparent-selection"),M.selection)M.selection.empty();else{var S=(M.defaultView||window).getSelection();S&&S.type!=="Caret"&&S.removeAllRanges()}}catch{}}var C={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}},w=C.mouse,B=(function(M){(0,A.default)(S,M);function S(R){var b;return(0,i.default)(this,S),b=(0,s.default)(this,(0,l.default)(S).call(this,R)),b.isDragging=!1,b.lastX=p,b.width=0,b._setHandleRef=b._setHandleRef.bind((0,c.default)(b)),b._handleClick=b._handleClick.bind((0,c.default)(b)),b._handleMouseDown=b._handleMouseDown.bind((0,c.default)(b)),b._handleMouseUp=b._handleMouseUp.bind((0,c.default)(b)),b._handleTouchStart=b._handleTouchStart.bind((0,c.default)(b)),b._handleTouchEnd=b._handleTouchEnd.bind((0,c.default)(b)),b._handleDragStart=b._handleDragStart.bind((0,c.default)(b)),b._handleDragStop=b._handleDragStop.bind((0,c.default)(b)),b._handleDrag=b._handleDrag.bind((0,c.default)(b)),b}return(0,o.default)(S,[{key:"componentWillUnmount",value:function(){if(this.handleRef){var b=this.handleRef.ownerDocument;b.removeEventListener(C.mouse.move,this._handleDrag),b.removeEventListener(C.mouse.stop,this._handleDragStop),b.removeEventListener(C.touch.move,this._handleDrag),b.removeEventListener(C.touch.stop,this._handleDragStop),y(b)}}},{key:"render",value:function(){var b=this.props,T=b.style;b.column,b.onResizeStart,b.onResize,b.onResizeStop,b.minWidth;var D=(0,a.default)(b,["style","column","onResizeStart","onResize","onResizeStop","minWidth"]);return u.default.createElement("div",(0,r.default)({},D,{ref:this._setHandleRef,onClick:this._handleClick,onMouseDown:this._handleMouseDown,onMouseUp:this._handleMouseUp,onTouchStart:this._handleTouchStart,onTouchEnd:this._handleTouchEnd,style:g({userSelect:"none",touchAction:"none",position:"absolute",top:0,bottom:0,right:0,cursor:"col-resize"},T)}))}},{key:"_setHandleRef",value:function(b){this.handleRef=b}},{key:"_handleClick",value:function(b){b.stopPropagation()}},{key:"_handleMouseDown",value:function(b){w=C.mouse,this._handleDragStart(b)}},{key:"_handleMouseUp",value:function(b){w=C.mouse,this._handleDragStop(b)}},{key:"_handleTouchStart",value:function(b){w=C.touch,this._handleDragStart(b)}},{key:"_handleTouchEnd",value:function(b){w=C.touch,this._handleDragStop(b)}},{key:"_handleDragStart",value:function(b){if(!(typeof b.button=="number"&&b.button!==0)){this.isDragging=!0,this.lastX=p,this.width=this.props.column.width,this.props.onResizeStart(this.props.column);var T=this.handleRef.ownerDocument;m(T),T.addEventListener(w.move,this._handleDrag),T.addEventListener(w.stop,this._handleDragStop)}}},{key:"_handleDragStop",value:function(b){if(this.isDragging){this.isDragging=!1,this.props.onResizeStop(this.props.column);var T=this.handleRef.ownerDocument;y(T),T.removeEventListener(w.move,this._handleDrag),T.removeEventListener(w.stop,this._handleDragStop)}}},{key:"_handleDrag",value:function(b){var T=b.clientX;b.type===C.touch.move&&(b.preventDefault(),b.targetTouches&&b.targetTouches[0]&&(T=b.targetTouches[0].clientX));var D=this.handleRef.offsetParent,F=D.getBoundingClientRect(),N=T+D.scrollLeft-F.left;if(this.lastX===p){this.lastX=N;return}var _=this.props,P=_.column,k=_.minWidth,j=P.width,Y=P.maxWidth,X=P.minWidth,K=X===void 0?k:X,U=N-this.lastX;if(U){this.width=this.width+U,this.lastX=N;var H=this.width;Y&&H>Y?H=Y:H<K&&(H=K),H!==j&&this.props.onResize(P,H)}}}]),S})(u.default.PureComponent);B.defaultProps={onResizeStart:f.noop,onResize:f.noop,onResizeStop:f.noop,minWidth:30},B.propTypes={style:d.default.object,column:d.default.object,onResizeStart:d.default.func,onResize:d.default.func,onResizeStop:d.default.func,minWidth:d.default.number};var x=B;e.default=x})(tO)),tO}var rO={},qoe;function LEt(){return qoe||(qoe=1,(function(e){var t=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(oo()),n=t(Eu()),a=t(Pd()),i=fIe();function o(c,A){var u=Object.keys(c);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(c);A&&(d=d.filter(function(f){return Object.getOwnPropertyDescriptor(c,f).enumerable})),u.push.apply(u,d)}return u}function s(c){for(var A=1;A<arguments.length;A++){var u=arguments[A]!=null?arguments[A]:{};A%2?o(u,!0).forEach(function(d){(0,r.default)(c,d,u[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(u)):o(u).forEach(function(d){Object.defineProperty(c,d,Object.getOwnPropertyDescriptor(u,d))})}return c}var l=(function(){function c(A,u){(0,n.default)(this,c),this._origColumns=[],this.reset(A,u)}return(0,a.default)(c,[{key:"_cache",value:function(u,d){return u in this._cached?this._cached[u]:(this._cached[u]=d(),this._cached[u])}},{key:"reset",value:function(u,d){var f=this;this._columns=u.map(function(h){var g=h.width;if(h.resizable){var p=f._origColumns.findIndex(function(m){return m.key===h.key});p>=0&&f._origColumns[p].width===h.width&&(g=f._columns[p].width)}return s({},h,{width:g})}),this._origColumns=u,this._fixed=d,this._cached={},this._columnStyles=this.recomputeColumnStyles()}},{key:"resetCache",value:function(){this._cached={}}},{key:"getOriginalColumns",value:function(){return this._origColumns}},{key:"getColumns",value:function(){return this._columns}},{key:"getVisibleColumns",value:function(){var u=this;return this._cache("visibleColumns",function(){return u._columns.filter(function(d){return!d.hidden})})}},{key:"hasFrozenColumns",value:function(){var u=this;return this._cache("hasFrozenColumns",function(){return u._fixed&&u.getVisibleColumns().some(function(d){return!!d.frozen})})}},{key:"hasLeftFrozenColumns",value:function(){var u=this;return this._cache("hasLeftFrozenColumns",function(){return u._fixed&&u.getVisibleColumns().some(function(d){return d.frozen===i.FrozenDirection.LEFT||d.frozen===!0})})}},{key:"hasRightFrozenColumns",value:function(){var u=this;return this._cache("hasRightFrozenColumns",function(){return u._fixed&&u.getVisibleColumns().some(function(d){return d.frozen===i.FrozenDirection.RIGHT})})}},{key:"getMainColumns",value:function(){var u=this;return this._cache("mainColumns",function(){var d=u.getVisibleColumns();if(!u.hasFrozenColumns())return d;var f=[];return u.getLeftFrozenColumns().forEach(function(h){f.push(s({},h,(0,r.default)({},c.PlaceholderKey,!0)))}),u.getVisibleColumns().forEach(function(h){h.frozen||f.push(h)}),u.getRightFrozenColumns().forEach(function(h){f.push(s({},h,(0,r.default)({},c.PlaceholderKey,!0)))}),f})}},{key:"getLeftFrozenColumns",value:function(){var u=this;return this._cache("leftFrozenColumns",function(){return u._fixed?u.getVisibleColumns().filter(function(d){return d.frozen===i.FrozenDirection.LEFT||d.frozen===!0}):[]})}},{key:"getRightFrozenColumns",value:function(){var u=this;return this._cache("rightFrozenColumns",function(){return u._fixed?u.getVisibleColumns().filter(function(d){return d.frozen===i.FrozenDirection.RIGHT}):[]})}},{key:"getColumn",value:function(u){var d=this._columns.findIndex(function(f){return f.key===u});return this._columns[d]}},{key:"getColumnsWidth",value:function(){var u=this;return this._cache("columnsWidth",function(){return u.recomputeColumnsWidth(u.getVisibleColumns())})}},{key:"getLeftFrozenColumnsWidth",value:function(){var u=this;return this._cache("leftFrozenColumnsWidth",function(){return u.recomputeColumnsWidth(u.getLeftFrozenColumns())})}},{key:"getRightFrozenColumnsWidth",value:function(){var u=this;return this._cache("rightFrozenColumnsWidth",function(){return u.recomputeColumnsWidth(u.getRightFrozenColumns())})}},{key:"recomputeColumnsWidth",value:function(u){return u.reduce(function(d,f){return d+f.width},0)}},{key:"setColumnWidth",value:function(u,d){var f=this.getColumn(u);f.width=d,this._cached={},this._columnStyles[f.key]=this.recomputeColumnStyle(f)}},{key:"getColumnStyle",value:function(u){return this._columnStyles[u]}},{key:"getColumnStyles",value:function(){return this._columnStyles}},{key:"recomputeColumnStyle",value:function(u){var d=0,f=0;this._fixed||(d=typeof u.flexGrow=="number"?u.flexGrow:0,f=typeof u.flexShrink=="number"?u.flexShrink:1);var h="".concat(d," ").concat(f," auto"),g=s({},u.style,{flex:h,msFlex:h,WebkitFlex:h,width:u.width,overflow:"hidden"});return!this._fixed&&u.maxWidth&&(g.maxWidth=u.maxWidth),!this._fixed&&u.minWidth&&(g.minWidth=u.minWidth),g}},{key:"recomputeColumnStyles",value:function(){var u=this;return this._columns.reduce(function(d,f){return d[f.key]=u.recomputeColumnStyle(f),d},{})}}]),c})();e.default=l,l.PlaceholderKey="__placeholder__"})(rO)),rO}var Zoe;function YEt(){return Zoe||(Zoe=1,(function(e){var t=Ha(),r=qr();Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(Vg()),a=r(Ga()),i=r(oo()),o=r(Eu()),s=r(Pd()),l=r(zd()),c=r(jd()),A=r(Jg()),u=r(Od()),d=r(Ur()),f=r(cA()),h=r(Ro()),g=r(dIe),p=r(FEt()),m=r(NEt()),y=r(_Et()),C=r(kEt()),w=r(PEt()),B=t(fIe()),x=r(hIe()),M=r(OEt()),S=r(jEt()),R=r(zEt()),b=r(LEt()),T=Uy();function D(K,U){var H=Object.keys(K);if(Object.getOwnPropertySymbols){var L=Object.getOwnPropertySymbols(K);U&&(L=L.filter(function(V){return Object.getOwnPropertyDescriptor(K,V).enumerable})),H.push.apply(H,L)}return H}function F(K){for(var U=1;U<arguments.length;U++){var H=arguments[U]!=null?arguments[U]:{};U%2?D(H,!0).forEach(function(L){(0,i.default)(K,L,H[L])}):Object.getOwnPropertyDescriptors?Object.defineProperties(K,Object.getOwnPropertyDescriptors(H)):D(H).forEach(function(L){Object.defineProperty(K,L,Object.getOwnPropertyDescriptor(H,L))})}return K}var N=(0,g.default)(function(K,U){return K||(0,T.normalizeColumns)(U)}),_=function(U,H,L){return{width:U,maxWidth:H,height:L,overflow:"hidden"}},P={TableCell:w.default,TableHeaderCell:C.default,ExpandIcon:M.default,SortIndicator:S.default},k=50,j=[],Y=(function(K){(0,u.default)(U,K);function U(H){var L;(0,o.default)(this,U),L=(0,l.default)(this,(0,c.default)(U).call(this,H));var V=H.columns,J=H.children,ee=H.defaultExpandedRowKeys;return L.state={scrollbarSize:0,hoveredRowKey:null,resizingKey:null,resizingWidth:0,expandedRowKeys:(0,T.cloneArray)(ee)},L.columnManager=new b.default(N(V,J),H.fixed),L._setContainerRef=L._setContainerRef.bind((0,A.default)(L)),L._setMainTableRef=L._setMainTableRef.bind((0,A.default)(L)),L._setLeftTableRef=L._setLeftTableRef.bind((0,A.default)(L)),L._setRightTableRef=L._setRightTableRef.bind((0,A.default)(L)),L.renderExpandIcon=L.renderExpandIcon.bind((0,A.default)(L)),L.renderRow=L.renderRow.bind((0,A.default)(L)),L.renderRowCell=L.renderRowCell.bind((0,A.default)(L)),L.renderHeader=L.renderHeader.bind((0,A.default)(L)),L.renderHeaderCell=L.renderHeaderCell.bind((0,A.default)(L)),L._handleScroll=L._handleScroll.bind((0,A.default)(L)),L._handleVerticalScroll=L._handleVerticalScroll.bind((0,A.default)(L)),L._handleRowsRendered=L._handleRowsRendered.bind((0,A.default)(L)),L._handleRowHover=L._handleRowHover.bind((0,A.default)(L)),L._handleRowExpand=L._handleRowExpand.bind((0,A.default)(L)),L._handleColumnResize=(0,T.throttle)(L._handleColumnResize.bind((0,A.default)(L)),k),L._handleColumnResizeStart=L._handleColumnResizeStart.bind((0,A.default)(L)),L._handleColumnResizeStop=L._handleColumnResizeStop.bind((0,A.default)(L)),L._handleColumnSort=L._handleColumnSort.bind((0,A.default)(L)),L._handleFrozenRowHeightChange=L._handleFrozenRowHeightChange.bind((0,A.default)(L)),L._handleRowHeightChange=L._handleRowHeightChange.bind((0,A.default)(L)),L._getLeftTableContainerStyle=(0,g.default)(_),L._getRightTableContainerStyle=(0,g.default)(_),L._flattenOnKeys=(0,g.default)(function(ae,ne,fe){return L._depthMap={},(0,T.flattenOnKeys)(ae,ne,L._depthMap,fe)}),L._resetColumnManager=(0,g.default)(function(ae,ne){L.columnManager.reset(ae,ne),L.props.estimatedRowHeight&&ne&&(L.columnManager.hasLeftFrozenColumns()||(L._leftRowHeightMap={}),L.columnManager.hasRightFrozenColumns()||(L._rightRowHeightMap={}))},function(ae,ne){return(0,T.isObjectEqual)(ae,ne,L.props.ignoreFunctionInColumnCompare)}),L._isResetting=!1,L._resetIndex=null,L._rowHeightMap={},L._rowHeightMapBuffer={},L._mainRowHeightMap={},L._leftRowHeightMap={},L._rightRowHeightMap={},L._getEstimatedTotalRowsHeight=(0,g.default)(T.getEstimatedTotalRowsHeight),L._getRowHeight=L._getRowHeight.bind((0,A.default)(L)),L._updateRowHeights=(0,T.debounce)(function(){L._isResetting=!0,L._rowHeightMap=F({},L._rowHeightMap,{},L._rowHeightMapBuffer),L.resetAfterRowIndex(L._resetIndex,!1),L._rowHeightMapBuffer={},L._resetIndex=null,L.forceUpdateTable(),L.forceUpdate(),L._isResetting=!1},0),L._scroll={scrollLeft:0,scrollTop:0},L._scrollHeight=0,L._lastScannedRowIndex=-1,L._hasDataChangedSinceEndReached=!0,L._data=H.data,L._depthMap={},L._horizontalScrollbarSize=0,L._verticalScrollbarSize=0,L._scrollbarPresenceChanged=!1,L}return(0,s.default)(U,[{key:"getDOMNode",value:function(){return this.tableNode}},{key:"getColumnManager",value:function(){return this.columnManager}},{key:"getExpandedRowKeys",value:function(){var L=this.props.expandedRowKeys;return L!==void 0?L||j:this.state.expandedRowKeys}},{key:"getExpandedState",value:function(){return{expandedData:this._data,expandedRowKeys:this.getExpandedRowKeys(),expandedDepthMap:this._depthMap}}},{key:"getTotalRowsHeight",value:function(){var L=this.props,V=L.rowHeight,J=L.estimatedRowHeight;return J?this.table?this.table.getTotalRowsHeight():this._getEstimatedTotalRowsHeight(this._data,J):this._data.length*V}},{key:"getTotalColumnsWidth",value:function(){return this.columnManager.getColumnsWidth()}},{key:"forceUpdateTable",value:function(){this.table&&this.table.forceUpdateTable(),this.leftTable&&this.leftTable.forceUpdateTable(),this.rightTable&&this.rightTable.forceUpdateTable()}},{key:"resetAfterRowIndex",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.props.estimatedRowHeight&&(this.table&&this.table.resetAfterRowIndex(L,V),this.leftTable&&this.leftTable.resetAfterRowIndex(L,V),this.rightTable&&this.rightTable.resetAfterRowIndex(L,V))}},{key:"resetRowHeightCache",value:function(){this.props.estimatedRowHeight&&(this._resetIndex=null,this._rowHeightMapBuffer={},this._rowHeightMap={},this._mainRowHeightMap={},this._leftRowHeightMap={},this._rightRowHeightMap={})}},{key:"scrollToPosition",value:function(L){this._scroll=L,this.table&&this.table.scrollToPosition(L),this.leftTable&&this.leftTable.scrollToTop(L.scrollTop),this.rightTable&&this.rightTable.scrollToTop(L.scrollTop)}},{key:"scrollToTop",value:function(L){this._scroll.scrollTop=L,this.table&&this.table.scrollToPosition(this._scroll),this.leftTable&&this.leftTable.scrollToTop(L),this.rightTable&&this.rightTable.scrollToTop(L)}},{key:"scrollToLeft",value:function(L){this._scroll.scrollLeft=L,this.table&&this.table.scrollToPosition(this._scroll)}},{key:"scrollToRow",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"auto";this.table&&this.table.scrollToRow(L,V),this.leftTable&&this.leftTable.scrollToRow(L,V),this.rightTable&&this.rightTable.scrollToRow(L,V)}},{key:"setExpandedRowKeys",value:function(L){this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:(0,T.cloneArray)(L)})}},{key:"renderExpandIcon",value:function(L){var V=L.rowData,J=L.rowIndex,ee=L.depth,ae=L.onExpand,ne=this.props,fe=ne.rowKey,he=ne.expandColumnKey,ye=ne.expandIconProps;if(!he)return null;var be=J>=0&&(0,T.hasChildren)(V),Se=J>=0&&this.getExpandedRowKeys().indexOf(V[fe])>=0,ve=(0,T.callOrReturn)(ye,{rowData:V,rowIndex:J,depth:ee,expandable:be,expanded:Se}),de=this._getComponent("ExpandIcon");return d.default.createElement(de,(0,a.default)({depth:ee,expandable:be,expanded:Se},ve,{onExpand:ae}))}},{key:"renderRow",value:function(L){var V,J=L.isScrolling,ee=L.columns,ae=L.rowData,ne=L.rowIndex,fe=L.style,he=this.props,ye=he.rowClassName,be=he.rowRenderer,Se=he.rowEventHandlers,ve=he.expandColumnKey,de=he.estimatedRowHeight,Ue=(0,T.callOrReturn)(ye,{columns:ee,rowData:ae,rowIndex:ne}),at=(0,T.callOrReturn)(this.props.rowProps,{columns:ee,rowData:ae,rowIndex:ne}),Ve=ae[this.props.rowKey],Ie=this._depthMap[Ve]||0,we=(0,h.default)(this._prefixClass("row"),Ue,(V={},(0,i.default)(V,this._prefixClass("row--depth-".concat(Ie)),!!ve&&ne>=0),(0,i.default)(V,this._prefixClass("row--expanded"),!!ve&&this.getExpandedRowKeys().indexOf(Ve)>=0),(0,i.default)(V,this._prefixClass("row--hovered"),!J&&Ve===this.state.hoveredRowKey),(0,i.default)(V,this._prefixClass("row--frozen"),Ie===0&&ne<0),(0,i.default)(V,this._prefixClass("row--customized"),be),V)),Re=this.columnManager.hasFrozenColumns(),Te=F({},at,{role:"row",key:"row-".concat(Ve),isScrolling:J,className:we,style:fe,columns:ee,rowIndex:ne,rowData:ae,rowKey:Ve,expandColumnKey:ve,depth:Ie,rowEventHandlers:Se,rowRenderer:be,estimatedRowHeight:ne>=0?de:void 0,getIsResetting:this._getIsResetting,cellRenderer:this.renderRowCell,expandIconRenderer:this.renderExpandIcon,onRowExpand:this._handleRowExpand,onRowHover:Re?this._handleRowHover:null,onRowHeightChange:Re?this._handleFrozenRowHeightChange:this._handleRowHeightChange});return d.default.createElement(y.default,Te)}},{key:"renderRowCell",value:function(L){var V,J=L.isScrolling,ee=L.columns,ae=L.column,ne=L.columnIndex,fe=L.rowData,he=L.rowIndex,ye=L.expandIcon;if(ae[b.default.PlaceholderKey])return d.default.createElement("div",{key:"row-".concat(fe[this.props.rowKey],"-cell-").concat(ae.key,"-placeholder"),className:this._prefixClass("row-cell-placeholder"),style:this.columnManager.getColumnStyle(ae.key)});var be=ae.className,Se=ae.dataKey,ve=ae.dataGetter,de=ae.cellRenderer,Ue=this._getComponent("TableCell"),at=ve?ve({columns:ee,column:ae,columnIndex:ne,rowData:fe,rowIndex:he}):(0,T.getValue)(fe,Se),Ve={isScrolling:J,cellData:at,columns:ee,column:ae,columnIndex:ne,rowData:fe,rowIndex:he,container:this},Ie=(0,T.renderElement)(de||d.default.createElement(Ue,{className:this._prefixClass("row-cell-text")}),Ve),we=(0,T.callOrReturn)(be,{cellData:at,columns:ee,column:ae,columnIndex:ne,rowData:fe,rowIndex:he}),Re=(0,h.default)(this._prefixClass("row-cell"),we,(V={},(0,i.default)(V,this._prefixClass("row-cell--align-center"),ae.align===B.Alignment.CENTER),(0,i.default)(V,this._prefixClass("row-cell--align-right"),ae.align===B.Alignment.RIGHT),V)),Te=(0,T.callOrReturn)(this.props.cellProps,{columns:ee,column:ae,columnIndex:ne,rowData:fe,rowIndex:he}),Ke=Te||{},mt=Ke.tagName,tt=(0,n.default)(Ke,["tagName"]),rt=mt||"div";return d.default.createElement(rt,(0,a.default)({role:"gridcell",key:"row-".concat(fe[this.props.rowKey],"-cell-").concat(ae.key)},tt,{className:Re,style:this.columnManager.getColumnStyle(ae.key)}),ye,Ie)}},{key:"renderHeader",value:function(L){var V,J=L.columns,ee=L.headerIndex,ae=L.style,ne=this.props,fe=ne.headerClassName,he=ne.headerRenderer,ye=(0,T.callOrReturn)(fe,{columns:J,headerIndex:ee}),be=(0,T.callOrReturn)(this.props.headerProps,{columns:J,headerIndex:ee}),Se=(0,h.default)(this._prefixClass("header-row"),ye,(V={},(0,i.default)(V,this._prefixClass("header-row--resizing"),!!this.state.resizingKey),(0,i.default)(V,this._prefixClass("header-row--customized"),he),V)),ve=F({},be,{role:"row",key:"header-".concat(ee),className:Se,style:ae,columns:J,headerIndex:ee,headerRenderer:he,cellRenderer:this.renderHeaderCell,expandColumnKey:this.props.expandColumnKey,expandIcon:this._getComponent("ExpandIcon")});return d.default.createElement(m.default,ve)}},{key:"renderHeaderCell",value:function(L){var V,J=L.columns,ee=L.column,ae=L.columnIndex,ne=L.headerIndex,fe=L.expandIcon;if(ee[b.default.PlaceholderKey])return d.default.createElement("div",{key:"header-".concat(ne,"-cell-").concat(ee.key,"-placeholder"),className:this._prefixClass("header-cell-placeholder"),style:this.columnManager.getColumnStyle(ee.key)});var he=ee.headerClassName,ye=ee.headerRenderer,be=this.props,Se=be.sortBy,ve=be.sortState,de=be.headerCellProps,Ue=this._getComponent("TableHeaderCell"),at=this._getComponent("SortIndicator"),Ve={columns:J,column:ee,columnIndex:ae,headerIndex:ne,container:this},Ie=(0,T.renderElement)(ye||d.default.createElement(Ue,{className:this._prefixClass("header-cell-text")}),Ve),we,Re;if(ve){var Te=ve[ee.key];we=Te===x.default.ASC||Te===x.default.DESC,Re=we?Te:x.default.ASC}else we=ee.key===Se.key,Re=we?Se.order:x.default.ASC;var Ke=(0,T.callOrReturn)(he,{columns:J,column:ee,columnIndex:ae,headerIndex:ne}),mt=(0,h.default)(this._prefixClass("header-cell"),Ke,(V={},(0,i.default)(V,this._prefixClass("header-cell--align-center"),ee.align===B.Alignment.CENTER),(0,i.default)(V,this._prefixClass("header-cell--align-right"),ee.align===B.Alignment.RIGHT),(0,i.default)(V,this._prefixClass("header-cell--sortable"),ee.sortable),(0,i.default)(V,this._prefixClass("header-cell--sorting"),we),(0,i.default)(V,this._prefixClass("header-cell--resizing"),ee.key===this.state.resizingKey),V)),tt=(0,T.callOrReturn)(de,{columns:J,column:ee,columnIndex:ae,headerIndex:ne}),rt=tt||{},lt=rt.tagName,At=(0,n.default)(rt,["tagName"]),$e=lt||"div";return d.default.createElement($e,(0,a.default)({role:"gridcell",key:"header-".concat(ne,"-cell-").concat(ee.key),onClick:ee.sortable?this._handleColumnSort:null},At,{className:mt,style:this.columnManager.getColumnStyle(ee.key),"data-key":ee.key}),fe,Ie,ee.sortable&&d.default.createElement(at,{sorting:we,sortOrder:Re,className:(0,h.default)(this._prefixClass("sort-indicator"),(0,i.default)({},this._prefixClass("sort-indicator--descending"),Re===x.default.DESC))}),ee.resizable&&d.default.createElement(R.default,{className:this._prefixClass("column-resizer"),column:ee,onResizeStart:this._handleColumnResizeStart,onResizeStop:this._handleColumnResizeStop,onResize:this._handleColumnResize}))}},{key:"renderMainTable",value:function(){var L=this.props,V=L.width,J=L.headerHeight,ee=L.rowHeight,ae=L.fixed,ne=L.estimatedRowHeight,fe=(0,n.default)(L,["width","headerHeight","rowHeight","fixed","estimatedRowHeight"]),he=this._getTableHeight(),ye=V-this._verticalScrollbarSize;if(ae){var be=this.columnManager.getColumnsWidth();ye=Math.max(Math.round(be),ye)}return d.default.createElement(p.default,(0,a.default)({},fe,this.state,{className:this._prefixClass("table-main"),ref:this._setMainTableRef,data:this._data,columns:this.columnManager.getMainColumns(),width:V,height:he,headerHeight:J,rowHeight:ee,estimatedRowHeight:ne,getRowHeight:ne?this._getRowHeight:void 0,headerWidth:ye+(ae?this._verticalScrollbarSize:0),bodyWidth:ye,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleScroll,onRowsRendered:this._handleRowsRendered}))}},{key:"renderLeftTable",value:function(){if(!this.columnManager.hasLeftFrozenColumns())return null;var L=this.props,V=L.width,J=L.headerHeight,ee=L.rowHeight,ae=L.estimatedRowHeight,ne=(0,n.default)(L,["width","headerHeight","rowHeight","estimatedRowHeight"]),fe=this._getFrozenContainerHeight(),he=this._verticalScrollbarSize||20,ye=this.columnManager.getLeftFrozenColumnsWidth();return d.default.createElement(p.default,(0,a.default)({},ne,this.state,{containerStyle:this._getLeftTableContainerStyle(ye,V,fe),className:this._prefixClass("table-frozen-left"),ref:this._setLeftTableRef,data:this._data,columns:this.columnManager.getLeftFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:ye+he,height:fe,headerHeight:J,rowHeight:ee,estimatedRowHeight:ae,getRowHeight:ae?this._getRowHeight:void 0,headerWidth:ye+he,bodyWidth:ye+he,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:T.noop}))}},{key:"renderRightTable",value:function(){if(!this.columnManager.hasRightFrozenColumns())return null;var L=this.props,V=L.width,J=L.headerHeight,ee=L.rowHeight,ae=L.estimatedRowHeight,ne=(0,n.default)(L,["width","headerHeight","rowHeight","estimatedRowHeight"]),fe=this._getFrozenContainerHeight(),he=this.columnManager.getRightFrozenColumnsWidth(),ye=this._verticalScrollbarSize;return d.default.createElement(p.default,(0,a.default)({},ne,this.state,{containerStyle:this._getLeftTableContainerStyle(he+ye,V,fe),className:this._prefixClass("table-frozen-right"),ref:this._setRightTableRef,data:this._data,columns:this.columnManager.getRightFrozenColumns(),initialScrollTop:this._scroll.scrollTop,width:he+ye,height:fe,headerHeight:J,rowHeight:ee,estimatedRowHeight:ae,getRowHeight:ae?this._getRowHeight:void 0,headerWidth:he+ye,bodyWidth:he,headerRenderer:this.renderHeader,rowRenderer:this.renderRow,onScroll:this._handleVerticalScroll,onRowsRendered:T.noop}))}},{key:"renderResizingLine",value:function(){var L=this.props,V=L.width,J=L.fixed,ee=this.state.resizingKey;if(!J||!ee)return null;var ae=this.columnManager.getMainColumns(),ne=ae.findIndex(function(Ue){return Ue.key===ee}),fe=ae[ne],he=fe.width,ye=fe.frozen,be=this.columnManager.recomputeColumnsWidth(ae.slice(0,ne)),Se=be+he;if(!ye)Se-=this._scroll.scrollLeft;else if(ye===B.FrozenDirection.RIGHT){var ve=this.columnManager.recomputeColumnsWidth(ae.slice(ne+1));ve+he>V-this._verticalScrollbarSize?Se=he:Se=V-this._verticalScrollbarSize-ve}var de={left:Se,height:this._getTableHeight()-this._horizontalScrollbarSize};return d.default.createElement("div",{className:this._prefixClass("resizing-line"),style:de})}},{key:"renderFooter",value:function(){var L=this.props,V=L.footerHeight,J=L.footerRenderer;return V===0?null:d.default.createElement("div",{className:this._prefixClass("footer"),style:{height:V}},(0,T.renderElement)(J))}},{key:"renderEmptyLayer",value:function(){var L=this.props,V=L.data,J=L.frozenData,ee=L.footerHeight,ae=L.emptyRenderer;if(V&&V.length||J&&J.length)return null;var ne=this._getHeaderHeight();return d.default.createElement("div",{className:this._prefixClass("empty-layer"),style:{top:ne,bottom:ee}},(0,T.renderElement)(ae))}},{key:"renderOverlay",value:function(){var L=this.props.overlayRenderer;return d.default.createElement("div",{className:this._prefixClass("overlay")},!!L&&(0,T.renderElement)(L))}},{key:"render",value:function(){var L,V=this.props,J=V.columns,ee=V.children,ae=V.width,ne=V.fixed,fe=V.data,he=V.frozenData,ye=V.expandColumnKey,be=V.disabled,Se=V.className,ve=V.style,de=V.footerHeight,Ue=V.classPrefix,at=V.estimatedRowHeight;this._resetColumnManager(N(J,ee),ne);var Ve=ye?this._flattenOnKeys(fe,this.getExpandedRowKeys(),this.props.rowKey):fe;this._data!==Ve&&(this.resetAfterRowIndex(0,!1),this._data=Ve),this._calcScrollbarSizes(),this._totalRowsHeight=this.getTotalRowsHeight();var Ie=F({},ve,{width:ae,height:this._getTableHeight()+de,position:"relative"}),we=(0,h.default)(Ue,Se,(L={},(0,i.default)(L,"".concat(Ue,"--fixed"),ne),(0,i.default)(L,"".concat(Ue,"--expandable"),!!ye),(0,i.default)(L,"".concat(Ue,"--empty"),fe.length===0),(0,i.default)(L,"".concat(Ue,"--has-frozen-rows"),he.length>0),(0,i.default)(L,"".concat(Ue,"--has-frozen-columns"),this.columnManager.hasFrozenColumns()),(0,i.default)(L,"".concat(Ue,"--disabled"),be),(0,i.default)(L,"".concat(Ue,"--dynamic"),!!at),L));return d.default.createElement("div",{ref:this._setContainerRef,className:we,style:Ie},this.renderFooter(),this.renderMainTable(),this.renderLeftTable(),this.renderRightTable(),this.renderResizingLine(),this.renderEmptyLayer(),this.renderOverlay())}},{key:"componentDidMount",value:function(){var L=this.props.getScrollbarSize();L>0&&this.setState({scrollbarSize:L})}},{key:"componentDidUpdate",value:function(L,V){var J=this.props,ee=J.data,ae=J.height,ne=J.maxHeight,fe=J.estimatedRowHeight;ee!==L.data&&(this._lastScannedRowIndex=-1,this._hasDataChangedSinceEndReached=!0),(ne!==L.maxHeight||ae!==L.height)&&this._maybeCallOnEndReached(),this._maybeScrollbarPresenceChange(),fe&&this.getTotalRowsHeight()!==this._totalRowsHeight&&this.forceUpdate()}},{key:"_prefixClass",value:function(L){return"".concat(this.props.classPrefix,"__").concat(L)}},{key:"_setContainerRef",value:function(L){this.tableNode=L}},{key:"_setMainTableRef",value:function(L){this.table=L}},{key:"_setLeftTableRef",value:function(L){this.leftTable=L}},{key:"_setRightTableRef",value:function(L){this.rightTable=L}},{key:"_getComponent",value:function(L){return this.props.components&&this.props.components[L]?this.props.components[L]:P[L]}},{key:"_getRowHeight",value:function(L){var V=this.props,J=V.estimatedRowHeight,ee=V.rowKey;return this._rowHeightMap[this._data[L][ee]]||(0,T.callOrReturn)(J,{rowData:this._data[L],rowIndex:L})}},{key:"_getIsResetting",value:function(){return this._isResetting}},{key:"_getHeaderHeight",value:function(){var L=this.props.headerHeight;return Array.isArray(L)?L.reduce(function(V,J){return V+J},0):L}},{key:"_getFrozenRowsHeight",value:function(){var L=this.props,V=L.frozenData,J=L.rowHeight;return V.length*J}},{key:"_getTableHeight",value:function(){var L=this.props,V=L.height,J=L.maxHeight,ee=L.footerHeight,ae=V-ee;if(J>0){var ne=this._getFrozenRowsHeight(),fe=this.getTotalRowsHeight(),he=this._getHeaderHeight(),ye=he+ne+fe+this._horizontalScrollbarSize;ae=Math.min(ye,J-ee)}return ae}},{key:"_getBodyHeight",value:function(){return this._getTableHeight()-this._getHeaderHeight()-this._getFrozenRowsHeight()}},{key:"_getFrozenContainerHeight",value:function(){var L=this.props.maxHeight,V=this._getTableHeight()-(this._data.length>0?this._horizontalScrollbarSize:0);if(L>0)return V;var J=this.getTotalRowsHeight()+this._getHeaderHeight()+this._getFrozenRowsHeight();return Math.min(V,J)}},{key:"_calcScrollbarSizes",value:function(){var L=this.props,V=L.fixed,J=L.width,ee=this.state.scrollbarSize,ae=this.getTotalRowsHeight(),ne=this.getTotalColumnsWidth(),fe=this._horizontalScrollbarSize,he=this._verticalScrollbarSize;ee===0?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0):!V||ne<=J-ee?(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=ae>this._getBodyHeight()?ee:0):ne>J?(this._horizontalScrollbarSize=ee,this._verticalScrollbarSize=ae>this._getBodyHeight()-this._horizontalScrollbarSize?ee:0):(this._horizontalScrollbarSize=0,this._verticalScrollbarSize=0,ae>this._getBodyHeight()&&(this._horizontalScrollbarSize=ee,this._verticalScrollbarSize=ee)),(fe!==this._horizontalScrollbarSize||he!==this._verticalScrollbarSize)&&(this._scrollbarPresenceChanged=!0)}},{key:"_maybeScrollbarPresenceChange",value:function(){if(this._scrollbarPresenceChanged){var L=this.props.onScrollbarPresenceChange;this._scrollbarPresenceChanged=!1,L({size:this.state.scrollbarSize,horizontal:this._horizontalScrollbarSize>0,vertical:this._verticalScrollbarSize>0})}}},{key:"_maybeCallOnEndReached",value:function(){var L=this.props,V=L.onEndReached,J=L.onEndReachedThreshold,ee=this._scroll.scrollTop,ae=this.getTotalRowsHeight(),ne=this._getBodyHeight();if(!(!V||!ne||!ae)){var fe=ae-ee-ne+this._horizontalScrollbarSize;this._lastScannedRowIndex>=0&&fe<=J&&(this._hasDataChangedSinceEndReached||ae!==this._scrollHeight)&&(this._hasDataChangedSinceEndReached=!1,this._scrollHeight=ae,V({distanceFromEnd:fe}))}}},{key:"_handleScroll",value:function(L){var V=this._scroll.scrollTop;this.scrollToPosition(L),this.props.onScroll(L),L.scrollTop>V&&this._maybeCallOnEndReached()}},{key:"_handleVerticalScroll",value:function(L){var V=L.scrollTop,J=this._scroll.scrollTop;V!==J&&this.scrollToTop(V),V>J&&this._maybeCallOnEndReached()}},{key:"_handleRowsRendered",value:function(L){this.props.onRowsRendered(L),L.overscanStopIndex>this._lastScannedRowIndex&&(this._lastScannedRowIndex=L.overscanStopIndex,this._maybeCallOnEndReached())}},{key:"_handleRowHover",value:function(L){var V=L.hovered,J=L.rowKey;this.setState({hoveredRowKey:V?J:null})}},{key:"_handleRowExpand",value:function(L){var V=L.expanded,J=L.rowData,ee=L.rowIndex,ae=L.rowKey,ne=(0,T.cloneArray)(this.getExpandedRowKeys());if(V)!ne.indexOf(ae)>=0&&ne.push(ae);else{var fe=ne.indexOf(ae);fe>-1&&ne.splice(fe,1)}this.props.expandedRowKeys===void 0&&this.setState({expandedRowKeys:ne}),this.props.onRowExpand({expanded:V,rowData:J,rowIndex:ee,rowKey:ae}),this.props.onExpandedRowsChange(ne)}},{key:"_handleColumnResize",value:function(L,V){var J=L.key;this.columnManager.setColumnWidth(J,V),this.setState({resizingWidth:V});var ee=this.columnManager.getColumn(J);this.props.onColumnResize({column:ee,width:V})}},{key:"_handleColumnResizeStart",value:function(L){var V=L.key;this.setState({resizingKey:V})}},{key:"_handleColumnResizeStop",value:function(){var L=this.state,V=L.resizingKey,J=L.resizingWidth;if(this.setState({resizingKey:null,resizingWidth:0}),!(!V||!J)){var ee=this.columnManager.getColumn(V);this.props.onColumnResizeEnd({column:ee,width:J})}}},{key:"_handleColumnSort",value:function(L){var V=L.currentTarget.dataset.key,J=this.props,ee=J.sortBy,ae=J.sortState,ne=J.onColumnSort,fe=x.default.ASC;ae?fe=ae[V]===x.default.ASC?x.default.DESC:x.default.ASC:V===ee.key&&(fe=ee.order===x.default.ASC?x.default.DESC:x.default.ASC);var he=this.columnManager.getColumn(V);ne({column:he,key:V,order:fe})}},{key:"_handleFrozenRowHeightChange",value:function(L,V,J,ee){ee?ee===B.FrozenDirection.RIGHT?this._rightRowHeightMap[L]=V:this._leftRowHeightMap[L]=V:this._mainRowHeightMap[L]=V;var ae=Math.max(this._mainRowHeightMap[L]||0,this._leftRowHeightMap[L]||0,this._rightRowHeightMap[L]||0);this._rowHeightMap[L]!==ae&&this._handleRowHeightChange(L,ae,J)}},{key:"_handleRowHeightChange",value:function(L,V,J){this._resetIndex===null?this._resetIndex=J:this._resetIndex>J&&(this._resetIndex=J),this._rowHeightMapBuffer[L]=V,this._updateRowHeights()}}]),U})(d.default.PureComponent);Y.Column=B.default,Y.PlaceholderKey=b.default.PlaceholderKey,Y.defaultProps={classPrefix:"BaseTable",rowKey:"id",data:[],frozenData:[],fixed:!1,headerHeight:50,rowHeight:50,footerHeight:0,defaultExpandedRowKeys:[],sortBy:{},useIsScrolling:!1,overscanRowCount:1,onEndReachedThreshold:500,getScrollbarSize:T.getScrollbarSize,ignoreFunctionInColumnCompare:!0,onScroll:T.noop,onRowsRendered:T.noop,onScrollbarPresenceChange:T.noop,onRowExpand:T.noop,onExpandedRowsChange:T.noop,onColumnSort:T.noop,onColumnResize:T.noop,onColumnResizeEnd:T.noop},Y.propTypes={classPrefix:f.default.string,className:f.default.string,style:f.default.object,children:f.default.node,columns:f.default.arrayOf(f.default.shape(B.default.propTypes)),data:f.default.array.isRequired,frozenData:f.default.array,rowKey:f.default.oneOfType([f.default.string,f.default.number]).isRequired,width:f.default.number.isRequired,height:f.default.number,maxHeight:f.default.number,rowHeight:f.default.number,estimatedRowHeight:f.default.oneOfType([f.default.number,f.default.func]),headerHeight:f.default.oneOfType([f.default.number,f.default.arrayOf(f.default.number)]).isRequired,footerHeight:f.default.number,fixed:f.default.bool,disabled:f.default.bool,overlayRenderer:f.default.oneOfType([f.default.func,f.default.element]),emptyRenderer:f.default.oneOfType([f.default.func,f.default.element]),footerRenderer:f.default.oneOfType([f.default.func,f.default.element]),headerRenderer:f.default.oneOfType([f.default.func,f.default.element]),rowRenderer:f.default.oneOfType([f.default.func,f.default.element]),headerClassName:f.default.oneOfType([f.default.string,f.default.func]),rowClassName:f.default.oneOfType([f.default.string,f.default.func]),headerProps:f.default.oneOfType([f.default.object,f.default.func]),headerCellProps:f.default.oneOfType([f.default.object,f.default.func]),rowProps:f.default.oneOfType([f.default.object,f.default.func]),cellProps:f.default.oneOfType([f.default.object,f.default.func]),expandIconProps:f.default.oneOfType([f.default.object,f.default.func]),expandColumnKey:f.default.string,defaultExpandedRowKeys:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])),expandedRowKeys:f.default.arrayOf(f.default.oneOfType([f.default.string,f.default.number])),onRowExpand:f.default.func,onExpandedRowsChange:f.default.func,sortBy:f.default.shape({key:f.default.string,order:f.default.oneOf([x.default.ASC,x.default.DESC])}),sortState:f.default.object,onColumnSort:f.default.func,onColumnResize:f.default.func,onColumnResizeEnd:f.default.func,useIsScrolling:f.default.bool,overscanRowCount:f.default.number,getScrollbarSize:f.default.func,onScroll:f.default.func,onEndReached:f.default.func,onEndReachedThreshold:f.default.number,onRowsRendered:f.default.func,onScrollbarPresenceChange:f.default.func,rowEventHandlers:f.default.object,ignoreFunctionInColumnCompare:f.default.bool,components:f.default.shape({TableCell:f.default.elementType,TableHeaderCell:f.default.elementType,ExpandIcon:f.default.elementType,SortIndicator:f.default.elementType})};var X=Y;e.default=X})(H3)),H3}var UEt=YEt();const HEt=gn(UEt),GEt=Fxe(({children:e})=>e),KEt=_xe(({children:e})=>e),VEt=Bgt(({children:e})=>e),gIe=({selectedIndicator:e,handleSelectedIndicator:t,report:r,handleSort:n,indicators:a})=>{const[i,o]=E.useState([]),[s,l]=E.useState([]),c=ut(m=>m.cti.components.reports.loading),A=wn();E.useEffect(()=>{if(i){const m=$0t(r,nEt,YT,a);l(m)}},[i]),E.useEffect(()=>{r.sections&&o(r.sections)},[r]);const u=({key:m,index:y,children:C,...w})=>C.length!==s.length?v.jsx(KEt,{index:y,children:v.jsxs("div",{...w,children:[v.jsx(VEt,{children:v.jsx("div",{children:v.jsx(RNe,{})})}),C]})},m):v.jsx("div",{...w,children:C});function d(m){const[y,C]=E.useState(m.data),w=E.useRef(),B=()=>w.current.getDOMNode().querySelector(".BaseTable__table-frozen-left .BaseTable__body"),x=()=>w.current.getDOMNode().querySelector(".BaseTable__table-frozen-left"),M=R=>({...UA(m.rowProps),tagName:u,index:R.rowIndex}),S=({oldIndex:R,newIndex:b})=>{const T=y.map(F=>({...F})),[D]=T.splice(R,1);T.splice(b,0,D),C(T),A(G3e(!0)),m.handleSort(T)};return v.jsx(GEt,{useDragHandle:!0,getContainer:B,getHelperContainer:x,onSortEnd:S,children:v.jsx(HEt,{...m,ref:w,data:y,fixed:!0,rowProps:M})})}const f=()=>10,h=({columns:m,rowData:y,rowIndex:C})=>{let w="";return e!==null&&e===y.key&&(w+=" selected"),C%2===0&&(w+=" even-row"),w},g={onClick:({rowData:m,rowIndex:y,rowKey:C,event:w})=>{t(C)}},p=le.useCallback(()=>c?v.jsx(go,{style:{backgroundColor:"rgba(255,255,255, 0.5)"}}):null,[c]);return v.jsx("div",{className:"reports-editor-table",children:v.jsx(cu,{children:({width:m,height:y})=>v.jsx(d,{fixed:!0,rowKey:"key",columns:s,headerHeight:50,headerClassName:"indicator-table-header",rowHeight:25,width:m,height:y,data:i,getScrollbarSize:f,rowClassName:h,overlayRenderer:p,rowEventHandlers:g,handleSort:n,style:{fontSize:"11px"}})})})};gIe.propTypes={selectedIndicator:W.number,handleSelectedIndicator:W.func,report:W.object,handleSort:W.func};const pIe=({indicator:e})=>{const r=Object.keys(e).filter(n=>n.substring(0,11)==="description").map((n,a)=>a===0||e[`indicateur_entete_etendue_${a+1}`]?v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:`Description série ${a+1}`}),v.jsx(We.Item,{name:a===0?"description":`description_${a+1}`,children:v.jsx(jt,{})})]})},a):null);return v.jsx("div",{style:{overflow:"scroll"},children:r})};pIe.propTypes={indicator:W.object};const{Option:JEt}=sn,vIe=({form:e,specific:t=!1})=>{const r=ut(s=>s.cti.components.reports.data.lastViews),[n,a]=E.useState(!0),i=r?.map((s,l)=>v.jsx(JEt,{value:s.name,variables:s.variables,children:s.label},l)),o=(s,l)=>{a(!1),t===!0?e.setFieldsValue({specific_viewlink:s,specific_viewlink_param:l.variables}):e.setFieldsValue({viewlink:s,viewlink_param:l.variables})};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Rapport / Collection"}),v.jsx(sn,{onChange:o,children:i})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Vue justificative"}),v.jsx(We.Item,{name:t===!0?"specific_viewlink":"viewlink",children:v.jsx(jt,{disabled:n})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Libellé"}),v.jsx(We.Item,{name:t===!0?"specific_viewlink_label":"viewlink_label",children:v.jsx(jt,{disabled:n})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Paramètres"}),v.jsx(We.Item,{name:t===!0?"specific_viewlink_param":"viewlink_param",children:v.jsx(jt.TextArea,{disabled:n})})]})})]})};vIe.propTypes={form:W.object,specific:W.bool};const mIe=({indicator:e,form:t,handleIndicatorModified:r,isActive:n,isEssentiel:a})=>{const[i,o]=E.useState(e.color),[s,l]=E.useState(e.background_color);E.useEffect(()=>{Object.keys(e).length&&(o(e.color),l(e.background_color))},[e]);const c=(A,u)=>{switch(t.setFieldsValue({[u]:A.hex}),r(!0),u){case"color":o(A.hex);break;case"background_color":l(A.hex);break}};return v.jsx(Oi,{defaultActiveKey:["0"],items:[{label:"Général",key:"0",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Bordure"}),v.jsx(We.Item,{name:"border_thickness",valuePropName:"checked",children:v.jsx(un,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Masquer indicateur:"}),v.jsx(We.Item,{name:"rubrique_is_hide",children:v.jsx(sn,{options:[{value:"NEVER",label:"Jamais"},{value:"ALWAYS",label:"Toujours"},...a?[{value:"*SELF",label:"Si vide"}]:[]]})})]})})]})},{label:"En-tête",key:"1",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Taille caractères"}),v.jsx(We.Item,{name:"font_size",children:v.jsx(H1e,{min:10,max:18})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Gras"}),v.jsx(We.Item,{name:"font_weight",valuePropName:"checked",children:v.jsx(un,{})})]})})]})},{label:"Colonne",key:"2",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Couleur du texte"}),v.jsx(wB,{triangle:"hide",color:i,onChange:A=>c(A,"color"),style:{right:470,bottom:400,position:"absolute"},disabled:n}),v.jsx(We.Item,{name:"color",style:{display:"none"},children:v.jsx(jt,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Couleur du fond"}),v.jsx(wB,{triangle:"hide",color:s,onChange:A=>c(A,"background_color"),style:{right:470,bottom:340,position:"absolute"},disabled:n}),v.jsx(We.Item,{name:"background_color",style:{display:"none"},children:v.jsx(jt,{})})]})})]})}]})};mIe.propTypes={indicator:W.object,form:W.object,handleIndicatorModified:W.func,isActive:W.bool,isEssentiel:W.bool};const EIe=({indicator:e,handleShowModalFromForm:t,associatedIndicators:r})=>{const[n,a]=E.useState({});E.useEffect(()=>{const o={};let s=!1;const l=["entete_etendue","description","output_format","picto_enabled","positif_is_good"];for(let c=2;c<=9;c++){const A=`indicateur_associe_${c}_id`,u=e[A]&&e[A]!=="0";if(u||!s&&!u){const d={key:c};l.forEach(f=>{const h=`${f}_${c}`;e[h]!==void 0&&(d[h]=e[h])}),u&&(d[A]=e[A]),o[c]=d,u||(s=!0)}}a(o)},[e]);const i=Object.values(n).map(o=>(r&&(o.associatedIndicator=r.find(s=>s?.associatedIndicatorIndex===o?.key)),{label:`Série ${o.key}`,key:o.key,forceRender:!0,children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Indicateur"}),v.jsx(We.Item,{style:{width:"240px",display:"block",textAlign:"center",color:"rgba(0, 0, 0, 0.25)",backgroundColor:"#f5f5f5",borderColor:"#eeeeee"},name:`indicateur_associe_${o.key}_id`,children:v.jsx("span",{children:o?.associatedIndicator?.code})}),v.jsx(yt,{style:{marginLeft:8,marginBottom:5},type:"secondary",icon:v.jsx(Xf,{}),onClick:()=>t(o.key)}),v.jsx(SB,{copiedText:o?.associatedIndicator?.code,type:"secondary",style:{marginLeft:8,marginBottom:5}},o?.associatedIndicator?.code)]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom abrégé"}),v.jsx(We.Item,{name:`entete_etendue_${o.key}`,extra:o?.associatedIndicator?.entete,children:v.jsx(jt,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Description"}),v.jsx(We.Item,{name:`description_${o.key}`,extra:o?.associatedIndicator?.description,children:v.jsx(jt.TextArea,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Format"}),v.jsx(We.Item,{name:`output_format_${o.key}`,extra:o?.associatedIndicator?.output_format,children:v.jsx(jt,{})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Picto tendance"}),v.jsx(We.Item,{name:`picto_enabled_${o.key}`,valuePropName:"checked",children:v.jsx(un,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Tendance positive = OK"}),v.jsx(We.Item,{name:`positif_is_good_${o.key}`,valuePropName:"checked",children:v.jsx(un,{})})]})]})]})}));return v.jsx(Oi,{items:i})};EIe.propTypes={indicator:W.object,handleShowModalFromForm:W.func,associatedIndicators:W.array};const{Option:WEt}=sn,yIe=({report:e,indicator:t})=>{let r=e?.sections?.filter(a=>a.indicateur_output_format===t.indicateur_output_format&&a.indicateur_id!==t.indicateur_id);r?.length>0&&r.unshift({indicateur_id:0,indicateur_entete_etendue:" "});const n=r.map(a=>v.jsx(WEt,{value:a.indicateur_id,children:a.indicateur_entete_etendue},a.indicateur_id));return v.jsx(v.Fragment,{children:r?.length>0?v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Comparer avec l'indicateur :"}),v.jsx(We.Item,{name:"compared_indicator_id",children:v.jsx(sn,{style:{width:250},children:n})})]})}):v.jsx("div",{className:"form-row",children:v.jsx("div",{className:"form-item",children:v.jsx("span",{className:"first-label",children:"Aucun indicateur comparable avec l'indicateur séléctionné"})})})})};yIe.propTypes={report:W.object,indicator:W.object};const CIe=({indicator:e,showEditor:t,isEssentiel:r,handleUpdateIndicator:n,handleCancelSection:a,handleShowModalFromForm:i,indicatorModified:o,handleIndicatorModified:s,handleDeleteSection:l,report:c,setFormIndicator:A,associatedIndicators:u})=>{const d=ut(R=>R.cti.components.reports.data.comboCondition),f=ut(R=>R.cti.settings.data.session),[h]=We.useForm();E.useEffect(()=>{h.setFieldsValue(e),h.setFieldsValue({indicator_conditions:C(e)})},[e]);const g=()=>{let R={...e,...h.getFieldsValue()};for(let b in R)R[b]===!0?b==="font_weight"?R[b]="bold":R[b]="1":R[b]===!1?R[b]="0":R[b]===void 0&&(R[b]="");delete R.indicator_conditions,s(!1),n(R),ya({type:"success",message:"Indicateur",description:"L'indicateur est ajouté au rapport"})},p=(R,b)=>{s(!0)},m=(R,b)=>{R?.length>4&&R.pop();for(let T=1;T<=4;T++)R[T-1]?h.setFieldsValue({[`indicateur_condition_id_${T}`]:R[T-1]}):h.setFieldsValue({[`indicateur_condition_id_${T}`]:""})},y=R=>{znt(R,"Indicateur","Les champs du formulaires sont incomplets")};function C(R){let b=[];for(let T=1;T<=4;T++){const D=R[`indicateur_condition_id_${T}`];D&&D!=="0"&&b.push(D)}return b}const w=(R=!1)=>{let b={...e},T=b.field_tag?b.field_tag:b?.code+b.key*9;R&&(T=b?.code+L8e(1,1e4));const D=[];c?.sections.forEach(F=>{F.field_tag!==""&&D.push(F.field_tag)}),D.includes(T)&&w(!0),A({...e,field_tag:T}),s(!0)},B=jy(c.is_cti==="1",f),x=()=>{let R=[];for(let b=1;b<=4;b++)R.push(v.jsx(We.Item,{name:`indicateur_condition_id_${b}`,children:v.jsx(jt,{})},b));return R},M=[{label:"Présentation",key:"1",children:v.jsx(mIe,{indicator:e,form:h,handleIndicatorModified:s,isActive:B,isEssentiel:r})},...r?[{label:"Description",key:"2",className:"scrollable-tab",children:v.jsx(pIe,{indicator:e})},{label:"Justificatif",key:"3",className:"scrollable-tab",children:v.jsx(vIe,{form:h})}]:[],...c.type_rapport==="VUEPARAM"?[{label:"Comparaison",key:"5",className:"scrollable-tab",children:v.jsx(yIe,{form:h,report:c,indicator:e})}]:[]],S=[{label:"Indicateur",key:"1",className:"scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Code"}),v.jsx(We.Item,{name:"code",children:v.jsx(jt,{style:{textAlign:"center"},disabled:!0})}),v.jsx(yt,{style:{marginLeft:8,marginBottom:5},type:"secondary",icon:v.jsx(Xf,{}),onClick:()=>i()}),v.jsx(SB,{copiedText:e.code,type:"secondary",style:{marginLeft:8,marginBottom:5}},e.indicateur_id)]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsxs("span",{className:"first-label",children:["Nom",v.jsx(Xr,{title:"Nom de l'indicateur au sein du rapport",children:v.jsx(hR,{style:{marginLeft:6,marginBottom:-1,color:Mn.lightBlue}})})]}),v.jsx(We.Item,{name:"entete_etendue",extra:e.indicateur_texte,children:v.jsx(jt,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsxs("span",{className:"first-label",children:["Nom abrégé",v.jsx(Xr,{title:"Nom de l'entéte de la colonne qui apparait dans le rapport",children:v.jsx(hR,{style:{marginLeft:6,marginBottom:-1,color:Mn.lightBlue}})})]}),v.jsx(We.Item,{name:"entete",extra:e.indicateur_entete,children:v.jsx(jt.TextArea,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Description"}),v.jsx(We.Item,{name:"description",extra:e.indicateur_descritption,children:v.jsx(jt.TextArea,{})})]})}),e.indicateur_id!=="999"&&v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsxs("span",{className:"first-label",children:["Etiquette",v.jsx(Xr,{title:"Identifiant unique de l'indicateur au sein du rapport qui sera utilisé dans le calcul entre indicateurs",children:v.jsx(hR,{style:{marginLeft:6,marginBottom:-1,color:Mn.lightBlue}})})]}),v.jsx(We.Item,{name:"field_tag",rules:[{validator(R,b){return new Promise((T,D)=>{const F=[];c?.sections.forEach(N=>{N.field_tag!==""&&N.key!==e.key&&F.push(N.field_tag)}),F.includes(b)?D("L'étiquette est déja assigné à un indicateur du rapport"):T()})}}],children:v.jsx(jt,{})}),e.field_tag===""&&v.jsx(Xr,{title:"test",children:v.jsx(yt,{onClick:()=>w(!1),children:v.jsx(gE,{})})}),e.field_tag!==""&&v.jsx(SB,{copiedText:"["+e.field_tag+"]",type:"secondary",style:{marginLeft:8,marginBottom:5}},e.indicateur_id)]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Format"}),v.jsx(We.Item,{name:"output_format",extra:e.indicateur_output_format,children:v.jsx(jt,{})})]})}),e.code==="CTI_RAPPORTCALC"&&v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Formule"}),v.jsx(We.Item,{shouldUpdate:!0,children:R=>v.jsx(We.Item,{name:"calc_formula",children:v.jsx(jt.TextArea,{})})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Option"}),v.jsx(We.Item,{name:"option",children:v.jsx(jt,{})})]})}),r&&v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Picto Tendance"}),v.jsx(We.Item,{name:"picto_enabled",valuePropName:"checked",children:v.jsx(un,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Tendance positive = OK"}),v.jsx(We.Item,{name:"positif_is_good",valuePropName:"checked",children:v.jsx(un,{})})]})]})]})},...e.total_function!=="*CALC"?[{label:"Condition",key:"3",className:"scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Ne pas prendre en compte les conditions du rapport"}),v.jsx(We.Item,{name:"erase_rapport_indicateur_condition",valuePropName:"checked",children:v.jsx(un,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Conditions"}),v.jsx(We.Item,{name:"indicator_conditions",children:v.jsx(_i,{style:{width:"300px"},multiple:!0,treeData:d,onChange:m})}),v.jsx("div",{style:{display:"none"},children:x()})]})})]})}]:[],...r?[{label:"Séries",key:"2",className:"scrollable-tab",children:v.jsx(EIe,{indicator:e,handleShowModalFromForm:i,associatedIndicators:u})}]:[]];return v.jsx("div",{className:"editor-indicator-editor",style:{display:t?"flex":"none"},children:v.jsxs(We,{form:h,name:"indicator",onValuesChange:p,className:"form__report-indicator",onFinish:g,onFinishFailed:y,disabled:B,children:[v.jsx("div",{className:"editor-indicator-header ",children:o?v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Enregistrer",children:v.jsx(yt,{type:"primary",htmlType:"submit",children:v.jsx(lA,{})})}),v.jsx(Xr,{title:"Annuler les modifications",children:v.jsx(Ni,{placement:"topRight",style:{zIndex:"4000"},title:"Des modifications sont en cours... Etes vous sur de vouloir annuler ?",onConfirm:a,okText:"Annuler les modifications",cancelText:"Revenir à l'éditeur",children:v.jsx(yt,{size:"default",children:v.jsx(ao,{})})})})]}):v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Annuler",children:v.jsxs(yt,{onClick:a,children:[v.jsx(ao,{}),"Annuler"]})}),v.jsx(Xr,{title:"Supprimer",children:v.jsxs(yt,{onClick:l,type:"danger",children:[v.jsx(ki,{}),"Supprimer"]})})]})}),v.jsxs("div",{style:{display:"flex",minHeight:0},children:[v.jsx("div",{className:"indicator-tab-column",children:v.jsx(Oi,{items:S})}),v.jsx("div",{className:"indicator-tab-column",style:{flex:3},children:v.jsx(Oi,{items:M})})]})]})})};CIe.propTypes={indicator:W.object,showEditor:W.bool,isEssentiel:W.bool,handleUpdateIndicator:W.func,handleShowModalFromForm:W.func,indicatorModified:W.bool,handleIndicatorModified:W.func,handleDeleteSection:W.func,handleCancelSection:W.func,report:W.object,setFormIndicator:W.func,associatedIndicators:W.array};const zH=({selectedReportsType:e,selectedReport:t,label:r})=>{const n=ut(s=>s.cti.components.reports.computingEssentiels),a=ut(s=>s.cti.content.moduleId),i=wn(),o=()=>{if(a!=="iCTI_pmsipsy"){let s=`-m ${a.substring(5)}`;t&&(s=s+` -r ${t.code}`),i(wEt(s))}};return v.jsx(v.Fragment,{children:v.jsx(Xr,{title:r,children:v.jsxs(yt,{onClick:o,disabled:n||e!=="ESSENTIEL",children:[v.jsx(gE,{}),n?r+" (en cours)":r]})})})};zH.propTypes={selectedReportsType:W.string,selectedReport:W.object,label:W.string};const{Option:$oe}=sn,wIe=({selectedRow:e,models:t,handleCloseEditor:r,newReport:n,nameReportsType:a})=>{const[i,o]=E.useState(!1),[s,l]=E.useState(),[c,A]=E.useState(!1),[u,d]=E.useState(null),[f,h]=E.useState({}),[g,p]=E.useState({}),[m,y]=E.useState(!1),[C,w]=E.useState({oneOnly:!1}),[B,x]=E.useState(!1),[M,S]=E.useState(!1),[R,b]=E.useState("100%"),T=ut($e=>$e.cti.components.reports.data.selectedReport),D=ut($e=>$e.cti.components.reports.data.comboCondition),F=ut($e=>$e.cti.content.moduleId),N=ut($e=>$e.cti.settings.data.session),_=wn(),[P]=We.useForm(),k="Recalcul de l'essentiel",[j,Y]=E.useState([]),X=ut($e=>$e.cti.components.indicators.data),K=ut($e=>$e.cti.components.reports.data.comboGroup);E.useEffect(()=>{_(bB())},[]),E.useEffect(()=>{e&&_(mEt(e.oid))},[e,_]),E.useEffect(()=>{if(u!==null){const $e=f.sections.find(ce=>ce.key===u);Y(()=>YT($e,X)),p(L($e))}},[u,f]),E.useEffect(()=>{n?(h(n),P.setFieldsValue(H(n)),l("ESSENTIEL"),o(!1)):Object.keys(T).length?(h(T),l(T.type_rapport),P.setFieldsValue(H(T)),o(T.is_cti==="1")):(h({}),P.setFieldsValue({}),o(!1))},[T,n]);const U=jy(i,N);function H($e){let ce={...$e};for(let ct in ce)switch(ct){case"is_cti":ce[ct]=ce[ct]==="1";break;case"is_hide":ce[ct]=ce[ct]==="1";break;case"is_template_updatable":ce[ct]=ce[ct]==="1";break}let qe=[];for(let ct=1;ct<=5;ct++)ce[`rapport_indicateur_condition_id_${ct}`]&&ce[`rapport_indicateur_condition_id_${ct}`]!=="0"&&qe.push(ce[`rapport_indicateur_condition_id_${ct}`]);return ce.essential_conditions=qe,ce}function L($e){let ce={...$e};for(let qe in ce)if(qe.includes("picto_enabled"))ce[qe]=ce[qe]==="1";else if(qe.includes("positif_is_good"))ce[qe]=ce[qe]==="1";else switch(qe){case"erase_rapport_indicateur_condition":ce[qe]=ce[qe]==="1";break;case"font_weight":ce[qe]=ce[qe]==="bold";break}return ce}const V=($e,ce)=>$e.map((qe,ct)=>{let Tt={...MEt,key:ce+ct,numero_rubrique:(ce+ct+1).toString(),indicateur_id:qe.oid};for(let He in Tt){let Ge=He.substring(11);qe[Ge]&&(Tt[He]=qe[Ge])}return Tt}),J=$e=>{l($e)},ee=$e=>{const ce={...f};let qe=V($e,ce.sections.length);ce.sections=ce.sections.concat(qe),h(ce),qe.length===1&&(d(qe[0].key),A(!0),b("30%")),x(!0)},ae=$e=>{const ce={...f};let qe=ce.sections.find(ct=>ct.key===u);C.serie===null?(qe.indicateur_output_format=$e.output_format,qe.indicateur_id=$e.oid,qe.indicateur_entete_etendue=$e.texte,qe.indicateur_texte=$e.texte,qe.indicateur_entete=$e.texte,qe.indicateur_code=$e.code):(qe.indicateur_entete=$e.texte,qe[`indicateur_entete_etendue_${C.serie}`]=$e.texte,qe[`indicateur_output_format_${C.serie}`]=$e.output_format,C.serie>=2&&(qe[`indicateur_associe_${C.serie}_id`]=$e.oid,Y(YT(qe,X)))),h(ce),S(!0),x(!0),w({oneOnly:!1})},ne=$e=>{d($e),A(!0),b("30%")},fe=$e=>{let ce={...f},qe=[...f.sections],ct=qe.findIndex(Tt=>Tt.key===$e.key);ct!==-1?qe[ct]=$e:qe.push($e),ce.sections=qe,h(ce),S(!1),x(!0),A(!1),b("100%"),d(null)},he=()=>{A(!1),b("100%"),d(null)},ye=()=>{x(!0)},be=()=>{const $e=`<RAPPORT oid="${e.oid}"/>`;_(_oe(F,$e,e.oid,!0))},Se=()=>{const $e=`<RAPPORT oid="${e.oid}"/>`;_(_oe(F,$e,e.oid)),r()},ve=()=>{let $e={...f},ce=[...f.sections],qe=ce.findIndex(ct=>ct.key===u);qe!==-1&&ce.splice(qe,1),$e.sections=ce,h($e),x(!0),A(!1),b("100%"),d(null)},de=()=>{EEt(F,e.oid)},Ue=()=>{const $e=P.getFieldsValue();let ce={...f,...$e};for(let ct in ce)ce[ct]===!0?ce[ct]="1":ce[ct]===!1&&(ce[ct]="0");ce.children=ce.sections.map(ct=>({...ct,XMLType:"RUBRIQUE"})),delete ce.sections,ce.XMLType="RAPPORT";const qe=Au({Rapport:ce},!0);_(BEt(qe,F)),r()},at=($e,ce)=>{if(ce.changedFields.length&&$e!=="indicator"){ye();let qe={...f},ct=ce.changedFields[0].name[0],Tt=ce.changedFields[0].value;ct&&(qe[ct]=Tt,h(qe))}},Ve=$e=>{ye();let ce={...f};ce.sections=$e.map((qe,ct)=>({...qe,numero_rubrique:(ct+1).toString(),XMLType:"RUBRIQUE"})),h(ce)},Ie=()=>{w({oneOnly:!1}),y(!m)},we=($e=null)=>{w({oneOnly:!0,serie:$e}),y(!0)},Re=$e=>{S($e)},Te=()=>{n?(h(n),P.setFieldsValue(H(n))):Object.keys(T).length?(h(T),P.setFieldsValue(H(T))):(h({}),P.setFieldsValue({}))},Ke=$e=>{b(R+$e.height)},mt=()=>{o($e=>!$e)},tt=$e=>{$e?.length>5&&$e.pop();let ce={...f};for(let qe=1;qe<=5;qe++)$e[qe-1]?ce[`rapport_indicateur_condition_id_${qe}`]=$e[qe-1]:ce[`rapport_indicateur_condition_id_${qe}`]="";h(ce)},rt=$e=>B?v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Annuler les modifications",children:v.jsx(yt,{icon:v.jsx(ao,{}),onClick:Te,children:"Annuler"})}),v.jsx(Xr,{title:"Enregistrer",children:v.jsx(yt,{type:"primary",icon:v.jsx(lA,{}),onClick:Ue,children:"Enregister"})})]}):v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Copier",onClick:be,children:v.jsx(yt,{type:"link",disabled:!e,children:v.jsx($v,{})})}),v.jsx(Ni,{title:"Etes vous sûr de vouloir supprimer ce rapport ?",okText:"Supprimer le rapport",cancelText:"Annuler",onConfirm:Se,children:v.jsx(Xr,{title:"Supprimer le rapport",children:v.jsx(yt,{type:"link",disabled:$e,children:v.jsx(ki,{})})})}),N.ISROLECTI&&v.jsx(Xr,{title:"Script SQL",children:v.jsx(yt,{type:"link",disabled:!e,onClick:de,children:v.jsx(my,{})})}),f.is_essentiel==="1"&&v.jsx(zH,{selectedReportsType:s,selectedReport:e,label:k})]}),lt=t.map(($e,ce)=>v.jsx($oe,{value:$e.oid,children:$e.texte},ce)),At=K.map(($e,ce)=>v.jsx($oe,{value:$e.oid,children:$e.texte},ce));return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:e?"Modifier le rapport":"Nouveau rapport"}),v.jsxs("div",{className:"header-actions",children:[rt(U),v.jsx(Xr,{title:"Ajouter un nouvel indicateur",children:v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(WB,{}),onClick:Ie,disabled:U,children:"Ajouter un indicateur"})}),v.jsx(yt,{type:"link",style:{height:"100%",marginRight:5},children:v.jsx(Xr,{placement:"topRight",title:"Retour à la gestion des rapports",children:v.jsx(Go,{onClick:r})})})]})]}),v.jsx(Ld,{showModal:m,options:C,handleShowModal:Ie,handleAddIndicators:ee,handleModifyIndicator:ae}),v.jsxs(We.Provider,{onFormChange:at,children:[v.jsxs(We,{form:P,name:"settings",className:"reports-editor-settings",onValuesChange:ye,disabled:U,children:[v.jsxs("div",{className:"form-row form-row_margin_right",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Code"}),v.jsx(We.Item,{name:"code",children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Nom"}),v.jsx(We.Item,{name:"label",children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Contexte"}),v.jsx(We.Item,{name:"contexte",children:v.jsx(jt,{style:{maxWidth:150}})})]})]}),v.jsxs("div",{className:"form-row form-row_margin_right",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Conditions"}),v.jsx(We.Item,{name:"essential_conditions",children:v.jsx(_i,{treeData:D,multiple:!0,onChange:tt,style:{width:"250px"}})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Modèle"}),v.jsx(We.Item,{name:"rapport_template_id",children:v.jsx(sn,{children:lt})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Type de rapport"}),v.jsx(We.Item,{name:"type_rapport",children:v.jsx(sn,{options:a,onChange:J})})]})]}),v.jsxs("div",{className:"form-row ",children:[s==="ESSENTIEL"&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Groupe"}),v.jsx(We.Item,{name:"group_id",children:v.jsx(sn,{children:At})})]}),N.ISROLECTI&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Rapport CTI"}),v.jsx(We.Item,{valuePropName:"checked",name:"is_cti",onChange:mt,children:v.jsx(un,{})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Rapport désactivé"}),v.jsx(We.Item,{valuePropName:"checked",name:"is_hide",children:v.jsx(un,{})})]})]})]}),v.jsx("div",{className:"component-content",children:v.jsx("div",{className:"editor-table",children:v.jsx(Oi,{defaultActiveKey:"1",items:[{label:"Indicateurs",key:"1",children:v.jsxs("div",{className:"indicators-tab",children:[v.jsx(fm,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:R},onResizeStop:Ke,children:v.jsx(gIe,{report:f,selectedIndicator:u,handleSelectedIndicator:ne,handleSort:Ve,indicators:X})}),v.jsx(CIe,{indicator:g,showEditor:c,isEssentiel:s==="ESSENTIEL",handleUpdateIndicator:fe,handleCancelSection:he,handleShowModalFromForm:we,indicatorModified:M,handleIndicatorModified:Re,handleDeleteSection:ve,report:f,setFormIndicator:p,associatedIndicators:j})]})},...s==="ESSENTIEL"?[{label:"Paramétrages Essentiels",key:"2",children:v.jsx(uIe,{form:P,formReport:f,setFormReport:h,setSelectedReportModified:x})}]:[]]})})})]})]})};wIe.propTypes={selectedRow:W.object,models:W.array,handleCloseEditor:W.func,newReport:W.object,nameReportsType:W.array};const XEt=le.memo(wIe),BIe=({selectedRow:e,setSelectedRow:t,showParams:r,handleShowParams:n,handleCloseEditor:a,showEditor:i,setShowEditor:o,handleAddReport:s,nameReportsType:l})=>{const[c,A]=E.useState([]),[u,d]=E.useState([]),[f,h]=E.useState(!1),[g,p]=E.useState("ESSENTIEL"),[m,y]=E.useState(!1),[C,w]=E.useState(!1),[B,x]=E.useState(!1),[M,S]=E.useState([]),R=ut(Se=>Se.cti.components.reports.loading),b=ut(Se=>Se.cti.components.reports.data.selectedReport),T=ut(Se=>Se.cti.components.reports.data.searchFilterValue),D=ut(Se=>Se.cti.settings.data.session),F=ut(Se=>Se.cti.content.moduleId),N=ut(Se=>Se.cti.components.reports.data),[_]=We.useForm(),P=wn(),k=N.comboGroup,j="Recalcul des essentiels";E.useEffect(()=>{b&&Object.keys(b).length>0&&p(b.type_rapport)},[b]),E.useEffect(()=>{g&&(d(Z0t(g)),_.setFieldsValue(fe()));let Se=N.reports.filter(ve=>(!B||ve.is_hide==="0")&&(!C||ve.is_cti==="1")&&ve.type_rapport===g);T&&(Se=ym(Se,T,["texte","code","contexte"])),A(Se)},[N.reports,g,T,C,B]);const Y=Se=>{p(Se)},X=Se=>{P(X3e(Se.target.value))},K=Se=>{h(!0)},U=Se=>{const ve=N.reports.find(de=>de.key===Se);t(ve),p(ve.type_rapport),o(!0)},H=()=>{let Se=_.getFieldsValue(),ve={GENERALSETTINGS:{XMLType:"GENERALSETTINGS"}};for(let at in Se)Se[at]===!0?Se[at]="1":Se[at]===!1&&(Se[at]="0"),ve.GENERALSETTINGS[`group_${at}`]=Se[at];const de=Au(ve,!0);let Ue=[{oid:"0",texte:"N/A",one_click:"0"}];for(let at in Se){let Ve=at.split("_"),Ie=Ve.pop(),we=Ve.join("_"),Re=Ue.find(Te=>Te.oid===Ie);Re?Re[we]=Se[at]:Ue.push({oid:Ie,[we]:Se[at]})}h(!1),P(yEt(F,de,Ue))},L=()=>{y(!m),S([])},V=()=>{const ve=N.refReports.filter((de,Ue)=>M.includes(Ue)).map(de=>de.oid).join(",");P(CEt(F,ve)),L()},J=()=>{P(Lx())},ee=Se=>{let ve=[...M];Array.isArray(Se)?ve=ve.concat(Se):ve.includes(Se)?ve=ve.filter(de=>de!==Se):ve.push(Se),S([...new Set(ve)])},ae=Se=>{w(Se)},ne=Se=>{x(Se)};function fe(Se){let ve={};return k.forEach((de,Ue)=>{if(Ue!==0)for(let at in de)at==="one_click"?ve[`${at}_${de.oid}`]=de[at]==="1":ve[`${at}_${de.oid}`]=de[at]}),ve}const he=(Se=!1)=>k.map((ve,de)=>ve.texte==="N/A"?null:(Se?Number(ve.oid)<10:Number(ve.oid)>10)?v.jsx("div",{className:"form-row",children:v.jsx("div",{className:"form-item",children:v.jsx(We.Item,{name:`texte_${ve.oid}`,children:v.jsx(jt,{value:ve.texte,disabled:!!Se})})})},de):null),ye=[{title:"oid",dataKey:"oid",key:"oid",width:60},{title:"Rapport de référence",dataKey:"texte",key:"texte",width:600},{title:"Code",dataKey:"code",key:"code",width:200},{title:"CTI",dataKey:"is_cti",key:"is_cti",width:200}],be=({columns:Se,rowData:ve,rowIndex:de})=>{let Ue="";return ve.is_hide==="1"&&(Ue+="settings__rowTable-inactive"),de%2===0&&(Ue+=" even-row"),Ue};return v.jsxs(v.Fragment,{children:[v.jsx(gi,{title:"Importer depuis l'environnement de référence",open:m,onCancel:L,width:"70vw",okText:"Importer les rapports sélectionnés",okButtonProps:{disabled:!M.length},onOk:V,cancelText:"Annuler",children:v.jsx("div",{style:{height:"50vh"},children:v.jsx(Hn,{columns:ye,data:N.refReports,selectedRows:M,onRowSelect:ee,shiftMulti:!0})})}),v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:[i&&v.jsx(yt,{type:"link",style:{height:"100%"},children:v.jsx(MR,{onClick:a})}),"Gestion des rapports"]}),v.jsx("div",{className:"header-actions",children:v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:J,children:v.jsx(ao,{})})}),v.jsx(Xr,{title:"Importer depuis l'environement de référence",children:v.jsx(yt,{type:"link",onClick:L,children:v.jsx(yy,{})})}),g==="ESSENTIEL"&&v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Parametres généraux",children:v.jsx(yt,{type:"link",onClick:n,children:v.jsx(_Y,{})})}),v.jsx(zH,{selectedReportsType:g,selectedReport:e,label:j})]}),v.jsx(Xr,{title:"Créer un nouveau rapport",children:v.jsx(yt,{size:"default",type:"primary",icon:v.jsx(WB,{}),onClick:s,children:"Ajouter un rapport"})})]})})]}),v.jsx("div",{className:"reports__table-headers",children:v.jsxs(Uo,{children:[v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"reports__table-filters",children:[v.jsx("span",{children:"Type de rapport:"}),v.jsx(sn,{options:l,onChange:Y,style:{width:200},value:g}),v.jsx("span",{style:{marginLeft:"10px"},children:"Filtre:"}),v.jsx(jt,{className:"search-input",placeholder:"Recherche",value:T,onChange:X})]})}),v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"reports__table-check",children:[v.jsx("span",{children:"Afficher uniquement :"}),v.jsxs("div",{className:"reports__table-single-check",children:[v.jsx(bo,{size:"small",checked:C,onChange:ae}),v.jsx("span",{children:"Rapports CTI"})]}),v.jsxs("div",{className:"reports__table-single-check",children:[v.jsx(bo,{size:"small",checked:B,onChange:ne}),v.jsx("span",{children:"Rapports actifs"})]})]})})]})}),v.jsxs("div",{className:"component-content",children:[v.jsx("div",{className:"reports-table",children:v.jsx(Hn,{columns:u,data:c,loading:R,selectedRow:e,onRowSelect:U,rowClassName:be})}),v.jsxs("div",{className:"reports-params",style:{display:r?"block":"none"},children:[v.jsxs("div",{className:"params-close",children:[v.jsx("span",{children:"Paramètres généraux des essentiels"}),v.jsx("div",{className:"params-actions",children:f?v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Valider",children:v.jsx(yt,{onClick:H,children:v.jsx(lA,{})})}),v.jsx(Ni,{placement:"top",style:{zIndex:"4000"},title:"Des modifications sont en cours... Etes vous sur de vouloir annuler ?",onConfirm:n,okText:"Annuler les modifications",cancelText:"Revenir à l'éditeur",children:v.jsx(Xr,{title:"Fermer",children:v.jsx(yt,{children:v.jsx(Go,{})})})})]}):v.jsx(Xr,{title:"Fermer",children:v.jsx(yt,{onClick:n,children:v.jsx(Go,{})})})})]}),v.jsx(We,{form:_,onValuesChange:K,children:v.jsxs("div",{className:"params-form",children:[D.ISROLECTI&&v.jsxs("div",{className:"form-column",children:[v.jsx("span",{children:"Intitulés des groupes d'essentiels CTI"}),he()]}),v.jsxs("div",{className:"form-column",children:[v.jsx("span",{children:"Intitulés des groupes d'essentiels Etablissement"}),he()]})]})})]})]})]})};BIe.propTypes={selectedRow:W.object,showParams:W.bool,handleShowParams:W.func,handleCloseEditor:W.func,showEditor:W.bool,handleAddReport:W.func};const qEt=le.memo(BIe),xIe=({module:e})=>{const[t,r]=E.useState(!1),[n,a]=E.useState(!1),[i,o]=E.useState(),[s,l]=E.useState(null),c=ut(g=>g.cti.components.reports.data),A=wn();E.useEffect(()=>{A(Lx(!0)),A(OH("iCTI_aggregateCtiIndicators")),A(Kv(e))},[e,A]);const u=()=>{o(null),r(!1),l(null)},d=()=>{a(!n)},f=()=>{l(xEt),r(!0)},h=c.types.map(g=>({value:g.oid,label:g.texte}));return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des rapports"})}),t?v.jsx(XEt,{selectedRow:i,models:c.comboReport,handleCloseEditor:u,newReport:s,nameReportsType:h}):v.jsx(qEt,{selectedRow:i,setSelectedRow:o,showParams:n,handleShowParams:d,handleCloseEditor:u,showEditor:t,setShowEditor:r,handleAddReport:f,nameReportsType:h})]})};xIe.propTypes={module:W.string};const ZEt=le.memo(xIe),$Et=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"FILE");return oa(r)},LH=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"RETURN");return oa(r)[0]},Uw=(e,t)=>async function(r){r(gg(!0));try{const n=await jn("modules/pmsi/php/PMSI_simulation.php",{operation:t,FG_YEAR:e});if(t==="get_list"){const a=$Et(n),i=LH(n);r($3e(a,i))}else t==="send_file"&&(r(Uw(e,"get_list")),ya({type:"info",message:"Simulation",description:"Sejours non groupés envoyés"}))}catch(n){t==="send_file"?(ya({type:"error",message:"Simulation",description:"Erreur lors de l'envoi des séjours"}),Ki(8701,"",n)):Ki(8700,"",n)}r(gg(!1))},eyt=(e,t,r)=>async function(n){let a={};n(gg(!0));try{const i=await jn("modules/pmsi/php/PMSI_simulation.php",{operation:t,FG_YEAR:e,file:r});a=LH(i),a.code==="OK"?(ya({type:"info",message:"Simulation",description:"Sejours groupés téléchargés, lancement des traitements"}),n(tyt(e,"trt_file",r))):(ya({type:"error",message:"Simulation",description:a.message}),n(gg(!1)))}catch(i){ya({type:"error",message:"Simulation",description:"Erreur lors du téléchargement des sejours groupés"}),Ki(8702,"",i),n(gg(!1))}},tyt=(e,t,r)=>async function(n){let a={};n(gg(!0));try{const i=await jn("modules/pmsi/php/PMSI_simulation.php",{operation:t,FG_YEAR:e,file:r});a=LH(i),a.code==="OK"?(ya({type:"success",message:"Simulation",description:"Traitements terminés"}),n(Uw(e,"get_list"))):(ya({type:"error",message:"Simulation",description:a.message}),n(gg(!1)))}catch(i){ya({type:"error",message:"Simulation",description:"Erreur lors du téléchargement des sejours groupés"}),Ki(8702,"",i),n(gg(!1))}},ryt=[{title:"Séjour téléversés",dataKey:"fg0_name",key:"fg0_name",width:300,resizable:!0,flexGrow:1},{title:"Date de téléversement",dataKey:"fg0_remote_date",key:"fg0_remote_date",width:300,resizable:!0},{title:"Taille",dataKey:"fg0_size",key:"fg0_size",cellRenderer:({cellData:e})=>`${e/1e3} Ko`,width:300,resizable:!0},{title:"Groupé par CTI",dataKey:"fg1_remote_date",key:"fg1_remote_date",width:300,resizable:!0}],MIe=({year:e})=>{const t=ut(u=>u.cti.components.simulations.data.simulations),r=ut(u=>u.cti.components.simulations.data.message),n=ut(u=>u.cti.components.simulations.loading),[a,i]=E.useState({}),o=wn();E.useEffect(()=>{o(Uw(e,"get_list")),i({})},[o,e]);const s=()=>{o(Uw(e,"get_list"))},l=()=>{o(Uw(e,"send_file"))},c=u=>{const d=t.find(f=>f.key===u);i(d)},A=()=>{a.fg1_ok==="OUI"&&o(eyt(e,"get_file",a.fg1_name))};return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsxs("title",{children:["iCTI | Regroupage ",e]})}),v.jsxs("div",{className:"component-header",children:[v.jsxs("div",{className:"header-title",children:["Regroupage ",e]}),v.jsxs("div",{className:"header-actions",children:[v.jsx(Xr,{title:"Téléverser les séjours vers Web CTI",children:v.jsxs(yt,{onClick:l,children:[v.jsx(XB,{}),"Téléverser"]})}),v.jsx(Xr,{title:"Télécharger la simulation",children:v.jsxs(yt,{disabled:a.fg1_ok!=="OUI",onClick:A,children:[v.jsx(vQ,{}),"Télécharger"]})}),v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:s,children:v.jsx(ao,{})})})]})]}),Object.keys(r).length?r.warning!==""&&v.jsx(zQ,{message:r.warning,type:"warning",showIcon:!0}):null,v.jsx("div",{className:"component-content",children:v.jsx(Hn,{columns:ryt,data:t,loading:n,fixed:!1,onRowSelect:c,selectedRow:a})})]})};MIe.propTypes={year:W.string};function IIe(e){const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"JOB"),n=Nt(t,"EXE"),a=Nt(t,"LASTJOBS");return{jobs:oa(r),execs:oa(n),lastJobs:oa(a)}}const ese=(e=null)=>async function(t,r){t(OR(!0));const i=await jn("modules/ssae/php/getSynchronize.php",{saeYear:e}),{jobs:o,execs:s,lastJobs:l}=IIe(i);t(Kpe(o,s,l)),t(OR(!1))},nO=e=>async function(t,r){t(OR(!0));const i=await jn("modules/outils/php/httpService_synchronizeManager_get.php",{exe:e}),{jobs:o,execs:s,lastJobs:l}=IIe(i);t(Kpe(o,s,l)),t(OR(!1))},nyt=(e,t)=>async function(r,n){await jn("modules/ssae/php/execSynchronize.php",{exe_path:e,saeYear:t})};let bIe=[{title:"Nom",width:200,dataKey:"name",frozen:"left",key:"name",resizable:!0},{title:"Titre",width:150,dataKey:"title",key:"title",resizable:!0},{title:"Démarré",width:120,dataKey:"start",key:"start",resizable:!0},{title:"Terminé",width:120,dataKey:"end",key:"end",resizable:!0},{title:"Statut",width:200,dataKey:"endStatus",key:"endStatus",resizable:!0},{title:"Durée",width:200,dataKey:"duration",key:"duration",resizable:!0},{title:"Logs",fixed:"right",width:200,key:"operation",resizable:!0,dataGetter:({rowData:e})=>v.jsx("a",{href:window.location.origin+Ii()+"modules/outils/php/getLogFile.php?longfile="+encodeURI(e.logFile),target:"_blank",rel:"noopener noreferrer",children:"Afficher"})}];const SIe=({module:e,swfData:t})=>{const[r,n]=E.useState({}),a=ut(d=>d.cti.components.synchronize.data),i=ut(d=>d.cti.components.synchronize.loading),o=wn(),[s]=We.useForm();E.useEffect(()=>{const d=t.split("|");n({exe:d[0],title:d[1],options:d.splice(2,d.length-1).filter(f=>f)}),o(nO(d[0]))},[e,o,t]);const l=()=>{o(nO(nO(r.exe)))},c=async()=>{const d=s.getFieldsValue();let f={exe:r.exe},h="";for(let g in d)d[g]&&(h=`${h}${g} ${d[g]} `);f.args=h,ya({type:"success",message:"Synchronisation",description:"Synchronisation lancée sur le serveur"}),await jn("modules/outils/php/httpService_synchronizeManager_exec.php",f),l()};function A(d){const f=d.map((h,g)=>({...h,key:g}));return v.jsx("div",{className:"content-table",children:v.jsx(Hn,{columns:bIe,data:f,loading:i})})}const u=()=>{if(!r.options||!r.options.length)return null;const d=r.options.map(f=>{const h=f.split("#")[0],g=f.split("#")[1],p=f.split("#")[3];return v.jsxs("div",{className:"form-item",children:[v.jsx("div",{className:"first-label",children:h}),v.jsx(We.Item,{name:g,extra:p,children:v.jsx(jt,{})},g)]},g)});return v.jsx("div",{className:"sync-options",children:v.jsx(We,{form:s,children:d})})};return!a.jobs||i?v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{})}):v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Synchronisation"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:r.title}),v.jsx("div",{className:"header-actions",children:v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:l,children:v.jsx(ao,{})})})})]}),v.jsx("div",{className:"component-content",children:v.jsx(Oi,{defaultActiveKey:"1",items:[{label:"Synchronisation des données",key:"1",children:v.jsxs(v.Fragment,{children:[u(),v.jsx("div",{style:{display:"flex",flexDirection:"row",justifyContent:"center"},children:v.jsxs(Ni,{title:"Êtes-vous sur de vouloir lancer la synchronisation ?",onConfirm:c,children:[v.jsx(yt,{type:"primary",style:{width:500},children:"Lancer"}),v.jsx("p",{children:a.lastJobs[0].last_all_endded})]})})]})},{label:"Historique des travaux",key:"2",children:v.jsx(v.Fragment,{children:A(a.jobs)})}]})})]})};SIe.propTypes={module:W.string,data:W.string};const ayt=le.memo(SIe),RIe=({module:e,year:t})=>{const r=ut(c=>c.cti.components.synchronize.data),n=ut(c=>c.cti.components.synchronize.loading),a=wn();E.useEffect(()=>{a(ese(t))},[a,t]);const i=()=>{a(ese(t))},o=c=>{a(nyt(c,t)),ya({type:"success",message:"Synchronisation",description:"Synchronisation lancée sur le serveur"})};function s(c){return e==="iCTI_ssae"?v.jsx("div",{style:{display:"flex",flexDirection:"column"},children:c.map(A=>v.jsxs("div",{style:{padding:"10px 20px"},children:[v.jsx(Ni,{title:A.confirm,onConfirm:()=>o(A.exe_path),okText:"Lancer la synchronisation",cancelText:"Annuler",children:v.jsx(yt,{type:"primary",icon:v.jsx(zNe,{}),children:A.button})}),v.jsx("br",{}),v.jsx("span",{style:{margin:"10px 0px  0px"},children:A.last_status})]},A.button))}):v.jsx("div",{})}function l(c){const A=c.map((u,d)=>({...u,key:d}));return v.jsx("div",{className:"content-table",children:v.jsx(Hn,{columns:bIe,data:A,loading:n})})}return!r.jobs||n?v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{})}):v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Synchronisation"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Synchronisation des données"}),v.jsx("div",{className:"header-actions",children:v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:i,children:v.jsx(ao,{})})})})]}),v.jsx("div",{className:"component-content",children:v.jsx(Oi,{defaultActiveKey:"1",items:[{label:"Synchronisation des données",key:"1",children:v.jsx(v.Fragment,{children:s(r.execs)})},{label:"Historique des travaux",key:"2",children:v.jsx(v.Fragment,{children:l(r.jobs)})}]})})]})};RIe.propTypes={module:W.string,year:W.string};const iyt=le.memo(RIe);function YH(e,t){let r={...e.extraData};delete e.extraData;let n={RECORD:{XMLType:"RECORD",...e,children:[]}};return r.histos&&r.histos.forEach(a=>{let i={XMLType:"HISTO",...a};n.RECORD.children.push(i)}),r.indicators&&r.indicators.forEach(a=>{let i=[];a?.hasOwnProperty("keys")&&(i=a.keys?.map(s=>({XMLType:"CLE",...s})));let o={XMLType:"INDICATEUR",...a,children:i};n.RECORD.children.push(o)}),r.lits&&r.lits.forEach(a=>{let i={XMLType:"LIT",...a};n.RECORD.children.push(i)}),r.etages&&r.etages.forEach(a=>{let i={XMLType:"ETAGE",...a};n.RECORD.children.push(i)}),r.iqv&&r.iqv.forEach(a=>{let i={XMLType:"IQV",...a};n.RECORD.children.push(i)}),Au(n,!0)}function ML(e,t={}){let r=t.fields&&Array.isArray(t.fields)?t.fields:[];for(const n in e){let a;r&&(a=r.find(o=>o.dataKey===n));let i=e[n];a&&a.type==="date"&&(t.tableName==="t_provider_data_section"?i=e[n]?e[n].format("YYY-MM-DD"):"":t.tableName==="t_finess"?i=e[n]?e[n].format("YYYY-MM-DD"):"":i=e[n]?e[n].format("DD-MM-YYYY"):""),i===!1&&(i="0"),i===!0&&(i="1"),i===void 0&&(i=""),n==="user_modified"&&(i===!0||i==="1")?i="M":n==="p_cumul"&&(i===!0||i==="1")?i="C":n==="p_detail"&&(i===!0||i==="1")?i="D":(n.startsWith("p_")||n==="proratiser_conversion")&&((i===!0||i==="1")&&(i="X"),(i===!1||i==="0")&&(i="")),e[n]=i}return e}function oyt(e){const t=Buffer.from(e,"base64"),r=Pl.inflate(t);var n=new TextDecoder("iso-8859-15");return n.decode(r)}const UH=(e,t={},r=[])=>{const n=t.fields;for(let a in e){let i;if(n&&Array.isArray(n)&&(i=n.find(o=>o.dataKey===a)),i&&i.type==="checkbox"&&e[a]==="0"&&(e[a]=!1),i&&i.type==="checkbox"&&["1","M","C","D","X"].includes(e[a])&&(e[a]=!0),i&&i.type==="date"){let o=ei(e[a],"DD-MM-YYYY");o.isValid()||(o=ei(e[a],"YYYY-MM-DD"),o.isValid()||(o=null)),e[a]=o}}if(e.description&&e.description.startsWith("_c_"))try{let a=oyt(e.description.substring(3));a.includes("TEXTFORMAT")&&(a=a.replace(/<\/?TEXTFORMAT[^>]*>|<\/?FONT[^>]*>|<P[^>]*>|<\/LI[^>]*>/gm,"").replace(/<\/?B[^>]*>/g,"**").replace(/<\/P[^>]*>/g,`
`).replace(/<LI[^>]*>/g,`
 - `).replace(/&apos;/g,"'").replace(/\[/g,"	(").replace(/\]/g,"	)").replace(/&quot;/g,'"')),e.description=a}catch{}if(t?.component==="MEDA"&&r.length){const a=r.filter(i=>i.medecin_reference_id===e.oid).map(i=>i.oid);e.medecins_regroupes_oids=a.join(", ")}return e},syt=(e,t,r={})=>{const n=e.getElementsByTagName("HTTP_SERVICE")[0],a=Nt(n,"RECORD"),i=Nt(n,"REFRECORD"),o=Nt(n,"COMBO_POL"),s=Nt(n,"COMBO_SPI"),l=Nt(n,"COMBO_MDA"),c=Nt(n,"COMBO_SERVICE"),A=Nt(n,"COMBO_ETAGE"),u=Nt(n,"COMBO_MOIS"),d=Nt(n,"COMBO_CPT"),f=Nt(n,"COMBO_GRG"),h=Nt(n,"COMBO_DEP"),g=Nt(n,"COMBO_SPI"),p=Nt(n,"COMBO_TAU"),m=Nt(n,"COMBO_UM"),y=Nt(n,"COMBO_MED"),C=Nt(n,"COMBO_FAC"),w=Nt(n,"COMBO_FSO"),B=Nt(n,"COMBO_MVT_UF_SOIN"),x=Nt(n,"COMBO_FINESS"),M=Nt(n,"COMBO_MTR"),S=Nt(n,"COMBO_DMT"),R=Nt(n,"COMBO_ACTIVITE"),b=Nt(n,"COMBO_UMD"),T=Nt(n,"COMBO_UMX"),D=Nt(n,"COMBO_SER"),F=Nt(n,"COMBO_QUA"),N=Nt(n,"COMBO_SAL"),_=Nt(n,"COMBO_FROMSER"),P=Nt(n,"COMBO_TOSER"),k=Nt(n,"COMBO_FROMQUA"),j=Nt(n,"COMBO_TOQUA"),Y=Nt(n,"COMBO_FROMDAT"),X=Nt(n,"COMBO_TODAT"),K=Nt(n,"COMBO_JOURNAL"),U=Nt(n,"COMBO_SECTION"),H=Nt(n,"COMBO_COMPTE"),L=Nt(n,"COMBO_SITE"),V=Nt(n,"COMBO_ECH"),J=Nt(n,"COMBO_CST"),ee=Nt(n,"COMBO_FOU"),ae=Nt(n,"COMBO_TAA"),ne=Nt(n,"COMBO_CONDITION"),fe=Nt(n,"COMBO_BUDGET_CLE"),he=Nt(n,"ARRAY_SEJ");let ye=[];he.length&&(ye=Nt(he[0],"RECORD"));const be=Nt(n,"COMBO_TYPECOMPTA"),Se=Nt(n,"COMBO_PRESTATION"),ve=Nt(n,"PRESTATAIRE"),de=Nt(n,"ADDRECORD");let Ue={};de.length&&(Ue=Yr(de[0]));const at=Nt(n,"COMBO_POP")[0];let Ve=[];at&&(Ve=Nt(at,"RECORD"),Ve=Ve.map(ue=>{let ie=Yr(ue);return{...ie,label:ie.texte,value:ie.oid}}));const Ie=Nt(n,"COMBO_DEP")[0];let we=[];Ie&&(we=Nt(Ie,"RECORD"),we=we.map(ue=>{let ie=Yr(ue);return{...ie,label:ie.texte,value:ie.oid}}));const Re=Nt(n,"LIST_MDA")[0],Te=Nt(n,"LIST_MEDA")[0];let Ke=[],mt=[];Re&&(Ke=Nt(Re,"RECORD")),Te&&(mt=Nt(Te,"RECORD"));const tt=Nt(n,"LIST_CPO")[0];let rt=[];tt&&(rt=Nt(tt,"RECORD"));const lt=Nt(n,"LIST_GHM")[0];let At=[];lt&&(At=Nt(lt,"RECORD"));const $e=Nt(n,"LIST_ART")[0];let ce=[];$e&&(ce=Nt($e,"RECORD"));const qe=Nt(n,"LIST_FOU")[0];let ct=[];qe&&(ct=Nt(qe,"RECORD"));const Tt=Nt(n,"ARRAY_RA9"),He=Nt(n,"ARRAY_RA1"),Ge={POL:Pn(o),SPI:Pn(s),MDA:Pn(l),SERVICE:Pn(c),ETAGE:Pn(A),MOIS:Pn(u),CPT:Pn(d),PRESTATION:Pn(Se),TPY:Pn(f),CPO:Pn(h),MED:Pn(g),TAU:Pn(p),UM:Pn(m),UM_MED:Pn(y),FAC:Pn(C),FSO:Pn(w),MVT_UF_SOIN:Pn(B),FINESS:Pn(x),MTR:Pn(M),DMT:Pn(S),ACTIVITE:Pn(R),UMD:Pn(b),UMX:Pn(T),SER:Pn(D),QUA:Pn(F),PRESTATAIRE:oa(ve),SAL:Pn(N),FROMSER:Pn(_),TOSER:Pn(P),FROMQUA:Pn(k),TOQUA:Pn(j),FROMDAT:Pn(Y),TODAT:Pn(X),TYPECOMPTA:Pn(be),JOURNAL:Pn(K),SECTION:Pn(U),COMPTE:Pn(H),SITE:Pn(L),BUDGET_CLE:Pn(fe),FOU:Pn(ee),CONDITIONS:um(Pn(ne)),ECH:Pn(V),CST:Pn(J),TAA:Pn(ae),SEJ:oa(ye),RA9:Pn(Tt),RA1:Pn(He),DEP:we,POP:Ve},Ee={MDA:oa(Ke),MEDA:oa(mt),CPO:oa(rt),GHM:oa(At),ART:oa(ce),LFOU:oa(ct)};let Et=oa(a),Yt=oa(i);Et=Et.map((ue,ie)=>{let Be={},Xe=Nt(a[ie],"INDICATEUR");if(Xe){let vt=cyt(Xe);Be.indicators=vt}ue.extraData=Be;let Oe=Nt(a[ie],"HISTO");Oe&&(ue.extraData.histos=oa(Oe));let ft=Nt(a[ie],"LIT");ft&&(ue.extraData.lits=oa(ft));let wt=Nt(a[ie],"ETAGE");wt&&(ue.extraData.etages=oa(wt));let ot=Nt(a[ie],"IQV");return ot&&(ue.extraData.iqv=oa(ot)),UH(ue,r,Et)});let $={};const Fe=Nt(n,"DIVERS")[0];if(Fe&&t==="t_rubriques"){const ue=Nt(Fe,"RECORD");$.rubriques=Yr(ue[0])}const je=Nt(n,"GENERAL_SETTINGS");if(je&&t==="t_expert_controle"&&!r.module){const ue=Yr(je[0]);$.expert=ue}return{records:Et,combos:Ge,listes:Ee,divers:$,addRecord:Ue,refRecords:Yt}},lyt=e=>{const t=e.getElementsByTagName("HTTP_SERVICE")[0],r=Nt(t,"RECORD");let n=oa(r);return n.forEach(a=>{a.label=a.texte,a.value=a.oid}),n};function Pn(e){let t=[];if(e&&e.length){const r=e[0];let n=Nt(r,"RECORD");t=oa(n),t=t.map(a=>({...a,label:a.texte??a.label,value:a.oid??a.data}))}return t}function cyt(e){return e.map((t,r)=>{let n=Yr(t);n.key=r;let a=Nt(t,"CLE");if(a&&a.length){let i=a.map((o,s)=>{let l=Yr(o);return l.key=s,l});n.keys=i}return n})}const RB=(e,t,r,n="",a="1",i={})=>async function(o,s){o(HE(!0));let l={softCode:t,tableName:r,firstCall:a,getParam:n};i.tableSection&&(l.tableSection=i.tableSection);const c=await jn(wmt(e),l),{records:A,combos:u,listes:d,divers:f,addRecord:h,refRecords:g}=syt(c,r,i);o(a==="0"?iOe(A):aOe(A,u,d,f,h,g)),o(HE(!1))},HH=(e,t=null)=>async function(r,n){r(HE(!0));const i=await jn("modules/base/php/httpservice_getChoices.php",{query:e}),o=lyt(i);r(t?sOe(t,o):oOe(o)),r(HE(!1))},kE=(e,t,r,n,a,i,o=!0,s="")=>async function(l,c){const A=BMe(e),u={softCode:t,tableName:r,action:i,propagate:o,recordNode:n};try{l(HE(!0)),await jn(A,u),l(RB(e,t,r,s))}catch(d){throw console.log(d),new Error("Erreur lors de la mise à jour de la table")}},TIe=(e,t,r,n=null,a=null)=>async function(i,o){i(HE(!0));const s=BMe(e);let l={softCode:r,tableName:t,action:a!==null?a:"execute_rules"};n!==null&&(l.oids=n);try{await jn(s,l),i(RB(e,r,t))}catch(c){throw console.log(c),new Error("Erreur lors de la mise à jour de la table")}},Ayt=(e,t,r,n)=>async function(a,i){const o=Bmt(e);let s={tableName:r,oids:n.join(", ")};await jn(o,s),a(RB(e,t,r))},w0=[{title:"Code",dataKey:"code",width:75,type:"input"},{title:"Texte",dataKey:"texte",type:"input"}],uyt={POL:{tableName:"t_pole",title:"Gestion Poles",component:"common",addButton:!0,fields:[...w0,{title:"Nombre Références (règles)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}],visible:!0},POR:{tableName:"t_pole_rule",title:"Gestion règles poles",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"POR_execute_rules"},fields:[{title:"Priorité",dataKey:"priorite",type:"input",default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input",editable:!1,hidden:!0},{title:"Pole",dataKey:"pole_texte",editVisible:!1},{title:"Règles",dataKey:"rule_resume",type:"input",editVisible:!1},{title:"Pole",dataKey:"pole_id",type:"select",selectOptionsKey:"POL",hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole02_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux02",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole03_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux03",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole04_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux04",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole05_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux05",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole06_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux06",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole07_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux07",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole08_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux08",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole09_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux09",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole10_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux10",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole11_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"},{dataKey:"taux11",type:"input",editVisible:!1,hidden:!0,comptaExtraParams:"taux"},{dataKey:"pole12_id",type:"select",editVisible:!1,hidden:!0,comptaExtraParams:"pole"}],comptaExtraParams:!0,visible:!0,extraFields:!0},SPI:{tableName:"t_specialites_medecin",title:"Gestion Spécialités internes des médecins",component:"common",addButton:!0,fields:[...w0,{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Nombre Références (médecins)",dataKey:"nbref",type:"input",editVisible:!1}],visible:!0},MED:{tableName:"t_medecins",title:"Gestion Référentiel Médecins",component:"MED",addButton:!0,doubleFilter:!0,sejoursActFilter:!0,saveWithoutCalc:!0,addSearchFields:["nom","prenom"],fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Spécialité interne",dataKey:"specialite_interne_texte",editVisible:"false"},{title:"Spécialité interne",dataKey:"specialite_interne_id",type:"select",hidden:!0,selectOptionsKey:"SPI"},{title:"Nº ADELI",dataKey:"numero_ordre",type:"input"},{title:"RPPS",dataKey:"code_rpps",type:"input"},{title:"Identifiant groupe",dataKey:"identifiant_groupe",type:"input"},{title:"Etablissements",dataKey:"ets",type:"input",editable:!1},{title:"Références (médecins administratifs)",dataKey:"nbref",type:"input",editable:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""},{title:"Références (séjours)",dataKey:"nbsej",type:"input",editable:!1},{title:"Références (actes)",dataKey:"nbact",type:"input",editable:!1},{title:"Doublon",dataKey:"doublon",type:"input",editable:!1,editVisible:!1}],visible:!0},BUD:{tableName:"t_budget",title:"Gestion Budgets",addButton:!0,component:"BUD",fields:[...w0,{title:"Date début",dataKey:"date_debut",type:"date"},{title:"Date fin",dataKey:"date_fin",type:"date"}],visible:!0,modalLabel:"Gestion des indicateurs"},BUC:{tableName:"t_budget_cle",title:"Gestion Clés budgétaires",component:"common",addButton:!0,fields:[...w0,{title:"Texte court",dataKey:"texte_court",type:"input"}],visible:!0},BUR:{tableName:"t_budget_cle_rule",title:"Gestion Règles d'affectation aux Clés budgétaires",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},fields:[...w0,{title:"Priorite",dataKey:"priorite",type:"input",default:"5000"},{title:"Clé budgétaire",dataKey:"budget_cle_texte",type:"input",editVisible:!1},{title:"Clé budgétaire",dataKey:"budget_cle_id",type:"select",selectOptionsKey:"BUDGET_CLE",hidden:!0},{title:"Règles",dataKey:"rule_resume",type:"input",editVisible:!1}],visible:!0,extraFields:!0},BUI:{tableName:"t_budget_cle_budget",title:"Gestion Budgets",component:"BUI_activite",fields:[...w0.map(e=>({...e,editable:!1})),{title:"Date début",dataKey:"date_debut",type:"input",editVisible:!1},{title:"Date fin",dataKey:"date_fin",type:"input",editVisible:!1}],visible:!0},VPA:{tableName:"t_validation_parametre",title:"Validation nouveaux paramètres",refUniquement:!1,component:"common",fields:[{title:"oid",dataKey:"oid",type:"input",hidden:!1,editVisible:!1},{title:"Table",dataKey:"table_texte",type:"input",editable:!1},{title:"Code",dataKey:"parametre_code",type:"input",editable:!1},{title:"Texte",dataKey:"parametre_texte",type:"input",editable:!1},{title:"Date",dataKey:"parametre_date",type:"input",editable:!1},{title:"Validé",dataKey:"parametre_valide",type:"checkbox",hidden:!0}],visible:!0}},dyt=(e,t)=>{switch(e){case"POR":return hC(e,t);case"PER":return hC(e,t);case"BUR":return hC(e,t);case"FAR":return hC(e,t);case"FSR":return hC(e,t)}};function hC(e,t){switch(t){case"iCTI_activite":const r=[{title:"Type séjour",dataKey:"liste_type_sejour",type:"input",hidden:!0,tab:!0},{title:"Spécialité",dataKey:"liste_specialite",type:"input",hidden:!0,tab:!0},{title:"Médecins",dataKey:"liste_medecin",type:"input",hidden:!0,tab:!0},{title:"Services (S)",dataKey:"liste_service",type:"input",hidden:!0,tab:!0},{title:e==="BUR"?"Activite":"Etages (S)",dataKey:e==="BUR"?"liste_activite":"liste_etage",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle (S)",dataKey:e==="BUR"?"liste_uf":"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0},{title:"Actes",dataKey:"liste_acte",type:"input",hidden:!0,tab:!0},{title:"Rubriques",dataKey:"liste_rubrique",type:"input",hidden:!0,tab:!0},{title:"GHM",dataKey:"liste_ghm",type:"input",hidden:!0,tab:!0},{title:"Sauf GHM",dataKey:"liste_sauf_ghm",type:"input",hidden:!0,tab:!0},{title:"Diagnostic principal",dataKey:"liste_diagnostic_principal",type:"input",hidden:!0,tab:!0},{title:"Diagnostique relié",dataKey:"liste_diagnostic_relie",type:"input",hidden:!0,tab:!0},{title:"Diagnostique associé",dataKey:"liste_diagnostic_associe",type:"input",hidden:!0,tab:!0},{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},e!=="BUR"&&{title:"Prestations",dataKey:"liste_prestation",type:"input",hidden:!0,tab:!0}];return e==="CAR"?r.push({title:"Sauf Préstation",dataKey:"liste_sauf_prestation",type:"input",hidden:!0,tab:!0},{title:"Compte Produit",dataKey:"liste_compte_produit",type:"input",hidden:!0,tab:!0},{title:"Sauf Compte Produit",dataKey:"liste_sauf_compte_produit",type:"input",hidden:!0,tab:!0}):(e==="FAR"||e==="FSR")&&r.push({title:"UF (E)",dataKey:"liste_unite_fonctionnelle_entree",type:"input",hidden:!0,tab:!0},{title:"Etage (E)",dataKey:"liste_etage_entree",type:"input",hidden:!0,tab:!0},{title:"Service (E)",dataKey:"liste_service_entree",type:"input",hidden:!0,tab:!0}),r;case"iCTI_rh":const n=[{title:"Service",dataKey:"liste_service",type:"input",hidden:!0,tab:!0},{title:"Spécialité",dataKey:"liste_specialite",type:"input",hidden:!0,tab:!0},{title:"Section analytique",dataKey:"liste_section_analytique",type:"input",hidden:!0,tab:!0},{title:"Section paie",dataKey:"liste_section_analytique_paie",type:"input",hidden:!0,tab:!0},{title:"Qualification",dataKey:"liste_qualification",type:"input",hidden:!0,tab:!0},{title:"Grille",dataKey:"liste_grille",type:"input",hidden:!0,tab:!0},{title:"Code emploi",dataKey:"liste_code_emploi",type:"input",hidden:!0,tab:!0},{title:"Catégories socio professionnelle",dataKey:"liste_categorie_socio_professionnelle",type:"input",hidden:!0,tab:!0},{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Etablissement",dataKey:"liste_etablissement",type:"input",hidden:!0,tab:!0}];return e==="PER"&&n.push({title:"Statut",dataKey:"liste_statut",type:"input",hidden:!0,tab:!0}),e==="POR"&&n.push({title:"Service Planning",dataKey:"liste_service_planning",type:"input",hidden:!0,tab:!0}),n;case"iCTI_compta":return[{title:"Compte",dataKey:"liste_compte",type:"input",hidden:!0,tab:!0},{title:"Sauf Compte",dataKey:"liste_sauf_compte",type:"input",hidden:!0,tab:!0},{title:"Journal",dataKey:"liste_journal",type:"input",hidden:!0,tab:!0},{title:"Sauf journal",dataKey:"liste_sauf_journal",type:"input",hidden:!0,tab:!0},{title:"Section",dataKey:"liste_section_analytique",type:"input",hidden:!0,tab:!0},{title:"Sauf section",dataKey:"liste_sauf_section_analytique",type:"input",hidden:!0,tab:!0},{title:"Site",dataKey:"liste_site",type:"input",hidden:!0,tab:!0},{title:"Exercice",dataKey:"liste_exercice",type:"input",hidden:!0,tab:!0},{title:"Finess",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Mois comptable",dataKey:"liste_mois_comptable",type:"input",hidden:!0,tab:!0},{title:"Mode",dataKey:"special_calc",type:"input",editVisible:!1}];case"iCTI_eco":return[{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Sites",dataKey:"liste_site",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle",dataKey:"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0}];case"iCTI_qualite":return[{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle",dataKey:"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0}]}}const QIe=({form:e,record:t,handleValuesChange:r})=>{const[n,a]=E.useState("2020"),i=ut(u=>u.cti.components.tables.data.combos);E.useEffect(()=>{if(t?.date_ecriture){const u=t.date_ecriture.slice(0,4);a(u);let d={};for(let f=1;f<=12;f++)f<10?d[`mois_ventile_${f}`]=`${u}0${f}`:d[`mois_ventile_${f}`]=`${u}${f}`;e.setFieldsValue(d)}},[t,e]);const o=u=>{u==="D"?e.setFieldsValue({montant_debit:e.getFieldValue("montant"),montant_credit:"0"}):e.setFieldsValue({montant_credit:e.getFieldValue("montant"),montant_debit:"0"})},s=u=>{e.getFieldValue("debit")==="D"?e.setFieldsValue({montant_debit:u.target.value,montant_credit:"0"}):e.setFieldsValue({montant_credit:u.target.value,montant_debit:"0"})},l=()=>{const u=e.getFieldValue("montant"),d=e.getFieldValue("debit"),f=(Number(u)/12).toFixed(2),h=(Number(u)-11*Number(f)).toFixed(2).replace(".",",");let g={};for(let p=1;p<12;p++)g[`montant_ventile_${p}`]=f.replace(".",",");g.montant_ventile_12=h,g.total=u,d==="D"?g.montant_credit="0":g.montant_debit="0",e.setFieldsValue(g),r()},c=u=>{const d=u.slice(0,4);a(u.slice(0,4));let f={};for(let h=1;h<=12;h++){let g=`${d}${h}`;h<10&&(g=`${d}0${h}`),f[`mois_ventile_${h}`]=g}e.setFieldsValue(f)},A=()=>{let u=0;const d=e.getFieldValue("debit"),f=e.getFieldsValue();for(let g=1;g<=12;g++)u=u+Number(f[`montant_ventile_${g}`].replace(",","."));u=u.toFixed(2).replace(".",",");const h={total:u,montant_credit:u,montant:u,montant_debit:"0"};d==="D"&&(h.montant_debit=u,h.montant_credit="0"),e.setFieldsValue(h)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Mois Comptable"}),v.jsx(We.Item,{name:"mois_comptable",children:v.jsx(sn,{options:i.MOIS,onChange:c})})]}),v.jsxs("span",{children:["Saisie le ",ei().format("YYYY-MM-DD")]})]}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Site"}),v.jsx(We.Item,{name:"site_id",children:v.jsx(sn,{options:i.SITE})})]}),v.jsx("div",{className:"form-item",children:v.jsx(We.Item,{name:"clinique_honoraire",children:v.jsx(sn,{options:[{label:"Clinique",value:"C"},{label:"Honoraire",value:"H"}]})})})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Journal"}),v.jsx(We.Item,{name:"journal_code",children:v.jsx(sn,{options:i.JOURNAL})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Compte"}),v.jsx(We.Item,{name:"compte_numero",children:v.jsx(sn,{style:{width:"200px"},options:i.COMPTE})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Section"}),v.jsx(We.Item,{name:"section_code",children:v.jsx(sn,{options:i.SECTION})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Texte"}),v.jsx(We.Item,{name:"texte",children:v.jsx(jt.TextArea,{})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Montant"}),v.jsx(We.Item,{name:"debit",children:v.jsx(sn,{options:[{label:"Débit",value:"D"},{label:"Crédit",value:"C"}],onChange:o})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{name:"montant",children:v.jsx(jt,{onChange:s})}),v.jsx(yt,{type:"primary",onClick:l,children:"Ventiler"}),v.jsx(We.Item,{name:"montant_credit",hidden:!0,children:v.jsx(jt,{})}),v.jsx(We.Item,{name:"montant_debit",hidden:!0,children:v.jsx(jt,{})})]})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Report automatique"}),v.jsx(We.Item,{name:"report_automatique_mois_suivant",valuePropName:"checked",children:v.jsx(un,{})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Ventilation"}),v.jsx("span",{className:"second-label",children:`Janvier ${n}`}),v.jsx(We.Item,{hidden:!0,name:"mois_ventile_1",children:v.jsx(jt,{})}),v.jsx(We.Item,{name:"montant_ventile_1",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_2",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Février ${n}`}),v.jsx(We.Item,{name:"montant_ventile_2",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_3",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Mars ${n}`}),v.jsx(We.Item,{name:"montant_ventile_3",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_4",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Avril ${n}`}),v.jsx(We.Item,{name:"montant_ventile_4",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_5",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Mai ${n}`}),v.jsx(We.Item,{name:"montant_ventile_5",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_6",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Juin ${n}`}),v.jsx(We.Item,{name:"montant_ventile_6",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]})]}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_7",children:v.jsx(jt,{})}),v.jsx("span",{className:"first-label"}),v.jsx("span",{className:"second-label",children:`Juillet ${n}`}),v.jsx(We.Item,{name:"montant_ventile_7",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_8",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Août ${n}`}),v.jsx(We.Item,{name:"montant_ventile_8",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_9",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Septembre ${n}`}),v.jsx(We.Item,{name:"montant_ventile_9",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_10",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Octobre ${n}`}),v.jsx(We.Item,{name:"montant_ventile_10",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_11",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Novembre ${n}`}),v.jsx(We.Item,{name:"montant_ventile_11",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx(We.Item,{hidden:!0,name:"mois_ventile_12",children:v.jsx(jt,{})}),v.jsx("span",{className:"second-label",children:`Décembre ${n}`}),v.jsx(We.Item,{name:"montant_ventile_12",children:v.jsx(jt,{style:{width:"80px"},onChange:A})})]})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Total"}),v.jsx(We.Item,{name:"total",children:v.jsx(jt,{disabled:!0})})]})})]})};QIe.propTypes={form:W.object,record:W.object,handleValuesChange:W.func};const DIe=({form:e,record:t})=>{const r=ut(n=>n.cti.components.tables.data.combos);return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Type"}),v.jsx(We.Item,{name:"est_balance",children:v.jsx(sn,{options:[{label:"Ecritures",value:""},{label:"Balance mensuelle",value:"M"},{label:"Balance exercice",value:"X"}]})})]})}),v.jsxs("div",{className:"form-row",children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Site"}),v.jsx(We.Item,{name:"site_id",children:v.jsx(sn,{options:r.SITE})})]}),v.jsx("div",{className:"form-item",children:v.jsx(We.Item,{name:"clinique_honoraire",children:v.jsx(sn,{options:[{label:"Clinique",value:"C"},{label:"Honoraire",value:"H"}]})})})]}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Texte"}),v.jsx(We.Item,{name:"texte",children:v.jsx(jt.TextArea,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Report automatique"}),v.jsx(We.Item,{name:"report_automatique_mois_suivant",valuePropName:"checked",children:v.jsx(un,{})})]})}),v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Coller les données:"}),v.jsx(We.Item,{name:"import_data",children:v.jsx(jt.TextArea,{autoSize:{minRows:8}})})]})})]})};DIe.propTypes={form:W.object,record:W.object};const FIe=({record:e,handleValuesChange:t,form:r})=>{const[n,a]=E.useState(!1);E.useEffect(()=>{if(e){if((e.montant_credit||e.montant_debit)&&(e.montant_credit!=="+0"?r.setFieldsValue({montant:e.montant_credit.substring(1),montant_credit:e.montant_credit.substring(1),montant_debit:e.montant_debit.substring(1),debit:"C"}):e.montantd_debit!=="+0"&&r.setFieldsValue({montant:e.montant_debit.substring(1),montant_credit:e.montant_credit.substring(1),montant_debit:e.montant_debit.substring(1),debit:"D"})),e.montant_ventile_1){let l=0;for(let c=1;c<=12;c++)l=l+Number(e[`montant_ventile_${c}`].substring(1)),r.setFieldsValue({[`montant_ventile_${c}`]:e[`montant_ventile_${c}`].substring(1).replace(".",",")});r.setFieldsValue({total:l})}let o=!1,s=!1;e.est_import_data==="1"&&(o=!0),e.report_automatique_mois_suivant==="1"&&(s=!0),a(o),r.setFieldsValue({est_import_data:o,report_automatique_mois_suivant:s})}},[e,r]);const i=o=>{a(o.target.checked)};return v.jsxs("div",{className:"aju-editor",children:[v.jsx("div",{className:"form-row",children:v.jsxs("div",{className:"form-item",children:[v.jsx("span",{className:"first-label",children:"Import Tableur"}),v.jsx(We.Item,{name:"est_import_data",valuePropName:"checked",children:v.jsx(un,{onChange:i})})]})}),n===!0?v.jsx(DIe,{form:r,record:e,handleValuesChange:t}):v.jsx(QIe,{form:r,record:e,handleValuesChange:t})]})};FIe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func,form:W.object};var aO={};const fyt=Ya(K$e);var rb={},nb={},tse;function hyt(){if(tse)return nb;tse=1;var e=Ha().default;Object.defineProperty(nb,"__esModule",{value:!0}),nb.default=r;var t=e(Ur());function r(n){var a=t.useRef();a.current=n;var i=t.useCallback(function(){for(var o,s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return(o=a.current)===null||o===void 0?void 0:o.call.apply(o,[a].concat(l))},[]);return i}return nb}var Dp={},rse;function gyt(){if(rse)return Dp;rse=1;var e=qr().default,t=Ha().default;Object.defineProperty(Dp,"__esModule",{value:!0}),Dp.useLayoutUpdateEffect=Dp.default=void 0;var r=t(Ur()),n=e(Dx()),a=(0,n.default)()?r.useLayoutEffect:r.useEffect,i=function(s,l){var c=r.useRef(!0);a(function(){return s(c.current)},l),a(function(){return c.current=!1,function(){c.current=!0}},[])};return Dp.useLayoutUpdateEffect=function(s,l){i(function(c){if(!c)return s()},l)},Dp.default=i,Dp}var ab={},nse;function pyt(){if(nse)return ab;nse=1;var e=Ha().default,t=qr().default;Object.defineProperty(ab,"__esModule",{value:!0}),ab.default=a;var r=t(_d()),n=e(Ur());function a(i){var o=n.useRef(!1),s=n.useState(i),l=(0,r.default)(s,2),c=l[0],A=l[1];n.useEffect(function(){return o.current=!1,function(){o.current=!0}},[]);function u(d,f){f&&o.current||A(d)}return[c,u]}return ab}var ase;function vyt(){if(ase)return rb;ase=1;var e=qr().default;Object.defineProperty(rb,"__esModule",{value:!0}),rb.default=o;var t=e(_d()),r=e(hyt()),n=gyt(),a=e(pyt());function i(s){return s!==void 0}function o(s,l){var c=l||{},A=c.defaultValue,u=c.value,d=c.onChange,f=c.postState,h=(0,a.default)(function(){return i(u)?u:i(A)?typeof A=="function"?A():A:typeof s=="function"?s():s}),g=(0,t.default)(h,2),p=g[0],m=g[1],y=u!==void 0?u:p,C=f?f(y):y,w=(0,r.default)(d),B=(0,a.default)([y]),x=(0,t.default)(B,2),M=x[0],S=x[1];(0,n.useLayoutUpdateEffect)(function(){var b=M[0];p!==b&&w(p,b)},[M]),(0,n.useLayoutUpdateEffect)(function(){i(u)||m(u)},[u]);var R=(0,r.default)(function(b,T){m(b,T),S([y],T)});return[C,R]}return rb}var B0={},ise;function GH(){if(ise)return B0;ise=1;var e=qr().default;Object.defineProperty(B0,"__esModule",{value:!0}),B0.getMergedStatus=void 0,B0.getStatusClassNames=a;var t=e(oo()),r=e(Ro()),n=J4();(0,n.tuple)("warning","error","");function a(i,o,s){return(0,r.default)((0,t.default)((0,t.default)((0,t.default)((0,t.default)((0,t.default)({},"".concat(i,"-status-success"),o==="success"),"".concat(i,"-status-warning"),o==="warning"),"".concat(i,"-status-error"),o==="error"),"".concat(i,"-status-validating"),o==="validating"),"".concat(i,"-has-feedback"),s))}return B0.getMergedStatus=function(o,s){return s||o},B0}var iO={},ose;function myt(){return ose||(ose=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(oo()),a=r(Eu()),i=r(Pd()),o=r(zd()),s=r(TH()),l=r(jd()),c=r(Od()),A=r(RH()),u=r(Ro()),d=t(Ur()),f=Nx(),h=DH(),g=GH(),p=J4();function m(B,x,M){return x=(0,l.default)(x),(0,o.default)(B,(0,s.default)()?Reflect.construct(x,M||[],(0,l.default)(B).constructor):x.apply(B,M))}var y=(0,p.tuple)("text","input");function C(B){return!!(B.addonBefore||B.addonAfter)}var w=(function(B){(0,c.default)(x,B);function x(){return(0,a.default)(this,x),m(this,x,arguments)}return(0,i.default)(x,[{key:"renderClearIcon",value:function(S){var R=this.props,b=R.value,T=R.disabled,D=R.readOnly,F=R.handleReset,N=R.suffix,_=!T&&!D&&b,P="".concat(S,"-clear-icon");return d.createElement(A.default,{onClick:F,onMouseDown:function(j){return j.preventDefault()},className:(0,u.default)((0,n.default)((0,n.default)({},"".concat(P,"-hidden"),!_),"".concat(P,"-has-suffix"),!!N),P),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(S,R,b){var T=this.props,D=T.value,F=T.allowClear,N=T.className,_=T.focused,P=T.style,k=T.direction,j=T.bordered,Y=T.hidden,X=T.status,K=b.status,U=b.hasFeedback;if(!F)return(0,h.cloneElement)(R,{value:D});var H=(0,u.default)("".concat(S,"-affix-wrapper"),"".concat(S,"-affix-wrapper-textarea-with-clear-btn"),(0,g.getStatusClassNames)("".concat(S,"-affix-wrapper"),(0,g.getMergedStatus)(K,X),U),(0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(S,"-affix-wrapper-focused"),_),"".concat(S,"-affix-wrapper-rtl"),k==="rtl"),"".concat(S,"-affix-wrapper-borderless"),!j),"".concat(N),!C(this.props)&&N));return d.createElement("span",{className:H,style:P,hidden:Y},(0,h.cloneElement)(R,{style:null,value:D}),this.renderClearIcon(S))}},{key:"render",value:function(){var S=this;return d.createElement(f.FormItemInputContext.Consumer,null,function(R){var b=S.props,T=b.prefixCls,D=b.inputType,F=b.element;if(D===y[0])return S.renderTextAreaWithClearIcon(T,F,R)})}}]),x})(d.Component);e.default=w})(iO)),iO}var oO={};const Eyt=Ya(T$e);var sO={},sse;function yyt(){return sse||(sse=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var t=Ur();function r(n,a){var i=(0,t.useRef)([]),o=function(){i.current.push(setTimeout(function(){var l,c,A,u;!((l=n.current)===null||l===void 0)&&l.input&&((c=n.current)===null||c===void 0?void 0:c.input.getAttribute("type"))==="password"&&(!((A=n.current)===null||A===void 0)&&A.input.hasAttribute("value"))&&((u=n.current)===null||u===void 0||u.input.removeAttribute("value"))}))};return(0,t.useEffect)(function(){return a&&o(),function(){return i.current.forEach(function(s){s&&clearTimeout(s)})}},[]),o}})(sO)),sO}var ib={},lse;function Cyt(){if(lse)return ib;lse=1,Object.defineProperty(ib,"__esModule",{value:!0}),ib.hasPrefixSuffix=e;function e(t){return!!(t.prefix||t.suffix||t.allowClear)}return ib}var cse;function wyt(){return cse||(cse=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.fixControlledValue=w,e.resolveOnChange=B,e.triggerFocus=x;var n=r(oo()),a=r(Ga()),i=r(Xa()),o=r(RH()),s=r(Ro()),l=r(Eyt),c=EMe(),A=t(Ur()),u=Cc(),d=r(Fx()),f=r(V4()),h=Nx(),g=QH(),p=GH();r(Cm());var m=r(yyt()),y=Cyt(),C=function(S,R){var b={};for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&R.indexOf(T)<0&&(b[T]=S[T]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,T=Object.getOwnPropertySymbols(S);D<T.length;D++)R.indexOf(T[D])<0&&Object.prototype.propertyIsEnumerable.call(S,T[D])&&(b[T[D]]=S[T[D]]);return b};function w(S){return typeof S>"u"||S===null?"":String(S)}function B(S,R,b,T){if(b){var D=R;if(R.type==="click"){var F=S.cloneNode(!0);D=Object.create(R,{target:{value:F},currentTarget:{value:F}}),F.value="",b(D);return}if(T!==void 0){D=Object.create(R,{target:{value:S},currentTarget:{value:S}}),S.value=T,b(D);return}b(D)}}function x(S,R){if(S){S.focus(R);var b=R||{},T=b.cursor;if(T){var D=S.value.length;switch(T){case"start":S.setSelectionRange(0,0);break;case"end":S.setSelectionRange(D,D);break;default:S.setSelectionRange(0,D);break}}}}var M=(0,A.forwardRef)(function(S,R){var b=S.prefixCls,T=S.bordered,D=T===void 0?!0:T,F=S.status,N=S.size,_=S.disabled,P=S.onBlur,k=S.onFocus,j=S.suffix,Y=S.allowClear,X=S.addonAfter,K=S.addonBefore,U=S.className,H=S.onChange,L=C(S,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","onChange"]),V=A.default.useContext(u.ConfigContext),J=V.getPrefixCls,ee=V.direction,ae=V.input,ne=J("input",b),fe=(0,A.useRef)(null),he=(0,g.useCompactItemContext)(ne,ee),ye=he.compactSize,be=he.compactItemClassnames,Se=A.default.useContext(f.default),ve=ye||N||Se,de=A.default.useContext(d.default),Ue=_??de,at=(0,A.useContext)(h.FormItemInputContext),Ve=at.status,Ie=at.hasFeedback,we=at.feedbackIcon,Re=(0,p.getMergedStatus)(Ve,F),Te=(0,y.hasPrefixSuffix)(S)||!!Ie,Ke=(0,A.useRef)(Te);(0,A.useEffect)(function(){Te&&Ke.current,Ke.current=Te},[Te]);var mt=(0,m.default)(fe,!0),tt=function(qe){mt(),P?.(qe)},rt=function(qe){mt(),k?.(qe)},lt=function(qe){mt(),H?.(qe)},At=(Ie||j)&&A.default.createElement(A.default.Fragment,null,j,Ie&&we),$e;return(0,i.default)(Y)==="object"&&Y?.clearIcon?$e=Y:Y&&($e={clearIcon:A.default.createElement(o.default,null)}),A.default.createElement(l.default,(0,a.default)({ref:(0,c.composeRef)(R,fe),prefixCls:ne,autoComplete:ae?.autoComplete},L,{disabled:Ue||void 0,onBlur:tt,onFocus:rt,suffix:At,allowClear:$e,className:(0,s.default)(U,be),onChange:lt,addonAfter:X&&A.default.createElement(g.NoCompactStyle,null,A.default.createElement(h.NoFormStyle,{override:!0,status:!0},X)),addonBefore:K&&A.default.createElement(g.NoCompactStyle,null,A.default.createElement(h.NoFormStyle,{override:!0,status:!0},K)),inputClassName:(0,s.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(ne,"-sm"),ve==="small"),"".concat(ne,"-lg"),ve==="large"),"".concat(ne,"-rtl"),ee==="rtl"),"".concat(ne,"-borderless"),!D),!Te&&(0,p.getStatusClassNames)(ne,Re)),affixWrapperClassName:(0,s.default)((0,n.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(ne,"-affix-wrapper-sm"),ve==="small"),"".concat(ne,"-affix-wrapper-lg"),ve==="large"),"".concat(ne,"-affix-wrapper-rtl"),ee==="rtl"),"".concat(ne,"-affix-wrapper-borderless"),!D),(0,p.getStatusClassNames)("".concat(ne,"-affix-wrapper"),Re,Ie)),wrapperClassName:(0,s.default)((0,n.default)({},"".concat(ne,"-group-rtl"),ee==="rtl")),groupClassName:(0,s.default)((0,n.default)((0,n.default)((0,n.default)({},"".concat(ne,"-group-wrapper-sm"),ve==="small"),"".concat(ne,"-group-wrapper-lg"),ve==="large"),"".concat(ne,"-group-wrapper-rtl"),ee==="rtl"),(0,p.getStatusClassNames)("".concat(ne,"-group-wrapper"),Re,Ie))}))});e.default=M})(oO)),oO}var Ase;function Byt(){return Ase||(Ase=1,(function(e){var t=Ha().default,r=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(Xa()),a=r(oo()),i=r(Ga()),o=r(_d()),s=r(K4()),l=r(Ro()),c=r(fyt),A=r(vyt()),u=r(G4()),d=t(Ur()),f=Cc(),h=r(Fx()),g=r(V4()),p=Nx(),m=GH(),y=r(myt()),C=wyt(),w=function(S,R){var b={};for(var T in S)Object.prototype.hasOwnProperty.call(S,T)&&R.indexOf(T)<0&&(b[T]=S[T]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,T=Object.getOwnPropertySymbols(S);D<T.length;D++)R.indexOf(T[D])<0&&Object.prototype.propertyIsEnumerable.call(S,T[D])&&(b[T[D]]=S[T[D]]);return b};function B(S,R){return(0,s.default)(S||"").slice(0,R).join("")}function x(S,R,b,T){var D=b;return S?D=B(b,T):(0,s.default)(R||"").length<b.length&&(0,s.default)(b||"").length>T&&(D=R),D}var M=d.forwardRef(function(S,R){var b=S.prefixCls,T=S.bordered,D=T===void 0?!0:T,F=S.showCount,N=F===void 0?!1:F,_=S.maxLength,P=S.className,k=S.style,j=S.size,Y=S.disabled,X=S.onCompositionStart,K=S.onCompositionEnd,U=S.onChange,H=S.onFocus,L=S.onBlur,V=S.status,J=w(S,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","onFocus","onBlur","status"]),ee=d.useContext(f.ConfigContext),ae=ee.getPrefixCls,ne=ee.direction,fe=d.useContext(g.default),he=d.useContext(h.default),ye=Y??he,be=d.useContext(p.FormItemInputContext),Se=be.status,ve=be.hasFeedback,de=be.isFormItemInput,Ue=be.feedbackIcon,at=(0,m.getMergedStatus)(Se,V),Ve=d.useRef(null),Ie=d.useRef(null),we=d.useState(!1),Re=(0,o.default)(we,2),Te=Re[0],Ke=Re[1],mt=d.useState(!1),tt=(0,o.default)(mt,2),rt=tt[0],lt=tt[1],At=d.useRef(),$e=d.useRef(0),ce=(0,A.default)(J.defaultValue,{value:J.value}),qe=(0,o.default)(ce,2),ct=qe[0],Tt=qe[1],He=J.hidden,Ge=function(it,vt){J.value===void 0&&Tt(it)},Ee=Number(_)>0,Et=function(it){Ke(!0),At.current=ct,$e.current=it.currentTarget.selectionStart,X?.(it)},Yt=function(it){var vt;Ke(!1);var qt=it.currentTarget.value;if(Ee){var Xt=$e.current>=_+1||$e.current===((vt=At.current)===null||vt===void 0?void 0:vt.length);qt=x(Xt,At.current,qt,_)}qt!==ct&&(Ge(qt),(0,C.resolveOnChange)(it.currentTarget,it,U,qt)),K?.(it)},$=function(it){var vt=it.target.value;if(!Te&&Ee){var qt=it.target.selectionStart>=_+1||it.target.selectionStart===vt.length||!it.target.selectionStart;vt=x(qt,ct,vt,_)}Ge(vt),(0,C.resolveOnChange)(it.currentTarget,it,U,vt)},Fe=function(it){lt(!1),L?.(it)},je=function(it){lt(!0),H?.(it)};d.useEffect(function(){lt(function(ot){return!ye&&ot})},[ye]);var ue=function(it){var vt,qt,Xt;Ge(""),(vt=Ve.current)===null||vt===void 0||vt.focus(),(0,C.resolveOnChange)((Xt=(qt=Ve.current)===null||qt===void 0?void 0:qt.resizableTextArea)===null||Xt===void 0?void 0:Xt.textArea,it,U)},ie=ae("input",b);d.useImperativeHandle(R,function(){var ot;return{resizableTextArea:(ot=Ve.current)===null||ot===void 0?void 0:ot.resizableTextArea,focus:function(vt){var qt,Xt;(0,C.triggerFocus)((Xt=(qt=Ve.current)===null||qt===void 0?void 0:qt.resizableTextArea)===null||Xt===void 0?void 0:Xt.textArea,vt)},blur:function(){var vt;return(vt=Ve.current)===null||vt===void 0?void 0:vt.blur()}}});var Be=d.createElement(c.default,(0,i.default)({},(0,u.default)(J,["allowClear"]),{disabled:ye,className:(0,l.default)((0,a.default)((0,a.default)((0,a.default)((0,a.default)({},"".concat(ie,"-borderless"),!D),P,P&&!N),"".concat(ie,"-sm"),fe==="small"||j==="small"),"".concat(ie,"-lg"),fe==="large"||j==="large"),(0,m.getStatusClassNames)(ie,at)),style:N?{resize:k?.resize}:k,prefixCls:ie,onCompositionStart:Et,onChange:$,onBlur:Fe,onFocus:je,onCompositionEnd:Yt,ref:Ve})),Xe=(0,C.fixControlledValue)(ct);!Te&&Ee&&(J.value===null||J.value===void 0)&&(Xe=B(Xe,_));var Oe=d.createElement(y.default,(0,i.default)({disabled:ye,focused:rt},J,{prefixCls:ie,direction:ne,inputType:"text",value:Xe,element:Be,handleReset:ue,ref:Ie,bordered:D,status:V,style:N?void 0:k}));if(N||ve){var ft=(0,s.default)(Xe).length,wt="";return(0,n.default)(N)==="object"?wt=N.formatter({value:Xe,count:ft,maxLength:_}):wt="".concat(ft).concat(Ee?" / ".concat(_):""),d.createElement("div",{hidden:He,className:(0,l.default)("".concat(ie,"-textarea"),(0,a.default)((0,a.default)((0,a.default)({},"".concat(ie,"-textarea-rtl"),ne==="rtl"),"".concat(ie,"-textarea-show-count"),N),"".concat(ie,"-textarea-in-form-item"),de),(0,m.getStatusClassNames)("".concat(ie,"-textarea"),at,ve),P),style:k,"data-count":wt},Oe,ve&&d.createElement("span",{className:"".concat(ie,"-textarea-suffix")},Ue))}return Oe});e.default=M})(aO)),aO}var xyt=Byt();const Myt=gn(xyt),use=new Date().getFullYear();let NIe=[];for(let e=use-4;e<=use+2;e++)NIe.push(e);const iu={DPI_CST:[{label:"",value:""},{label:"Liste de valeurs selon échelle",value:"LIST-ECHELLE"},{label:"Liste de valeurs numériques",value:"LIST-NUMERIC"}],DPI_SPE:[{label:"",value:""},{label:"Spécialité",value:"S"}],COMPTA_CH:[{label:"Clinique",value:"C"},{label:"Honoraire",value:"H"}],AJU_est_balance:[{label:"Ecritures",value:""},{label:"Balance mensuelle",value:"M"},{label:"Balance exercice",value:"X"}],AJU_Debit_Credit:[{label:"Débit",value:"D"},{label:"Crédit",value:"C"}],YEARS:NIe.map(e=>({label:e,value:e})),PRC_type_valorisation_facture:[{label:"Ventilation par défault",value:""},{label:"Forcer ventilation quotidienne",value:"1"}],PRC_type_valorisation_non_facture:[{label:"",value:""},{label:"Prix de journée",value:"PJ"},{label:"Chambre particulière",value:"CP"},{label:"Forfait à l'entrée",value:"ENT"},{label:"Moyenne par journée de présence service",value:"*AVGJOUSER"},{label:"Uniquement prestations saisies",value:"*SAISIE"}],UMD_type_ventilation_ca:[{label:"Par défault (avec PMS)",value:""},{label:"Uniquement selon durée séjour",value:"1"}],UMD_type_eclatement:[{label:"Pas d'éclatement",value:"0"},{label:"Eclatement selon première UM",value:"1"},{label:"Eclatement selon première UM",value:"2"}],UMD_mode_hospitalisation:[{label:"Hospitalisation complète",value:"C"},{label:"Hospitalisation partielle",value:"P"},{label:"Hospitalisation mixte",value:"M"}],UMD_type_sejour:[{label:"Pas de forçage",value:"1"},{label:"Externe",value:"3"},{label:"Ignorer (fil de l'eau)",value:"9"}],PRC_type_valorisation_non_facture_provider:[{label:"Prix de journée",value:"PJ"},{label:"Chambre particulière",value:"CP"},{label:"Moyenne par journée de précense service",value:"*AVGJOUSER"},{label:"Forfait à l'entrée",value:"ENT"},{label:"Uniquement prestations saisies",value:"*SAISIE"}],calculCodeList:[{label:"Aucun",value:"0"},{label:"(1) Heures payées",value:"1"},{label:"(2) Heures (non) travaillées",value:"2"},{label:"(3) Frais imposables",value:"3"},{label:"(4) Avantages en nature",value:"4"},{label:"(5) OD/net salariées",value:"5"},{label:"(6) OD/net patronales",value:"6"},{label:"(7)",value:"7"},{label:"(8)",value:"8"},{label:"(9) Ignorer",value:"9"},{label:"(10) Heures contrat",value:"10"},{label:"(11) Heures c/p/t",value:"11"}],EXC_cible_provider:[{label:"Tous",value:"0"},{label:"Présent",value:"1"},{label:"Non facturé",value:"2"}],EXC_gravite_provider:[{label:"Information",value:"0"},{label:"Avertissement",value:"5"},{label:"Erreur",value:"9"}],EXC_table_provider:[{label:"Séjour",value:"0"},{label:"Mouvements",value:"1"},{label:"Factures",value:"2"},{label:"Lignes Factures Honoraires",value:"3"},{label:"SQL brut",value:"99"}],EXC_table_provider_RH:[{label:"Contrats",value:"1"},{label:"Historique de paie",value:"2"},{label:"Arrêts de travail",value:"3"},{label:"Mouvement planning",value:"4"},{label:"SQL brut",value:"99"}],EXC_table_provider_SSR:[{label:"Séjours ePMSI",value:"0"},{label:"Séjours fil de l'eau",value:"1"}],GENRE:[{label:"",value:""},{label:"Féminin",value:"F"},{label:"Masculin",value:"M"},{label:"Sans object",value:"I"}],TYPE_TEMPS_TRAVAIL:[{label:"",value:""},{label:"Temps complet",value:"TC"},{label:"Temps partiel",value:"TP"}],EIE_etat:[{label:"Nouveau",value:"0"},{label:"En-cours",value:"1"},{label:"Traité",value:"9"}],EIE_gravite:[{label:"",value:""},{label:"Mineure",value:"1"},{label:"Significative",value:"2"},{label:"Majeure",value:"3"},{label:"Critique",value:"4"},{label:"Catastrophique",value:"5"}],EIF_frequence:[{label:"",value:""},{label:"Très improbable",value:"1"},{label:"Très peu probable",value:"2"},{label:"Peu probable",value:"3"},{label:"Possible / Probable",value:"4"},{label:"Très probable à certain",value:"5"}],EII_data_type:[{label:"",value:""},{label:"APTA",value:"APTA"},{label:"Blue Medi XML",value:"BLUEMEDI"},{label:"CSV",value:"CSV"},{label:"CSV sans entete",value:"CSVWITHOUTHEADER"}],IXI_data_type:[{label:"",value:""},{label:"CSV",value:"CSV"},{label:"Données créées depuis interface externe",value:"EXT"}],QSE_type_entete:[{label:"",value:""},{label:"Choix unique",value:"choixunique"},{label:"Choix multiple",value:"choixmultiple"},{label:"Date de réponse",value:"date"},{label:"Mois de réponse",value:"mois"},{label:"Service",value:"service"},{label:"Age",value:"age"},{label:"Sexe",value:"sexe"},{label:"Ignorer",value:"ignore"}],CXP_start:[{label:"",value:""},{label:"Année en cours",value:"A0"},{label:"A - 1",value:"A1"},{label:"A - 2",value:"A2"},{label:"12 derniers mois",value:"M12"},{label:"24 derniers mois",value:"M24"}],CXP_item_dpi:[{label:"",value:""},{label:"Item",value:"ITM"},{label:"Table normale Item",value:"ITMTAB"},{label:"Séjour",value:"SEJ"},{label:"Document",value:"DOC"},{label:"Intervention",value:"INT"}],code_calcul:[{label:"Aucun",value:"0"},{label:"(1) Heures payées",value:"1"},{label:"(2) Heures (non) travaillées",value:"2"},{label:"(3) Frais imposables",value:"3"},{label:"(4) Avantages en nature",value:"4"},{label:"(5) OD/net salariées",value:"5"},{label:"(6) OD/net patronales",value:"6"},{label:"(7)",value:"7"},{label:"(8)",value:"8"},{label:"(9) Ignorer",value:"9"},{label:"(10) Heures contrat",value:"10"},{label:"(11) Heures c/p/t",value:"11"}],TYM_SENS:[{label:"Aucun forcage",value:""},{label:"Entrée",value:"E"},{label:"Sortie",value:"S"}],TYM_SIGNE:[{label:"Non",value:"0"},{label:"Oui",value:"1"}],FSJ_type:[{label:"Pas de forçage",value:"0"},{label:"Hospitalisé",value:"1"},{label:"Ambulatoire",value:"2"},{label:"Séance",value:"5"},{label:"Bébé",value:"6"},{label:"Externe",value:"3"},{label:"Fictif",value:"9"}],TYA:[{label:"Sans Valeur par défaut",value:""},{label:"Catégorire",value:"CAT"},{label:"Compte",value:"CPT"}]},KH=({record:e,fields:t})=>{const r=ut(a=>a.cti.components.tables.data.combos),n=Object.assign(r,iu);return e?v.jsx(v.Fragment,{children:wc(t,e,n)}):null};KH.propTypes={tableParams:W.object,record:W.object};function wc(e,t,r={}){if(Array.isArray(e)&&e.length)return e.map((n,a)=>_Ie(n,a,t,r))}const Iyt=async(e,t,r)=>{let n=new FormData;n.append("ISSOID",t.oid),n.append("CSVOID",e.dataKey==="int18_entet_csvf"?t.int18_entet_csvi:t.int18_poste_csvi);const a=await To({method:"post",url:Ii()+e.downloadUrl,data:n,responseType:"blob",headers:{"Content-Type":"multipart/form-data"}}),s=a.headers["content-disposition"].split(";")[1].split('="')[1].replace(/"/gm,"");Y4(a.data,s)};function _Ie(e,t=0,r,n){if(e.editVisible===!1)return null;const a=e.titleEdit?e.titleEdit:e.title;let i=e.editable===!1;e.dependsOn&&(i=r[e.dependsOn]===e.disabledWhen);let o=null;switch(e.type){case"divider":o=v.jsx("div",{children:v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:a})})},t);break;case"input":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:a}),v.jsx(We.Item,{shouldUpdate:!0,children:c=>(i=e.editable===!1,e.dependsOn&&(i=c.getFieldsValue()[e.dependsOn]===e.disabledWhen),v.jsx(We.Item,{style:{width:"100%"},name:e.dataKey,extra:e.detail,children:v.jsx(jt,{addonAfter:e.pourcentage?"%":null,disabled:i})}))})]})},t);break;case"fileDownload":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:a}),v.jsx(yt,{icon:v.jsx(vQ,{}),style:{marginRight:8,paddingRight:8,paddingLeft:8},onClick:()=>Iyt(e,r)}),v.jsx(We.Item,{shouldUpdate:!0,children:c=>(i=e.editable===!1,e.dependsOn&&(i=c.getFieldsValue()[e.dependsOn]===e.disabledWhen),v.jsx(We.Item,{style:{width:"100%"},name:e.dataKey,extra:e.detail,children:v.jsx(jt,{addonAfter:e.pourcentage?"%":null,disabled:i})}))})]})},t);break;case"textArea":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:e.title}),v.jsx(We.Item,{name:e.dataKey,extra:e.detail,style:{width:"100%"},children:v.jsx(Myt,{disabled:i,style:{width:"100%"}})})]})},t);break;case"select":const s=e.value==="-1";o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:e.title}),v.jsx(We.Item,{name:e.dataKey,extra:e.detail,style:{width:"100%"},children:v.jsx(sn,{style:{width:"100%"},disabled:i,options:n[e.selectOptionsKey],showSearch:!0,allowClear:e.allowClear,defaultActiveFirstOption:s})})]})},t);break;case"checkbox":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:a}),v.jsx(We.Item,{style:{width:"100%"},name:e.dataKey,valuePropName:"checked",extra:e.detail,children:v.jsx(un,{disabled:!e.dataKey||i})})]})},t);break;case"date":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:e.title}),v.jsx(We.Item,{name:e.dataKey,extra:e.detail,style:{width:"100%"},children:v.jsx(gB,{dateRender:c=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:c.date()})})})]})},t);break;case"checkboxRow":o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"first-label",style:{width:"250px"},children:e.title}),v.jsx("div",{style:{display:"flex",flexFlow:"row wrap"},children:e.children.map(c=>v.jsx(We.Item,{name:c.dataKey,label:c.title,valuePropName:"checked",extra:c.detail,className:"checkboxUnit",children:v.jsx(un,{disabled:c.editable===!1})},c.dataKey+"-chckbx-unit"))})]})},t);break;case"multi-input":const l=c=>{switch(c.type){case"input":return v.jsx(We.Item,{label:c.title,name:c.dataKey,extra:c.detail,children:v.jsx(jt,{addonAfter:c.pourcentage?"%":null,disabled:c.editable===!1})},c.dataKey);default:return null}};o=v.jsx("div",{children:v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"first-label",children:e.title}),v.jsx("div",{style:{display:"flex",flexFlow:"row wrap"},children:e.children.map(c=>l(c))})]})},t);break;default:o=null}return o}const kIe=({text:e,handleUpdateRecord:t,record:r,indicator:n,handleValuesChange:a})=>{const[i,o]=E.useState(!1),s=()=>{o(!0)},l=()=>{o(!i)},c=A=>{let u={...r},d=u.extraData.indicators.find(f=>f.oid===n.oid);d&&(d.indicateur_id=A.oid,d.module=A.module),a(),t(u)};return v.jsxs(v.Fragment,{children:[v.jsx(Ld,{showModal:i,options:{oneOnly:!0},handleShowModal:l,handleModifyIndicator:c}),v.jsxs("div",{className:"bud-indicator-field",children:[v.jsx("div",{className:"indicator-field-text",children:e}),v.jsx(yt,{type:"link",onClick:s,children:v.jsx(Xf,{})})]})]})};kIe.propTypes={text:W.string,handleUpdateRecord:W.func,record:W.object,indicator:W.object,handleValuesChange:W.func};const PIe=({title:e})=>v.jsx(v.Fragment,{children:v.jsx("h3",{className:"title__h3",children:e})});PIe.propTypes={title:W.string};const dse={CLEBUD:[{label:"Pas de génération automatique des clés",value:""},{label:"Génération d'une clé par médecin séjour (CTI)",value:"CTIMEDSEJ"},{label:"Génération d'une clé par classe d'UF (CTI)",value:"CTICLSUF"}]},OIe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n,form:a,softCode:i})=>{const o=ut(S=>S.cti.components.reports.data.indicators.indicators),s=ut(S=>S.cti.components.tables.data.dataEditor),[l,c]=E.useState(!1),[A,u]=E.useState(!1),[d,f]=E.useState(null),h=wn();E.useEffect(()=>{c(t.cle_budgetaire_activite==="CTICLSUF")},[t,a]),E.useEffect(()=>{i==="iCTI_rh"?h(Kv("rh")):i==="iCTI_activite"&&h(Kv("activite, pmsi"))},[t.oid,i]),E.useEffect(()=>{t!==null&&t.extraData&&h(jS(t.extraData.indicators.map(S=>({...S}))))},[t,h]);const g=(S,R)=>{let b={...t},T=b.extraData.indicators.find(D=>D.key===S);T&&(R.target.checked===!0?T.actif="1":T.actif="0"),r(b),n()},p=(S,R,b)=>{let T={...t};T.extraData={...T.extraData};let D=s.map(P=>({...P})),F=D.find(P=>P.key===b);F&&(F[S]=R,T.extraData.indicators=D,r(T),n());let N=[...s],_=N.find(P=>P.key===b);_&&(_[S]=R,h(jS(N)))},m=S=>{let R={...t};R.cle_budgetaire_activite=S,r(R),n()},y=S=>{let R=[],b={...t};b.extraData={...b.extraData},b.extraData.indicators&&(R=b.extraData.indicators.map(T=>({...T}))),R.push({oid:"-1",actif:S?.actif??"1",code:S?.code??"",texte:S?.texte??"",indicateur_id:S.oid,indicateur_module:S.module,key:R.length+1}),b.extraData.indicators=R,r(b),n()},C=()=>{let S={...t};S.extraData={...S.extraData};let R=s.map(F=>({...F})),b=R.findIndex(F=>F.key===d.key);b>-1&&(R.splice(b,1),S.extraData.indicators=R,r(S),n());let T=[...s],D=T.find(F=>F.key===d.key);D&&(T.splice(D,1),h(jS(T)))},w=S=>{f(s.find(R=>R.key===S))},B=E.useMemo(()=>dse.CLEBUD.find(S=>S.value===t.cle_budgetaire_activite)?.label,[t.cle_budgetaire_activite]),M=[{title:"Code",dataKey:"code",width:150,cellRenderer:({rowData:S})=>v.jsx(BB,{initialText:S.code,handleUpdateText:p,field:"code",rowKey:S.key})},{title:"Texte",dataKey:"texte",flexGrow:1,cellRenderer:({rowData:S})=>v.jsx(BB,{initialText:S.texte,handleUpdateText:p,field:"texte",rowKey:S.key})},{title:"Indicateur CTI",dataKey:"indicateur_id",dataGetter:({rowData:S})=>{let R="",b=o.find(T=>T.oid===S.indicateur_id);return b&&(R=b.texte),v.jsx(kIe,{text:R,handleUpdateRecord:r,record:t,indicator:S,handleValuesChange:n})}},{title:"Actif",dataKey:"actif",width:100,dataGetter:({rowData:S})=>v.jsx(un,{checked:S.actif==="1",onClick:R=>g(S.key,R)})}].map(S=>({width:300,key:S.dataKey,dataIndex:S.dataKey,ellipsis:!0,...S}));return o.length?v.jsxs(v.Fragment,{children:[v.jsx(Ld,{showModal:A,options:{oneOnly:!0},handleModifyIndicator:y,handleShowModal:()=>u(!A),softCode:i}),v.jsxs("div",{className:"bud-editor",children:[v.jsxs("div",{className:"tables-column",children:[wc(e.fields,t),i==="iCTI_activite"&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Clés automatiques"}),v.jsx(sn,{options:dse.CLEBUD,value:B,onChange:m,style:{width:"100%"}})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Classe"}),v.jsx(We.Item,{name:"classe_code",hidden:!l,style:{width:"100%"},children:v.jsx(jt,{})})]})]})]}),v.jsx("div",{className:"tables-column",children:v.jsxs("div",{className:"bud-table-indicators",style:{display:"flex",flexFlow:"column"},children:[v.jsx(PIe,{title:e.modalLabel}),v.jsxs("div",{className:"bud-table-buttons",style:{display:"flex",flexFlow:"row nowrap",justifyContent:"space-between"},children:[v.jsx(yt,{style:{width:"48%",marginBottom:"12px"},type:"primary",onClick:()=>u(!0),children:"Ajouter"}),v.jsx(yt,{style:{width:"48%",marginBottom:"12px"},onClick:C,disabled:!d,children:"Supprimer"})]}),v.jsx("div",{className:"ind-table",style:{flex:3},children:v.jsx(Hn,{columns:M,data:s,flexGrowBool:!0,fixed:!1,rowHeight:30,selectedRow:d,onRowSelect:w})})]})})]})]}):v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{style:{height:"auto"}})})};OIe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func,form:W.object,softCode:W.string};const jIe=({indicator:e,handleUpdateIndicator:t,handleExcelExport:r,handleExcelImport:n,recordkey:a})=>{const[i,o]=E.useState([]);E.useEffect(()=>{e&&e.keys&&o(e.keys.map(A=>({...A})))},[e]);const s=()=>{let A={...e};A.keys.forEach(d=>{for(let f=1;f<=12;f++){const h=f<10?`budget_0${f}`:`budget_${f}`;d[h]="0"}});let u=[...i];u.forEach(d=>{for(let f=1;f<=12;f++){const h=f<10?`budget_0${f}`:`budget_${f}`;d[h]="0"}}),o(u),t(A)},l=(A,u,d)=>{t(e,A,u,d);let f=[...i],h=f.find(g=>g.key===d);h&&(h[A]=u),o(f)},c=()=>{let A=[{title:"Indicateur",dataKey:"budget_cle_fulltexte",width:200}];for(let u=1;u<=12;u++){const d=u<10?`budget_0${u}`:`budget_${u}`;A.push({title:u.toString(),dataKey:d,cellRenderer:({rowData:f})=>v.jsx(BB,{initialText:f[d],handleUpdateText:l,field:d,rowKey:f.key,recordKey:a})})}return A.map(u=>({width:100,key:u.dataKey,dataIndex:u.dataKey,ellipsis:!0,...u}))};return v.jsxs("div",{className:"bui-indicator-tab",children:[v.jsxs("div",{className:"bui-excel-actions",children:[v.jsx(yt,{icon:v.jsx(yy,{}),onClick:()=>n(e.key),children:"Importer depuis Excel (indicateur courant)"}),v.jsx(yt,{icon:v.jsx(SR,{}),onClick:()=>r(e.key),children:"Exporter vers Excel (indicateur courant)"}),v.jsx(yt,{icon:v.jsx(ki,{}),onClick:s,children:"Effacer"})]}),v.jsx("div",{className:"bui-table",children:v.jsx(Hn,{rowHeight:32,columns:c(),data:i})})]})};jIe.propTypes={indicator:W.object,handleUpdateIndicator:W.func,handleExcelImport:W.func,handleExcelExport:W.func,recordKey:W.number};const zIe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=E.useState(!1),[o,s]=E.useState(null),[l,c]=E.useState(""),[A,u]=E.useState(null);E.useEffect(()=>{t&&u({...t})},[t]);const d=y=>{s(y==="all"?null:y),i(!0)},f=()=>{let y={...A};y.extraData={...y.extraData};let C=y.extraData.indicators.map(B=>({...B}));l.split(`
`).forEach(B=>{const x=B.split("	");if(x.length===14&&o!==null){let M=C.find(S=>S.key===o);if(M){let S=M.keys.map(b=>({...b})),R=S.find(b=>b.budget_cle_code===x[0]);if(R)for(let b=1;b<=12;b++){const T=b<10?`budget_0${b}`:`budget_${b}`;R[T]=x[b+1]}M.keys=S}}else if(x.length===15){let M=C.find(S=>S.budget_indicateur_code===x[0]);if(M){let S=M.keys.map(b=>({...b})),R=S.find(b=>b.budget_cle_code===x[1]);if(R)for(let b=1;b<=12;b++){const T=b<10?`budget_0${b}`:`budget_${b}`;R[T]=x[b+2]}M.keys=S}}}),y.extraData.indicators=C,i(!1),c(""),r(y),n()},h=y=>{c(y.target.value)},g=y=>{let C="",w;y!=="all"?(w=A.extraData.indicators.find(x=>x.key===y),w.keys.forEach(x=>{C=C+`${x.budget_cle_code}	${x.budget_cle_texte}	`;for(let M=1;M<=12;M++){const S=M<10?`budget_0${M}`:`budget_${M}`;C=C+`${x[S]}	`}C=C+`
`})):(w=A.extraData.indicators,w.forEach(x=>{x.keys.forEach(M=>{C=C+`${x.budget_indicateur_code}	${M.budget_cle_code}	${M.budget_cle_texte}	`;for(let S=1;S<=12;S++){const R=S<10?`budget_0${S}`:`budget_${S}`;C=C+`${M[R]}	`}C=C+`
`})}));var B=document.createElement("textarea");B.value=C,document.body.appendChild(B),B.select(),document.execCommand("copy"),document.body.removeChild(B),tl.success("Copié !")},p=(y,C,w,B)=>{let x={...A};x.extraData={...x.extraData};let M={...x.extraData.indicators.find(S=>S.key===y.key)};if(M){if(!C)M=y;else{let S=M.keys.map(b=>({...b})),R=S.find(b=>b.key===B);R&&(R[C]=w),M.keys=S}n(),r(x)}},m=()=>A.extraData.indicators.map((y,C)=>({label:y.budget_indicateur_code,key:C,children:v.jsx(jIe,{indicator:y,handleUpdateIndicator:p,handleExcelExport:g,handleExcelImport:d,recordkey:A.key},C)}));return!A||!A.extraData?v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{style:{height:"auto"}})}):v.jsxs(v.Fragment,{children:[v.jsx(gi,{open:a,title:"Budget à importer",okText:"Importer",cancelText:"Annuler",onCancel:()=>i(!1),onOk:f,children:v.jsx(jt.TextArea,{autoSize:{minRows:20,maxRows:30},value:l,onChange:h})}),v.jsxs("div",{className:"bui-acti-editor",children:[v.jsx("div",{className:"base-editor",children:wc(e.fields)}),v.jsxs("div",{className:"bui-excel-actions",children:[v.jsx(yt,{icon:v.jsx(yy,{}),onClick:()=>d("all"),children:"Importer depuis Excel (tous les indicateurs)"}),v.jsx(yt,{icon:v.jsx(SR,{}),onClick:()=>g("all"),children:"Exporter vers Excel (tous les indicateurs)"})]}),v.jsx("div",{className:"bui-tabs",children:v.jsx(Oi,{items:m()})})]})]})};zIe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};function VH({tableParams:e,record:t,form:r,handleUpdateRecord:n,typeOnly:a=!1}){const i=ut(l=>l.cti.components.tables.data.combos),o=l=>{n({...t,auto_reponse_code_type:l})},s=()=>{let l=[];for(let c=1;c<=20;c++){const A=c<10?"0"+c:c,u=c<11?`0${c-1}`:c-1;l.push(v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{shouldUpdate:!0,children:d=>{const f=d.getFieldValue(`auto_reponse_code_values_${u}`);return v.jsx(We.Item,{name:`auto_reponse_code_values_${A}`,children:v.jsx(jt,{disabled:f===""})})}})}))}return l};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"tables-common-fields",children:[!a&&wc(e.fields,"",iu),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Type de réponse"}),v.jsx(We.Item,{style:{width:"100%"},name:"auto_reponse_code_type",children:v.jsx(sn,{style:{width:"100%"},options:iu.DPI_CST,onChange:o})})]}),t.auto_reponse_code_type==="LIST-ECHELLE"&&v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Echelle"}),v.jsx(We.Item,{style:{width:"100%"},name:"echelle_id",children:v.jsx(sn,{style:{width:"100%"},options:i.ECH})})]}),t.auto_reponse_code_type==="LIST-NUMERIC"&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:"160px"},children:"Valeurs"}),v.jsx("div",{className:"form-row",style:{width:"100%"},children:s()})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:"160px"},children:"Valeurs autres"}),v.jsx(We.Item,{name:"auto_reponse_code_value_other",style:{width:"100%"},children:v.jsx(jt,{})})]})]})]})})}VH.propTypes={tableParams:W.object,record:W.object,form:W.object,typeOnly:W.bool};var lO,fse;function byt(){if(fse)return lO;fse=1;var e=ax(),t=jg(),r=wy();function n(a){return function(i,o,s){var l=Object(i);if(!t(i)){var c=e(o,3);i=r(i),o=function(u){return c(l[u],u,l)}}var A=a(i,o,s);return A>-1?l[c?i[A]:A]:void 0}}return lO=n,lO}var cO,hse;function Syt(){if(hse)return cO;hse=1;function e(t,r,n,a){for(var i=t.length,o=n+(a?1:-1);a?o--:++o<i;)if(r(t[o],o,t))return o;return-1}return cO=e,cO}var AO,gse;function Ryt(){if(gse)return AO;gse=1;var e=Syt(),t=ax(),r=YWe(),n=Math.max;function a(i,o,s){var l=i==null?0:i.length;if(!l)return-1;var c=s==null?0:r(s);return c<0&&(c=n(l+c,0)),e(i,t(o,3),c)}return AO=a,AO}var uO,pse;function Tyt(){if(pse)return uO;pse=1;var e=byt(),t=Ryt(),r=e(t);return uO=r,uO}var Qyt=Tyt();const Dyt=gn(Qyt);var Fyt=fwe();const Nyt=gn(Fyt);var dO,vse;function LIe(){if(vse)return dO;vse=1;var e=b4(),t=ex();function r(n,a,i){(i!==void 0&&!t(n[a],i)||i===void 0&&!(a in n))&&e(n,a,i)}return dO=r,dO}var fO,mse;function _yt(){if(mse)return fO;mse=1;var e=jg(),t=Sd();function r(n){return t(n)&&e(n)}return fO=r,fO}var hO,Ese;function YIe(){if(Ese)return hO;Ese=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return hO=e,hO}var gO,yse;function kyt(){if(yse)return gO;yse=1;var e=Fy(),t=Ny();function r(n){return e(n,t(n))}return gO=r,gO}var pO,Cse;function Pyt(){if(Cse)return pO;Cse=1;var e=LIe(),t=hwe(),r=vwe(),n=gwe(),a=mwe(),i=ZB(),o=Ps(),s=_yt(),l=$B(),c=JY(),A=mc(),u=uwe(),d=MQ(),f=YIe(),h=kyt();function g(p,m,y,C,w,B,x){var M=f(p,y),S=f(m,y),R=x.get(S);if(R){e(p,y,R);return}var b=B?B(M,S,y+"",p,m,x):void 0,T=b===void 0;if(T){var D=o(S),F=!D&&l(S),N=!D&&!F&&d(S);b=S,D||F||N?o(M)?b=M:s(M)?b=n(M):F?(T=!1,b=t(S,!0)):N?(T=!1,b=r(S,!0)):b=[]:u(S)||i(S)?(b=M,i(M)?b=h(M):(!A(M)||c(M))&&(b=a(S))):T=!1}T&&(x.set(S,b),w(b,S,C,B,x),x.delete(S)),e(p,y,b)}return pO=g,pO}var vO,wse;function Oyt(){if(wse)return vO;wse=1;var e=QQ(),t=LIe(),r=Ove(),n=Pyt(),a=mc(),i=Ny(),o=YIe();function s(l,c,A,u,d){l!==c&&r(c,function(f,h){if(d||(d=new e),a(f))n(l,c,h,A,s,u,d);else{var g=u?u(o(l,h),f,h+"",l,c,d):void 0;g===void 0&&(g=f),t(l,h,g)}},i)}return vO=s,vO}var mO,Bse;function UIe(){if(Bse)return mO;Bse=1;var e=Oxe(),t=jxe();function r(n){return e(function(a,i){var o=-1,s=i.length,l=s>1?i[s-1]:void 0,c=s>2?i[2]:void 0;for(l=n.length>3&&typeof l=="function"?(s--,l):void 0,c&&t(i[0],i[1],c)&&(l=s<3?void 0:l,s=1),a=Object(a);++o<s;){var A=i[o];A&&n(a,A,o,l)}return a})}return mO=r,mO}var EO,xse;function jyt(){if(xse)return EO;xse=1;var e=Oyt(),t=UIe(),r=t(function(n,a,i){e(n,a,i)});return EO=r,EO}var zyt=jyt();const Lyt=gn(zyt),Yyt=[{title:"Code",dataKey:"code",width:100},{title:"Texte",dataKey:"texte",minWidth:500},{title:"DMS",dataKey:"dms",width:80,dataGetter:({rowData:e})=>e.dms[0]==="+"?e.dms.substring(1):e.dms}],{TextArea:Uyt}=jt,{confirm:Hyt}=gi,{Search:Gyt}=jt,HIe=({tableParams:e,record:t})=>{const r=ut(x=>x.cti.components.tables.data.lists.GHM),n=ut(x=>x.cti.components.tables.data.combos),[a,i]=E.useState(""),[o,s]=E.useState(!1),[l,c]=E.useState(!1),[A,u]=E.useState(null),[d,f]=E.useState([]);E.useEffect(()=>{if(t!==null&&r){let x=r.map(M=>({...M,label:M.texte}));t.dms&&(x=h(t,x)),f(w(x,o))}},[t,r,a,o]);function h(x,M){const S=x.dms.split(";").map((R,b)=>{const T=R.split("=");return{key:`${T[0]}-${b}`,oid:T[0],dms:T[1]}});return Nyt(M,function(R){return Lyt({...R},Dyt(S,{oid:R.oid}))})}const g=()=>Hyt({title:"Confirmez-vous l'effacement des DMS ?",icon:v.jsx(Ey,{}),maskClosable:!0,okText:"Oui",okType:"danger",cancelText:"Non",onOk(){console.log(t)},onCancel(){console.log("Cancel")}}),p=x=>{i(x.target.value)},m=x=>{u(d.find(M=>M.key===x))},y=x=>{c(x)},C=x=>g();function w(x,M=!1){let S=ym(x,a,["code","texte"]);return M&&(S=S.filter(R=>Number(R.dms)!==0)),S}const B=x=>x.map(M=>({width:300,key:M.dataKey,dataIndex:M.dataKey,ellipsis:!0,...M}));return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"top-editor",children:[v.jsx("div",{className:"tables-common-fields-dms",children:wc(e.fields,t,n)}),v.jsxs("div",{className:"dms-button",children:[v.jsx(yt,{icon:v.jsx(em,{}),onClick:()=>y(!0),disabled:!(t.key===0&&t.dms.trim()===""),style:{marginRight:"3px"},children:"Ajouter DMS"}),v.jsx(yt,{icon:v.jsx(yQ,{}),onClick:()=>C(),disabled:!(t.key===0&&t.dms.trim()===""),children:"Effacer DMS"})]}),v.jsxs("div",{className:"dms-search",children:[v.jsx("div",{className:"dms-search-child",children:v.jsx(Gyt,{style:{height:"24px"},value:a,onChange:p,placeholder:"Rechercher"})}),v.jsxs("div",{className:"dms-search-child",children:[v.jsx("span",{className:"child-label",children:"DMS renseignées uniquement"}),v.jsx(jH,{checked:o,onChange:x=>s(x.target.checked)})]})]})]}),v.jsxs("div",{className:"dms-editor",children:[v.jsx("div",{className:"dms-top-table",children:v.jsx(Hn,{fixed:!1,columns:B(Yyt),data:d,selectedRow:A,onRowSelect:m})}),v.jsx(gi,{title:"Ajout DMS",open:l,okText:"Enregistrer",cancelText:"Annuler",onCancel:()=>y(!1),children:v.jsx(Uyt,{})},"add-modal")]})]})};HIe.propTypes={tableParams:W.object,record:W.object};const JH=({record:e,handleUpdateRecord:t,typeOfRegles:r})=>{const n=ut(p=>p.cti.components.tables.data.combos),a=ut(p=>p.cti.components.reports.data.indicators),i=ut(p=>p.cti.content.moduleId),[o,s]=E.useState(!1),[l,c]=E.useState(null),A=wn();E.useEffect(()=>{A(Kv(i))},[A,i]);const u=E.useMemo(()=>r==="event-regle-cti"?{title:"Règles CTI",data:["01","02","03"]}:{title:"Indicateurs Etablissement",data:["51","52","53"]},[r]),d=E.useMemo(()=>n.CONDITIONS.map(p=>({...p,key:p.value,children:p.children.map(m=>({...m,key:m.value,children:m?.children?.map(y=>({...y,key:y.value}))}))})),[n.CONDITIONS]),f=p=>{const m={...e,[`ei_${l}_id`]:p.oid};t(m),c(null),s(!1)},h=p=>{s(!0),c(p)},g=E.useCallback(p=>{const m=["1","2","3","4"];return p.data.map((y,C)=>v.jsxs("div",{className:"common-form-item",style:{alignItems:"flex-start"},children:[v.jsx("span",{className:"item-label",children:C===0?p.title:"ou"}),v.jsxs("div",{className:"evt-indicator-row",style:{alignItems:"flex-start"},children:[v.jsxs("div",{className:"evt-indicator",children:[v.jsx(jt,{style:{height:28},disabled:!0,value:a.indicators.find(w=>w.oid===e[`ei_${y}_id`])?.entete??""}),v.jsx(yt,{type:"primary",onClick:()=>h(y),children:"Ajouter"})]}),v.jsx("div",{className:"evt-conditions",children:m.map(w=>v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:w==="1"?"Conditions":"et"}),v.jsx(We.Item,{name:`ec_${y}_id_${w}`,children:v.jsx(_i,{treeData:d,style:{width:300}})})]},w))})]})]},y))},[d,a.indicators,e]);return v.jsxs(v.Fragment,{children:[v.jsx(Ld,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:f,handleModifyIndicator:f}),g(u)]})};JH.propTypes={tableParams:W.object,record:W.object,form:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const GIe=({tableParams:e,record:t,handleUpdateRecord:r,softCode:n})=>{const a=ut(u=>u.cti.components.tables.data.combos),i=wn();E.useEffect(()=>{i(HH("SELECT oid, texte, CASE WHEN oid = 0 THEN ' ' || texte ELSE texte END as tri  FROM base.t_territoires_sante  UNION SELECT -1 AS oid, 'Sélectionnez une valeur...' as texte, '  Sélectionnez une valeur...' as tri ORDER BY 3","territoire_de_sante"))},[i]);const[o,s]=E.useState({});E.useEffect(()=>{s(e.lineBlocks[0].lines)},[e]);const l=(u,d,f)=>{r({...t,[f]:u})},c=(u,d)=>{r({...t,[`coefficient_mco_${d}`]:u.target.value})},A=()=>{let u=[];if(o.length){u.push(v.jsxs("div",{children:[v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[0].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[1].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[2].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[3].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[4].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[5].label})}),v.jsx("div",{className:"common-form-item",children:v.jsx("span",{className:"item-label",children:o[6].label})})]},0));for(let d=1;d<=7;d++){const f=parseFloat(t[`${o[1].key}${d}`])===0||!t[`${o[1].key}${d}`]||!t[`${o[0].key}${d}`],h=n==="iCTI_pmsissr"?f||t[`${o[0].key}${d}`].$y===2099:f;u.push(v.jsxs("div",{children:[v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{name:`${o[0].key}${d}`,style:{width:"100%"},children:v.jsx(gB,{name:`${o[0].key}${d}`,format:"DD-MM-YYYY",onChange:(g,p)=>{l(g,p,[`${o[0].key}${d}`])},style:{width:"100%"},dateRender:g=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:g.date()})})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{name:`${o[1].key}${d}`,children:v.jsx(jt,{type:"number",onChange:g=>{c(g,d)},disabled:n==="iCTI_pmsi"?!t[`${o[0].key}${d}`]:!t[`${o[0].key}${d}`]||t[`${o[0].key}${d}`].$y===2099})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{name:`${o[2].key}${d}`,children:v.jsx(jt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{name:`${o[3].key}${d}`,children:v.jsx(jt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{name:`${o[4].key}${d}`,children:v.jsx(jt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{name:`${o[5].key}${d}`,style:{width:"100%"},children:n==="iCTI_pmsi"?v.jsx(gB,{name:`${o[5].key}${d}`,format:"DD-MM-YYYY",onChange:(g,p)=>{l(g,p,[`${o[5].key}${d}`])},style:{width:"100%"},dateRender:g=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:g.date()})}):v.jsx(jt,{type:"number",disabled:h})})}),v.jsx("div",{className:"common-form-item",children:v.jsx(We.Item,{name:`${o[6].key}${d}`,children:v.jsx(jt,{type:"number",disabled:n==="iCTI_pmsi"?!t[`${o[5].key}${d}`]:h})})})]},d))}}return u};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Code"}),v.jsx(We.Item,{name:"code",style:{width:"80%"},children:v.jsx(jt,{disabled:!0})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Texte"}),v.jsx(We.Item,{name:"texte",style:{width:"80%"},children:v.jsx(jt,{disabled:!0})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Territoire de santé"}),v.jsx(We.Item,{name:"tersante_id",style:{width:"80%"},children:v.jsx(sn,{options:a.territoire_de_sante,style:{width:"100%"}})})]})]}),n==="iCTI_pmsi"&&v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Coefficient MCO FG11"}),v.jsx(We.Item,{name:"coefficient_mco_simulation_fg11",style:{width:"80%"},children:v.jsx(jt,{type:"number"})})]}),v.jsx(tu,{}),v.jsxs("div",{className:"lines-container",children:[" ",A()]})]})};GIe.propTypes={record:W.object,handleUpdateRecord:W.func,softCode:W.string};const KIe=({tableParams:e,record:t,form:r,handleUpdateRecord:n,handleValuesChange:a})=>{const[i,o]=E.useState([]),[s,l]=E.useState(!1),[c,A]=E.useState([]),u=le.useCallback((f,h)=>{const g={...t,extraData:{...t.extraData,iqv:t.extraData.iqv.map(m=>({...m}))}};let p=g.extraData.iqv.find(m=>m.key===f);p&&(p.note=h),a(),n(g)},[n,t,a]);E.useEffect(()=>{let f=[{key:"code",dataKey:"code",title:"Code",width:200},{key:"text",dataKey:"texte",title:"Texte",width:200}];s&&f.push({key:"note",dataKey:"note",title:"Note",width:200,dataGetter:({rowData:h})=>v.jsx(jt,{value:h.note,onChange:g=>u(h.key,g.target.value)})}),A(f)},[s,u,t]),E.useEffect(()=>{t?.extraData&&o(t.extraData.iqv.map(f=>({...f}))),t.note_with?l(t.note_with):l(!1)},[t]);const d=f=>{l(f.target.checked)};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Code"}),v.jsx(We.Item,{name:"code",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Texte"}),v.jsx(We.Item,{name:"texte",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Note"}),v.jsx(We.Item,{name:"note_with",valuePropName:"checked",style:{width:"100%"},children:v.jsx(un,{onChange:d})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Coefficient"}),v.jsx(We.Item,{name:"note_coefficient",style:{width:"100%"},children:v.jsx(jt,{disabled:!s})})]})]}),v.jsx("div",{className:"indicator-qualite-table",children:v.jsx(Hn,{columns:c,data:i})})]})};KIe.propTypes={tableParams:W.object,record:W.object,form:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const VIe=({form:e})=>{const t=()=>{let r=[];for(let n=1;n<=5;n++){let a=[];for(let i=1;i<=5;i++)a.push(v.jsxs("div",{className:"form-item",children:[i>1&&v.jsx("span",{children:"et"}),v.jsx(We.Item,{shouldUpdate:!0,children:o=>{const s=o.getFieldValue();let l=!1;return n===1&&i===1?l=!1:n>1&&i===1?l=s[`rule_array_0${n-1}_01`]==="":l=s[`rule_array_0${n}_0${i-1}`]==="",v.jsx(We.Item,{name:`rule_array_0${n}_0${i}`,children:v.jsx(jt,{disabled:l})})}})]}));r.push(v.jsxs("div",{className:"form-row",children:[v.jsx("span",{className:"item-label",children:`Règle ${n}`}),a]}))}return r};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Code"}),v.jsx(We.Item,{name:"code",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Texte"}),v.jsx(We.Item,{name:"texte",style:{width:"100%"},children:v.jsx(jt,{})})]})]}),t()]})};VIe.propTypes={form:W.object};const Kyt=[{title:"Médecins administratifs associés",dataKey:"nom_adm"},{title:"Module",dataKey:"module"}],Vyt=[{title:"Médecins administratifs non associés",dataKey:"nom_adm"},{title:"Déjà associé à",dataKey:"nom_ref"},{title:"Module",dataKey:"module"}],JIe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=E.useState(""),[o,s]=E.useState([]),[l,c]=E.useState([]),[A,u]=E.useState([]),[d,f]=E.useState(null),[h,g]=E.useState(null),p=ut(R=>R.cti.components.tables.data.lists.MDA),m=ut(R=>R.cti.components.tables.data.combos);E.useEffect(()=>{if(t!==null&&t.medecins_regroupes_oids){i(t.nom);const R=t.medecins_regroupes_oids.split(",");if(c(R),R.length&&p){let b=[];R.forEach(T=>{let D=p.find(F=>F.oid===T);D&&b.push(D)}),s(b)}p&&u(B(p))}else i(""),s([])},[t,p]),E.useEffect(()=>{p&&u(B(p))},[a,l]);const y=R=>{i(R.target.value)},C=R=>{f(o.find(b=>b.key===R))},w=R=>{g(A.find(b=>b.key===R))};function B(R){let b=[...R];return b=b.filter(T=>(T.nom_adm.toLowerCase().includes(a.toLocaleLowerCase())||T.nom_ref.toLowerCase().includes(a.toLocaleLowerCase()))&&!l.includes(T.oid)),b}const x=()=>{let R={...t},b=t.medecins_regroupes_oids.split(",");b=b.filter(T=>T!==d.oid),R.medecins_regroupes_oids=b.join(","),r(R),n(),f(null)},M=()=>{let R={...t},b=t.medecins_regroupes_oids.split(",");b.push(h.oid),R.medecins_regroupes_oids=b.join(","),r(R),n(),g(null)},S=R=>R.map(b=>({width:300,key:b.dataKey,dataIndex:b.dataKey,ellipsis:!0,...b}));return v.jsxs("div",{className:"med-editor",children:[v.jsx("div",{className:"tables-column",children:wc(e.fields,t,m)}),v.jsxs("div",{className:"tables-column",children:[v.jsx("div",{className:"med-top-table",children:v.jsx(Hn,{fixed:!1,columns:S(Kyt),data:o,selectedRow:d,onRowSelect:C})}),v.jsxs("div",{className:"med-actions",children:[v.jsx(yt,{type:"link",style:{lineHeight:"28px"},disabled:!d,onClick:x,children:v.jsx(yQ,{})}),v.jsx(yt,{type:"link",style:{lineHeight:"28px"},disabled:!h,onClick:M,children:v.jsx(em,{})}),v.jsx("span",{style:{paddingLeft:"12px",paddingRight:"8px"},children:"Recherche"}),v.jsx(jt,{style:{height:"24px"},value:a,onChange:y})]}),v.jsx("div",{className:"med-bottom-table",children:v.jsx(Hn,{fixed:!1,columns:S(Vyt),data:A,selectedRow:h,onRowSelect:w})})]})]})};JIe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const Jyt=[{title:"Médecins regroupés",width:100,flexGrow:2,dataKey:"texte"}],Wyt=[{title:"Médecins à regrouper",width:100,flexGrow:2,dataKey:"texte",dataGetter:({columns:e,column:t,columnIndex:r,rowData:n,rowIndex:a})=>n.texte}],WIe=({record:e,form:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=E.useState(""),[o,s]=E.useState([]),[l,c]=E.useState(),[A,u]=E.useState(),d=ut(m=>m.cti.components.tables.data.combos),f=ut(m=>m.cti.components.tables.data.lists),h=ut(m=>m.cti.components.tables.data.records);E.useEffect(()=>{e.nom&&i(e.nom.substring(0,3));let m=[];if(e.medecins_regroupes_oids&&f.MEDA.length){const y=e.medecins_regroupes_oids.split(", ").map(C=>C.trim());m=[...m,...y]}if(f.MEDA&&f.MEDA.length){const y=f.MEDA.filter(C=>m.indexOf(C.oid)>=0);s(y)}},[e,f,h]);const g=()=>{let m=e.medecins_regroupes_oids?e.medecins_regroupes_oids+", "+l.oid:l.oid;r({...e,medecins_regroupes_oids:m}),c(null),n()},p=()=>{let m=e.medecins_regroupes_oids.split(", ").filter(y=>y!==A.oid).join(", ");r({...e,medecins_regroupes_oids:m}),u(null),n()};return v.jsxs("div",{className:"meda-editor",children:[v.jsxs("div",{className:"form-column",style:{width:"30%",justifyContent:"flex-start"},children:[v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Code"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(We.Item,{name:"code",children:v.jsx(jt,{disabled:!0})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Nom"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(We.Item,{name:"nom",children:v.jsx(jt,{})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Prénom"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(We.Item,{name:"prenom",children:v.jsx(jt,{})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Spécialité officielle"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(We.Item,{name:"specialite",children:v.jsx(jt,{disabled:!0})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Médecin référence"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(We.Item,{name:"medecin_reference",children:v.jsx(jt,{disabled:!0})})})]}),v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"first-label",children:"Spécialité interne"}),v.jsx("div",{className:"form-meda-item",style:{flex:3},children:v.jsx(We.Item,{name:"specialite_interne_id",children:v.jsx(sn,{options:d.SPI,style:{width:"100%"}})})})]})]}),e.medecin_reference_id==="0"&&v.jsxs("div",{className:"form-column meda-tables",style:{flex:3},children:[v.jsx("div",{className:"meda-top-table",children:v.jsx(Hn,{data:o,columns:Jyt,selectedRow:A,onRowSelect:m=>u(h.find(y=>y.key===m))})}),v.jsxs("div",{className:"meda-actions",children:[v.jsx(yt,{onClick:g,children:v.jsx(Whe,{})}),v.jsx(yt,{style:{marginLeft:8,marginRight:8},onClick:p,children:v.jsx(IDe,{})}),v.jsx(jt,{placeholder:"Recherche",value:a,onChange:m=>i(m.target.value)})]}),v.jsx("div",{className:"meda-bottom-table",children:v.jsx(Hn,{data:f.MEDA.filter(m=>m.texte.includes(a)),columns:Wyt,selectedRow:l,onRowSelect:m=>c(f.MEDA.find(y=>y.key===m))})})]})]})};WIe.propTypes={record:W.object,form:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};var yO,Mse;function Xyt(){if(Mse)return yO;Mse=1;var e=Lve(),t=tx(),r=ZB(),n=Ps(),a=jg(),i=$B(),o=IQ(),s=MQ(),l="[object Map]",c="[object Set]",A=Object.prototype,u=A.hasOwnProperty;function d(f){if(f==null)return!0;if(a(f)&&(n(f)||typeof f=="string"||typeof f.splice=="function"||i(f)||s(f)||r(f)))return!f.length;var h=t(f);if(h==l||h==c)return!f.size;if(o(f))return!e(f).length;for(var g in f)if(u.call(f,g))return!1;return!0}return yO=d,yO}var qyt=Xyt();const Yx=gn(qyt),Vv=({value:e,handleUpdate:t,column:r,recordKey:n,rowKey:a,type:i,selectValues:o})=>{const[s,l]=E.useState(!1),[c,A]=E.useState(""),u=E.useRef();E.useEffect(()=>{A(e)},[e,n]),E.useEffect(()=>{s&&u.current.focus()},[s]);const d=()=>{l(!s)},f=m=>{A(m.target.value)},h=()=>{l(!1),c!==e&&t(r.key,c,a)},g=m=>{let y=m.target.checked?"1":"0";y!==e&&t(r.key,y,a)},p=m=>{m!==e&&t(r.key,m,a)};switch(i){case"checkbox":let m=e==="1";return v.jsx(un,{checked:m,onChange:y=>g(y)});case"input":return s?v.jsx(jt,{ref:u,style:{marginLeft:"6px",width:"90%"},value:c,onChange:f,onBlur:h}):v.jsx("div",{className:"editable-field",onClick:d,children:c});case"select":return v.jsx(sn,{value:e,options:o,style:{width:250},showSearch:!0,onChange:p})}};Vv.propTypes={initialText:W.string,handleUpdate:W.func,field:W.string,rowKey:W.number,type:W.string};const Zyt=[{title:"Date",dataKey:"date"},{title:"Étage",dataKey:"oid",width:300}],XIe=({record:e,handleUpdateRecord:t,handleValuesChange:r,selectValues:n})=>{const[a,i]=E.useState([]),o=E.useRef();o.current=e,E.useEffect(()=>{!Yx(e)&&e.extraData.etages&&i(e.extraData.etages.map(A=>({...A})))},[e]);const s=A=>A.map(u=>({width:120,key:u.dataKey,dataIndex:u.dataKey,ellipsis:!0,...u,cellRenderer:({cellData:d,column:f,rowData:h,rowIndex:g})=>f.key==="oid"?v.jsx(Vv,{value:d,handleUpdate:c,column:f,rowKey:g,type:"select",selectValues:n.ETAGE}):v.jsx(Vv,{value:d,handleUpdate:c,column:f,field:f.key,rowKey:g,type:"input"})})),l=()=>{let A={key:e.extraData.etages.length,date:ei().format("DD/MM/YYYY"),date_debut:ei().format("DD/MM/YYYY"),oid:"0"},u={...e};u.extraData={...e.extraData};let d=u.extraData.etages.map(f=>({...f}));u.extraData.etages=d,u.extraData.etages.push(A),t(u),r()},c=(A,u,d)=>{let f={...o.current};f.extraData={...f.extraData};let h=f.extraData.etages.map(y=>({...y})),g=h.find(y=>y.key===d);g&&(g[A]=u,f.extraData.etages=h,t(f),r());let p=[...a],m=p.find(y=>y.key===d);m&&(m[A]=u,i(p))};return v.jsxs(v.Fragment,{children:[v.jsx(yt,{type:"primary",onClick:l,children:"Ajouter"}),v.jsx(Hn,{columns:s(Zyt),data:a})]})};XIe.propTypes={record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const qIe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const a=ut(f=>f.cti.components.tables.data.combos),i=ut(f=>f.cti.components.reports.data.indicators),[o,s]=E.useState(!1),[l,c]=E.useState(),A=wn();E.useEffect(()=>{e.module&&A(Kv(`iCTI_${e.module}`))},[A,e]);const u=f=>{const h={...t,[`ei_${l}_id`]:f.oid};r(h),n(),c(null),s(!1)},d=f=>{s(!0),c(f)};return v.jsxs(v.Fragment,{children:[v.jsx(Ld,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:u,handleModifyIndicator:u}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Indicateurs CTI"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(jt,{style:{height:28},disabled:!0,value:i.indicators.find(f=>f.oid===t.ei_01_id)?.entete??""}),v.jsx(yt,{type:"primary",onClick:()=>d("01"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(We.Item,{name:"ec_01_id_1",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(We.Item,{name:"ec_01_id_2",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(We.Item,{name:"ef_01",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(We.Item,{name:"et_01",style:{width:"100%"},children:v.jsx(sn,{options:iu[`CXP_item_${e.module}`]})})]})]})};qIe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const ZIe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const a=ut(f=>f.cti.components.tables.data.combos),i=ut(f=>f.cti.components.reports.data.indicators),[o,s]=E.useState(!1),[l,c]=E.useState(),A=wn();E.useEffect(()=>{e.module&&A(Kv(`iCTI_${e.module}`))},[A,e]);const u=f=>{const h={...t,[`ei_${l}_id`]:f.oid};r(h),n(),c(null),s(!1)},d=f=>{s(!0),c(f)};return v.jsxs(v.Fragment,{children:[v.jsx(Ld,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:u,handleModifyIndicator:u}),v.jsxs("div",{style:{height:"800px"},children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Indicateur établissement"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(jt,{style:{height:28},disabled:!0,value:i.indicators.find(f=>f.oid===t.ei_51_id)?.entete??""}),v.jsx(yt,{type:"primary",onClick:()=>d("51"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(We.Item,{name:"ec_51_id_1",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(We.Item,{name:"ec_51_id_2",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(We.Item,{name:"ef_51",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(We.Item,{name:"et_51",style:{width:"100%"},children:v.jsx(sn,{options:iu[`CXP_item_${e.module}`]})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Ou"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(jt,{style:{height:28},disabled:!0,value:i.indicators.find(f=>f.oid===t.ei_52_id)?.entete??""}),v.jsx(yt,{type:"primary",onClick:()=>d("52"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(We.Item,{name:"ec_52_id_1",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(We.Item,{name:"ec_52_id_2",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(We.Item,{name:"ef_52",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(We.Item,{name:"et_52",style:{width:"100%"},children:v.jsx(sn,{options:iu[`CXP_item_${e.module}`]})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Ou"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(jt,{style:{height:28},disabled:!0,value:i.indicators.find(f=>f.oid===t.ei_53_id)?.entete??""}),v.jsx(yt,{type:"primary",onClick:()=>d("53"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(We.Item,{name:"ec_53_id_1",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(We.Item,{name:"ec_53_id_2",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(We.Item,{name:"ef_53",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(We.Item,{name:"et_53",style:{width:"100%"},children:v.jsx(sn,{options:iu[`CXP_item_${e.module}`]})})]})]})]})};ZIe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const $Ie=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const a=ut(f=>f.cti.components.tables.data.combos),i=ut(f=>f.cti.components.reports.data.indicators),[o,s]=E.useState(!1),[l,c]=E.useState(),A=wn();E.useEffect(()=>{e.module&&A(Kv(`iCTI_${e.module}`))},[A,e]);const u=f=>{const h={...t,[`ei_${l}_id`]:f.oid};r(h),n(),c(null),s(!1)},d=f=>{s(!0),c(f)};return v.jsxs(v.Fragment,{children:[v.jsx(Ld,{showModal:o,handleShowModal:()=>s(!1),options:{oneOnly:!0},handleAddIndicators:u,handleModifyIndicator:u}),v.jsxs("div",{style:{height:"600px"},children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Autre indicateur CTI"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(jt,{style:{height:28},disabled:!0,value:i.indicators.find(f=>f.oid===t.ei_02_id)?.entete??""}),v.jsx(yt,{type:"primary",onClick:()=>d("02"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(We.Item,{name:"ec_02_id_1",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(We.Item,{name:"ec_02_id_2",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(We.Item,{name:"ef_02",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(We.Item,{name:"et_02",style:{width:"100%"},children:v.jsx(sn,{options:iu[`CXP_item_${e.module}`]})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Ou"}),v.jsx("div",{className:"evt-indicator-row",children:v.jsxs("div",{className:"evt-indicator",children:[v.jsx(jt,{style:{height:28},disabled:!0,value:i.indicators.find(f=>f.oid===t.ei_03_id)?.entete??""}),v.jsx(yt,{type:"primary",onClick:()=>d("03"),children:"Ajouter"})]})}),v.jsxs("div",{className:"evt-conditions",children:[v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"Conditions"}),v.jsx(We.Item,{name:"ec_03_id_1",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]}),v.jsxs("div",{className:"evt-condition",children:[v.jsx("span",{className:"condition-label",children:"et"}),v.jsx(We.Item,{name:"ec_03_id_2",children:v.jsx(_i,{treeData:a.CONDITIONS,style:{width:300}})})]})]})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Formule"}),v.jsx(We.Item,{name:"ef_03",style:{width:"100%"},children:v.jsx(jt,{})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",style:{minWidth:200},children:"Niveau de détail"}),v.jsx(We.Item,{name:"et_03",style:{width:"100%"},children:v.jsx(sn,{options:iu[`CXP_item_${e.module}`]})})]})]})]})};$Ie.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const $yt=[{title:"Lit",dataKey:"code"},{title:"CP",dataKey:"chambre_particuliere",width:50}],ebe=({record:e,handleUpdateRecord:t,handleValuesChange:r})=>{const[n,a]=E.useState([]),i=E.useRef();i.current=e,E.useEffect(()=>{!Yx(e)&&e.extraData.lits&&a(e.extraData.lits.map(l=>({...l})))},[e]);const o=l=>l.map(c=>({width:120,key:c.dataKey,dataIndex:c.dataKey,ellipsis:!0,...c,cellRenderer:({cellData:A,column:u,rowData:d,rowIndex:f})=>u.key==="chambre_particuliere"?v.jsx(Vv,{value:d[u.key],handleUpdate:s,column:u,recordKey:u.key,rowKey:f,type:"checkbox"}):v.jsx(Vv,{value:A,handleUpdate:s,column:u,recordKey:u.key,rowKey:f,type:"input"})})),s=(l,c,A)=>{let u={...i.current};u.extraData={...u.extraData};let d=u.extraData.lits.map(p=>({...p})),f=d.find(p=>p.key===A);f&&(f[l]=c,u.extraData.lits=d,t(u),r());let h=[...n],g=h.find(p=>p.key===A);g&&(g[l]=c,a(h))};return v.jsx(v.Fragment,{children:v.jsx(Hn,{columns:o($yt),data:n})})};ebe.propTypes={record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const e1t=[{title:"Supprimer",dataKey:"action"},{title:"Date",dataKey:"date"},{title:"Lits théoriques",dataKey:"nb_lits_theoriques"},{title:"Lits ouverts",dataKey:"nb_lits_ouverts"},{title:"Box A théoriques",dataKey:"nb_box_ambulatoires_theoriques"},{title:"Box A ouverts",dataKey:"nb_box_ambulatoires_ouverts"},{title:"Box S théoriques",dataKey:"nb_box_seances_theoriques"},{title:"Box S ouverts",dataKey:"nb_box_seances_ouverts"},{title:"C.P. théoriques",dataKey:"nb_lits_cp_theoriques"},{title:"C.P. ouvertes",dataKey:"nb_lits_cp_ouverts"},{title:"L",dataKey:"est_ouvert_1",width:50},{title:"M",dataKey:"est_ouvert_2",width:50},{title:"M",dataKey:"est_ouvert_3",width:50},{title:"J",dataKey:"est_ouvert_4",width:50},{title:"V",dataKey:"est_ouvert_5",width:50},{title:"S",dataKey:"est_ouvert_6",width:50},{title:"D",dataKey:"est_ouvert_7",width:50}],tbe=({record:e,handleUpdateRecord:t,handleValuesChange:r})=>{const[n,a]=E.useState([]),i=E.useRef();i.current=e,E.useEffect(()=>{!Yx(e)&&e.extraData.histos&&a(e.extraData.histos.map(A=>({...A})))},[e]);const o=(A,u,d)=>{let f={...i.current};f.extraData={...f.extraData};let h=f.extraData.histos.map(y=>({...y})),g=h.find(y=>y.key===d);g&&(g[A]=u,f.extraData.histos=h,t(f),r());let p=[...n],m=p.find(y=>y.key===d);m&&(m[A]=u,a(p))},s=A=>{let u={...i.current};u.extraData={...u.extraData};let d=u.extraData.histos.map(h=>({...h})),f=d.findIndex(h=>h.key===A);f>-1&&(d.splice(f,1),u.extraData.histos=d,t(u),r())},l=A=>A.map(u=>({width:120,key:u.dataKey,dataIndex:u.dataKey,ellipsis:!0,...u,cellRenderer:({cellData:d,column:f,rowData:h,rowIndex:g})=>f.key.startsWith("est_ouvert")?v.jsx(Vv,{value:d,handleUpdate:o,column:f,rowKey:g,type:"checkbox"}):f.key==="action"?v.jsx(yt,{onClick:()=>s(g),children:v.jsx(ki,{})}):v.jsx(Vv,{value:d,handleUpdate:o,column:f,field:f.key,rowKey:g,type:"input"})})),c=()=>{let A={key:0,date:ei().format("DD/MM/YYYY"),nb_lits_theoriques:"0",nb_lits_ouverts:"0",nb_box_ambulatoires_theoriques:"0",nb_box_ambulatoires_ouverts:"0",nb_box_seances_theoriques:"0",nb_box_seances_ouverts:"0",est_ouvert_1:"1",est_ouvert_2:"1",est_ouvert_3:"1",est_ouvert_4:"1",est_ouvert_5:"1",est_ouvert_6:"1",est_ouvert_7:"1"},u={...e};u.extraData={...e.extraData};let d=u.extraData.histos.map(f=>({key:f.key++,...f}));u.extraData.histos=d,u.extraData.histos.unshift(A),t(u),r()};return v.jsxs(v.Fragment,{children:[v.jsx(yt,{type:"primary",onClick:c,style:{marginBottom:"8px"},children:"Ajouter"}),v.jsx(Hn,{fixed:!1,columns:l(e1t),data:n})]})};tbe.propTypes={record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const t1t=[{title:"Date début",dataKey:"dd"},{title:"Date fin",dataKey:"df"},{title:"Borne basse",dataKey:"bb"},{title:"Borne haute",dataKey:"bh"},{title:"Dms nationale",dataKey:"dm"},{title:"Tarif GHS",dataKey:"tg"},{title:"Forfait EXB",dataKey:"fb"},{title:"Tarif EXB",dataKey:"tb"},{title:"Tarif EXH",dataKey:"tx"}],IL=({record:e,typeEts:t})=>{let r=t==="public"?"pp":"pr",n=Object.keys(e).filter(s=>s.includes(r)),a={};n.forEach(s=>a[s]=e[s]);let i={};Object.keys(a).forEach(s=>{let l=parseInt(s.slice(-1));i[l]=i[l]?i[l]:{key:l},i[l][s.slice(0,-3)]=a[s]});const o=s=>s.map(l=>({width:120,key:l.dataKey,dataIndex:l.dataKey,ellipsis:!0,...l}));return v.jsx(v.Fragment,{children:v.jsx(Hn,{fixed:!1,columns:o(t1t),data:zf(Object.values(i),"dd","desc")})})};IL.propTypes={record:W.object,typeEts:W.string};const r1t={SER_type_t2a_provider:[{label:"Pas de sélection",value:"0"},{label:"PMSI MCO",value:"1"},{label:"PMSI SMR",value:"2"},{label:"PMSI PSY",value:"3"},{label:"PMSI HAD",value:"4"}],OPTADM_DAYOUT_PROVIDER:[{label:"Jour de sortie non inclus sauf hospits avec DE=DS",value:"0"},{label:"Jour de sortie non inclus",value:"1"},{label:"Jour de sortie inclus",value:"2"}],SER_TYPE_SEJOUR_PROVIDER:[{label:"Selon mode de traitement et séjour",value:"0"},{label:"Selon mode de traitement et séjour (sauf séance)",value:"0sauf5"},{label:"Hospitalisé",value:"1"},{label:"Ambulatoire",value:"2"},{label:"Externe",value:"3"},{label:"Externe si durée <= 1n, Hospitalisé sinon)",value:"31"},{label:"Séance",value:"5"},{label:"Bébé",value:"6"},{label:"Ignorer ce service",value:"9"}],SER_est_sans_facturation_provider:[{label:"Avec facturation",value:"0"},{label:"Sans facturation",value:"1"},{label:"Facturation facultative si budget global expédié MAT2A",value:"2"}]},rbe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const[a,i]=E.useState([]),o=ut(c=>c.cti.components.tables.data.combos),s=Object.assign(o,r1t,iu);E.useEffect(()=>{e&&i(e.fields)},[e]);const l=c=>{let A={};return e.tabs.forEach(u=>{A[u.key]={...u,children:[]}}),c.forEach(u=>{A[u.tab].children.push(u)}),Object.values(A).map((u,d)=>{const f=h=>h.children.map((p,m)=>{switch(p.type){case"histos":return v.jsx(tbe,{record:t,handleUpdateRecord:r,handleValuesChange:n},m);case"lits":return v.jsx(ebe,{record:t,handleUpdateRecord:r,handleValuesChange:n},m);case"etages":return v.jsx(XIe,{record:t,handleUpdateRecord:r,handleValuesChange:n,selectValues:s},m);case"cti-constantes":return v.jsx(VH,{record:t,handleUpdateRecord:r,tableParams:e,typeOnly:!0});case"cxp-regle-cti":return v.jsx(qIe,{record:t,handleUpdateRecord:r,handleValuesChange:n,tableParams:e,typeOnly:!0});case"cxp-autre-cti":return v.jsx($Ie,{record:t,handleUpdateRecord:r,handleValuesChange:n,tableParams:e,typeOnly:!0});case"cxp-ets":return v.jsx(ZIe,{record:t,handleUpdateRecord:r,handleValuesChange:n,tableParams:e,typeOnly:!0});case"tarifs_prive_ghs":return v.jsx(IL,{record:t,typeEts:"prive"},m);case"tarifs_public_ghs":return v.jsx(IL,{record:t,typeEts:"public"},m);case"event-regle-cti":case"event-regle-spe":return v.jsx(JH,{record:t,handleUpdateRecord:r,typeOfRegles:p.type},m);default:return _Ie(p,m,t,s)}});return{label:v.jsx("span",{children:u.label}),key:d,className:"tables-tab-panes",children:f(u)}})};return Yx(t)?null:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:wc(e.fields.filter(c=>!c.tab),"",s)}),v.jsx("div",{className:"tables-tab-fields",children:v.jsx(Oi,{shouldUpdate:!0,items:l(e.fields.filter(c=>c.tab))})})]})};rbe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const n1t={selectOptions:[{label:"Nombre",value:"0"},{label:"Base",value:"1"},{label:"Tx. salarial",value:"2"},{label:"Mt. salarial",value:"3"},{label:"Tx. patronal",value:"4"},{label:"Mt. patronal",value:"5"},{label:"Mt. +sal. +pat.",value:"6"},{label:"Mt. +sal. -pat.",value:"7"},{label:"Mt. -sal. +pat.",value:"8"}]},nbe=({index:e,rubrique:t,field:r,handleUpdateRubrique:n})=>{const[a,i]=E.useState(null);E.useEffect(()=>{i(!t.pVal)},[t]);const o=ut(l=>l.cti.components.tables.data.combos),s=Object.assign(o,n1t);return v.jsxs("div",{className:"rubrique",children:[v.jsxs("div",{className:"rubrique-header",children:[v.jsx("span",{className:"item-label",children:r.title}),v.jsx(We.Item,{name:t.pKey,valuePropName:"checked",extra:r.detail,children:v.jsx(un,{onChange:l=>n(l.target)})})]}),v.jsxs("div",{className:"rubrique-fields",children:[v.jsx(We.Item,{name:t.sKey,children:v.jsx(sn,{disabled:a,options:s.selectOptions,showSearch:!0,style:{width:"100%"}})}),v.jsx(We.Item,{name:t.cKey,children:v.jsx(jt,{disabled:a})})]})]},e)};nbe.propTypes={index:W.number,rubrique:W.object,field:W.object,handleUpdateRubrique:W.func};const abe=({record:e,fields:t,handleGetFieldValue:r,handleUpdateRecord:n})=>{const a=ut(A=>A.cti.components.tables.data.combos),i=ut(A=>A.cti.components.tables.data.divers),o=A=>{let u=A.id,d={...e},f=A.checked===!0?"X":"";d[u]=f,n(d)},s=(A,u)=>{if(A.editVisible===!1)return null;{const d=A.dataKey?A.dataKey:A.key,f=d.replace("p","c"),h=d.replace("p","s"),g={pKey:d,pVal:r(d),cKey:f,cVal:r(f),sKey:h,sVal:r(h)};return v.jsx(nbe,{index:u,field:A,rubrique:g,handleUpdateRubrique:o,handleGetFieldValue:r},u+d)}};if(Yx(e))return null;const l=i.rubriques.valeur,c=t[l].filter(A=>A.isSC);return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:wc(t[l],"",a)}),v.jsx("div",{className:"tables-rubriques-fields",children:c.map((A,u)=>s(A,u))})]})};abe.propTypes={record:W.object,fields:W.object,handleGetFieldValue:W.func,handleUpdateRecord:W.func};const ibe=({tableParams:e,record:t})=>{const r=ut(a=>a.cti.components.tables.data.combos),n=()=>{let a=Object.keys(t).filter(o=>o.startsWith("cc")&&t[o]!==""),i=Object.keys(t).filter(o=>o.startsWith("ct")&&t[o]!=="");return a.map((o,s)=>v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:t[o]}),v.jsx(We.Item,{name:i[s],className:"title-input",style:{width:"100%"},children:v.jsx(jt,{})})]},o))};return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:wc(e.fields.filter(a=>!a.tab),"",r)}),v.jsx("div",{className:"tables-chapter-fields",children:n()})]})};ibe.propTypes={tableParams:W.object,record:W.object};const obe=({tableParams:e,record:t})=>{const[r,n]=E.useState([]),[a,i]=E.useState(!1),[o,s]=E.useState([]),[l,c]=E.useState(!1),[A,u]=E.useState(0),d=ut(w=>w.cti.components.tables.data.combos),f=ut(w=>w.cti.content.moduleId);E.useEffect(()=>{e&&s(e.fields)},[e,f]),E.useEffect(()=>{f==="iCTI_compta"&&(n(h(o)),t[r?.modeSpe]?i(!0):i(!1))},[t]);const h=w=>{const B=w.filter(M=>M.comptaExtraParams==="taux"),x=w.filter(M=>M.comptaExtraParams==="pole");return B.map((M,S)=>({tauxId:M.dataKey,poleId:x[S].dataKey}))},g=w=>{let B=0;return r?.forEach(x=>{B+=Number(w[x.tauxId])}),B},p=w=>{c(!l),t[w.target.id]=w.target.value};E.useEffect(()=>{u(g(t))},[t,p]);const m=w=>{w.target.value&&!a?i(!0):a&&!w.target.value&&i(!1)},y=w=>w.map((B,x)=>B.editVisible===!1?null:{label:v.jsxs("span",{children:[t[B.dataKey]!==""&&v.jsx(xNe,{}),B.title]}),key:x,children:v.jsx(We.Item,{name:B.dataKey,children:v.jsx(jt.TextArea,{})})}),C=w=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Mode spécifique"}),v.jsx(We.Item,{name:"special_calc",onChange:m,children:v.jsx(jt,{})})]}),w&&!a&&v.jsxs("div",{className:"common-form-item",style:{alignItems:"flex-start"},children:[v.jsx("span",{className:"item-label",children:`Pole Total : ${A} %`}),v.jsx("div",{className:"compta-grid",children:w.map(B=>v.jsxs("div",{className:"compta-grid__container",children:[v.jsx(We.Item,{name:B.poleId,children:v.jsx(sn,{options:d.POL})}),v.jsx(We.Item,{shouldUpdate:!0,children:({getFieldValue:x})=>v.jsx(We.Item,{name:B.tauxId,onChange:p,children:v.jsx(jt,{disabled:x(B.poleId)==="0",addonAfter:"%",type:"number"})})})]},B.tauxId))})]})]});return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-common-fields",children:wc(e.fields.filter(w=>!w.tab),"",d)}),f==="iCTI_compta"&&r.length&&v.jsx("div",{className:"tables-common-fields",children:C(r)}),v.jsx("div",{className:"tables-tab-fields",children:v.jsx(Oi,{items:y(e.fields.filter(w=>w.tab))})})]})};obe.propTypes={tableParams:W.object,record:W.object};const sbe=({tableParams:e,form:t})=>{const r=ut(i=>i.cti.components.tables.data.combos),n=ut(i=>i.cti.components.tables.data.combos.SEJ),a=i=>{let o=n.find(l=>l.code===i.target.value),s="?";o&&(s=o.texte),t.setFieldsValue({texte:s})};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"tables-common-fields",children:[v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Numéro"}),v.jsx(We.Item,{style:{width:"100%"},name:"code",children:v.jsx(jt,{onChange:mU(a,500)})})]}),v.jsxs("div",{className:"common-form-item",children:[v.jsx("span",{className:"item-label",children:"Nom"}),v.jsx(We.Item,{style:{width:"100%"},name:"texte",children:v.jsx(jt,{disabled:!0})})]}),wc(e.fields.filter(i=>i.dataKey!=="code"&&i.dataKey!=="texte"),"",{...r,...iu})]})})};sbe.propTypes={tableParams:W.object,form:W.object};const lbe=({tableParams:e,record:t,handleUpdateRecord:r,handleValuesChange:n})=>{const a=wn(),i=e.listName,o=e.listPath,s=ut(F=>F.cti.components.tables.data.lists[i]),l=ut(F=>F.cti.components.tables.data.combos),[c,A]=E.useState(""),[u,d]=E.useState([]),[f,h]=E.useState([]),[g,p]=E.useState([]),[m,y]=E.useState(null),[C,w]=E.useState(null);E.useEffect(()=>{a(HH("SELECT oid, texte, CASE WHEN oid = 0 THEN ' ' || texte ELSE texte END as tri  FROM base.t_territoires_sante  UNION SELECT -1 AS oid, 'Sélectionnez une valeur...' as texte, '  Sélectionnez une valeur...' as tri ORDER BY 3","territoire_de_sante"))},[]),E.useEffect(()=>{if(t!==null&&t[o]){c===""&&A(t.texte);let F=t[o].replace(/\s+/g,"").split(",");if(F=F.map(N=>N),h(F),F.length&&s){let N=[];F.forEach(_=>{let P=s.find(k=>k.oid===_);P&&N.push(P)}),d(N)}if(s){let N=[];s.forEach(_=>{F.find(k=>_.oid===k)||N.push(_)}),p(S(N))}}else d([]),p([]),h([])},[t,s]),E.useEffect(()=>{let F=[];s&&(t!==null&&t[o]&&f?s.forEach(N=>{let _=t[o].replace(/\s+/g,"").split(",");_=_.map(k=>k),_.find(k=>N.oid===k)||F.push(N)}):F=s.map(N=>({...N,label:N.texte})),p(S(F)))},[c,f]);const B=F=>{A(F.target.value)},x=F=>{y(u.find(N=>N.key===F))},M=F=>{w(g.find(N=>N.key===F))},S=F=>{let N=[...F];return c&&(N=N.filter(_=>_.texte.toLowerCase().includes(c.toLocaleLowerCase()))),N},R=()=>{let F={...t},N=t[o].replace(/\s+/g,"").split(",");N=N.filter(_=>_!==m.oid),F[o]=N.join(","),r(F),n(),y(null)},b=()=>{let F={...t},N=t[o].replace(/\s+/g,"").split(",");N.push(C.oid),F[o]=N.join(","),r(F),n(),w(null)},T=[...e.transfertFields],D=F=>F.map(N=>({width:300,key:N.dataKey,dataIndex:N.dataKey,ellipsis:!0,...N}));return v.jsxs("div",{className:"transfer-editor",children:[v.jsx("div",{className:"tables-column",children:wc(e.fields,t,l)}),v.jsxs("div",{className:"tables-column",children:[v.jsx("div",{className:"med-top-table",children:v.jsx(Hn,{fixed:!1,columns:D(T),data:u,selectedRow:m,onRowSelect:x})}),v.jsxs("div",{className:"med-actions",children:[v.jsx(yt,{type:"link",style:{lineHeight:"28px"},disabled:!m,onClick:R,children:v.jsx(yQ,{})}),v.jsx(yt,{type:"link",style:{lineHeight:"28px"},disabled:!C,onClick:b,children:v.jsx(em,{})}),v.jsx("span",{style:{paddingLeft:"12px",paddingRight:"8px"},children:"Recherche"}),v.jsx(jt,{style:{height:"24px"},value:c,onChange:B})]}),v.jsx("div",{className:"med-bottom-table",children:v.jsx(Hn,{fixed:!1,columns:D(T),data:g,selectedRow:C,onRowSelect:M})})]})]})};lbe.propTypes={tableParams:W.object,record:W.object,handleUpdateRecord:W.func,handleValuesChange:W.func};const bL=({tableParams:e,record:t,handleShowEditor:r,swf:n,choice:a})=>{const i=ut(b=>b.cti.settings.data.session),[o,s]=E.useState(null),[l,c]=E.useState(!1),[A,u]=E.useState({}),d=ut(b=>b.cti.content.moduleId),f=ut(b=>b.cti.components.tables.data.records),h=wn(),[g]=We.useForm();E.useEffect(()=>{e&&s(e.component)},[e]),E.useEffect(()=>{if(t){c(!1);const b=UH(t,e,f);g.setFieldsValue(b),u({...b})}},[t,e,f]);const p=t?.nbref&&t?.nbref!=="+0"&&t?.nbref!=="0"||t?.oid==="-1",m=b=>g.getFieldValue(b),y=()=>{c(!0)},C=()=>{const b=f.find(T=>T.key===t.key);u({...b}),g.setFieldsValue(b),c(!1)},w=()=>{c(!1),r()},B=b=>{let T={...b,...g.getFieldsValue()};u(T)},x=(b,T=!0)=>{let D={...A,...g.getFieldsValue()};D=ML(D,e);const F=YH(D);h(kE(n,d,e.tableName,F,D,b,T,a)),c(!1),r()},M=()=>{xMe(e.tableName,t.oid)},S=()=>{const b={oid:A.oid};let T={RECORD:{XMLType:"RECORD",...b}};const D=Au(T,!0);h(kE(n,d,e.tableName,D,b,"delete"))},R=()=>{switch(o){case"common":return v.jsx(KH,{record:A,fields:e.fields});case"rubrique":return v.jsx(abe,{record:A,fields:e.fields,handleGetFieldValue:m,handleUpdateRecord:B});case"onglet":return v.jsx(rbe,{tableParams:e,record:A,handleUpdateRecord:B,handleValuesChange:y});case"rules":return v.jsx(obe,{tableParams:e,record:A});case"finess":return v.jsx(GIe,{tableParams:e,record:A,handleUpdateRecord:B,softCode:d});case"transfert":return v.jsx(lbe,{tableParams:e,record:A,handleUpdateRecord:B,handleValuesChange:y});case"DMS":return v.jsx(HIe,{tableParams:e,record:A});case"MED":return v.jsx(JIe,{tableParams:e,record:A,handleUpdateRecord:B,handleValuesChange:y});case"BUD":return v.jsx(OIe,{tableParams:e,record:A,handleUpdateRecord:B,handleValuesChange:y,form:g,softCode:d});case"BUI_activite":return v.jsx(zIe,{tableParams:e,record:A,handleUpdateRecord:B,handleValuesChange:y});case"AJU":return v.jsx(FIe,{tableParams:e,record:A,handleUpdateRecord:B,handleValuesChange:y,form:g});case"chapter":return v.jsx(ibe,{tableParams:e,record:A});case"sejours":return v.jsx(sbe,{tableParams:e,form:g});case"constantes":return v.jsx(VH,{tableParams:e,record:A,form:g,handleUpdateRecord:B,handleValuesChange:y});case"keyword":return v.jsx(VIe,{form:g});case"evenement":return v.jsx(JH,{tableParams:e,record:A,form:g,handleUpdateRecord:B,handleValuesChange:y});case"indicateur_qualite":return v.jsx(KIe,{tableParams:e,record:A,form:g,handleUpdateRecord:B,handleValuesChange:y});case"MEDA":return v.jsx(WIe,{record:A,form:g,handleUpdateRecord:B,handleValuesChange:y});default:return v.jsx(Ug,{icon:v.jsx(Cy,{}),title:`Désolé cet editeur n'est pas comme les autres... Il est encore en construction (${o}) !`})}};return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-editor-header",children:[v.jsx(yt,{icon:v.jsx(ao,{}),disabled:!l,onClick:C,children:"Annuler"}),e.sqlButton&&i.ISROLECTI&&v.jsx(yt,{icon:v.jsx(my,{}),onClick:M,children:"SQL"}),e.addButton&&v.jsx(Ni,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:S,children:v.jsx(yt,{icon:v.jsx(ki,{}),disabled:p,children:"Supprimer"})}),e.deleteButton&&v.jsx(Ni,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:S,children:v.jsx(yt,{icon:v.jsx(ki,{}),disabled:e?.tableName==="t_ghm_dms"?!(t&&t.dms.trim()===""&&t.key===0):p,children:"Supprimer"})}),e.copyButton&&v.jsx(Ni,{title:"Voulez-vous vraiment copier cette entrée ?",okText:"Copier",cancelText:"Annuler",onConfirm:()=>x("copy"),children:v.jsx(yt,{icon:v.jsx($v,{}),disabled:t&&t.oid==="-1",children:"Copier"})}),v.jsx(yt,{icon:v.jsx(qj,{}),type:"primary",disabled:!l,onClick:()=>x("save"),children:"Enregistrer"}),e.saveWithoutCalc&&v.jsx(yt,{icon:v.jsx(qj,{}),type:"primary",disabled:!l,onClick:()=>x("save",!1),children:"Enregistrer sans recalcul"}),l?v.jsx(Ni,{placement:"topRight",cancelText:"Rester sur l'éditeur",okText:"Retour à la liste",onConfirm:w,title:"Des modifications sont en cours. Etes vous sur de vouloir revenir à la liste ?",children:v.jsx(yt,{type:"link",className:"close-button",children:v.jsx(Go,{})})}):v.jsx(yt,{type:"link",className:"close-button",onClick:w,children:v.jsx(Go,{})})]}),v.jsx("div",{className:"tables-editor-content",children:v.jsx(We,{form:g,onValuesChange:y,style:{maxWidth:"100%"},children:R()})})]})};bL.propTypes={tableParams:W.object,record:W.object,handleShowEditor:W.func,swf:W.string,softCode:W.string,choice:W.string};const cbe=({data:e,handleUpdateDescription:t})=>{const[r,n]=E.useState("");E.useEffect(()=>{n(e)},[e]);const a=i=>{n(i),t(i)};return v.jsx(jt.TextArea,{placeholder:"",size:"middle",value:r,onChange:a})};cbe.propTypes={data:W.string,handleUpdateDescription:W.func};const a1t=[{title:"Code",dataKey:"code",key:"code",width:200},{title:"Texte",dataKey:"texte",key:"texte",width:400,resizable:!0},{title:"Abrégé",dataKey:"texte_abrege",key:"texte_abrege",width:400,resizable:!0},{title:"Complément",dataKey:"complement",key:"complement",width:200,resizable:!0},{title:"Gravité",dataKey:"gravite_texte",key:"gravite_texte",width:200,resizable:!0}],Abe=({tableParams:e,record:t,handleShowEditor:r,swf:n,showRefs:a})=>{const i=ut(N=>N.cti.settings.data.session),[o,s]=E.useState(!1),[l,c]=E.useState({}),[A,u]=E.useState([]),d=ut(N=>N.cti.content.moduleId),f=ut(N=>N.cti.components.tables.data.records),h=ut(N=>N.cti.components.tables.data.refRecords),g=wn(),[p]=We.useForm();E.useEffect(()=>{if(t){s(!1);const N=UH(t,e);p.setFieldsValue(N),c({...N})}},[t,e]);const m=t?.nbref&&t?.nbref!=="+0"&&t?.nbref!=="0"||t?.oid==="-1",y=N=>{let _=t;_.description=N;let P={..._,...p.getFieldsValue()};P=ML(P),c(P),s(!0)},C=()=>{s(!0)},w=()=>{const N=f.find(_=>_.key===t.key);c({...N}),p.setFieldsValue(N),s(!1)},B=()=>{s(!1),r()},x=(N,_=!0)=>{let P={...l,...p.getFieldsValue()};P=ML(P,e);const k=YH(P);g(kE(n,d,e.tableName,k,P,N)),s(!1)},M=()=>{g(TIe(n,e.tableName,d,t.oid))},S=()=>{xMe(e.tableName,t.oid,d)},R=()=>{const N={oid:l.oid};let _={RECORD:{XMLType:"RECORD",...N}};const P=Au(_,!0);g(kE(n,d,e.tableName,P,N,"delete"))},b=()=>{const N={oid:l.oid};let _={RECORD:{XMLType:"RECORD",...N}};const P=Au(_,!0);g(kE(n,d,e.tableName,P,N,"purge_history"))},T=N=>{let _={};return e.tabs.forEach(P=>{_[P.key]={...P,children:[]}}),N.forEach(P=>{_[P.tab].children.push(P)}),Object.values(_).map((P,k)=>{let j=null,Y=[];return P.children.forEach(X=>X.type!=="text-editor"?Y.push(X):j=X),{label:v.jsx("span",{children:P.label}),key:k,className:"tables-tab-panes",children:v.jsxs(v.Fragment,{children:[v.jsx(KH,{tableParams:e,record:l,fields:Y}),j&&t?v.jsx(cbe,{data:t.description,handleUpdateDescription:y}):null]})}})},D=N=>{let _=[...A];Array.isArray(N)?_=_.concat(N):_.includes(N)?_=_.filter(P=>P!==N):_.push(N),u([...new Set(_)])},F=()=>{g(Ayt(n,d,e.tableName,A)),u([])};return a?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-editor-header",children:v.jsx(yt,{disabled:!A.length,onClick:F,icon:v.jsx(yy,{}),children:"Importer"})}),v.jsx("div",{className:"tables-editor-content",children:v.jsx(Hn,{columns:a1t,data:h,shiftMulti:!0,onRowSelect:D,selectedRows:A})})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"tables-editor-header",children:[v.jsx(yt,{icon:v.jsx(ao,{}),disabled:!o,onClick:w,children:"Annuler"}),e.sqlButton&&i.ISROLECTI&&v.jsx(yt,{icon:v.jsx(my,{}),onClick:S,children:"SQL"}),v.jsx(Ni,{title:"Voulez-vous vraiment effacer l'historique ?",okText:"Effacer l'historique",cancelText:"Annuler",onConfirm:b,children:v.jsx(yt,{icon:v.jsx(Go,{}),children:"Effacer historique"})}),v.jsx(Ni,{title:"Voulez-vous vraiment exécuter cette règle ?",okText:"Exécuter la règle",cancelText:"Annuler",onConfirm:M,children:v.jsx(yt,{icon:v.jsx(C5e,{}),disabled:t&&t.oid==="-1",children:"Exécuter"})}),e.addButton&&v.jsx(Ni,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:R,children:v.jsx(yt,{icon:v.jsx(ki,{}),disabled:m,children:"Supprimer"})}),e.deleteButton&&v.jsx(Ni,{title:"Voulez-vous vraiment supprimer cette entrée ?",okText:"Supprimer",cancelText:"Annuler",onConfirm:R,children:v.jsx(yt,{icon:v.jsx(ki,{}),disabled:e?.tableName==="t_ghm_dms"?!(t&&t.dms.trim()===""&&t.key===0):m,children:"Supprimer"})}),e.copyButton&&v.jsx(Ni,{title:"Voulez-vous vraiment copier cette entrée ?",okText:"Copier",cancelText:"Annuler",onConfirm:()=>x("copy"),children:v.jsx(yt,{icon:v.jsx($v,{}),disabled:t&&t.oid==="-1",children:"Copier"})}),v.jsx(yt,{icon:v.jsx(qj,{}),type:"primary",disabled:!o,onClick:()=>x("save"),children:"Enregistrer"}),o?v.jsx(Ni,{placement:"topRight",cancelText:"Rester sur l'éditeur",okText:"Retour à la liste",onConfirm:B,title:"Des modifications sont en cours. Etes vous sur de vouloir revenir à la liste ?",children:v.jsx(yt,{type:"link",className:"close-button",children:v.jsx(Go,{})})}):v.jsx(yt,{type:"link",className:"close-button",onClick:B,children:v.jsx(Go,{})})]}),v.jsx("div",{className:"tables-editor-content",children:v.jsxs(We,{form:p,onValuesChange:C,style:{minWidth:"0px",paddingTop:"20px"},children:[v.jsx("div",{className:"tables-common-fields",children:wc(e.fields.filter(N=>!N.tab),"")}),v.jsx("div",{className:"tables-tab-fields",children:v.jsx(Oi,{items:T(e.fields.filter(N=>N.tab))})})]})})]})};Abe.propTypes={tableParams:W.object,record:W.object,handleShowEditor:W.func,swf:W.string};const i1t=({showModalPreferences:e,handleShowModalPreferences:t,swf:r,softCode:n,tableParams:a})=>{const i=wn(),[o,s]=E.useState(null),[l,c]=E.useState(null),A=ut(g=>g.cti.components.tables.data.divers),u="DD/MM/YYYY";E.useEffect(()=>{A.expert&&(s(ei(A.expert.EXPERT_DATE_DEBUT,u)),c(A.expert.EXPERT_ACTIVE==="1"))},[A]);const d=()=>{const g={mode:"2",EXPERT_ACTIVE:l?"1":"0",EXPERT_DATE_DEBUT:ei(o).format("YYYY/MM/DD")},p=YH(g);i(kE(r,n,a.tableName,p,g,"save"))},f=g=>{s(g)},h=()=>{c(!l)};return A.expert?v.jsx(v.Fragment,{children:v.jsx(gi,{title:"Préférences",open:e,okText:"Enregistrer",cancelText:"Retour",maskClosable:!0,onCancel:()=>t(!1),onOk:()=>{d()},children:v.jsxs("div",{children:[v.jsxs("div",{children:[v.jsx("span",{className:"spanStr",children:"Expert"}),v.jsx(bo,{checked:l,onClick:h})]}),v.jsxs("div",{children:[v.jsx("span",{className:"spanStr",children:"Date de démarrage :"}),v.jsx(gB,{format:u,onChange:g=>{f(g)},dateRender:g=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:g.date()})})]}),v.jsx("div",{children:v.jsx("span",{children:"À partir de cette date, tous les séjours seront controlés, sortis ou non."})})]})})}):null},ob=[{title:"Code",dataKey:"code",type:"input"},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"}],o1t={SIT:{tableName:"t_sites",title:"Gestion Sites",component:"common",fields:[...ob,{title:"C/H",dataKey:"clinique_honoraire",type:"select",selectOptionsKey:"COMPTA_CH"},{title:"Etablissement",dataKey:"finess_id",type:"select",selectOptionsKey:"FINESS",hidden:!0},{title:"Etablissement",dataKey:"finess_texte",editVisible:!1},{title:"Nombres références",dataKey:"nbref",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},JRN:{tableName:"t_journaux",title:"Gestion Journaux",component:"common",fields:[...ob,{title:"C/H",dataKey:"clinique_honoraire",type:"input",editable:!1},{title:"A nouveaux",dataKey:"a_nouveaux",type:"checkbox"},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},TCO:{tableName:"t_types_compta",title:"Gestion Types de Comptabilité",component:"common",fields:[...ob,{title:"C/H",dataKey:"clinique_honoraire",type:"select",editVisible:!1,selectOptionsKey:"COMPTA_CH"},{title:"Nombre de Références (comptes)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},CLS:{tableName:"t_classes_comptes",title:"Gestion classes de comptes",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Nombre de Références (comptes)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},CPT:{tableName:"t_comptes",title:"Gestion comptes",component:"onglet",addSearchFields:["numero"],tabs:[{key:"general",label:"Général"},{key:"sage",label:"Collectif (SAGEX3)"}],fields:[{title:"Compte",dataKey:"numero",type:"input",editable:!1},{tab:"general",title:"Texte",dataKey:"texte",type:"input"},{tab:"general",title:"C/H",dataKey:"clinique_honoraire",type:"select",editable:!1,selectOptionsKey:"COMPTA_CH"},{title:"Commentaire",dataKey:"comment",type:"input",editVisible:!1},{tab:"general",title:"Compte banque",dataKey:"banque",type:"checkbox",hidden:!0},{tab:"general",title:"Compte collectif",dataKey:"collectif",type:"checkbox",hidden:!0},{tab:"general",title:"Solde Initial",dataKey:"solde_initial",type:"input",hidden:!0},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""},{tab:"sage",title:"Journal",dataKey:"type_compta_extra_id",type:"select",selectOptionsKey:"TYPECOMPTA",hidden:!0},{tab:"sage",title:"Numéro auxiliaire",dataKey:"numero_extra",type:"input",hidden:!0},{tab:"sage",title:"Texte auxiliaire",dataKey:"texte_extra",type:"input",hidden:!0}]},CPX:{tableName:"t_comptes_extra",title:"Gestion Comptes auxiliaires",component:"common",fields:[{title:"Compte",dataKey:"numero",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"C/H",dataKey:"clinique_honoraire",type:"select",editable:!1,selectOptionsKey:"COMPTA_CH"},{title:"Type comptabilité",dataKey:"type_compta",editable:!1,type:"select",selectOptionsKey:"TYPECOMPTA"},{title:"Commentaire",dataKey:"comment",editVisible:!1,type:"input"},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},PAR:{tableName:"t_partenaires",title:"Gestion Partenaires",component:"common",fields:[...ob,{title:"Texte abrégé",dataKey:"texte_court",type:"input"},{title:"Comptes",dataKey:"comptes",type:"input",editable:!1},{title:"Commentaire",dataKey:"comment",type:"input",editVisible:!1},{title:"Partenaire du groupe",dataKey:"intra_groupe",type:"checkbox"},{title:"Nombre de Références (écritures)",dataKey:"nbref",type:"input",editVisible:!1,dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):""}]},AJU:{tableName:"t_ecritures_ajustement",title:"Ecritures d'ajustement",component:"AJU",addButton:!0,copyButton:!0,fields:[{title:"Texte",dataKey:"texte",type:"input"},{title:"Date saisie",dataKey:"date_ecriture",type:"input"},{title:"Mois comptable",dataKey:"mois_comptable",type:"input"},{title:"C/H",dataKey:"clinique_honoraire",type:"select",selectOptionsKey:"COMPTA_CH"},{title:"Journal",dataKey:"journal_code",type:"input"},{title:"Compte",dataKey:"compte_numero",type:"input"},{title:"Débit",dataKey:"montant_debit",type:"input"},{title:"Crédit",dataKey:"montant_credit",type:"input"}]},BUD:{tableName:"t_budget",title:"Gestion Budget",addButton:!0,component:"common",fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Site",dataKey:"site_id",type:"select",selectOptionsKey:"SITE",hidden:!0},{title:"Texte",dataKey:"texte",type:"input"},{title:"Actif",dataKey:"is_actif",type:"checkbox"},{title:"Exercice",dataKey:"exercice_comptable",type:"select",selectOptionsKey:"YEARS"},{title:"Données à importer",dataKey:"import_data",type:"textArea",hidden:!0}]},DIV:{tableName:"t_divers",title:"Éléments divers",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Valeur Date",dataKey:"valeur_date",type:"input",detail:"YYYY-MM-DD"},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Info Module",dataKey:"show_info_module",type:"checkbox"}]}},qu=[{title:"Code",dataKey:"code",type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Nb Ref",dataKey:"nbref",type:"text"}],s1t={BIL:{tableName:"t_bilan",title:"Bilans",component:"common",fields:[...qu]},CST:{tableName:"t_constante",title:"Constantes",component:"constantes",fields:[...qu,{title:"Propriétés",dataKey:"property",type:"text"}]},DOC:{tableName:"t_document",title:"Documents",component:"common",fields:[...qu,{title:"Complément",dataKey:"cmp",type:"text"},{title:"Toujours document sortie ?",dataKey:"est_document_sortie",hidden:!0,type:"checkbox"},{title:"Règle document sortie",dataKey:"document_sortie_rule_1",type:"input",detail:"DD=DS:Date document = date sortie, DD=DS-x: Date document - date sortie <= x",hidden:!0}]},DOCPRE:{tableName:"t_document_precision",title:"Précision Documents",refUniquement:!1,addButton:!0,component:"common",fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Priorité",dataKey:"priorite",type:"input",default:"5000"},{title:"Règle SQL",dataKey:"precision_rule_01",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_02",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_03",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_04",type:"input",hidden:!0},{title:"ou",dataKey:"precision_rule_05",type:"input",hidden:!0}]},FRM:{tableName:"t_formulaire",title:"Formulaires",component:"common",fields:[...qu]},FRQ:{tableName:"t_formulaire_question",title:"Questions Formulaires",component:"onglet",selectFilterLabel:"Formulaire",selectFilterField:"formulaire_texte",tabs:[{key:"frq-definition",label:"Définition"},{key:"calcul",label:"Calcul"}],fields:[{title:"Code",dataKey:"code",type:"input",tab:"frq-definition"},{title:"Texte",dataKey:"texte",type:"input",tab:"frq-definition"},{title:"Texte Court",dataKey:"texte_court",type:"input"},{title:"Propriété",dataKey:"property",type:"input",editVisible:!1},{title:"Formulaire",dataKey:"formulaire_texte",type:"input",editable:!1},{title:"Nb Ref",dataKey:"nbref",type:"text"},{title:"Type",dataKey:"question_type",type:"input",disabled:!0,hidden:!0,editable:!1},{title:"Transformer en constante",dataKey:"constante_id",type:"select",tab:"frq-definition",hidden:!0,selectOptionsKey:"CST"},{title:"Type réponse",dataKey:"auto_reponse_code_type",type:"cti-constantes",hidden:!0,tab:"frq-definition"},{title:"Formule",dataKey:"calc_formula",type:"textArea",hidden:!0,editable:!1,tab:"calcul"}]},FRR:{tableName:"t_formulaire_question_reponse",title:"Réponses Formulaires",component:"common",selectFilterLabel:"Formulaire",selectFilterField:"formulaire_texte",fields:[{title:"Formulaire",dataKey:"formulaire_texte",type:"input",editable:!1},{title:"Question",dataKey:"formulaire_question_texte",type:"input",editable:!1},{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",hidden:!0},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Significatif",dataKey:"est_significatif",type:"checkbox"},{title:"Nb Ref",dataKey:"nbref",type:"input",editable:!1}]},INT:{tableName:"t_intervenant",title:"Intervenants",component:"common",refUniquement:!1,fields:[...qu,{title:"Spécialité",dataKey:"specialite_texte",type:"text",editVisible:!1},{title:"Spécialité",dataKey:"specialite_id",type:"select",hidden:!0,selectOptionsKey:"SPI"}],excludeFields:["nbref"]},IQU:{tableName:"t_indicateur_qualite",title:"Indicateurs qualité",component:"indicateur_qualite",fields:[...qu,{title:"Propriétés",dataKey:"properties",editVisible:!1},{title:"Note",dataKey:"note_with",type:"checkbox",hidden:!0}]},OBS:{tableName:"t_observation",title:"Observations",component:"common",fields:[...qu,{title:"Masquer le texte",dataKey:"masquer_texte",type:"checkbox"},{title:"Type éclatement",dataKey:"mode_eclatement",type:"select",selectOptionsKey:"DPI_SPE"}]},PRC:{tableName:"t_prescription",title:"Prescriptions",component:"common",fields:[...qu]},REL:{tableName:"t_releve",title:"Relevés",component:"common",fields:[...qu]},SPI:{tableName:"t_intervenant_specialite",title:"Specialités intervenant",component:"common",fields:[...qu]},KWO:{tableName:"t_mot_cle",title:"Mots clé",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,component:"keyword",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Règle",dataKey:"rule",type:"text"}]},DIV:{tableName:"t_divers",title:"Configuration",refUniquement:!1,component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Valeur(2)",dataKey:"valeur2",type:"input"}]},EVT:{tableName:"t_evenement",title:"Evènements",refUniquement:!1,component:"onglet",tabs:[{key:"event-regle-cti",label:"Règle CTI"},{key:"event-regle-spe",label:"Règles Spécifiques"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:150},{title:"Texte",dataKey:"texte",type:"input"},{title:"CTI",dataKey:"is_cti",type:"checkbox",width:75},{title:"Indicateur",dataKey:"indicateur_texte",editVisible:!1},{title:"Règles CTI",tab:"event-regle-cti",type:"event-regle-cti",hidden:!0},{title:"Règles Spécifiques",tab:"event-regle-spe",type:"event-regle-spe",hidden:!0}]},CXP:{tableName:"t_expert_controle",title:"Controles expert",refUniquement:!1,addButton:!0,module:"dpi",execute:{label:"Executer les règles",action:"execute_rules"},component:"onglet",tabs:[{key:"cxp-regle-cti",label:"Règle CTI"},{key:"cxp-autre-cti",label:"Autres règles CTI"},{key:"cxp-ets",label:"Règles établissement"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"CTI",dataKey:"is_cti",type:"checkbox"},{title:"Description",dataKey:"description",type:"textArea",hidden:!0},{title:"Gravité",dataKey:"gravite_id",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{title:"Alerte",dataKey:"alerte_id",type:"checkbox",hidden:!0},{title:"Actif",dataKey:"is_active",type:"checkbox",hidden:!0},{title:"A partir de",dataKey:"start_periode",type:"select",selectOptionsKey:"CXP_start",hidden:!0},{title:"Indicateur",dataKey:"indicateur_texte",type:"text",editVisible:!1},{title:"Complément",dataKey:"complement",type:"text",editVisible:!1},{title:"Date Exécution",dataKey:"last_date",type:"text",editVisible:!1},{title:"Statut",dataKey:"last_status",type:"text",editVisible:!1},{title:"Signalements",dataKey:"last_count",type:"text",editVisible:!1},{title:"cxp-regle-cti",tab:"cxp-regle-cti",type:"cxp-regle-cti",hidden:!0},{title:"cxp-autre-cti",tab:"cxp-autre-cti",type:"cxp-autre-cti",hidden:!0},{title:"cxp-ets",tab:"cxp-ets",type:"cxp-ets",hidden:!0}]}},Oo=[{title:"Code",dataKey:"code",width:75,type:"input",editable:!1},{title:"Code original",dataKey:"code_original",width:75,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Complément",dataKey:"complement",type:"textArea",editable:!1},{title:"Références",dataKey:"nbref",type:"input",editable:!1}],l1t={ART:{tableName:"t_articles",title:"Gestion des articles",component:"common",fields:[...Oo,{title:"Géré en stock",dataKey:"gere_en_stock",hidden:!0,type:"checkbox"},{title:"Référence CACIC",dataKey:"cacic_id",hidden:!0,type:"select",selectOptionsKey:"RA1"},{title:"Référence CTI",dataKey:"rfcti_id",hidden:!0,type:"select",selectOptionsKey:"RA9"}]},TYA:{tableName:"t_types_articles",title:"Gestion des types articles",component:"common",fields:[...Oo,{title:"Valeur par défaut selon",dataKey:"defaut_selon",hidden:!0,type:"select",selectOptionsKey:"TYA"},{title:"codes",dataKey:"defaut_selon_codes",hidden:!0,type:"input",dependsOn:"defaut_selon",disabledWhen:""}]},FAA:{tableName:"t_familles_articles",title:"Gestion des familles d'articles",component:"common",fields:[...Oo]},SFA:{tableName:"t_sous_familles_articles",title:"Gestion sous famille d'articles",component:"common",fields:[...Oo]},CAA:{tableName:"t_categories_articles",title:"Gestion des catégories d'articles",component:"common",fields:[...Oo]},SCA:{tableName:"t_sous_categories_articles",title:"Gestion des sous catégories articles",component:"common",fields:[...Oo]},UNI:{tableName:"t_unites",title:"Gestion des unités",component:"common",refUniquement:!1,fields:[...Oo],excludeFields:["nbref"]},FOU:{tableName:"t_fournisseurs",title:"Gestion des fournisseurs",component:"common",fields:[...Oo,{title:"Fusionner avec",dataKey:"fusionner_vers_fournisseur_id",hidden:!0,type:"select",selectOptionsKey:"FOU"},{title:"Référence CACIC",dataKey:"cacic_id",hidden:!0,type:"input"},{title:"Référence CTI",dataKey:"rfcti_id",hidden:!0,type:"input"}]},TYF:{tableName:"t_types_fournisseurs",title:"Gestion des types de fournisseurs",component:"common",fields:[...Oo]},GES:{tableName:"t_gestionnaires",title:"Gestion des gestionnaires",refUniquement:!1,component:"common",fields:[...Oo],excludeFields:["nbref"]},LIE:{tableName:"t_lieux",title:"Gestion des lieux",component:"common",refUniquement:!1,fields:[...Oo],excludeFields:["nbref"]},UFO:{tableName:"t_unites_fonctionnelles",title:"Gestion des unités fonctionnelles",component:"common",refUniquement:!1,fields:[...Oo],excludeFields:["nbref"]},TYM:{tableName:"t_types_mouvements",title:"Gestion des types de mouvements",component:"common",refUniquement:!1,fields:[...Oo,{title:"Inverser signe",dataKey:"particularite_inverser_signe",hidden:!0,type:"select",selectOptionsKey:"TYM_SIGNE"},{title:"Forcer sens",dataKey:"sens_force",hidden:!0,type:"select",selectOptionsKey:"TYM_SENS"}],excludeFields:["nbref"]},RIN:{tableName:"t_reference_input",title:"Import référentiel",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:75,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Complément",dataKey:"complement",type:"textArea",editable:!1}]},RA1:{tableName:"t_article_reference_cacic",title:"Gestion référential article CACIC",component:"common",fields:[...Oo],excludeFields:["texte_court","code_original"]},RF1:{tableName:"t_fournisseur_reference_cacic",title:"Gestion référentiel fournisseur CACIC",component:"common",fields:[...Oo],excludeFields:["complement","texte_court","code_original"]},RA9:{tableName:"t_article_reference_cti",title:"Gestion référentiel article CTI",component:"transfert",fields:[...Oo],transfertFields:[{title:"Nom",dataKey:"texte",width:400},{title:"LPP/UCD",dataKey:"lppucd",width:150},{title:"Code",dataKey:"code",width:150}],excludeFields:["complement","texte_court","code_original"],listName:"ART",listPath:"rfoids"},RF9:{tableName:"t_fournisseur_reference_cti",title:"Gestion du référentiel fournisseur CTI",component:"transfert",fields:[...Oo],transfertFields:[{title:"Nom",dataKey:"texte",width:400},{title:"Code",dataKey:"code",width:150}],listName:"LFOU",listPath:"rfoids",excludeFields:["complement","texte_court","code_original"]},DIV:{tableName:"t_divers",title:"Eléments divers",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:75,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Complément",dataKey:"complement",type:"textArea"},{title:"Valeur",dataKey:"valeur",type:"input"}]},SIT:{tableName:"t_sites",title:"Gestion sites",refUniquement:!1,component:"common",fields:[...Oo],excludeFields:["complement","nbref"]},TAR:{tableName:"t_type_article_cti_rule",title:"Gestion des règles types articles CTI",refUniquement:!1,addButton:!0,component:"rules",execute:{label:"Executer les règles",action:"execute_rules"},fields:[{title:"Priorite",dataKey:"priorite",type:"input",default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Type CTI",dataKey:"type_article_cti_id",type:"select",selectOptionsKey:"TAA",hidden:!0},{title:"Type CTI",dataKey:"type_article_cti_texte",editVisible:!1},{title:"Règles",dataKey:"rule_texte",type:"input",editVisible:!1},{title:"Types article source",dataKey:"liste_type_article",type:"textArea",hidden:!0,tab:!0},{title:"Comptes",dataKey:"liste_compte",type:"textArea",hidden:!0,tab:!0},{title:"Familles",dataKey:"liste_famille",type:"textArea",hidden:!0,tab:!0},{title:"Sous-familles",dataKey:"liste_sous_famille",type:"textArea",hidden:!0,tab:!0},{title:"Catégories",dataKey:"liste_categorie",type:"textArea",hidden:!0,tab:!0},{title:"Sous-catégories",dataKey:"liste_sous_categorie",type:"textArea",hidden:!0,tab:!0},{title:"Articles",dataKey:"liste_article",type:"textArea",hidden:!0,tab:!0}],excludeFields:["complement","nbref"]}},c1t=[{title:"Code",dataKey:"code",width:100,type:"input"},{title:"Texte",dataKey:"texte",type:"input",width:500},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Code original",dataKey:"code_original",type:"input",width:150}],A1t={CCR:{tableName:"t_ccam_regroupements",title:"Interrogation",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Texte court",dataKey:"texte_court",type:"input",width:100,editable:!1}],excludeFields:["code_original"]},GMA:{tableName:"t_gestes_marqueurs",title:"Gestion gestes marqueurs",component:"common",selectButton:!0,refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Actes associés",dataKey:"actes_codes",type:"input",hidden:!0,editable:!1}],sqlChoices:"select oid, code, texte from pmsi.t_classes where texte ilike '%marqueur%' union select -1, 'code', 'Sélectionnez une valeur...' order by oid"},ACT:{tableName:"t_actes",title:"Interrogation Actes",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Classant",dataKey:"classant",type:"input",width:100,editable:!1},{title:"Regroupement",dataKey:"regroupement_1",type:"input",width:100,editable:!1},{title:"Regroupement",dataKey:"regroupement_4",type:"input",width:100,editable:!1,hidden:!0},{title:"Geste marqueur MSAP 2015",dataKey:"geste_marqueur",type:"input",width:120,editable:!1},{title:"ICR",dataKey:"icr_1",type:"input",width:80,editable:!1,dataGetter:({rowData:e})=>e.icr_1?e.icr_1.substring(1):""},{title:"ICR A",dataKey:"icr_4",type:"input",width:80,editable:!1,dataGetter:({rowData:e})=>e.icr_4?e.icr_4.substring(1):""},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",width:100,editable:!1,editVisible:!1}]},DIA:{tableName:"t_diagnostics",title:"Interrogation Diagnostics",component:"common",fields:[...c1t,{title:"CMA 2012",dataKey:"sev1311d",type:"input",width:75,editVisible:!1},{title:"CMA 2013",dataKey:"sev1311e",type:"input",width:75,editVisible:!1},{title:"CMA 2014",dataKey:"sev1311f",type:"input",width:75,editVisible:!1},{title:"CMA 2015",dataKey:"sev1311g",type:"input",width:75,editVisible:!1},{title:"CMA 2016",dataKey:"sev2016",type:"input",width:75,editVisible:!1},{title:"CMA 2017",dataKey:"sev2017",type:"input",width:75,editVisible:!1},{title:"CMA 2018",dataKey:"sev2018",type:"input",width:75,editVisible:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",width:100,editVisible:!1}],excludeFields:["texte_court","code_original"]},DG5:{tableName:"t_etude_7",title:"Dégressivité tarifaire",component:"common",selectButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Seuil déclanchement racine",dataKey:"seuil_degressivite",type:"input",pourcentage:!0,editable:!1,dataGetter:({rowData:e})=>e.seuil_degressivite&&`${e.seuil_degressivite}%`},{title:"Taux correction avant mars",dataKey:"taux_correction_avant_mars",type:"input",pourcentage:!0,editable:!0,dataGetter:({rowData:e})=>e.taux_correction_avant_mars&&`${e.taux_correction_avant_mars}%`},{title:"Taux correction après mars",dataKey:"taux_correction_apres_mars",type:"input",pourcentage:!0,editable:!0,dataGetter:({rowData:e})=>e.taux_correction_apres_mars&&`${e.taux_correction_apres_mars}%`}],sqlChoices:"select min(oid), annee::text, 'Seuils ' || annee from pmsi.t_etude_7 group by annee union select -1, 'code', 'Pas de sélection' order by 1"},ED1:{tableName:"t_etude_1",title:"Gestion couples GHM (analyse ambulatoire)",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"GHM1",dataKey:"ghm_1_code",width:80,editVisible:!1},{title:"GHM1",dataKey:"ghm_1_texte",type:"input",editable:!1,hidden:!0},{title:"GHM2",dataKey:"ghm_2_code",width:80,editVisible:!1},{title:"GHM2",dataKey:"ghm_2_texte",type:"input",editable:!1,hidden:!0},{title:"GHM3",dataKey:"ghm_3_code",width:80,editVisible:!1},{title:"GHM3",dataKey:"ghm_3_texte",type:"input",editable:!1,hidden:!0},{title:"Taux cible 2008",dataKey:"taux_cible_2008",width:90,type:"input"},{title:"Taux cible 2009",dataKey:"taux_cible_2009",width:90,type:"input"},{title:"Taux cible 2010",dataKey:"taux_cible_2010",width:90,type:"input"},{title:"Taux cible 2011",dataKey:"taux_cible_2011",width:90,type:"input"}],excludeFields:["texte_court","code_original"]},ED6:{tableName:"t_etude_6",title:"Cancérologie (activité soumise à seuil). Cahier des charges ",component:"common",selectButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Cahier des charges",dataKey:"année",type:"input",editable:!1,hidden:!0,width:100},{title:"Seuil etablissement",dataKey:"seuil_ets",type:"input",editable:!0,width:100},{title:"Seuil ARS",dataKey:"seuil_ars",type:"input",editable:!0,width:100},{title:"Moyenne régionale",dataKey:"moy_region",type:"input",editable:!1,width:100},{title:"Moyenne nationale",dataKey:"moy_nat",type:"input",editable:!1,width:100}],sqlChoices:"select min(oid), annee::text, 'Cahier des charges ' || annee from pmsi.t_etude_6 group by annee union select -1, 'code', 'Pas de sélection' order by 1"},ED5:{tableName:"t_etude_5",title:"Gestes marqueurs",component:"common",selectButton:!0,refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Liste",dataKey:"liste",type:"input",editable:!1,hidden:!0,width:100},{title:"Taux cible etablissement",dataKey:"taux_cible_ets",type:"input",editable:!0,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_cible_ets&&`${e.taux_cible_ets}%`,width:100},{title:"Taux cible ARS",dataKey:"taux_cible_ars",type:"input",editable:!0,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_cible_ars&&`${e.taux_cible_ars}%`,width:100},{title:"Taux moyen régional",dataKey:"taux_moyen_regional",type:"input",editable:!1,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_moyen_regional&&`${e.taux_moyen_regional}%`,width:100},{title:"Taux moyen national",dataKey:"taux_moyen_national",type:"input",editable:!1,pourcentage:!0,dataGetter:({rowData:e})=>e.taux_moyen_national&&`${e.taux_moyen_national}%`,width:100}],sqlChoices:"select sequence, code, texte from pmsi.t_classes where texte ilike '%marqueur%' union select -1, 'code', 'Pas de sélection' order by sequence"},EXC:{tableName:"t_expert_controle",title:"Gestion Controles Expert",component:"common",addButton:!0,copyButton:!0,sqlButton:!0,execute:{label:"Éxécuter les règles",action:"execute_rules"},preferences:{label:"Préférences"},tabs:[{key:"definition",label:"Définition"},{key:"description",label:"Description"},{key:"regle-1",label:"Règle 1"},{key:"regle-2",label:"Règle 2"},{key:"regle-3",label:"Règle 3"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!0},{title:"Contrôle CTI",dataKey:"is_cti",type:"checkbox",width:80,hidden:!0},{tab:"definition",title:"Texte",dataKey:"texte",type:"input"},{tab:"definition",title:"Texte affiché",dataKey:"texte_court",type:"input",hidden:!0},{title:"Gravité",dataKey:"gravite_texte",editVisible:!1,width:80},{tab:"definition",title:"Gravité",dataKey:"gravite_id",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{title:"Complément",dataKey:"complement",editVisible:!1,width:120},{tab:"definition",title:"DATIM",dataKey:"is_datim",type:"checkbox",hidden:!0},{tab:"definition",title:"Contrôle en masse",dataKey:"is_global",type:"checkbox",hidden:!0,editable:!1},{tab:"definition",title:"Alerte",dataKey:"is_alert",type:"checkbox",hidden:!0},{tab:"definition",title:"Masqué",dataKey:"is_hide",type:"checkbox",hidden:!0},{tab:"regle-1",title:"Sélection",dataKey:"sqlcmd_where1",type:"textArea",hidden:!0},{tab:"regle-1",title:"Justificatif",dataKey:"sqlcmd_justificatif1",type:"textArea",hidden:!0},{tab:"regle-2",title:"Sélection",dataKey:"sqlcmd_where2",type:"textArea",hidden:!0},{tab:"regle-2",title:"Justificatif",dataKey:"sqlcmd_justificatif2",type:"textArea",hidden:!0},{tab:"regle-3",title:"Sélection",dataKey:"sqlcmd_where3",type:"textArea",hidden:!0},{tab:"regle-3",title:"Justificatif",dataKey:"sqlcmd_justificatif3",type:"textArea",hidden:!0},{tab:"description",title:"Description",dataKey:"description",type:"text-editor",hidden:!0},{title:"Dernière exécution",dataKey:"last_execution_date",type:"input",editVisible:!1},{title:"Nombre références",dataKey:"nbref",type:"input",editVisible:!1},{title:"Dont actives",dataKey:"nbref0",type:"input",editVisible:!1}]},XDC:{tableName:"t_datim_ccaminfo",title:"Datim : CCAMINFO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:400},{title:"Datim",dataKey:"datim",type:"input",editable:!1,width:300},{title:"Début",dataKey:"date_debut",editVisible:!1},{title:"Fin",dataKey:"date_fin",editVisible:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},XDD:{tableName:"t_datim_diaginfo",title:"Datim : DIAGINFO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:400},{title:"Datim",dataKey:"datim",type:"input",editable:!1,width:300},{title:"Début",dataKey:"date_debut",editVisible:!1},{title:"Fin",dataKey:"date_fin",editVisible:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},XDG:{tableName:"t_datim_ghminfo",title:"Datim : GHMINFO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:400},{title:"Datim",dataKey:"datim",type:"input",editable:!1,width:300},{title:"Début",dataKey:"date_debut",editVisible:!1},{title:"Fin",dataKey:"date_fin",editVisible:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},ASO:{tableName:"t_mco",title:"Interrogation Codes ASO",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GHV:{tableName:"t_severites_ghm",title:"Interrogation Codes sévérité GHM",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GHM:{tableName:"t_ghm",title:"InterrogationGHM",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Aso",dataKey:"aso",type:"input",editable:!1,width:70},{title:"C.A.S",dataKey:"cas",type:"input",editable:!1,width:70},{title:"Pole OAP",dataKey:"pole_oap",type:"input",editable:!1},{title:"Ligne OAP",dataKey:"ligne_oap",type:"input",editable:!1,hidden:!0},{title:"Groupe d'activité",dataKey:"groupe_activite",type:"input",editable:!1,hidden:!0},{title:"Nombre réféfences",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1,width:120}]},DMS:{tableName:"t_ghm_dms",title:"Gestion DMS",component:"DMS",deleteButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:200,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500}]},CMD:{tableName:"t_cmd",title:"Interrogation CMD",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},POA:{tableName:"t_poles_oap",title:"Interrogation Poles OAP",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},LOA:{tableName:"t_lignes_oap",title:"Interrogation Lignes OAP",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Pole OAP",dataKey:"pole_oap",type:"input",editable:!1,width:400},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GAC:{tableName:"t_groupes_activite",title:"Interrogation Groupes d'activité",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}]},GHS:{tableName:"t_ghs",title:"Interrogation GHS",component:"onglet",datePicker:!0,selectTarif:!0,tabs:[{key:"tarifs_prive",label:"Tarifs Privé"},{key:"tarifs_public",label:"Tarifs Public"}],fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,width:500},{title:"Borne basse",dataKey:"borne_basse",editable:!1,width:100},{title:"Borne haute",dataKey:"borne_haute",editable:!1,width:100},{title:"Dms nationale",dataKey:"dms_nationale",editable:!1,width:100},{title:"Tarif GHS",dataKey:"tarif_ghs",editable:!1,width:100},{title:"Forfait EXB",dataKey:"forfait_exb",editable:!1,width:100},{title:"Tarif EXB",dataKey:"tarif_exb",editable:!1,width:100},{title:"Tarif EXH",dataKey:"tarif_exh",editable:!1,width:100},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1,width:200},{type:"tarifs_public_ghs",tab:"tarifs_public",hidden:!0},{type:"tarifs_prive_ghs",tab:"tarifs_prive",hidden:!0}]},SGE:{tableName:"t_secteurs_geographiques",title:"Gestion secteurs géographiques",component:"transfert",copyButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input",width:500},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre réféfences (Codes postaux)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1},{title:"Codes",dataKey:"codes",type:"transfert",hidden:!0}],transfertFields:[{title:"Codes postaux du secteur",dataKey:"texte"}],listName:"CPO",listPath:"codes"},DEP:{tableName:"t_departements",title:"Gestion départements",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input",width:500},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},CGP:{tableName:"t_codes_geographiques_pmsi",title:"Affichage Codes géographiques PMSI",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",width:500,editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0,editable:!1},{title:"Population",dataKey:"population",type:"input",hidden:!0,editable:!1},{title:"Codes postaux",dataKey:"codes",type:"input",editable:!1},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},CPO:{tableName:"t_codes_postaux",title:"Gestion Codes postaux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Département",dataKey:"departement",editVisible:!1},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Département",dataKey:"departement_id",type:"select",selectOptionsKey:"CPO",hidden:!0},{title:"Codes géo PMSI",dataKey:"code_geo_pmsi",type:"input",editable:!1},{title:"Population",dataKey:"population",type:"input",editable:!1,hidden:!0,dataGetter:({rowData:e})=>e.population?e.population.substring(1):""},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},SPI:{tableName:"t_specialites_internes_medecin",title:"Gestion Spécialités internes des médecins",component:"common",fields:[{title:"Code",dataKey:"code",type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},MED:{tableName:"t_medecins",title:"Gestion Médecins",component:"common",addButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Numéro ADELI",dataKey:"no_adeli",type:"input",editVisible:!1},{title:"Identifiant annuaire",dataKey:"identifiant_annuaire",type:"input",hidden:!0},{title:"Medecin référence",dataKey:"medecin_reference",type:"input",editable:!1},{title:"Spécialité",dataKey:"specialite_id",type:"select",selectOptionsKey:"SPI"},{title:"Nombre référence RSS",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1},{title:"Nombre référence actes",dataKey:"nbref2",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1}],visible:!0},CMM:{tableName:"t_comites_medicaux",title:"Gestion comités médicaux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},PRE:{tableName:"t_prestations",title:"Gestion prestations",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Nombre réféfences (RSS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},LPP:{tableName:"t_lpp",title:"Gestion LPP",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"En sus FG11 ?",dataKey:"code_fg11",type:"checkbox"},{title:"Nombre réféfences (LPP)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},UCD:{tableName:"t_ucd",title:"Gestion UCD",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Laboratoire",dataKey:"laboratoire_texte",type:"input"},{title:"Nombre réféfences",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},TAU:{tableName:"t_types_autorisations",title:"Interrogation types autorisations",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",editable:!1,hidden:!0}]},UMD:{tableName:"t_unites_medicales",title:"Gestion unités médicales",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Autorisation",dataKey:"type_autorisation",type:"select",selectOptionsKey:"TAU"},{title:"Date d'effet",dataKey:"date_effet_autorisation",type:"input"},{title:"Nombre de lit",dataKey:"nb_lits",type:"input",dependsOn:"type_autorisation_code",disabledWhen:""},{title:"Mode d'hospitalisation",dataKey:"mode_hospitalisation",type:"select",selectOptionsKey:"UMD_mode_hospitalisation"},{title:"Type éclatement",dataKey:"type_eclatement",type:"select",selectOptionsKey:"UMD_type_eclatement",hidden:!0},{title:"Type séjour",dataKey:"type_sejour",type:"select",selectOptionsKey:"UMD_type_sejour",hidden:!0},{title:"Type Ventilation C.A.",dataKey:"type_ventilation_ca",type:"select",selectOptionsKey:"UMD_type_ventilation_ca",hidden:!0},{title:"UM expédition",dataKey:"um_expedition_id",type:"select",selectOptionsKey:"UM",detail:"Unité médicale sur laquelle est regroupé cette UM avant envoi ePM",hidden:!0},{title:"UM expédition",dataKey:"um_expedition_codetexte",type:"select",selectOptionsKey:"UM",editVisible:!1},{title:"Medecin par default",dataKey:"medecin_par_defaut_id",type:"select",selectOptionsKey:"UM_MED",hidden:!0}]},UFC:{tableName:"t_unites_fonctionnelles",title:"Gestion Unités fonctionnelles",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Nombre réféfences (actes)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editVisible:!1}]},MEN:{tableName:"t_modes_entree",title:"Interrogation Modes entrée",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},MEP:{tableName:"t_provenances_entree",title:"Interrogation Provenances entrée",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},MSO:{tableName:"t_modes_sortie",title:"Interrogation Modes sortie",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},MSD:{tableName:"t_destinations_sortie",title:"Interrogation Destinations sortie",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input"}]},ETS:{tableName:"t_finess",title:"Gestion Finess",component:"finess",refUniquement:!1,lineBlocks:[{dateFieldKey:"date_debut_coefficient_mco",lines:[{key:"date_debut_coefficient_mco_",label:"Historique coefficients MCO",type:"date"},{key:"coefficient_mco_",label:"Coefficient MCO",type:"input"},{key:"coefficient_transition_",label:"- Transition",type:"input"},{key:"coefficient_ht_",label:"- Haute technicité",type:"input"},{key:"coefficient_geo_",label:"- Géographique",type:"input"},{key:"date_debut_coefficient_pacte_resp_",label:"Historique coefficients pacte responsabilité",type:"date"},{key:"coefficient_pacte_resp_",label:"Coefficients pacte responsabilité",type:"input"}],lengthFields:7}],fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Territoire de santé",dataKey:"tersante_id",type:"select",selectOptionsKey:"territoire_de_sante",hidden:!0},{dataKey:"date_debut_coefficient_mco_1",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_2",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_3",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_4",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_5",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_6",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_mco_7",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_1",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_2",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_3",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_4",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_5",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_6",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0},{dataKey:"date_debut_coefficient_pacte_resp_7",title:"Historique coefficients pacte responsabilité",type:"date",hidden:!0}]},DIV:{tableName:"t_divers",title:"Paramètres divers",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Info module",dataKey:"show_info_module",type:"checkbox",width:80}]}},ns=[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",editable:!1,hidden:!0}],u1t={SPI:{tableName:"t_specialites_internes_medecin",title:"Gestion Spécialités internes des médecins",component:"common",deleteButton:!0,copyButton:!0,fields:[{title:"Code",dataKey:"code",type:"input",width:100},{title:"Texte",dataKey:"texte",type:"input"},{title:"Spécialités (défaut)",dataKey:"specialite_defaut_codes",type:"input",editable:!1,editVisible:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1},{title:"Spécialité officielles par défault",dataKey:"code",type:"multi-input",hidden:!0,children:[{title:"Code 1",dataKey:"specialite_defaut_code_1",type:"input"},{title:"Code 2",dataKey:"specialite_defaut_code_2",type:"input"},{title:"Code 3",dataKey:"specialite_defaut_code_3",type:"input"},{title:"Code 4",dataKey:"specialite_defaut_code_4",type:"input"}]}],excludeFields:["texte_court"]},SPE:{tableName:"t_specialites_medecin",title:"Interrogation Spécialités des médecins",component:"common",fields:[...ns,{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},MED:{tableName:"t_medecins",title:"Gestion Médecins",component:"MEDA",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1,width:100},{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Numéro ADELI",dataKey:"no_adeli",type:"input",editVisible:!1},{title:"Spécialité officielle",dataKey:"specialite",type:"input",editable:!1},{title:"Spécialité interne",dataKey:"specialite_interne",editVisible:!1},{title:"Medecin référence",dataKey:"medecin_reference",type:"input",editable:!1},{title:"Spécialité interne",dataKey:"specialite_id",type:"select",selectOptionsKey:"SPI",hidden:!0},{title:"Nombre référence RSS",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1},{title:"Nombre référence actes",dataKey:"nbref2",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editVisible:!1}],visible:!0},TAU:{tableName:"t_type_autorisation_unite_medicale",title:"Interrogation types autorisations",component:"common",fields:[...ns]},UMD:{tableName:"t_unites_medicales",title:"Gestion Unites médicales",module:"iCTI_pmsissr",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Autorisation",dataKey:"type_autorisation",editVisible:!1},{title:"Autorisation",editTitle:"Type autorisation",dataKey:"type_autorisation_code",type:"select",selectOptionsKey:"TAU",hidden:!0},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},MEN:{tableName:"t_modes_entree",title:"Interrogation Modes entrée",component:"common",fields:[...ns],refUniquement:!1},MEP:{tableName:"t_provenances_entree",title:"Interrogation Provenances entrée",component:"common",fields:[...ns],refUniquement:!1},MSO:{tableName:"t_modes_sortie",title:"Interrogation Modes sortie",component:"common",fields:[...ns],excludeFields:[],refUniquement:!1},MSD:{tableName:"t_destinations_sortie",title:"Interrogation Destinations sortie",component:"common",fields:[...ns],refUniquement:!1},GME:{tableName:"t_gme",title:"Interrogation GME",component:"common",fields:[...ns,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},CMC:{tableName:"t_cmc",title:"Interrogation CMC",component:"common",fields:[...ns,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},GMD:{tableName:"t_gmd",title:"Interrogation GMD",component:"common",fields:[...ns,{title:"CMC",dataKey:"cmc_code",type:"input",editable:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},CCR:{tableName:"t_ccam_regroupements",title:"Interrogation Regroupements CCAM",component:"common",fields:[...ns],refUniquement:!1},ACT:{tableName:"t_actes",title:"Interrogation Actes",component:"common",fields:[...ns,{title:"Classant",dataKey:"classant",type:"input",editable:!1,width:200},{title:"Geste marqueur",dataKey:"geste_marqueur",type:"input",editable:!1},{title:"Regroupement",dataKey:"regroupement_1",type:"multi-input",width:200,children:[{dataKey:"regroupement_1",type:"input",editable:!1},{dataKey:"regroupement_4",type:"input",editable:!1}]},{title:"Regroupement",dataKey:"regroupement_4",editVisible:!1,width:200},{title:"ICR",dataKey:"icr_1",width:100,type:"multi-input",children:[{dataKey:"icr_1",type:"input",editable:!1},{dataKey:"icr_4",type:"input",editable:!1}],dataGetter:({rowData:e})=>e.icr_1?e.icr_1.substring(1):""},{title:"ICR A",dataKey:"icr_4",width:100,dataGetter:({rowData:e})=>e.icr_4?e.icr_4.substring(1):"",type:"input",editVisible:!1},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},IAR:{tableName:"t_activite_cdarr",title:"Interrogation Activités CdARR",component:"common",fields:[...ns,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],refUniquement:!1},AAR:{tableName:"t_acte_cdarr",title:"Interrogation Actes CdARR",component:"common",fields:[...ns,{title:"Activité CdARR",dataKey:"activite_cdarr_texte",type:"input",editVisible:!1},{title:"CMC",dataKey:"activite_cdarr_texte",type:"input",hidden:!0,editable:!1},{title:"Nombre référence",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",type:"input",editable:!1,editVisible:!1}],excludeFields:["texte_court"],refUniquement:!1},ASR:{tableName:"t_acte_csarr",title:"Interrogation Actes CSARR",component:"common",fields:[...ns,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],refUniquement:!0,excludeFields:["texte_court"]},DIA:{tableName:"t_diagnostics",title:"Interrogation Diagnostics",component:"common",fields:[...ns,{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],excludeFields:["texte_court"]},PRE:{tableName:"t_prestations",title:"Gestion Prestations",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},REG:{tableName:"t_regions",title:"Gestion Régions administratives",component:"common",fields:[...ns,{title:"Départements",dataKey:"departements_texte",type:"input",editable:!1},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},DEP:{tableName:"t_departements",title:"Gestion Départements",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}],refUniquement:!1},CGP:{tableName:"t_codes_geographiques_pmsi",title:"Affichage Codes géographiques PMSI",component:"common",fields:[...ns,{title:"Codes postaux",dataKey:"codes",type:"input",editable:!1},{title:"Population",dataKey:"population",type:"input",editable:!1,hidden:!0},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},CPO:{tableName:"t_codes_postaux",title:"Gestion Codes postaux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Département",dataKey:"departement",editVisible:!1},{title:"Département",dataKey:"departement_id",type:"select",selectOptionsKey:"DEP",hidden:!0},{title:"Codes géo PMSI",dataKey:"code_geo_pmsi",type:"input",editable:!1},{title:"Population",dataKey:"population",type:"input",editable:!1,hidden:!0,dataGetter:({rowData:e})=>e.population?e.population.substring(1):""},{title:"Nombre référence (RHS)",dataKey:"nbref",dataGetter:({rowData:e})=>e.nbref?e.nbref.substring(1):"",editable:!1,editVisible:!1}]},EXC:{tableName:"t_expert_controle",title:"Gestion Controles Expert",addButton:!0,copyButton:!0,sqlButton:!0,execute:{label:"Éxécuter les règles",action:"execute_rules"},component:"onglet",preferences:{label:"Préférences"},tabs:[{key:"definition",label:"Définition"},{key:"description",label:"Description"},{key:"regle-1",label:"Règle 1"},{key:"regle-2",label:"Règle 2"},{key:"regle-3",label:"Règle 3"}],fields:[{title:"Code",dataKey:"code",type:"input"},{tab:"definition",title:"Texte",dataKey:"texte",type:"input"},{title:"Contrôle CTI",dataKey:"is_cti",type:"checkbox",width:80,hidden:!0},{title:"État",dataKey:"is_active_texte",editVisible:!1,width:80},{title:"Complément",dataKey:"complement",editVisible:!1,width:120},{title:"Gravité",dataKey:"gravite_texte",editVisible:!1,width:80},{title:"Contrôle activé",dataKey:"is_active",type:"checkbox",tab:"definition",hidden:!0},{tab:"definition",title:"Texte affiché",dataKey:"texte_court",type:"input",hidden:!0},{title:"Dossier ciblés",dataKey:"etat_cible_texte",editVisible:!1,width:120},{title:"Date dernière exécution",dataKey:"last_execution_timestamp",editVisible:!1,width:120},{title:"Etat dernière exécution",dataKey:"last_execution_ok",editVisible:!1,width:120},{title:"Nombre références",dataKey:"nbref",editVisible:!1},{tab:"definition",title:"Dossier ciblés",dataKey:"etat_cible",type:"select",selectOptionsKey:"EXC_cible_provider",hidden:!0},{tab:"definition",title:"Gravité",dataKey:"gravite",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{tab:"definition",title:"Alerte",dataKey:"is_alert",type:"checkbox",hidden:!0},{tab:"regle-1",title:"Données",dataKey:"table1",type:"select",selectOptionsKey:"EXC_table_provider_SSR",hidden:!0},{tab:"regle-1",title:"Sélection",dataKey:"sqlcmd_where1",type:"textArea",hidden:!0},{tab:"regle-1",title:"Justificatif",dataKey:"sqlcmd_justificatif1",type:"textArea",hidden:!0},{tab:"regle-2",title:"Données",dataKey:"table2",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-2",title:"Sélection",dataKey:"sqlcmd_where2",type:"textArea",hidden:!0},{tab:"regle-2",title:"Justificatif",dataKey:"sqlcmd_justificatif2",type:"textArea",hidden:!0},{tab:"regle-3",title:"Données",dataKey:"table3",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-3",title:"Sélection",dataKey:"sqlcmd_where3",type:"textArea",hidden:!0},{tab:"regle-3",title:"Justificatif",dataKey:"sqlcmd_justificatif3",type:"textArea",hidden:!0},{tab:"description",title:"Description",dataKey:"description",type:"text-editor",hidden:!0}]},FIN:{tableName:"t_finess",title:"Gestion Finess",component:"finess",lineBlocks:[{dateFieldKey:"FIN_date_debut_coefficient_ssr",lines:[{key:"FIN_date_debut_coefficient_ssr_",label:"Historique coefficients SSR",type:"date"},{key:"FIN_fraction_dma_",label:"Fraction DMA",type:"input"},{key:"FIN_coefficient_transition_",label:"- Transition",type:"input"},{key:"FIN_coefficient_spe_",label:"- Spécialité",type:"input"},{key:"FIN_coefficient_geo_",label:"- Géographique",type:"input"},{key:"FIN_coefficient_hono_",label:"- Honoraire",type:"input"},{key:"FIN_coefficient_prud_",label:"- Prudentiel",type:"input"}],lengthFields:7}],fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1,editVisible:!1},{title:"Valeur point IVA",dataKey:"iva",type:"input",editable:!1,editVisible:!1},{title:"Valeur taux régional IVA",dataKey:"iva_reg",type:"input",editable:!1},{dataKey:"FIN_date_debut_coefficient_ssr_1",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_2",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_3",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_4",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_5",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_6",title:"Historique coefficients MCO",type:"date",hidden:!0},{dataKey:"FIN_date_debut_coefficient_ssr_7",title:"Historique coefficients MCO",type:"date",hidden:!0}]},DIV:{tableName:"t_divers",title:"Paramètres divers",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",width:100,editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"DIV1",type:"input"},{title:"Valeur date (format YYYY-MM-DD)",dataKey:"DIV2",type:"input"},{title:"Description",dataKey:"DIV3",type:"input",hidden:!0},{title:"Infomodule",dataKey:"DIV4",type:"input",hidden:!0}],refUniquement:!1}},yi=[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"}],d1t={DIV:{tableName:"t_divers",title:"Éléments divers",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Valeur date",dataKey:"valeur_date",type:"input"},{title:"Description",dataKey:"description",type:"input",editVisible:!1},{title:"Info module",dataKey:"show_info_module",type:"checkbox",width:80}]},ENT:{tableName:"t_entreprises",title:"Gestion entreprises",component:"common",refUniquement:!1,fields:[...yi,{title:"Code planning",dataKey:"code_ent_planning",type:"input"}]},ETA:{tableName:"t_etablissements",title:"Gestion Etablissements",component:"common",refUniquement:!1,fields:[...yi,{title:"Base calcul ETP",dataKey:"base_calcul_etp",type:"input"},{title:"Code planning",dataKey:"code_ets_planning",type:"input"},{title:"Etablissement",dataKey:"finess_id",type:"select",selectOptionsKey:"FINESS",hidden:!0}]},NAT:{tableName:"t_nationalites",title:"Gestion nationalités",refUniquement:!1,component:"common",fields:[...yi]},SIT:{tableName:"t_situations_famille",title:"Gestion situations de famille",refUniquement:!1,component:"common",fields:[...yi]},CSP:{tableName:"t_categories_socio_professionnelle",title:"Gestion catégories socio-profesionnelle",component:"common",refUniquement:!1,fields:[...yi]},CAE:{tableName:"t_cadre_emploi",title:"Gestion codes emploi",component:"common",refUniquement:!1,fields:[...yi]},CEM:{tableName:"t_codes_emploi",title:"Gestion codes emploi",refUniquement:!1,component:"common",fields:[...yi]},GRI:{tableName:"t_grilles",title:"Gestion grilles",component:"common",refUniquement:!1,fields:[...yi]},GGR:{tableName:"t_grilles_groupes",title:"Gestion groupes de grilles",refUniquement:!1,component:"common",fields:[...yi]},MDC:{tableName:"t_motifs_debut_contrat",title:"Gestion motifs début de contrat",refUniquement:!1,component:"common",fields:[...yi]},MFC:{tableName:"t_motifs_fin_contrat",title:"Gestion motifs fin de contrat",refUniquement:!1,component:"common",fields:[...yi]},QUA:{tableName:"t_qualifications",title:"Gestion qualifications",refUniquement:!1,component:"common",fields:[...yi]},SAN:{tableName:"t_sections_analytiques",title:"Gestion sections analytiques",refUniquement:!1,component:"common",fields:[...yi]},SAP:{tableName:"t_sections_analytiques_paie",title:"Gestion sections analytiques paie",refUniquement:!1,component:"common",fields:[...yi]},SER:{tableName:"t_services",title:"Gestion services",refUniquement:!1,component:"common",fields:[...yi]},SOC:{tableName:"t_societes_interim",title:"Gestion sociétés intérimaires",refUniquement:!1,component:"common",fields:[...yi]},SPE:{tableName:"t_specialites",title:"Gestion spécialités",refUniquement:!1,component:"common",fields:[...yi]},STA:{tableName:"t_statuts",title:"Gestion statuts",refUniquement:!1,component:"common",fields:[...yi]},TCO:{tableName:"t_types_contrat",title:"Gestion types contrat",component:"common",refUniquement:!1,fields:[...yi]},THO:{tableName:"t_types_horaire",title:"Gestion Types d'horaire",component:"common",refUniquement:!1,fields:[...yi]},TTT:{tableName:"t_types_temps_travail",title:"Gestion types temps de travail",component:"common",refUniquement:!1,fields:[...yi]},MAR:{tableName:"t_motifs_arret",title:"Gestion motifs d'arrêts de travail",component:"common",refUniquement:!1,fields:[...yi]},DPR:{tableName:"t_data_profile",title:"Gestion profils de données",component:"onglet",refUniquement:!1,addButton:!0,tabs:[{key:"etablissements",label:"Etablissements"},{key:"service",label:"Service"},{key:"statuts",label:"Status"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Règles",dataKey:"regles",type:"input",width:400,editVisible:!1},{title:"Inclus",tab:"etablissements",dataKey:"etablissement_inclus",type:"input",hidden:!0},{title:"Exclus",tab:"etablissements",dataKey:"etablissement_exclus",type:"input",hidden:!0},{title:"Inclus",tab:"service",dataKey:"service_inclus",type:"input",hidden:!0},{title:"Exclus",tab:"service",dataKey:"service_exclus",type:"input",hidden:!0},{title:"Inclus",tab:"statuts",dataKey:"statut_inclus",type:"input",hidden:!0},{title:"Exclus",tab:"statuts",dataKey:"statut_exclus",type:"input",hidden:!0}]},RUB:{tableName:"t_rubriques",title:"Gestion rubriques",component:"rubrique",refUniquement:!1,fields:{0:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Proratiser la conversion j->h selon le temps de travail",dataKey:"proratiser_conversion",type:"checkbox",hidden:!0},{title:"Cumul",dataKey:"p_cumul",type:"checkbox",hidden:!0},{title:"Détail",dataKey:"p_detail",type:"checkbox",hidden:!0},{title:"Modifié par l'utilisateur",dataKey:"user_modified",type:"checkbox",hidden:!0},{title:"Code calcul",dataKey:"code_calcul",type:"select",selectOptionsKey:"calculCodeList",width:80},{title:"Coefficient",dataKey:"coefficient",type:"input",width:100},{title:"Coefficient base",dataKey:"coefficient_base",type:"input",width:100},{title:"Coefficient nombre",dataKey:"coefficient_nombre",type:"input",width:10},{title:"Coefficient taux salarial",dataKey:"coefficient_txs",type:"input",hidden:!0},{title:"Coefficient taux patronal",dataKey:"coefficient_txp",type:"input",hidden:!0}],1:[{title:"Code",dataKey:"code",type:"input",editable:!1,resizable:!1,parentKey:"placeHolder",width:80},{title:"Code original",dataKey:"code_original",type:"input",editable:!1,hidden:!0},{title:"Texte",dataKey:"texte",type:"input",resizable:!1,parentKey:"placeHolder",width:200,dataGetter:({rowData:e})=>v.jsx(Mi,{placement:"topLeft",title:e.texte,children:e.texte})},{title:"Texte court",dataKey:"texte_court",type:"input",hidden:!0},{title:"Proratiser la conversion j->h selon le temps de travail",dataKey:"proratiser_conversion",type:"checkbox",hidden:!0},{title:"Cumul",dataKey:"p_cumul",type:"checkbox",hidden:!0},{title:"Détail",dataKey:"p_detail",type:"checkbox",hidden:!0},{title:"Modifié par l'utilisateur",dataKey:"user_modified",type:"checkbox",hidden:!0},{title:"Global",dataKey:"global",resizable:!1,width:0,children:[{title:"M",titleEdit:"Modifié par l'utilisateur",dataKey:"user_modified",key:"user_modified",type:"checkbox",resizable:!1,parentKey:"global",width:50,align:"center"},{title:"C",titleEdit:"Cumul",dataKey:"p_cumul",key:"p_cumul",type:"checkbox",resizable:!1,parentKey:"global",width:50,align:"center"},{title:"D",titleEdit:"Détail",dataKey:"p_detail",key:"p_detail",type:"checkbox",resizable:!1,parentKey:"global",width:50,align:"center"}]},{title:"Nombre",dataKey:"p_nombre",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Base",dataKey:"p_base",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Heure Contrat.",dataKey:"p_heures_contrat",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Heure Payées.",dataKey:"p_heures_payees",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Heure travaillées",dataKey:"p_heures_travaillees",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Masse salariale",dataKey:"p_masse_salariale",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Brut",dataKey:"p_brut",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Avantages Nature",dataKey:"p_avantage_nature",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Frais impossables",dataKey:"p_frais_imposables",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Cotisations salariés",dataKey:"p_cotisation_salarie",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Cotisations patronales",dataKey:"p_cotisation_patronale",resizable:!1,width:0,isSC:!0,align:"center"},{title:"OD/Net salarié",dataKey:"p_od_net_salarie",resizable:!1,width:0,isSC:!0,align:"center"},{title:"OD/Net patronale",dataKey:"p_od_net_patronale",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Net imposable",dataKey:"p_net_imposable",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Net à payer",dataKey:"p_net_a_payer",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Nombre provisions",dataKey:"p_nombre_provisions",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Montant provisions",dataKey:"p_montant_provisions",resizable:!1,width:0,isSC:!0,align:"center"},{title:"Masse salariale avec provisions",dataKey:"p_masse_salariale_provisionnee",resizable:!1,width:0,isSC:!0,align:"center"}]}},ORG:{tableName:"t_organismes_cotisation",title:"Gestion organisme de cotisation",component:"common",refUniquement:!1,fields:[...yi]},PSE:{tableName:"t_planning_service",title:"Gestion services planning",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Service (code paie) associé",dataKey:"service_paie_associe_texte"},{title:"Service (code paie) associé",dataKey:"service_id",type:"select",selectOptionsKey:"SER",hidden:!0}]},PQU:{tableName:"t_planning_qualification",title:"Gestion qualifications planning",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Code original",dataKey:"code_original",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"Qualification (code paie) associé",dataKey:"qualification_paie_associe_texte",editVisible:!1},{title:"Qualification (code paie) associé",dataKey:"qualification_id",type:"select",selectOptionsKey:"QUA",hidden:!0}]},PAB:{tableName:"t_planning_type_absence",title:"Gestion type absence planning",component:"common",refUniquement:!1,fields:[...yi],excludeFields:["texte_court"]},CXP:{tableName:"t_expert_controle",title:"Controles expert",refUniquement:!1,addButton:!0,module:"rh",execute:{label:"Executer les règles",action:"execute_rules"},component:"onglet",tabs:[{key:"cxp-regle-cti",label:"Règle CTI"},{key:"cxp-autre-cti",label:"Autres règles CTI"},{key:"cxp-ets",label:"Règles établissement"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"},{title:"CTI",dataKey:"is_cti",type:"checkbox"},{title:"Description",dataKey:"description",type:"textArea",hidden:!0},{title:"Gravité",dataKey:"gravite_id",type:"select",selectOptionsKey:"EXC_gravite_provider",hidden:!0},{title:"Alerte",dataKey:"alerte_id",type:"checkbox",hidden:!0},{title:"Actif",dataKey:"is_active",type:"checkbox",hidden:!0},{title:"A partir de",dataKey:"start_periode",type:"select",selectOptionsKey:"CXP_start",hidden:!0},{title:"Indicateur",dataKey:"indicateur_texte",type:"text",editVisible:!1},{title:"Complément",dataKey:"complement",type:"text",editVisible:!1},{title:"Date Exécution",dataKey:"last_date",type:"text",editVisible:!1},{title:"Statut",dataKey:"last_status",type:"text",editVisible:!1},{title:"Signalements",dataKey:"last_count",type:"text",editVisible:!1},{title:"cxp-regle-cti",tab:"cxp-regle-cti",type:"cxp-regle-cti",hidden:!0},{title:"cxp-autre-cti",tab:"cxp-autre-cti",type:"cxp-autre-cti",hidden:!0},{title:"cxp-ets",tab:"cxp-ets",type:"cxp-ets",hidden:!0}]}},Fp=[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"}],f1t={BOR:{tableName:"t_sae_bordereau",title:"Bordereaux",refUniquement:!1,component:"common",fields:[...Fp,{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Masqué",dataKey:"est_masque",type:"checkbox",dataGetter:({rowData:e})=>e.est_masque?"Oui":"Non"}]},CHP:{tableName:"t_sae_chapitre",title:"Chapitres (lignes)",refUniquement:!1,component:"chapter",fields:[...Fp,{title:"Bordereau",dataKey:"bordereau_texte",type:"input",editable:!1}]},IND:{tableName:"t_sae_indicateur",title:"Indicateurs",refUniquement:!1,component:"common",fields:[...Fp,{title:"Source",dataKey:"source",type:"input",editable:!1},{title:"Bordereau",dataKey:"source",type:"input"},{title:"Chapitre (ligne)",dataKey:"chapitre",type:"input"},{title:"Format",dataKey:"format",type:"input"}]},NPR:{tableName:"t_sae_classification_personnel",title:"Classification personnel",refUniquement:!1,component:"common",fields:[...Fp,{title:"Arborescence",dataKey:"arborescence",type:"input",editable:!1}]},MDX:{tableName:"t_sae_medecin_liberal",title:"Médecins (activité)",refUniquement:!1,component:"common",fields:[...Fp,{title:"Genre",dataKey:"sexe",type:"input"},{title:"Spécialité",dataKey:"specialite_texte",type:"input"},{title:"Type",dataKey:"type",type:"input"},{title:"Discipline",dataKey:"discipline",type:"input"},{title:"Service",dataKey:"service",type:"input"},{title:"Filière",dataKey:"filiere",type:"input"},{title:"Classification",dataKey:"classification",type:"input"},{title:"Présent 31/12",dataKey:"present_3112",type:"input"},{title:"Jours année",dataKey:"jours_travailles_annee",type:"input"},{title:"Jours Décembre",dataKey:"jours_travailles_decembre",type:"input"},{title:"Temps travail",dataKey:"type_temps_travail",type:"input"}]},CNT:{tableName:"t_sae_contrat",title:"Salariés / Contrats",refUniquement:!1,component:"common",fields:[...Fp,{title:"Matricule",dataKey:"salarie_code",type:"input"},{title:"Nom",dataKey:"texte",type:"input"},{title:"Contrat",dataKey:"contrat_code",type:"input"},{title:"Genre",dataKey:"sexe",type:"input"},{title:"Type",dataKey:"type_contrat_code",type:"input"},{title:"Qualification",dataKey:"qualification",type:"input"},{title:"Discipline",dataKey:"discipline",type:"input"},{title:"Service",dataKey:"service",type:"input"},{title:"Filière",dataKey:"filiere",type:"input"},{title:"Classification",dataKey:"classification",type:"input"},{title:"Temps travail",dataKey:"type_temps_travail",type:"input"},{title:"Présent 31/12",dataKey:"effectif",type:"input"},{title:"ETP",dataKey:"etp",type:"etp_paye_prorate"}]},DIV:{tableName:"t_divers",title:"Options",refUniquement:!1,component:"common",fields:[...Fp,{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Description",dataKey:"description",type:"input",editable:!1}]}},Hc=[{title:"Code",dataKey:"code",width:100,type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"},{title:"Code original",dataKey:"code_original",type:"input",editable:!1,width:150}],h1t={SER:{tableName:"t_services_facturation",title:"Gestion Services facturation",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,addSearchFields:["mtdmt"],tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"},{key:"options-1",label:"Options de génération"},{key:"options-2",label:"Options de génération (suite)"}],fields:[...Hc,{title:"Lits",dataKey:"nb_lits",type:"input",width:80,tab:"definition"},{title:"C.P.",dataKey:"nb_cp",type:"input",width:80,tab:"definition"},{title:"Finess",dataKey:"finess",type:"input",tab:"definition",editVisible:!1},{title:"Mode de traitement",dataKey:"mode_traitement_id",type:"select",selectOptionsKey:"MTR",tab:"options-1",hidden:!0},{title:"DMT",dataKey:"dmt_id",type:"select",selectOptionsKey:"DMT",tab:"options-1",width:80,hidden:!0},{title:"DMT",dataKey:"mtdmt",editVisible:!1},{title:"Particularités",dataKey:"comment",type:"input",editVisible:!1},{title:"Type PMSI",dataKey:"type_t2a",type:"select",selectOptionsKey:"SER_type_t2a_provider",tab:"definition",hidden:!0},{title:"FINESS",dataKey:"finess_id",type:"select",selectOptionsKey:"FINESS",tab:"definition",hidden:!0},{title:"Budget global",dataKey:"est_budget_global",type:"checkbox",tab:"definition",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0},{title:"Type séjour",dataKey:"type_sejour",type:"select",selectOptionsKey:"SER_TYPE_SEJOUR_PROVIDER",tab:"options-1",hidden:!0},{title:"Sans mouvement",dataKey:"est_sans_mouvement",type:"checkbox",tab:"options-1",hidden:!0},{title:"Calcul journées",dataKey:"mode_calcul_journees",type:"select",selectOptionsKey:"OPTADM_DAYOUT_PROVIDER",tab:"options-1",hidden:!0},{title:"Étage par défault",dataKey:"etage_par_defaut_id",type:"select",selectOptionsKey:"ETAGE",tab:"options-1",hidden:!0},{title:"Étage forcé",dataKey:"etage_force_id",type:"select",selectOptionsKey:"ETAGE",tab:"options-1",hidden:!0},{title:"Médecins par défault",dataKey:"medecin_par_defaut_id",type:"select",selectOptionsKey:"MDA",tab:"options-1",hidden:!0},{title:"Médecin forcé",dataKey:"medecin_force_id",type:"select",selectOptionsKey:"MDA",tab:"options-1",hidden:!0},{title:"Facturation",dataKey:"est_sans_facturation",type:"select",selectOptionsKey:"SER_est_sans_facturation_provider",tab:"options-1",hidden:!0},{title:"Facturation intermédiaire",dataKey:"avec_facturation_intermediaire",type:"checkbox",tab:"options-1",hidden:!0},{title:"Mouvement / jours fermés",dataKey:"option_jour_ferme",type:"checkbox",detail:"Si coché : suppression des mouvements les jours de fermeture du service.",tab:"options-2",hidden:!0},{title:"Prestations présence",dataKey:"prestations_presence",type:"input",detail:"Codes prestations identifiant présence en HDJ",tab:"options-2",hidden:!0},{title:"Particularité en cours",dataKey:"particularites_encours",type:"input",detail:"IVG, MAT",tab:"options-2",hidden:!0},{title:"Séjours sans actes fictifs",dataKey:"sej_sans_acte_fictif",type:"checkbox",tab:"options-2",hidden:!0},{title:"Activité par défaut",dataKey:"activite_par_defaut_id",type:"select",selectOptionsKey:"ACTIVITE",tab:"options-2",hidden:!0},{title:"Activité forcée",dataKey:"activite_force_id",type:"select",selectOptionsKey:"ACTIVITE",tab:"options-2",hidden:!0}]},ACF:{tableName:"t_activites",title:"Gestion activtés facturation",component:"common",refUniquement:!1,fields:[...Hc,{title:"Étage par défault",dataKey:"etage_par_defaut_id",type:"select",selectOptionsKey:"ETAGE",hidden:!0},{title:"Étage par forcé",dataKey:"etage_force_id",type:"select",selectOptionsKey:"ETAGE",hidden:!0}]},ETA:{tableName:"t_etages",title:"Gestion étages",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"},{key:"lits",label:"Lits"}],fields:[...Hc.filter(e=>e.dataKey!=="texte_court"),{title:"Texte court",dataKey:"texte_court",type:"input",width:80,hidden:!0,tab:"definition"},{title:"Lits",dataKey:"nb_lits",type:"input",width:80,tab:"definition"},{title:"C.P.",dataKey:"nb_cp",type:"input",width:80,tab:"definition"},{title:"Unité d'urgences",dataKey:"est_urgence",type:"checkbox",tab:"definition",hidden:!0},{title:"Service forcé",dataKey:"service_force_id",type:"select",selectOptionsKey:"SERVICE",tab:"definition",hidden:!0},{title:"Ignorer",dataKey:"remplacer_par_valeur_par_defaut",type:"checkbox",tab:"definition",detail:"Si coché, la valeur sera remplacé par l'étape par défault du service.",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0},{title:"Lits",type:"lits",tab:"lits",hidden:!0}]},ETAPLC:{tableName:"t_etages",title:"Capacité étages",component:"onglet",refUniquement:!1,tabs:[{key:"places",label:"Places"}],fields:[...Hc,{title:"Histos",type:"histos",tab:"places",hidden:!0},{title:"Lits",dataKey:"nb_lits",type:"input",width:80},{title:"C.P.",dataKey:"nb_cp",type:"input",width:80}],excludeFields:["texte_court"]},LIT:{tableName:"t_lits",title:"Gestion lits",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"etages",label:"Étage"}],fields:[{title:"Code",dataKey:"code",width:100,type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input",width:80,tab:"definition",hidden:!0},{title:"Code original",dataKey:"code_original",type:"input"},{title:"Etage code",dataKey:"etage_code",type:"input",tab:"definition"},{title:"Etage texte",dataKey:"etage_texte",type:"input",tab:"definition"},{title:"Chambre particulière",dataKey:"est_chambre_particuliere",type:"checkbox",tab:"definition",hidden:!0},{type:"etages",tab:"etages",hidden:!0}]},UFT:{tableName:"t_unites_fonctionnelles",title:"Gestion unités fonctionnelles",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"},{key:"options",label:"Options de génération"}],fields:[{title:"Code",dataKey:"code",width:100,type:"input",tab:"definition"},{title:"Texte",dataKey:"texte",type:"input",tab:"definition"},{title:"Texte court",dataKey:"texte_court",type:"input",tab:"definition"},{title:"Code original",dataKey:"code_original",type:"input",tab:"definition",editable:!1,width:150},{title:"Facturation",dataKey:"est_sans_facturation",type:"select",selectOptionsKey:"SER_est_sans_facturation_provider",tab:"options",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0}]},UMD:{tableName:"t_unites_medicales",title:"Gestion unités médicales",component:"onglet",refUniquement:!1,saveWithoutCalc:!0,tabs:[{key:"definition",label:"Définition"},{key:"places",label:"Places"}],fields:[{title:"Code",dataKey:"code",width:100,type:"input",tab:"definition"},{title:"Texte",dataKey:"texte",type:"input",tab:"definition"},{title:"Texte court",dataKey:"texte_court",type:"input",tab:"definition"},{title:"Code original",dataKey:"code_original",type:"input",tab:"definition",editable:!1,width:150},{title:"Étage par défault",dataKey:"etage_par_defaut_id",type:"select",selectOptionsKey:"ETAGE",tab:"definition",hidden:!0},{title:"Étage par forcé",dataKey:"etage_force_id",type:"select",selectOptionsKey:"ETAGE",tab:"definition",hidden:!0},{title:"Histos",type:"histos",tab:"places",hidden:!0}]},FAC:{tableName:"t_forme_activite",title:"Gestion formes d'activité",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Texte court",dataKey:"texte_court",type:"input",editable:!1}]},FAR:{tableName:"t_forme_activite_rule",title:"Gestion règles formes d'activité",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,fields:[{title:"Priorité",dataKey:"priorite",type:"input",width:100,default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input"},{title:"Forme activité",dataKey:"forme_activite_texte",type:"text",editVisible:!1},{title:"Forme activité",dataKey:"forme_activite_id",type:"select",selectOptionsKey:"FAC",hidden:!0},{title:"Règle",dataKey:"rule_resume",editVisible:!1,type:"input"}],extraFields:!0},FSO:{tableName:"t_filiere_soin",title:"Gestion Filières de soin",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input"}]},FSR:{tableName:"t_filiere_soin_rule",title:"Gestion règles Filières de soin",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,fields:[{title:"Priorité",dataKey:"priorite",type:"input",width:100,default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input"},{title:"Filière de soin",dataKey:"filiere_soin_texte",type:"select",editVisible:!1},{title:"Filière de soin",dataKey:"filiere_soin_id",type:"select",selectOptionsKey:"FSO",hidden:!0},{title:"Règle",dataKey:"rule_resume",type:"input",editVisible:!1}],extraFields:!0},FSJ:{tableName:"t_sejour",title:"Forçages Séjours",component:"sejours",refUniquement:!1,addButton:!0,fields:[{title:"Numéro",dataKey:"code",type:"input",width:100},{title:"Nom",dataKey:"texte",type:"input"},{title:"Séjour à ignorer",dataKey:"est_ignore",type:"checkbox",width:100,hidden:!0},{title:"Ignoré",dataKey:"est_ignore_texte",type:"input",editVisible:!1,width:100},{title:"Médecin forcé",dataKey:"medecin_sejour_id",type:"select",selectOptionsKey:"MDA",hidden:!0},{title:"Médecin forcé",dataKey:"medecin_sejour_texte",editVisible:!1},{title:"Service forcé",dataKey:"service_facturation_texte",editVisible:!1},{title:"Etage forcé",dataKey:"etage_texte",editVisible:!1,width:150},{title:"Type",dataKey:"type_sejour",type:"select",selectOptionsKey:"FSJ_type",hidden:!0},{title:"Type séjour forcé",dataKey:"type_sejour_texte",editVisible:!1,width:150},{title:"Service",dataKey:"service_facturation_id",type:"select",selectOptionsKey:"SERVICE",hidden:!0},{title:"Etage",dataKey:"etage_id",type:"select",selectOptionsKey:"ETAGE",hidden:!0},{title:"Encours",dataKey:"encours_1_from_date",type:"select",selectOptionsKey:"MOIS",hidden:!0,detail:"à partir de",default:"2099-12-31"},{title:"Forçage en cours",dataKey:"encours_texte",editVisible:!1,width:150},{title:"Ignorer (Encours)",dataKey:"encours_1_est_ignore",type:"checkbox",hidden:!0}]},WFU:{tableName:"t_web100t_forcage_uf_soin",title:"Gestion Forcage UF Soins WEB100T",component:"common",refUniquement:!1,fields:[{title:"Texte",dataKey:"texte",type:"input"},{title:"UF Soins forcée",dataKey:"mvt_uf_soin_lib",editVisible:!1},{title:"UF Soins forcée",dataKey:"mvt_uf_soin",type:"select",selectOptionsKey:"MVT_UF_SOIN",hidden:!0},{title:"UF Soins héritée (spécialité séjour)",dataKey:"mvt_uf_soin_lib_hs",editVisible:!1},{title:"UF Soins héritée (type séjour)",dataKey:"mvt_uf_soin_lib_hc",editVisible:!1}]},MDA:{tableName:"t_medecins_administratifs",title:"Gestion Référentiel Médecins",component:"common",refUniquement:!1,fields:[...Hc,{title:"Nom",dataKey:"nom",type:"input"},{title:"Prénom",dataKey:"prenom",type:"input"},{title:"Nº ADELI",dataKey:"no_adeli",type:"input",editVisible:!1},{title:"Spécialité",dataKey:"specialite",type:"input",editVisible:!1},{title:"Médecin référence",dataKey:"medecin_reference",type:"input",editVisible:!1},{title:"Médecin salarié",dataKey:"est_medecin_salarie",type:"checkbox",hidden:!0},{title:"Comptabiliser honoraires (patient)",dataKey:"kiwee_sigems_honpatcpt",type:"checkbox"},{title:"Comptabiliser dépassements honoraires (patient)",dataKey:"kiwee_sigems_honpatcptdep",type:"checkbox"}],excludeFields:["texte_court","texte"]},PRC:{tableName:"t_prestations_c",title:"Gestion Prestations Clinique",component:"common",refUniquement:!1,fields:[...Hc,{title:"Complement",dataKey:"complement",type:"input",editVisible:!1},{title:"Ventilation des lignes facturés par jour",dataKey:"type_ventilation_jour",type:"select",selectOptionsKey:"PRC_type_valorisation_facture",hidden:!0},{title:"Type valorisation",dataKey:"type_valorisation_non_facture",type:"select",selectOptionsKey:"PRC_type_valorisation_non_facture",hidden:!0}]},RUB:{tableName:"t_rubriques_facturation",title:"Gestion Rubriques Facturation",refUniquement:!1,component:"common",fields:[...Hc,{title:"Forcé établissement",detail:"Acte facturé en honoraire à remonter en partie établissement",dataKey:"est_force_etablissement",type:"checkbox",hidden:!0},{title:"Acte inclus (public)",dataKey:"actes_inclus_public",type:"checkbox",hidden:!0}]},CPT:{tableName:"t_compte",title:"Gestion Comptes produits",refUniquement:!1,component:"common",fields:[...Hc,{title:"TVA",dataKey:"tva_texte",type:"input",editVisible:!1},{title:"Compte TVA",dataKey:"compte_tva_id",type:"select",selectOptionsKey:"CPT",hidden:!0},{title:"Taux TVA",dataKey:"taux_tva",type:"input",dependsOn:"compte_tva_id",disabledWhen:"0",width:80,hidden:!0}]},SRU:{tableName:"t_service_rubrique",title:"Gestion Comptes produits par rubrique",refUniquement:!1,component:"common",fields:[{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Rubriques",dataKey:"rubrique",type:"input",editable:!1},{title:"Compte",dataKey:"compte",editVisible:!1},{title:"Prestation forcée",dataKey:"prestation_forcee",type:"input",editVisible:!1},{title:"Nombre référence",dataKey:"nbref",editVisible:!1},{title:"Compte",dataKey:"compte_id",type:"select",selectOptionsKey:"CPT",hidden:!0},{title:"Compte forcé ?",dataKey:"est_compte_force",type:"checkbox",hidden:!0},{title:"Prestation forcée",dataKey:"prestation_forcee_id",type:"select",selectOptionsKey:"PRESTATION",hidden:!0}]},CAR:{tableName:"t_compte_produit_analytique_rule",title:"Gestion règles comptes analytiques",component:"rules",addButton:!0,execute:{label:"Executer les règles",action:"execute_rules"},refUniquement:!1,fields:[{title:"Priorité",dataKey:"priorite",type:"input",width:100,default:"5000"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Code règle",dataKey:"code",type:"input",hidden:!0},{title:"Compte",dataKey:"compte_produit_analytique_texte",type:"input",editVisible:!1},{title:"Compte",dataKey:"$compte_produit_analytique_id",type:"select",selectOptionsKey:"CPT",hidden:!0},{title:"Règles",dataKey:"rule_resume",editVisible:!1},{title:"Type séjour",dataKey:"liste_type_sejour",type:"input",hidden:!0,tab:!0},{title:"Spécialité",dataKey:"liste_specialite",type:"input",hidden:!0,tab:!0},{title:"Médecins",dataKey:"liste_medecin",type:"input",hidden:!0,tab:!0},{title:"Services",dataKey:"liste_service",type:"input",hidden:!0,tab:!0},{title:"Etages",dataKey:"liste_etage",type:"input",hidden:!0,tab:!0},{title:"Unité fonctionnelle",dataKey:"liste_unite_fonctionnelle",type:"input",hidden:!0,tab:!0},{title:"Actes",dataKey:"liste_acte",type:"input",hidden:!0,tab:!0},{title:"Rubriques",dataKey:"liste_rubrique",type:"input",hidden:!0,tab:!0},{title:"Prestations",dataKey:"liste_prestation",type:"input",hidden:!0,tab:!0},{title:"Sauf Prestation",dataKey:"liste_sauf_prestation",type:"input",hidden:!0,tab:!0},{title:"Compte Produit",dataKey:"liste_compte_produit",type:"input",hidden:!0,tab:!0},{title:"Sauf Compte Produit",dataKey:"liste_sauf_compte_produit",type:"input",hidden:!0,tab:!0},{title:"GHM",dataKey:"liste_ghm",type:"input",hidden:!0,tab:!0},{title:"Sauf GHM",dataKey:"liste_sauf_ghm",type:"input",hidden:!0,tab:!0},{title:"Diagnostic principal",dataKey:"liste_diagnostic_principal",type:"input",hidden:!0,tab:!0},{title:"Diagnostique relié",dataKey:"liste_diagnostic_relie",type:"input",hidden:!0,tab:!0},{title:"Diagnostique associé",dataKey:"liste_diagnostic_associe",type:"input",hidden:!0,tab:!0},{title:"FINESS",dataKey:"liste_finess",type:"input",hidden:!0,tab:!0}]},GHS:{tableName:"t_ghs",title:"Interrogation GHS",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1}]},ENC:{tableName:"t_calcul_encours",title:"Paramètres de calculs d'encours",ongletTable:!0,refUniquement:!1,execute:{label:"Relancer la valorisation",action:"execute"},fields:[...Hc,{title:"Complément",dataKey:"complement",type:"input",editVisible:!1}],addSearchFields:["prestation","service","service","nom","séjour"],infoSup:{label:"Prochain en-cours"},onglets:{1:{label:"Paramètres généraux",component:"common",fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input"},{title:"Description",dataKey:"description",type:"input",editable:!1}]},2:{label:"Paramètres prestations",component:"common",fields:[{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Type valorisation",dataKey:"description",type:"input",editVisible:!1},{title:"Type valorisation",dataKey:"type_valorisation",type:"select",allowClear:!0,selectOptionsKey:"PRC_type_valorisation_non_facture_provider",hidden:!0}]},3:{label:"Moyenne et PU calculés",component:"common",fields:[{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Coefficient calculé",dataKey:"coefficient_calcule",type:"input",editable:!1},{title:"Coefficient forcé",dataKey:"coefficient_force",type:"input",editVisible:!1},{title:"Coefficient forcé",dataKey:"coefficient_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"coefficient_force",type:"input",dependsOn:"coefficient_is_force",disabledWhen:!1,hidden:!0},{title:"Prix unitaire calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Prix unitaire forcé",dataKey:"prix_unitaire_force",type:"input",editVisible:!1},{title:"Prix unitaire forcé",dataKey:"prix_unitaire_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"prix_unitaire_force",type:"input",dependsOn:"prix_unitaire_is_force",disabledWhen:!1,hidden:!0}]},4:{label:"Valorisation GHS (non groupés)",component:"common",fields:[{title:"Séjour",dataKey:"sejour",type:"input",editable:!1},{title:"Nom",dataKey:"nom",type:"input",editable:!1},{title:"Facture",dataKey:"facture",type:"input",editable:!1},{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Tarif calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_force",type:"input",editVisible:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"prix_unitaire_force",type:"input",dependsOn:"prix_unitaire_is_force",disabledWhen:!1,hidden:!0}]},5:{label:"Valorisations prestations",component:"common",fields:[{title:"Séjour",dataKey:"sejour",type:"input",editable:!1},{title:"Nom",dataKey:"nom",type:"input",editable:!1},{title:"Facture",dataKey:"facture",type:"input",editable:!1},{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Prestation",dataKey:"prestation",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Coefficient calculé",dataKey:"coefficient_calcule",type:"input",editable:!1},{title:"Tarif calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_force",type:"input",editVisible:!1},{title:"Tarif forcé",dataKey:"prix_unitaire_is_force",type:"checkbox",hidden:!0},{title:"Valeur",dataKey:"prix_unitaire_force",type:"input",dependsOn:"prix_unitaire_is_force",disabledWhen:!1,hidden:!0},{title:"Ignoré",dataKey:"ignorer",type:"checkbox"}]},8:{label:"Factures ignorées",component:"common",fields:[{title:"Séjour",dataKey:"sejour",type:"input",editable:!1},{title:"Nom",dataKey:"nom",type:"input",editable:!1},{title:"Facture",dataKey:"facture",type:"input",editable:!1},{title:"Tarif calculé",dataKey:"prix_unitaire_calcule",type:"input",editable:!1},{title:"Ignoré",dataKey:"ignorer",type:"checkbox"}]}}},PRH:{tableName:"t_prestations_h",title:"Gestion Prestations Honoraire",component:"common",refUniquement:!1,fields:[...Hc,{title:"Complément",dataKey:"complement",type:"input",editVisible:!1}]},CCR:{tableName:"t_ccam_regroupements",title:"Interrogation Regroupements CCAM",component:"common",refUniquement:!1,fields:[...Hc.map(e=>({...e,editable:!1}))],excludeFields:["code_original"]},DTG:{tableName:"t_service_rubrique_dotation",title:"Gestion Dotation globale",component:"common",refUniquement:!1,fields:[{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Année",dataKey:"annee",type:"input",editable:!1},{title:"Dotation",dataKey:"dotation",type:"input",editable:!1},{title:"Service",dataKey:"service",type:"input",editable:!1},{title:"Rubrique",dataKey:"rubrique",type:"input",editable:!1},{title:"Vers rubrique",dataKey:"versrubrique",type:"input",editable:!1}]},ACT:{tableName:"t_actes",title:"Interrogation Actes",component:"common",fields:[{title:"Code",dataKey:"code",width:100,type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Regroupement",dataKey:"regroupement_1",width:100,type:"input",editable:!1},{title:"Regroupement",dataKey:"regroupement_4",width:100,type:"input",editable:!1}],excludeFields:["texte_court","code_original"]},TTP:{tableName:"t_types_tiers_payant",title:"Gestion Types Tiers Payant",component:"common",refUniquement:!1,fields:[{title:"Code",dataKey:"code",width:100,editable:!1,type:"input"},{title:"Texte",dataKey:"texte",type:"input"},{title:"Texte court",dataKey:"texte_court",type:"input"}]},TPY:{tableName:"t_tiers_payant",title:"Gestion Tiers Payant",component:"common",refUniquement:!1,saveWithoutCalc:!0,fields:[...Hc,{title:"Régime",dataKey:"grand_regime",type:"input",editVisible:!1},{title:"Régime",dataKey:"grand_regime_id",type:"select",selectOptionsKey:"TPY",hidden:!0},{title:"Type",dataKey:"type_tiers_payant",type:"input",editable:!1}]},EXC:{tableName:"t_expert_controle",title:"Gestion Controles Expert",component:"onglet",addButton:!0,copyButton:!0,sqlButton:!0,editable:!1,execute:{label:"Éxécuter les règles",action:"execute_rules"},preferences:{label:"Préférences"},tabs:[{key:"definition",label:"Définition"},{key:"description",label:"Description"},{key:"regle-1",label:"Règle 1"},{key:"regle-2",label:"Règle 2"},{key:"regle-3",label:"Règle 3"}],fields:[{title:"Code",dataKey:"code",type:"input",editable:!0},{title:"Contrôle CTI",dataKey:"is_cti",type:"checkbox",width:80,hidden:!0},{tab:"definition",title:"Texte",dataKey:"texte",type:"input"},{title:"État",dataKey:"is_active_texte",editVisible:!1,width:80},{title:"Complément",dataKey:"complement",editVisible:!1,width:120},{title:"Gravité",dataKey:"gravite_texte",editVisible:!1,width:80},{title:"Contrôle activé",dataKey:"is_active",type:"checkbox",tab:"definition",hidden:!0},{title:"Dernière exécution",dataKey:"last_execution_timestamp",editVisible:!1},{title:"Nombre références",dataKey:"nbref",editVisible:!1},{tab:"definition",title:"Texte affiché",dataKey:"texte_court",type:"input",hidden:!0},{tab:"definition",title:"Dossier ciblés",dataKey:"etat_cible",type:"select",selectOptionsKey:"EXC_cible_provider",hidden:!0},{tab:"definition",title:"Prestataires",dataKey:"prestataire_id",type:"select",selectOptionsKey:"PRESTATAIRE",hidden:!0},{tab:"definition",title:"Gravité",dataKey:"gravite",type:"select",selectOptionsKey:"EXC_gravite_provider",detail:"Contrôle spécifique à un prestataire",hidden:!0},{tab:"definition",title:"Alerte",dataKey:"is_alert",type:"checkbox",hidden:!0},{tab:"definition",title:"Masqué",dataKey:"is_hide",type:"checkbox",hidden:!0},{tab:"regle-1",title:"Données",dataKey:"table1",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-1",title:"Sélection",dataKey:"sqlcmd_where1",type:"textArea",hidden:!0},{tab:"regle-1",title:"Justificatif",dataKey:"sqlcmd_justificatif1",type:"textArea",hidden:!0},{tab:"regle-2",title:"Données",dataKey:"table2",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-2",title:"Sélection",dataKey:"sqlcmd_where2",type:"textArea",hidden:!0},{tab:"regle-2",title:"Justificatif",dataKey:"sqlcmd_justificatif2",type:"textArea",hidden:!0},{tab:"regle-3",title:"Données",dataKey:"table3",type:"select",selectOptionsKey:"EXC_table_provider",hidden:!0},{tab:"regle-3",title:"Sélection",dataKey:"sqlcmd_where3",type:"textArea",hidden:!0},{tab:"regle-3",title:"Justificatif",dataKey:"sqlcmd_justificatif3",type:"textArea",hidden:!0},{tab:"description",title:"Description",dataKey:"description",type:"text-editor",hidden:!0}]},DIV:{tableName:"t_divers",title:"Gestion Paramètres divers",component:"common",refUniquement:!1,saveWithoutCalc:!0,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"input",width:80},{title:"Description",dataKey:"description",type:"input",editable:!1},{title:"Info Module",dataKey:"show_info_module",type:"checkbox",width:80}]},KIW:{tableName:"t_kiwee_params",title:"Gestion Paramètres Kiwee",component:"common",refUniquement:!1,saveWithoutCalc:!0,fields:[{title:"Code",dataKey:"code",type:"input",editable:!1},{title:"Texte",dataKey:"texte",type:"input",editable:!1},{title:"Valeur",dataKey:"valeur",type:"checkbox",width:80},{title:"Description",dataKey:"description",type:"input",editable:!1}]}},g1t={"CTI_BASE_TablesManager.swf":uyt,"CTI_ECO_TablesManager.swf":l1t,"CTI_ACTI_TablesManager.swf":h1t,"CTI_PMSI_TablesManager.swf":A1t,"CTI_RH_TablesManager.swf":d1t,"CTI_PMSISSR_TablesManager.swf":u1t,"CTI_COMPTA_TablesManager.swf":o1t,"CTI_SSAE_TablesManager.swf":f1t,"CTI_DPI_TablesManager.swf":s1t},gC="Privé",CO="Public",ube=({module:e,item:t})=>{const[r,n]=E.useState(null),[a,i]=E.useState(null),[o,s]=E.useState(!1),[l,c]=E.useState(!1),[A,u]=E.useState([]),[d,f]=E.useState(null),[h,g]=E.useState(!1),[p,m]=E.useState([]),[y,C]=E.useState(null),[w,B]=E.useState(""),[x,M]=E.useState(null),[S,R]=E.useState(null),[b,T]=E.useState([]),[D,F]=E.useState(!1),[N,_]=E.useState(!1),[P,k]=E.useState(!1),[j,Y]=E.useState(gC),[X,K]=E.useState(ei()),[U,H]=E.useState(""),[L,V]=E.useState(!1),J=E.useRef(),[ee,ae]=E.useState("100%"),ne=ut(Fe=>Fe.cti.components.tables.data.records),fe=ut(Fe=>Fe.cti.components.tables.data.choices),he=ut(Fe=>Fe.cti.components.tables.data.divers),ye=ut(Fe=>Fe.cti.components.tables.data.addRecord),be=ut(Fe=>Fe.cti.components.tables.data.refRecords),Se=ut(Fe=>Fe.cti.components.tables.loading),ve=wn();E.useEffect(()=>{if(t){R(null),ae("100%"),s(!1),k(!1),f(t.swf),H(""),V(!1);let Fe=t.swfData;e==="iCTI_ssae"&&(Fe=Fe.split("-")[0]),["BUC_activite","BUI_activite","BUR_activite"].includes(Fe)&&(Fe=Fe.split("_")[0]),C(Fe),i(null)}},[t,e]),E.useEffect(()=>{a&&(n(null),B(""),F(!1),_(!1),V(a.selectButton),ve(RB(t.swf,e,a.tableName,U,"1",a)))},[a,U]),E.useEffect(()=>{if(y&&d){const Fe=ce(d);if(Fe){let je={...Fe[y]};je&&(je.extraFields===!0&&(je.fields=je.fields.concat(dyt(y,e))),je.excludeFields&&je.excludeFields.forEach(ue=>{je.fields=je.fields.filter(ie=>ie.dataKey!==ue)}),je.sqlChoices&&ve(HH(je.sqlChoices)),i(je))}else i(null)}},[e,y,d,ve]),E.useEffect(()=>{if(a)if(a.tableName==="t_rubriques"){if(he&&Object.values(he).length){const Fe=he.rubriques.valeur;T(a.fields[Fe])}}else T(a.fields)},[he,a]),E.useEffect(()=>{if(b?.length&&a)switch(b[0].title!=="oid"&&b.unshift({title:"oid",dataKey:"oid",type:"input",hidden:!0,editVisible:!1}),R(null),a.tableName){case"t_rubriques":const je=qe(b).map((ue,ie)=>{let Be;return["Code","Texte"].includes(ue.title)&&(Be=Oy.FrozenDirection.LEFT),ue.title==="Texte"?{...ue,frozen:Be,justifyContent:"center",width:200}:{...ue,frozen:Be,width:100,justifyContent:"center"}});m(je);break;default:m(qe(b));break}},[b]),E.useEffect(()=>{if(ne.length&&a&&b){if(a.ongletTable){let Fe={};ne.forEach(je=>{Fe[je.type_parametre]={type_ligne:je.type_ligne,type_parametre:je.type_parametre}}),R(Fe)}else R(null);a.selectButton&&(!U.length||U==="-1")?u([]):Array.isArray(b)&&b.length&&u(ct(ne,b,x))}else ne.length||u([])},[ne,a,h,w,b,D,N,x,j,X]),E.useEffect(()=>{J.current&&typeof ee=="string"&&ae(J.current.offsetHeight)},[J,ee]);const de=()=>{ae("100%"),s(!o),n(null)},Ue=Fe=>{n(ne.find(je=>je.key===Fe)),s(!0),ae("40%"),k(!1)},at=Fe=>{F(Fe)},Ve=Fe=>{_(Fe)},Ie=()=>{ve(RB(t.swf,e,a.tableName,U,"1",a))},we=()=>{ve(jS([]));let Fe={};Object.keys(ye).length?Fe={...ye}:(b.forEach(je=>{let ue;switch(je.type){case"input":ue=je.default??"";break;case"select":ue=je.default??"0";break;case"checkbox":ue=!1;break}Fe[je.dataKey]=ue}),Fe.oid="-1"),n(Fe),s(!0),ae("40%")},Re=Fe=>{g(Fe)},Te=Fe=>{B(Fe.target.value)},Ke=Fe=>{let je=fe.find(ue=>ue.oid===Fe);H(je.code!=="code"?je.code:""),a.tableName==="t_etude_5"&&H(je.oid)},mt=()=>{Ugt(ne,a)},tt=()=>{ve(TIe(t.swf,a.tableName,t.softCode,null,a?.execute?.action??"execute"))},rt=Fe=>{c(Fe)},lt=Fe=>{ae(ee+Fe.height)},At=(Fe,je)=>{K(Fe)},$e=Fe=>{Y(Fe===gC?gC:CO)};function ce(Fe){let je=Fe.substring(2);return g1t[je]}function qe(Fe){let je=Fe.map(ue=>{if(ue.isSC&&(!ue.children||ue.children.length!==2)){let ie=ue.dataKey?ue.dataKey:ue.key;ue.children||(ue.children=[]),ue.children.push({title:"S",dataKey:ie.replace("p_","s_"),key:ie.replace("p_","s_"),dataIndex:ie.replace("p_","s_"),type:"input",resizable:!1,parentKey:ie,width:60,align:"center",sorter:(Be,Xe)=>Be[ie.replace("p_","s_")]-Xe[ie.replace("p_","s_")]}),ue.children.push({title:"C",dataKey:ie.replace("p_","c_"),key:ie.replace("p_","c_"),dataIndex:ie.replace("p_","c_"),type:"input",resizable:!1,parentKey:ie,width:60,align:"center",sorter:(Be,Xe)=>Be[ie.replace("p_","c_")]-Xe[ie.replace("p_","c_")]})}return ue});return je=je.map(ue=>({width:250,resizable:!0,key:ue.dataKey?ue.dataKey:ue.key,dataIndex:ue.dataKey,dataGetter:({columns:ie,column:Be,columnIndex:Xe,rowData:Oe,rowIndex:ft})=>{if(Be.type==="checkbox"){let wt=typeof Oe[ue.dataKey]=="boolean"?Oe[ue.dataKey]:Oe[ue.dataKey]==="1";return v.jsx(jH,{disabled:!0,checked:wt})}else return Be.type==="date"&&ei(Oe[ue.dataKey]).isValid()?ei(Oe[ue.dataKey]).format("DD/MM/YYYY"):Oe[ue.dataKey]},...ue})),je.filter(ue=>ue.hidden!==!0)}function ct(Fe,je,ue=null){let ie=[...Fe];h&&(ie=ie.filter(Xe=>Xe.nbref!=="+0"&&Xe.nbref!=="0")),D&&(ie=ie.filter(Xe=>Xe.doublon==="1")),N&&(ie=ie.filter(Xe=>Xe.nbsej!=="0"||Xe.nbact!=="0")),x&&(ie=ie.filter(Xe=>Xe[a.selectFilterField]===ue));let Be=["code","texte"];if(a.addSearchFields&&(Be=[...Be,...a.addSearchFields]),ie=ym(ie,w,Be),a.selectTarif&&a.datePicker&&ie.length>0){const Xe=X.hour(0).minute(0).second(0).millisecond(0);let Oe=j==="Public"?"pp":"pr";ie.forEach(ft=>{let wt=Ge(Xe,ft,Oe);ft.borne_basse=ft[`bb${Oe}${wt}`],ft.borne_haute=ft[`bh${Oe}${wt}`],ft.dms_nationale=ft[`dm${Oe}${wt}`],ft.tarif_ghs=ft[`tg${Oe}${wt}`],ft.forfait_exb=ft[`fb${Oe}${wt}`],ft.tarif_exb=ft[`tb${Oe}${wt}`],ft.tarif_exh=ft[`tx${Oe}${wt}`]})}return ie}const Tt=p,He=({cells:Fe,columns:je,headerIndex:ue})=>{if(ue===1)return Fe;const ie=[];let Be=0;return je.forEach((Xe,Oe)=>{Be+=Xe.width;const ft=je[Oe+1];if(Oe===je.length-1||ft.parentKey!==Xe.parentKey){const wt=Tt.find(ot=>ot.key===Xe.parentKey);ie.push(v.jsx("div",{className:"group-cell",style:{...Fe[Oe].props.style,width:Be},children:v.jsx("div",{style:{padding:"12px",textAlign:"center"},children:wt?wt.title:""})},`header-group-cell-${Xe.key}-${Oe}`)),Be=0}}),ie};function Ge(Fe,je,ue){let ie="9";for(let Be=1;Be<=9;Be++)Date.parse(Fe.toString())>=Date.parse(je[`dd${ue}${Be}`])&&Date.parse(Fe.toString())<=Date.parse(je[`df${ue}${Be}`])&&(ie=Be.toString());return ie}const Ee=()=>{switch(a.tableName){case"t_rubriques":let Fe=[];return p.forEach((je,ue)=>{je.children?Fe=Fe=[...Fe,...je.children.map(ie=>({...ie,parentKey:je.key}))]:Fe.push(je)}),v.jsx(Hn,{fixed:!1,columns:Fe,data:A,rowHeight:25,className:"rub-table",loading:Se,selectedRow:r,onRowSelect:Ue,headerClassName:"rub-header",headerHeight:[50,40],headerRenderer:He});default:return v.jsx(Hn,{columns:p,data:A,loading:Se,selectedRow:r,onRowSelect:Ue,choice:U,selectButtonBool:L})}};function Et(){return S?Object.values(S).length?v.jsx("div",{className:"content-tabs",children:v.jsx(Oi,{items:Object.values(S).map((Fe,je)=>Yt(Fe,je))})}):v.jsx(go,{}):v.jsxs(v.Fragment,{children:[v.jsx(fm,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:ee},onResizeStop:lt,children:v.jsx("div",{ref:J,style:{height:"100%"},children:Ee()})}),v.jsx("div",{className:"tables-editor",style:{display:o||P?"flex":"none"},children:a.tableName==="t_expert_controle"&&!a.module?v.jsx(Abe,{tableParams:a,record:r,handleShowEditor:de,swf:t.swf,showRefs:P,fields:b}):v.jsx(bL,{tableParams:a,record:r,handleShowEditor:de,swf:t.swf,fields:b,choice:U})})]})}const Yt=(Fe,je)=>{const ue=a.onglets[parseInt(Fe.type_parametre)];if(ue){const ie=A.filter(Oe=>Oe.type_parametre===Fe.type_parametre),Be=qe(ue.fields),Xe={...a,...ue};return{label:v.jsx("span",{children:a.onglets[parseInt(Fe.type_parametre)].label}),key:je,children:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"tables-table",children:v.jsx(Hn,{columns:Be,data:ie,loading:Se,selectedRow:r,onRowSelect:Ue})}),v.jsx("div",{className:"tables-editor",style:{display:o?"flex":"none"},children:v.jsx(bL,{tableParams:Xe,record:r,handleShowEditor:de,swf:t.swf,fields:b})})]})}}};let $=ne.find(Fe=>Fe.code==="ENCOURSNEXT");return a?p.length&&a?v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des tables"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:a.title}),v.jsxs("div",{className:"header-actions",children:[a.preferences&&v.jsx(yt,{icon:v.jsx(AV,{}),onClick:()=>rt(!0),children:a.preferences.label}),be.length>0&&v.jsx(yt,{icon:v.jsx(AV,{}),onClick:()=>k(!P),children:"Importer depuis l'environnement de référence"}),a.execute&&v.jsx(yt,{icon:v.jsx(tm,{}),onClick:tt,disabled:r,children:a.execute.label}),a.infoSup&&$&&v.jsx(v.Fragment,{children:v.jsxs(Bx,{icon:v.jsx(IY,{}),style:{marginLeft:8},children:[a.infoSup.label," : ",$.valeur]})}),v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:Ie,children:v.jsx(ao,{})})}),v.jsx(Xr,{title:"Export excel",children:v.jsx(yt,{type:"link",onClick:mt,children:v.jsx($he,{})})}),a.addButton&&v.jsx(yt,{type:"primary",icon:v.jsx(WB,{}),onClick:we,children:"Ajouter"})]})]}),v.jsx("div",{className:"tables-search",children:v.jsxs("div",{className:"form-row",children:[v.jsx("div",{className:"form-item",children:a.selectButton&&v.jsx(sn,{placeholder:"Pas de sélections",style:{marginRight:"10px"},loading:!fe.length,options:fe,onChange:Fe=>Ke(Fe)})}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Recherche"}),v.jsx(jt,{style:{marginRight:"20px"},value:w,onChange:Te})]}),a.refUniquement!==!1&&v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Référencés uniquement"}),v.jsx(bo,{checked:h,onChange:Re})]}),a.selectFilterField&&v.jsxs("div",{className:"form-item",style:{marginLeft:12},children:[v.jsx("span",{children:a.selectFilterLabel}),v.jsx(sn,{allowClear:!0,value:x,options:ne.map((Fe,je)=>({key:je,label:Fe[a.selectFilterField],value:Fe[a.selectFilterField]})),onChange:Fe=>M(Fe)})]}),a.doubleFilter===!0&&v.jsxs("div",{className:"form-item",style:{marginLeft:"8px"},children:[v.jsx("span",{children:"Doublons potentiels"}),v.jsx(bo,{checked:D,onChange:at})]}),a.sejoursActFilter===!0&&v.jsxs("div",{className:"form-item",style:{marginLeft:"8px"},children:[v.jsx("span",{children:"Avec séjour ou acte (12 derniers mois)"}),v.jsx(bo,{checked:N,onChange:Ve})]}),a.selectTarif&&v.jsxs("div",{className:"form-item",style:{marginLeft:"20px"},children:[v.jsx("span",{children:"Tarif"}),v.jsxs(sn,{defaultValue:"prive",onChange:$e,style:{width:"80px"},children:[v.jsx(sn.Option,{value:gC,children:gC}),v.jsx(sn.Option,{value:CO,children:CO})]})]}),a.datePicker&&v.jsxs("div",{className:"form-item",style:{marginLeft:"8px"},children:[v.jsx("span",{children:"au"}),v.jsx(gB,{style:{width:"150px"},value:X,onChange:At,format:"DD/MM/YYYY",picker:"day",dateRender:Fe=>v.jsx("div",{className:"ant-picker-cell-inner",style:{fontSize:"12px"},children:Fe.date()})})]})]})}),v.jsx("div",{className:"component-content",children:Et()}),v.jsx(i1t,{showModalPreferences:l,handleShowModalPreferences:rt,swf:t.swf,softCode:t.softCode,tableParams:a})]}):v.jsx(go,{}):v.jsx(Ug,{icon:v.jsx(Cy,{}),title:`Désolé ces tables ne sont pas encore disponibles (${d}) !`})};ube.propTypes={module:W.string,item:W.object};const dbe=({modUser:e,handleUpdateAuths:t})=>{const[r,n]=E.useState([]),[a,i]=E.useState([]),[o,s]=E.useState([]),[l,c]=E.useState([]),[A,u]=E.useState(""),d=ut(B=>B.cti.components.users.data.envs);E.useEffect(()=>{u(""),e.auths&&i(e.auths.filter(B=>B.type==="ictidir"))},[e]),E.useEffect(()=>{if(e.auths){let B=y(d);n(B)}},[A,d,e]);const f=B=>{if(B==="right"){const x=e.auths.filter(M=>l.includes(M.key));t("",x,"left")}else{const M=[...new Set(o)].map((S,R)=>{const b=r.find(D=>D.key===S),T=e.auths.length+R;return{type:"ictidir",name:b.ICTIDIR,granted:"full",key:T}});t("",M,"add"),s([]),c([])}},h=B=>{u(B.target.value)},g=B=>{let x=[...o];Array.isArray(B)?x=x.concat(B):x.includes(B)?x=x.filter(M=>M!==B):x.push(B),s(x.map(M=>Number(M)))},p=B=>{let x=[...l];Array.isArray(B)?x=x.concat(B):x.includes(B)?x=x.filter(M=>M!==B):x.push(B),c([...new Set(x.map(M=>Number(M)))])},m=()=>{o.length?s([]):s(r.map(B=>B.key))};function y(B){let x=e.auths.filter(M=>M.type==="ictidir").map(M=>M.name);return B.filter(M=>!x.includes(M.ICTIDIR)&&M.ICTIDIR.toLowerCase().includes(A.toLowerCase()))}const C=[{title:"Environnements CTI autorisés",dataKey:"name",key:"name",width:200}],w=[{title:"Environnements CTI disponibles",dataKey:"ICTIDIR",key:"ICTIDIR",width:200}];return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"annuaire-editor",children:[v.jsxs("div",{className:d.length>0?"annuaire-options-30":"annuaire-options-100",children:[v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Tout synchroniser"})}),v.jsx("div",{className:"user-editor-row-container",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"default_ctiusrdir_synchronize_all",valuePropName:"checked",children:v.jsx(un,{})})},"default_ctiusrdir_synchronize_all")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Nom et définition"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"default_ctiusrdir_synchronize_name",valuePropName:"checked",children:v.jsx(un,{disabled:e.default_ctiusrdir_synchronize_all})})},"default_ctiusrdir_synchronize_name")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Role et spécialité"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"default_ctiusrdir_synchronize_role",valuePropName:"checked",children:v.jsx(un,{disabled:e.default_ctiusrdir_synchronize_all})})},"default_ctiusrdir_synchronize_role")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Mot de passe"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"default_ctiusrdir_synchronize_password",valuePropName:"checked",children:v.jsx(un,{disabled:e.default_ctiusrdir_synchronize_all})})},"ctiusrdir_synchronize_password")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Autorisations"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"default_ctiusrdir_synchronize_aut",valuePropName:"checked",children:v.jsx(un,{disabled:e.default_ctiusrdir_synchronize_all})})},"ctiusrdir_synchronize_aut")})]})]}),d.length>0&&v.jsxs("div",{className:"annuaire-list",children:[v.jsx("div",{className:"transfer-table",children:v.jsx(Hn,{columns:C,data:a,selectedRows:l,onRowSelect:p,shiftMulti:!0})}),v.jsxs("div",{className:"transfer-actions",children:[v.jsx(yt,{type:"link",onClick:()=>f("left"),children:v.jsx(EQ,{})}),v.jsx(yt,{type:"link",onClick:()=>f("right"),children:v.jsx(NY,{})})]}),v.jsxs("div",{className:"transfer-table",children:[v.jsxs("div",{className:"transfer-search",children:[v.jsx(yt,{type:"primary",onClick:m,children:"Tout (De)Selectionner"}),v.jsx(jt,{value:A,placeholder:"Rechercher",onChange:h,style:{marginLeft:"8px"}})]}),v.jsx(Hn,{columns:w,data:r,selectedRows:o,shiftMulti:!0,onRowSelect:g})]})]})]})})};dbe.propTypes={modUser:W.object,handleUpdateAuths:W.func};const fbe=({modUser:e})=>{const[t,r]=E.useState(!1),[n,a]=E.useState([]),i=ut(A=>A.cti.components.users.data.modules),o=ut(A=>A.cti.components.users.data.ctiusrdir),s=ut(A=>A.cti.settings.data.session),l=ut(A=>A.cti.components.users.data.users);E.useEffect(()=>{const A=i.reduce((u,d)=>[...u,...d.views],[]).filter(u=>u.essential==="true").map((u,d)=>({label:u.label,value:u.name,key:`${u.name}-${d}`}));a(A)},[e,i]);const c=A=>[{key:"-1",label:"Aucun",value:""},...A.filter(u=>!u.disabled&&u.referentUser==="").map(({key:u,name:d,profil:f})=>({key:u,label:d,value:f}))];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Mot de passe"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"password",children:v.jsx(jt.Password,{onChange:()=>r(!0),visibilityToggle:t?!0:v.jsx("span",{}),disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_password)})})},"password")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Rôles"})}),v.jsxs("div",{className:"user-editor-row-container ",children:[s.ISROLECTI&&v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{label:"CTI",name:"isCTI",valuePropName:"checked",children:v.jsx(un,{disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},"isCTI"),v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{label:"Administrateur",name:"isadmin",valuePropName:"checked",children:v.jsx(un,{disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},"isadmin"),v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{label:"Médecin",name:"ismedecin",valuePropName:"checked",children:v.jsx(un,{disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_role)})})},"ismedecin")]})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Vue d'accueil"})}),v.jsx("div",{className:"user-editor-row-container ",children:v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"homeview",children:v.jsx(sn,{disabled:e.ismedecin!==!0,style:{width:300},options:n,showSearch:!0})})},"homeview")})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Utilisateur référent"})}),v.jsxs("div",{className:"user-editor-row-container ",children:[v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"referentUser",children:v.jsx(sn,{disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut),options:c(l),showSearch:!0})})},"referentUser"),v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{label:"Avec tableaux de bord et essentiels",name:"referentUser_withDashboard",valuePropName:"checked",children:v.jsx(un,{disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut)})})},"referentUser_withDashboard"),v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{label:"Avec favoris",name:"referentUser_withFavorite",valuePropName:"checked",children:v.jsx(un,{disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut)})})},"referentUser_withFavorite")]})]}),v.jsxs("div",{className:"user-editor-section",children:[v.jsx("div",{className:"user-editor-section-title",children:v.jsx("strong",{children:"Niveau de sécurité"})}),v.jsxs("div",{className:"user-editor-row-container ",children:[v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{name:"security_level_id",children:v.jsx(sn,{disabled:o?.URL!==""&&(e.default_ctiusrdir_synchronize_all||e.default_ctiusrdir_synchronize_aut),options:[{label:"Niveau de sécurité établissement",value:"-1"},{label:"Pas de sécurité d'accès aux données",value:"0"}],showSearch:!0})})},"security_level_id"),v.jsx("div",{className:"user-editor-field",children:v.jsx(We.Item,{label:"Masquer les noms",name:"hidenames",valuePropName:"checked",children:v.jsx(un,{})})},"hidenames")]})]})]})};fbe.propTypes={modUser:W.object};const hbe=({modUser:e,moduleIndex:t,moduleKey:r,moduleLabel:n,handleUserHasChanged:a,handleUpdateAuths:i,handleChangeAllData:o})=>{const s=ut(_=>_.cti.components.users.data.modules),[l,c]=E.useState(!1),[A,u]=E.useState([]),[d,f]=E.useState([]),[h,g]=E.useState(),[p,m]=E.useState([]),[y,C]=E.useState(!1),[w,B]=E.useState(!1),[x,M]=E.useState("");E.useEffect(()=>{if(s&&s[t]&&Object.keys(e)&&e.auths){u(s[t].views);let _=!1,P=r;r==="Outils"&&(P="tools");let k=e.auths.find(j=>j.module===`iCTI_${P.toLowerCase()}`);if(k&&k.granted==="full"&&(_=!0),c(_),r==="RH"){const j=e.auths.find(Y=>Y.name===`iCTI_${r.toLowerCase()}`);j&&(B(j.dataProfileGranted==="full"),M(j.dataProfile==="NONE"?"":j.dataProfile))}if(r==="ECO"){const j=e.auths.find(Y=>Y.name===`iCTI_${r.toLowerCase()}`);j&&(B(j.dataGranted==="full"),M(j.dataRule1??""))}}},[s,e]),E.useEffect(()=>{if(y){const _=A.filter(P=>P.label.toLowerCase().includes("favori"));f(_)}else f(A)},[A,y]),E.useEffect(()=>{if(e&&e.auths){const _=e.auths.filter(k=>k.type==="view"&&k.module&&k.module.toLowerCase()===r.toLowerCase()).map(k=>k.name),P=d.filter(k=>_.includes(k.name)).map(k=>k.key);g(P)}},[e,d]);const S=(_,P)=>{let k=[..._,...P];m(k)},R=(_,P,k)=>{const j="iCTI_"+r.toLowerCase(),Y=F(k);i(j,Y,P),a(!0)},b=(_,P)=>P.label.toLowerCase().indexOf(_.toLowerCase())!==-1||P.file.toLowerCase().indexOf(_.toLowerCase())!==-1,T=()=>{C(!y)},D=_=>{c(_.target.checked),a(!0,{[_.target.id]:_.target.checked??_.target.value})};function F(_){let P=[];return _.forEach(k=>{if(k!==void 0){const j=d.find(Y=>Y.key===k);P.push({type:"view",name:j.name,module:r,granted:"full"})}}),P}const N=_=>({label:v.jsxs("span",{className:"custom-item",children:[_.label," - ",v.jsx("small",{children:_.name})]})});return v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"user-editor-section",children:v.jsxs("div",{className:"user-editor-row-container",children:[v.jsx("div",{className:"user-editor-field inline-chkbox",children:v.jsx(We.Item,{valuePropName:"checked",label:"Autoriser à TOUTES les vues ?",children:v.jsx(un,{id:`${r}_full`,onChange:D,checked:l,disabled:e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})})}),(r==="RH"||r==="ECO")&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"user-editor-field inline-chkbox favoris-editor",children:[v.jsx("span",{children:"Autoriser à TOUTES les données:"}),v.jsx(un,{onChange:_=>o(_.target.checked,"",r),checked:w,disabled:e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})]}),v.jsxs("div",{className:"user-editor-field inline-chkbox favoris-editor",style:{display:w?"none":"flex"},children:[v.jsx("div",{style:{width:"180px"},children:"Profil de données:"}),v.jsx(jt,{onChange:_=>o(!1,_.target.value,r),value:x})]})]}),v.jsx("div",{className:"user-editor-field inline-chkbox",children:v.jsx(We.Item,{label:"Autoriser aux favoris diffusés ?",name:`FAVORIS_PARTAGES_${r.toUpperCase()}`,valuePropName:"checked",children:v.jsx(un,{disabled:l||e.ctiusrdir_synchronize_all||e.ctiusrdir_synchronize_aut})})},`FAVORIS_PARTAGES_${r.toUpperCase()}`),v.jsxs("div",{className:"user-editor-field inline-chkbox favoris-editor",children:[v.jsx("span",{children:"Favoris"}),v.jsx(bo,{disabled:l,onChange:T,checked:y})]},`${r}_show_favorites`)]})}),v.jsx("br",{}),v.jsx(B4,{showSearch:!0,dataSource:d,titles:[`Vues disponibles ${n}`,`Vues autorisées ${n}`],targetKeys:h,selectedKeys:p,onChange:R,onSelectChange:S,render:N,disabled:l,filterOption:b,listStyle:{width:"50%"},style:{width:"100%, height:'100%"}})]})};hbe.propTypes={modUser:W.object,moduleIndex:W.number,moduleKey:W.string,moduleLabel:W.string,handleUserHasChanged:W.func,handleUpdateAuths:W.func,handleChangeAllData:W.func};const gbe=({user:e,setUser:t,setAddUser:r,addUser:n,handleCloseEditor:a,handleUnsetUser:i})=>{const[o,s]=E.useState(!1),[l,c]=E.useState({}),A=ut(M=>M.cti.components.users.data.modules),u=wn(),[d]=We.useForm();E.useEffect(()=>{const M=w();d.setFieldsValue(M),c({...M})},[e,A,n]);const f=()=>{const M=d.getFieldsValue(),S=Zne({...w(),...M}),R=n?"*NEW":e.profil;u(jee(S,R,"delete")),u(BT()),s(!1),i()},h=(M,S)=>{const R=Object.keys(M)[0],b=Object.values(M)[0];if(R.slice(-4)==="full"){let T=R.split("_")[0],D={...l,auths:l.auths.map(N=>({...N}))};T==="Outils"&&(T="tools");let F=D.auths.find(N=>N.type==="module"&&(N.module===`iCTI_${T.toLowerCase()}`||N.name===`iCTI_${T.toLowerCase()}`));F?F.granted=b===!0?"full":"none":(F={type:"module",module:`iCTI_${T.toLowerCase()}`,name:`iCTI_${T.toLowerCase()}`,granted:b===!0?"full":"none"},D.auths=[...l.auths,F]),c(D)}else c({...l,[R]:b});s(!0)},g=()=>{s(!1),d.setFieldsValue(w())},p=(M,S)=>{s(M),S&&h(S)},m=(M,S,R)=>{s(!0);let b={...l},T=l.auths.map(F=>({...F}));S.forEach(F=>{if(R==="add")T.push(F);else if(R==="left"){let N=T.findIndex(_=>({..._},F.type===_.type&&F.name===_.name&&F.module===_.module));N!==-1&&T.splice(N,1)}else l?.referentUser&&(F.refProfile="*user"),T.push(F)});let D=T.find(F=>F.type==="module"&&F.module===M);D&&(D.granted=T.filter(F=>F.type==="view"&&F.module.toLowerCase()===M.replace("iCTI_","").toLowerCase()).length?"partial":"none"),b.auths=T,c(b)},y=()=>{const M=d.getFieldsValue(),S=Zne({...l,...M}),R=n?"*NEW":e.profil;u(jee(S,R)),s(!1)},C=(M,S,R)=>{s(!0);let b=l.auths.map(D=>({...D})),T=b.find(D=>D.name===`iCTI_${R.toLowerCase()}`);T&&(R==="RH"?(T.dataProfileGranted=M?"full":"partial",T.dataProfile=S):R==="ECO"&&(T.dataGranted=M?"full":"partial",T.dataRule1=S)),c({...l,auths:b})};function w(M){let S={...e};for(let R in S)S[R]==="true"&&(S[R]=!0),S[R]==="false"&&(S[R]=!1);return S}const B=()=>{let M=[{label:"Définition",key:"0",className:"user-editor-tab scrollable-tab",children:v.jsx(fbe,{addUser:n,modUser:l})},{label:"Annuaire",key:"1",className:"user-editor-tab scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsx("h2",{children:"Options de synchronisation"}),v.jsx(dbe,{modUser:l,handleUpdateAuths:m})]})}];return A.length&&A.forEach(S=>{S.code!=="presentation"&&M.push({label:S.label,key:String(S.key+3),className:"user-editor-tab scrollable-tab",children:v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"user-editor-inline",children:[v.jsx("h2",{children:v.jsx("strong",{children:"Droits spécifiques à l'utilisateur"})}),v.jsx("div",{className:"subtitle",children:"(En plus des droits de utilisateur référent)"})]}),v.jsx(hbe,{modUser:l,moduleIndex:S.key,moduleKey:S.name,moduleLabel:S.label,handleUpdateAuths:m,handleUserHasChanged:p,handleChangeAllData:C})]})})}),M},x=M=>{const S=jpt(M);t(S),r(!0)};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"user-editor-container",children:[v.jsxs("div",{className:"user-editor-header",children:[v.jsx(yt,{icon:v.jsx(ki,{}),disabled:n,onClick:f,children:"Supprimer"}),v.jsx(yt,{onClick:()=>x(e),icon:v.jsx($v,{}),disabled:n,children:"Copier"}),v.jsx(yt,{disabled:!o,icon:v.jsx(ao,{}),onClick:g,children:"Annuler"}),v.jsx(yt,{disabled:!o,icon:v.jsx(lA,{}),onClick:y,children:"Valider"}),v.jsx(Xr,{title:"Fermer",children:v.jsx(yt,{type:"link",onClick:a,children:v.jsx(Go,{})})})]}),v.jsx("div",{className:"user-editor-form",children:v.jsxs(We,{form:d,onValuesChange:h,children:[v.jsxs("div",{className:"form-row",style:{display:"flex",flexDirection:"row"},children:[v.jsxs("div",{children:[v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Code: "}),v.jsx(We.Item,{name:"profil",children:v.jsx(jt,{disabled:!n})})]}),v.jsxs("div",{className:"form-item",children:[v.jsx("span",{children:"Nom: "}),v.jsx(We.Item,{name:"name",children:v.jsx(jt,{})})]})]}),v.jsxs("div",{style:{display:"contents"},children:[v.jsx("strong",{children:"Désactivé"}),v.jsx(We.Item,{name:"disabled",valuePropName:"checked",children:v.jsx(un,{})})]})]}),A&&v.jsx("div",{className:"form-row",style:{display:"flex",flex:"3",minHeight:"1px"},children:v.jsx(Oi,{items:B()})})]})})]})})};gbe.propTypes={user:W.object,handleCloseEditor:W.func};const p1t=[{title:"Code",dataKey:"profil"},{title:"Nom",dataKey:"name"},{title:"Roles",dataKey:"role"},{title:"Désactivé",dataKey:"disabled",dataGetter:({rowData:e})=>e.disabled===!0?"oui":"non"},{title:"Référent",dataKey:"referentUser"},{title:"Modules",dataKey:"granted_modules"},{title:"Dernière connexion",dataKey:"lastConnexion_datetime"}],pbe=()=>{const[e,t]=E.useState(null),[r,n]=E.useState(!1),[a,i]=E.useState(!1),[o,s]=E.useState(""),l=ut(w=>w.cti.components.users.data.users),c=ut(w=>w.cti.components.users.loading),[A,u]=E.useState("100%"),d=wn();E.useEffect(()=>{d(BT()),d(ift())},[d]),E.useEffect(()=>{e?t(l.find(w=>w.key===e.key)):(t(null),n(!1))},[l]);const f=()=>{d(BT())},h=()=>{const w=Opt();t(w),i(!0),n(!0),u("40%")},g=()=>{t(null),u("100%")},p=w=>{i(!1),t(l.find(B=>B.key===w)),n(!0),u("40%")},m=()=>{t(null),n(!1),u("100%")},y=w=>{u(A+w.height)},C=p1t.map(w=>({...w,width:200,resizable:!0,key:w.dataKey}));return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsx("title",{children:"iCTI | Gestion des utilisateurs"})}),v.jsxs("div",{className:"component-header",children:[v.jsx("div",{className:"header-title",children:"Gestion des utilisateurs"}),v.jsxs("div",{className:"header-actions",children:[v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{type:"link",onClick:f,children:v.jsx(ao,{})})}),v.jsx(yt,{type:"primary",icon:v.jsx(Z_e,{}),onClick:h,children:"Ajouter un utilisateur"})]})]}),v.jsx("div",{className:"indicators-filters",children:v.jsx(Uo,{children:v.jsx(Ta,{span:24,children:v.jsxs("div",{className:"indicators-search text-search",children:[v.jsx("span",{children:"Filtre"}),v.jsx(jt,{placeholder:"Recherche",value:o,onChange:w=>s(w.target.value),style:{width:300}})]})})})}),v.jsxs("div",{className:"component-content",children:[v.jsx(fm,{className:"tables-table",axis:"x",handleComponent:{bottom:v.jsx("div",{className:"resize-handle",style:{marginBottom:8},children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:A},onResizeStop:y,children:v.jsx(Hn,{columns:C,data:l.filter(w=>w.file&&w.file.toLowerCase().includes(o.toLowerCase())),selectedRow:e,onRowSelect:p,loading:c})}),v.jsx("div",{className:"users-editor",style:{display:r?"flex":"none"},children:v.jsx(gbe,{user:e,setUser:t,setAddUser:i,addUser:a,handleCloseEditor:m,handleUnsetUser:g})})]})]})};pbe.propTypes={};const vbe=({indicators:e,visible:t,onCancel:r,onOk:n})=>{const[a,i]=E.useState(""),[o,s]=E.useState();E.useEffect(()=>{s(),i("")},[t]);const l=c=>{const A=e.find(u=>u.oid===c);s(A)};return v.jsx(gi,{open:t,zIndex:2e3,onCancel:r,onOk:()=>n(o),title:"Choisir un indicateur",width:"60vw",children:v.jsxs("div",{className:"cti-indicator-modal",children:[v.jsx("div",{className:"indicator-modal-search",children:v.jsx(jt,{placeholder:"Recherche",value:a,onChange:c=>i(c.target.value)})}),v.jsx("div",{className:"indicator-modal-table",children:v.jsx(Hn,{rowKey:"oid",fixed:!1,columns:iEt,selectedRow:o,onRowSelect:l,data:e.filter(c=>c.code.toLowerCase().includes(a.toLowerCase())||c.texte.toLowerCase().includes(a.toLowerCase()))})})]})})};vbe.propTypes={indicators:W.array,visible:W.bool,onCancel:W.func,okOk:W.func};const v1t=async e=>(await Ul.get(`api/${e}/experts-controls/settings`)).data,m1t=async(e,t)=>{await Ul.post(`api/${t}/experts-controls`,e)},E1t=async(e,t)=>{await Ul.put(`api/${t}/experts-controls/${e.oid}`,e)},y1t=async(e,t)=>{await Ul.delete(`api/${t}/experts-controls/${e}`)},C1t=async(e,t)=>{await Ul.put(`api/${t}/experts-controls/execute/${e}`)};function w1t(){const e=hs();return Hl({mutationFn:({expertControl:t,module:r})=>m1t(t,r),onError:t=>{const r=t.response.data.message;ll({message:"Erreur lors de la création du contrôle",description:r})},onSuccess:()=>{Gg({message:"Contrôle expert créé",description:"Contrôle expert crée"})},onSettled:async(t,r)=>{r?console.log(r):await e.invalidateQueries({queryKey:["expertsControls"]})}})}function mbe(){const e=hs();return Hl({mutationFn:({expertControl:t,module:r})=>E1t(t,r),onError:t=>{const r=t.response.data.message;ll({message:"Erreur lors de la mise à jour du contrôle",description:r})},onSuccess:()=>{Gg({message:"Contrôle expert mis à jour",description:"Contrôle expert mis à jour"})},onSettled:async(t,r,n)=>{r?console.log(r):await e.invalidateQueries({queryKey:["expertsControls"]})}})}function B1t(){const e=hs();return Hl({mutationFn:({id:t,module:r})=>y1t(t,r),onError:t=>{const r=t.response.data.message;ll({message:"Erreur lors de la suppression du contrôle",description:r})},onSuccess:()=>{Gg({message:"Contrôle expert supprimé",description:"Contrôle expert supprimé"})},onSettled:async(t,r,n)=>{r?console.log(r):await e.invalidateQueries({queryKey:["expertsControls"]})}})}const x1t=()=>{const e=hs();return Hl({mutationFn:({id:t,module:r})=>C1t(t,r),onError:(t,r)=>{const n=t.response.data.message;let a="Erreur lors de l'exécution du contrôle";r===0&&(a="Erreur lors de l'exécution des contrôles"),ll({message:a,description:n})},onMutate:({id:t})=>{let r="Exécution du contrôle expert lancée";t===0&&(r="Exécution des contrôles experts lancée"),ya({type:"info",message:r,description:r})},onSuccess:(t,r)=>{let n="Contrôle expert exécuté";r.id===0&&(n="Contrôles expert exécutés"),Gg({message:n,description:n})},onSettled:async(t,r,n)=>{r?console.log(r):await e.invalidateQueries({queryKey:["expertsControls"]})}})},{Title:Ise,Text:M1t}=Hg;function Ebe({showModal:e,selectedControl:t,module:r,data:n,setShowModal:a}){const[i,o]=E.useState(!1),[s,l]=E.useState([]),[c,A]=E.useState({}),[u,d]=E.useState([]),f=ut(k=>k.cti.ui.primaryColor),h=ut(k=>k.cti.settings.data.session),g=w1t(),p=mbe(),[m]=We.useForm(),[y]=We.useForm(),[C]=We.useForm(),[w]=We.useForm(),[B]=We.useForm(),[x]=We.useForm(),M=le.useMemo(()=>[y,C,w,B,x],[y,C,w,B,x]);E.useEffect(()=>{t&&m.setFieldsValue(t),t&&!Object.keys(t).length&&m.resetFields()},[t,m]),E.useEffect(()=>{if(t){const k=n.rules.filter(K=>Number(K.expertControleId)===t.oid).sort((K,U)=>K.oid-U.oid),j=cl(k,K=>K.isCti);let Y=[],X=[];if(j.true)for(let K=0;K<3;K++)j.true[K]&&j.true[K].isCti?(Y[K]=j.true[K],X.push(j.true[K].indicateur3Id&&j.true[K].indicateur3Id!=="0"?3:j.true[K].indicateur2Id&&j.true[K].indicateur2Id!=="0"?2:1)):X.push(1);if(j.false)for(let K=0;K<2;K++)j.false[K]?(Y[K+3]=j.false[K],X.push(j.false[K].indicateur3Id&&j.false[K].indicateur3Id!=="0"?3:j.false[K].indicateur2Id&&j.false[K].indicateur2Id!=="0"?2:1)):X.push(1);l(X),d(Y)}},[t,n]),E.useEffect(()=>{for(let k=0;k<5;k++){const j=M[k];u[k]?j.setFieldsValue(u[k]):j.resetFields()}},[u,M]);const S=k=>{let j=[...s];j[k]=(j[k]??0)+1,l(j)},R=async()=>{let k=[];await m.validateFields();for(let Y=0;Y<=4;Y++){let X=M[Y].getFieldsValue(!0);Y>2?X.isCti=!1:X.isCti=!0,k.push(X)}const j={...m.getFieldsValue(!0),rules:k};j.oid?p.mutate({expertControl:j,module:r.substring(5)}):g.mutate({expertControl:j,module:r.substring(5)}),D()},b=(k,j)=>{const Y=M[k],X=Y.getFieldsValue(),K=s[k]-1;if(j===0&&K===0)Y.setFieldsValue({...X,indicateurId:"",indicateurConditionId:[]});else if(j===K){Y.setFieldsValue({...X,[`indicateur${j+1}Id`]:"",[`indicateurCondition${j+1}Id`]:[]});let U=[...s];U[k]=U[k]-1,l(U)}else{let U={...X};if(j===0){U={...U,indicateuId:X.indicateur2Id,indicateurConditionId:X.indicateurCondition2Id};for(let L=K;L>j;L--)U={...U,[`indicateur${L+1}Id`]:X[`indicateur${L+2}Id`],[`indicateurCondition${L+1}Id`]:X[`indicateurCondition${L+2}Id`],[`indicateur${L+2}Id`]:"",[`indicateurCondition${L+2}Id`]:[]}}else for(let L=K;L>=j;L--)U={...U,[`indicateur${L+1}Id`]:X[`indicateur${L+2}Id`],[`indicateurCondition${L+1}Id`]:X[`indicateurCondition${L+2}Id`],[`indicateur${L+2}Id`]:"",[`indicateurCondition${L+2}Id`]:[]};Y.setFieldsValue(U);let H=[...s];H[k]=H[k]-1,l(H)}},T=(k,j)=>{A({rule:k,indicator:j}),o(!0)},D=()=>{a(!e)},F=k=>{const j=M[c.rule],Y=c.indicator===0?"indicateurId":`indicateur${c.indicator+1}Id`;j.setFieldsValue({expertControleId:t.oid,...j.getFieldsValue(),[Y]:k.oid}),o(!1)},N=k=>{const j=M[k];let Y=[];const X=s[k]??0;for(let K=0;K<X;K++){const U=`Indicateur ${K+1}`;Y.push(v.jsxs(Uo,{children:[v.jsx(Ta,{span:22,children:v.jsxs("div",{className:"expert-rule-indicator",children:[K>0&&v.jsx(tu,{className:"expert-rule-divider"}),v.jsxs("div",{className:"expert-rule-indicator-container",children:[v.jsx(Uo,{children:v.jsxs(Ta,{span:12,children:[v.jsx(We.Item,{className:"form-item-font",label:"Indicateur",name:K===0?"indicateurId":`indicateur${K+1}Id`,hidden:!0,children:v.jsx(jt,{})}),v.jsx(We.Item,{shouldUpdate:!0,children:H=>{const L=n.indicators.find(V=>V.oid===Number(H.getFieldValue(K===0?"indicateurId":`indicateur${K+1}Id`)));return v.jsx(We.Item,{className:"form-item-font",label:U,shouldUpdate:!0,children:v.jsx(jt.Search,{className:"form-item-widht",name:"searchIndicator",label:"searchIndicator",value:L?.texte??"Choisir un indicateur",readOnly:!0,onSearch:()=>T(k,K)})})}})]})}),v.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[v.jsx(We.Item,{className:"form-item-font",label:"Opérateur des conditions",name:K===0?"conditionsOperateur":`conditionsOperateur${K+1}`,children:v.jsxs(mg.Group,{children:[v.jsx(mg,{value:"AND",children:"Toutes les conditions doivent être vraies"}),v.jsx(mg,{value:"OR",children:"Au moins une des conditions doit être vraie"})]})}),v.jsx("div",{children:v.jsx(We.Item,{className:"form-item-font",label:"Conditions",name:K===0?"indicateurConditionId":`indicateurCondition${K+1}Id`,children:v.jsx(_i,{showSearch:!0,style:{width:"100%"},allowClear:!0,treeData:n.conditions,multiple:!0,treeNodeFilterProp:"title"})})}),v.jsx(We.Item,{className:"form-item-font",label:"Formule",name:K===0?"formula":`formula${K+1}`,children:v.jsx(jt,{style:{width:"100%"},placeholder:"Valeur par défault: <> 0"})})]})]})]},K)}),v.jsx(Ta,{span:2,children:v.jsx("div",{className:"expert-rule-delete-button",children:v.jsx(Mi,{placement:"leftTop",title:"Supprimer la règle",children:v.jsx(yt,{type:"danger",icon:v.jsx(ki,{}),onClick:()=>b(k,K)})})})})]}))}return v.jsxs(v.Fragment,{children:[v.jsx(We,{name:`rule_${isFinite}`,form:j,children:v.jsx("div",{className:"expert-rule-container",children:v.jsxs("div",{className:"expert-rule",children:[Y,v.jsx(tu,{style:{marginTop:0,marginBottom:12}}),v.jsx(We.Item,{className:"form-item-font",label:"Niveau de détail",name:"dataType",children:v.jsx(sn,{options:n.levels})})]})})}),v.jsx(Uo,{children:v.jsx(Ta,{span:24,children:v.jsx("div",{className:"expert-rule-add-button",children:v.jsx(yt,{type:"primary",disabled:s[k]>=3,onClick:()=>S(k),children:"Ajouter un indicateur"})})})})]})},_=le.useCallback((k,j)=>u[k]&&u[k].indicateurId&&u[k].indicateurId!=="0"?v.jsx(Bv,{dot:!0,color:f,style:{right:-4,top:4},children:j}):j,[u]),P=le.useCallback(()=>{let k=[];for(let j=0;j<5;j++)u[j]&&u[j].indicateurId&&u[j].indicateurId!=="0"&&k.push(`Règle ${j+1}`);return k.join(" ou ")},[u]);return v.jsxs(v.Fragment,{children:[v.jsx(vbe,{indicators:n?.indicators??[],visible:i,onCancel:()=>o(!1),onOk:F}),v.jsx(gi,{title:"Ajouter/Modifier un contrôle expert",open:e,onCancel:D,onOk:R,okText:"Enregistrer",width:"53vw",className:"expert-settings-modal",children:v.jsxs(We.Provider,{children:[v.jsxs(We,{form:m,children:[v.jsx(Ise,{level:3,children:"Définition"}),v.jsx(tu,{style:{marginTop:0}}),v.jsxs(Uo,{children:[v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"expert-settings-containet",children:[v.jsx(We.Item,{className:"form-item-font",label:"Code",name:"code",rules:[{required:!0,message:"Code requis"}],children:v.jsx(jt,{className:"form-item-widht"})}),v.jsx(We.Item,{className:"form-item-font",label:"Texte",name:"texte",rules:[{required:!0,message:"Texte requis"}],children:v.jsx(jt,{className:"form-item-widht"})}),v.jsx(We.Item,{className:"form-item-font",label:"Gravité",name:"graviteId",children:v.jsx(sn,{className:"form-item-widht",options:[{label:"Information",value:"0"},{label:"Avertissement",value:"5"},{label:"Erreur",value:"9"}]})}),v.jsx(We.Item,{className:"form-item-font",label:"A partir de",name:"startPeriode",children:v.jsx(sn,{className:"form-item-widht",options:[{label:"",value:""},{label:"Année en cours",value:"A0"},{label:"A - 1",value:"A1"},{label:"A - 2",value:"A2"},{label:"12 derniers mois",value:"M12"},{label:"24 derniers mois",value:"M24"}]})})]})}),v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"expert-settings-column",children:[h.ISROLECTI&&v.jsx(We.Item,{className:"form-item-font",label:"Contrôle expert CTI",name:"isCti",valuePropName:"checked",style:{width:"450px"},rules:[{required:!0,message:"Type de contrôle requis"}],children:v.jsx(un,{size:"small"})}),v.jsx(We.Item,{className:"form-item-font",label:"Contrôle expert actif",name:"isActive",valuePropName:"checked",children:v.jsx(un,{})})]})})]}),v.jsx(Uo,{children:v.jsx(Ta,{span:24,children:v.jsx(We.Item,{className:"form-item-font",label:"Description",name:"description",children:v.jsx(jt.TextArea,{style:{maxWidth:800}})})})})]}),t?.isCti&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"expert-rule-title-header",children:[v.jsx(Ise,{level:3,children:"Règles"}),v.jsx(M1t,{type:"secondary",style:{marginLeft:12},children:`Toutes les règles sont exclusives (${P()})`})]}),v.jsx(tu,{style:{marginTop:0}}),v.jsx(Oi,{defaultActiveKey:["0"],items:["Règle CTI 1","Règle CTI 2","Règle CTI 3","Règle Établissement 1","Règle Établissement 2"].map((k,j)=>({label:_(j,k),key:String(j),children:N(j)}))})]})]})})]})}Ebe.propTypes={showModal:W.bool,handleShowModal:W.func,selectedControl:W.object,module:W.string};const I1t=({handleRefresh:e})=>v.jsx(v.Fragment,{children:v.jsx(Xr,{title:"Actualiser",children:v.jsx(yt,{style:{height:"unset"},type:"link",onClick:e,children:v.jsx(ao,{})})})}),b1t=({label:e,handleAdd:t})=>v.jsx(v.Fragment,{children:v.jsx(Xr,{title:`Créer un nouveau ${e}`,children:v.jsxs(yt,{size:"default",type:"primary",icon:v.jsx(WB,{}),onClick:t,children:["Ajouter un ",e]})})}),S1t=({handleRefresh:e=null,handleAddItem:t=null,label:r,handleExecute:n=null,headerActionsToDisplay:a,executeIsLoading:i=!1,disangageValue:o=!1,handleDisangage:s})=>{const l=ut(c=>c.cti.settings.data.session);return v.jsx(v.Fragment,{children:v.jsx("div",{className:"header__settings--actions",children:v.jsxs(v.Fragment,{children:[a.includes("refresh")&&v.jsx(I1t,{handleRefresh:e}),a.includes("disengage")&&v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"switch-label",children:["Débrayer tous les ",r," : "]}),v.jsx(un,{checked:o,onChange:s})]}),a.includes("execute")&&v.jsx(yt,{disabled:!l.ISROLECTI||i,onClick:n,icon:v.jsx(tm,{}),children:i?"Exécution en cours...":`Exécuter tous les ${r}`}),a.includes("add")&&v.jsx(b1t,{label:r,handleAdd:t})]})})})},R1t=({searchTerm:e,setSearchTerm:t=null,label:r,headerFiltersToDisplay:n,showActiveItemsOnly:a,setShowActiveItemsOnly:i,showCtiItemsOnly:o,setShowCtiItemsOnly:s})=>{const l=A=>{i(A)},c=A=>{s(A)};return v.jsx(v.Fragment,{children:v.jsxs(Uo,{children:[t&&v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"header__settings--filters-search",children:[v.jsx("span",{style:{marginLeft:"10px"},children:"Filtre:"}),v.jsx(jt,{style:{maxWidth:"400px",marginLeft:"10px"},className:"search-input",placeholder:"Recherche ... ",value:e,onChange:A=>t(A.target.value)})]})}),v.jsx(Ta,{span:12,children:v.jsxs("div",{className:"header__settings--filters-actions",children:[(n.includes("showCtiItems")||n.includes("showActiveItems"))&&v.jsx("span",{children:"Afficher uniquement :"}),n.includes("showCtiItems")&&v.jsxs("div",{className:"header__settings--filters-actions-switch",children:[v.jsx(bo,{size:"small",checked:o,onChange:c}),v.jsxs("span",{children:[r," CTI"]})]}),n.includes("showActiveItems")&&v.jsxs("div",{className:"header__settings--filters-actions-switch",children:[v.jsx(bo,{size:"small",checked:a,onChange:l}),v.jsxs("span",{children:[r," actifs"]})]})]})})]})})},ybe=({title:e})=>v.jsx(v.Fragment,{children:v.jsx("h2",{className:"title__h2",children:e})});ybe.propTypes={title:W.string};const T1t=({title:e,handleRefresh:t,label:r,handleAddItem:n,handleExecute:a,searchTerm:i,setSearchTerm:o,headerActionsToDisplay:s,headerFiltersToDisplay:l,showActiveItemsOnly:c,setShowActiveItemsOnly:A,showCtiItemsOnly:u,setShowCtiItemsOnly:d,executeIsLoading:f,disangageValue:h,handleDisangage:g})=>v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"header__settings",children:[v.jsx(ybe,{style:{flex:3},title:e}),v.jsx(S1t,{handleRefresh:t,handleAddItem:n,label:r,handleExecute:a,headerActionsToDisplay:s,executeIsLoading:f,disangageValue:h,handleDisangage:g})]}),v.jsx("div",{className:"header__settings--filters",children:v.jsx(R1t,{searchTerm:i,setSearchTerm:o,label:r,headerFiltersToDisplay:l,showCtiItemsOnly:u,setShowCtiItemsOnly:d,showActiveItemsOnly:c,setShowActiveItemsOnly:A})})]}),Q1t=(e=[],t)=>{const[r,n]=E.useState("");let a=e.filter(i=>t.some(o=>{const s=i[o];return s&&s.toString().toLowerCase().includes(r.toLowerCase())}));return{searchTerm:r,setSearchTerm:n,filteredData:a}},D1t=e=>zx({queryKey:["expertsControls",e],queryFn:()=>v1t(e)}),F1t=async(e,t)=>(await Ul.get(`api/${t}/divers/${e}`)).data,N1t=async(e,t)=>{await Ul.put(`api/${t}/divers/${e.code}`,e)},_1t=(e,t)=>zx({queryKey:["diverParameter",t],queryFn:()=>F1t(e,t)});function k1t(){const e=hs();return Hl({mutationFn:({diverParameter:t,module:r})=>N1t(t,r),onError:t=>{const r=t.response.data.message;ll({message:"Erreur lors de la mise à jour du paramètre",description:r})},onSuccess:()=>{Gg({message:"Paramètre  mis à jour",description:"Paramètre expert mis à jour"})},onSettled:async(t,r,n)=>{r?console.log(r):await e.invalidateQueries({queryKey:["diverParameter"]})}})}const Cbe=({module:e})=>{const[t,r]=E.useState(!1),[n,a]=E.useState(),i=ut(P=>P.cti.settings.data.session),[o,s]=E.useState(!1),[l,c]=E.useState(!1),A=D1t(e.substring(5)),u=mbe(),d=B1t(),f=x1t(),h=_1t("CONTROLSEXPERTACTIVE",e.substring(5)),g=k1t(),p=hs();let{searchTerm:m,setSearchTerm:y,filteredData:C}=Q1t(A.data?.controls,["texte","code"]);o&&(C=C.filter(P=>P.isActive)),l&&(C=C.filter(P=>P.isCti));let w=h.data?.valeur??!1;w==="0"?w=!1:w==="1"&&(w=!0);const B=(P,k)=>{P.stopPropagation(),f.mutate({id:k.oid,module:e.substring(5)})},x=()=>{f.mutate({id:0,module:e.substring(5)})},M=(P,k)=>{P.stopPropagation(),k.isActive=!k.isActive,u.mutate({expertControl:k,module:e.substring(5)})},S=()=>{r(!0),a({})},R=P=>{a(A.data?.controls.find(k=>k.oid===P)),r(!0)},b=(P,k)=>{P.stopPropagation(),d.mutate({id:k.oid,module:e.substring(5)})},T=async()=>{await p.invalidateQueries({queryKey:["expertsControls",e.substring(5)]})},D=P=>{const k=P.target.checked?"1":"0";p.setQueryData(["diverParameter",e.substring(5)],j=>j?{...j,valeur:k}:[]),g.mutate({diverParameter:p.getQueryData(["diverParameter",e.substring(5)]),module:e.substring(5)})},N=[{title:"Code",dataKey:"code"},{title:"Texte",dataKey:"texte",flexGrow:2,flexShrink:2,cellRenderer:({rowData:P})=>{const k=P.texte;return v.jsx("div",{className:"BaseTable__row-cell-text",children:v.jsx(Yy,{label:k,isCti:P.isCti,icon:"Hospital",toolTipLabel:"Contrôle expert créé par l'établissement"})})}},{title:"Contrôle expert Actif",dataKey:"isCti",align:"center",width:100,dataGetter:({rowData:P})=>v.jsx(un,{checked:P.isActive,onClick:k=>M(k,P)})},{title:"Date dernière éxecution",dataKey:"lastExecutionTimestamp",align:"right",dataGetter:({rowData:P})=>P.lastExecutionTimestamp?ei(P.lastExecutionTimestamp).format("DD/MM/YYYY"):"Jamais exécuté"},{title:"Statut dernière éxecution",dataKey:"lastExecutionOk",align:"center",dataGetter:({rowData:P})=>P.lastExecutionOk?v.jsx(gQ,{style:{color:"#52c41a",display:"flex",justifyContent:"center",alignItems:"center",height:"100%"}}):null},{title:"Nombre de signalements",dataKey:"lastExecutionCount",align:"right",width:150},{title:"Gravité",dataKey:"graviteId",align:"center",width:100,dataGetter:({rowData:P})=>{const k=j=>{switch(j?.graviteId){case"5":return v.jsx(oge,{style:{color:"#faad14"}});case"9":return v.jsx(fu,{style:{color:"#ff4d4f"}});default:return v.jsx(DY,{style:{color:"#1677ff"}})}};return v.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100%"},children:k(P)})}},{title:"Action",dataKey:"action",width:170,minWidth:140,align:"center",dataGetter:({rowData:P})=>v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Executer",children:v.jsx(yt,{style:{marginLeft:8},onClick:k=>B(k,P),children:v.jsx(tm,{})})}),v.jsx(Xr,{title:"Supprimer",children:v.jsx(yt,{type:"danger",style:{marginLeft:8},disabled:P.isCti&&!i.ISROLECTI,onClick:k=>b(k,P),children:v.jsx(ki,{})})})]})}].map(P=>({width:200,key:P.dataKey,...P})),_=({columns:P,rowData:k,rowIndex:j})=>{let Y="expert-row";return k.isActive||(Y+=" expert-control-inactive"),Y};return v.jsxs("div",{className:"expert-settings",children:[v.jsx(Ebe,{showModal:t,selectedControl:n,module:e,data:A.data??[],setShowModal:r}),v.jsx(io,{children:v.jsx("title",{children:"iCTI | Paramètres contrôle expert"})}),v.jsx(T1t,{title:"Paramètre contrôle expert",handleRefresh:T,label:"contrôle expert",handleAddItem:S,handleExecute:x,searchTerm:m,setSearchTerm:y,headerActionsToDisplay:["disengage","refresh","add","execute"],headerFiltersToDisplay:["search","showCtiItems","showActiveItems"],showActiveItemsOnly:o,setShowActiveItemsOnly:s,showCtiItemsOnly:l,setShowCtiItemsOnly:c,executeIsLoading:f.isLoading,disangageValue:w,handleDisangage:D}),v.jsx("div",{className:"component-content",children:v.jsx(Hn,{loading:A.isFetching,fixed:!1,columns:N,rowKey:"oid",data:C,rowHeight:40,rowClassName:_,onRowSelect:R})})]})};Cbe.propTypes={module:W.string};const wbe=({componentName:e,module:t,item:r})=>{const n=()=>{let a=e;switch((r.swf===""||r.jisComponent)&&(a=r.jisComponent),a){case"synchronize":return r.swfData.includes("|")?v.jsx(ayt,{module:t,swfData:r.swfData}):v.jsx(iyt,{module:t,year:r.swfData});case"listes-manager":return v.jsx(vEt,{module:t});case"classes-manager":return v.jsx(cpt,{module:t});case"indicateurs-manager":return v.jsx(cEt,{module:t});case"rapports-manager":return v.jsx(ZEt,{module:t});case"import":return v.jsx(GMe,{softcode:t});case"tables-manager":case"conso-manager":return v.jsx(ube,{module:t,item:r});case"import-mat-2-a":return v.jsx(wL,{module:"mco"});case"cti-pmsissr-import-mat-2-a":return v.jsx(wL,{module:"ssr"});case"favorites-manager":return v.jsx(zpt,{});case"licence-manager":return v.jsx(aIe,{});case"password-manager":return v.jsx(sIe,{});case"users-manager":return v.jsx(pbe,{});case"cti-pmsissr-import-valo-ssr":return v.jsx(KMe,{});case"pmsiSimulation":return v.jsx(MIe,{year:r.swfData});case"presentation-manager":return v.jsx(Wwe,{});case"expertSettings":return v.jsx(Cbe,{module:t});default:return v.jsx(Ug,{icon:v.jsx(Cy,{}),title:"Désolé ce composant n'existe pas encore... Patience il arrive !"})}};return v.jsx("div",{className:"cti-component",children:n()})};wbe.propTypes={componentName:W.string,module:W.string,item:W.object};const Bbe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M19.238 23.438a.8.8 0 0 1-.458-.147l-6.28-4.553-6.28 4.553a.781.781 0 0 1-1.199-.883l2.45-7.254L1.123 10.8a.782.782 0 0 1 .44-1.426h7.83l2.364-7.273a.781.781 0 0 1 1.486 0l2.363 7.275h7.832a.781.781 0 0 1 .441 1.426l-6.35 4.35 2.448 7.253a.78.78 0 0 1-.739 1.032"})}),xbe=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M23.875 9.813h-8.398L12.937 2l-2.539 7.813H2L8.836 14.5l-2.637 7.813 6.739-4.883 6.738 4.883-2.637-7.813z"})}),P1t=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M12.772 4.945a.39.39 0 0 0-.54 0l-8.99 8.588a.4.4 0 0 0-.12.282l-.002 8.06a1.56 1.56 0 0 0 1.563 1.563h4.692a.78.78 0 0 0 .781-.782v-6.64a.39.39 0 0 1 .39-.391h3.907a.39.39 0 0 1 .39.39v6.641a.78.78 0 0 0 .782.782h4.69a1.563 1.563 0 0 0 1.563-1.563v-8.06a.4.4 0 0 0-.12-.282z"}),v.jsx("path",{fill:"currentColor",d:"m23.97 11.921-3.652-3.494V3.125a.78.78 0 0 0-.781-.781h-2.344a.78.78 0 0 0-.781.781v1.563l-2.828-2.705c-.265-.267-.659-.42-1.084-.42-.424 0-.816.153-1.081.42L1.033 11.92c-.303.293-.342.775-.065 1.093a.78.78 0 0 0 1.132.052l10.132-9.682a.39.39 0 0 1 .54 0l10.132 9.682a.78.78 0 0 0 1.103-.022c.3-.31.275-.823-.037-1.122"})]}),O1t=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsxs("g",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,clipPath:"url(#home-outline_svg__a)",children:[v.jsx("path",{d:"M4.87 10.352v11.523a.78.78 0 0 0 .782.781h4.687v-6.64a1.17 1.17 0 0 1 1.172-1.172h3.906a1.17 1.17 0 0 1 1.172 1.172v6.64h4.688a.78.78 0 0 0 .781-.781V10.352"}),v.jsx("path",{d:"M24.402 12.5 13.996 2.54c-.244-.259-.815-.262-1.063 0L2.527 12.5M20.496 8.74V3.125h-2.344v3.37"})]}),v.jsx("defs",{children:v.jsx("clipPath",{id:"home-outline_svg__a",children:v.jsx("path",{fill:"#fff",d:"M.964 0h25v25h-25z"})})})]}),j1t=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:130,height:38,fill:"none",...e,children:[v.jsx("g",{fill:"#F2F2F2",opacity:.92,children:v.jsx("path",{d:"M20.672 29.03q-1.401.842-2.922 1.272a11.7 11.7 0 0 1-3.173.428q-4.931 0-7.813-3.192t-2.882-8.654q0-5.479 2.882-8.67t7.813-3.19q1.653 0 3.173.43 1.521.426 2.922 1.27v4.727q-1.415-1.116-2.79-1.637a8.1 8.1 0 0 0-2.895-.52q-2.724-.001-4.283 2.02t-1.56 5.57q0 3.534 1.56 5.557 1.56 2.02 4.283 2.02a8.1 8.1 0 0 0 2.895-.522q1.376-.52 2.79-1.637zM23.15 7.438h18.192v4.452h-6.544v18.396h-5.09V11.89H23.15zM49.049 7.438h-5.09v22.848h5.09z"})}),v.jsx("path",{fill:"#FF8801",d:"M119.276 7.048a.8.8 0 0 1 .214-.24.7.7 0 0 1 .274-.132q.158-.032.384-.034.226.001.541.055.367.052.589.145.224.083.304.2a.29.29 0 0 1 .053.24.53.53 0 0 1-.149.248l-2.773 3.165a1.4 1.4 0 0 1-.217.213.7.7 0 0 1-.213.117c-.079.02-.177.034-.297.034s-.267-.02-.442-.048a1.8 1.8 0 0 1-.453-.117c-.11-.048-.186-.096-.228-.158a.21.21 0 0 1-.03-.2.9.9 0 0 1 .144-.275z"}),v.jsx("path",{fill:"#fff",d:"M66.053 8.555v2.91q-1.468-.807-2.77-1.21c-.867-.262-1.706-.4-2.514-.4q-2.106 0-3.254.95c-.758.626-1.137 1.527-1.137 2.683q0 1.467.753 2.222.765.733 2.885 1.197l1.557.365q2.885.64 4.25 2.25c.92 1.06 1.379 2.49 1.379 4.28q0 3.211-1.864 4.864-1.85 1.65-5.437 1.651-1.353 0-2.885-.35a19.3 19.3 0 0 1-3.152-1.053v-3.07c1.047.675 2.072 1.191 3.076 1.535a9.1 9.1 0 0 0 2.96.516c1.473 0 2.61-.33 3.41-1.004q1.198-1.003 1.198-2.862c0-1.088-.288-1.934-.867-2.546q-.855-.91-2.821-1.376l-1.57-.351q-2.884-.66-4.174-2.085-1.29-1.415-1.289-3.942 0-2.93 1.774-4.61 1.787-1.684 4.915-1.686 1.34.002 2.73.282 1.392.28 2.847.84M77.618 21.572q-2.847.002-3.944.757-1.098.751-1.098 2.566c0 .97.272 1.734.817 2.305q.83.847 2.246.847c1.302 0 2.345-.537 3.127-1.597q1.187-1.61 1.187-4.272v-.606zm4.684-1.121v9.44h-2.349v-2.512q-.804 1.507-2.003 2.23-1.2.71-2.936.708c-1.464 0-2.63-.468-3.497-1.417q-1.29-1.433-1.29-3.826 0-2.796 1.608-4.21 1.622-1.416 4.826-1.418h3.292v-.268q0-1.877-1.072-2.897-1.06-1.032-2.987-1.032-1.224-.002-2.386.337a8.7 8.7 0 0 0-2.234 1.025v-2.51q1.29-.58 2.502-.86a9.8 9.8 0 0 1 2.36-.297q3.103-.001 4.634 1.865 1.532 1.856 1.532 5.642M99.035 19.907v9.984h-2.348V19.99c0-1.562-.264-2.739-.792-3.516q-.791-1.164-2.374-1.163-1.901 0-3 1.404c-.731.936-1.097 2.208-1.097 3.825v9.35h-2.362V13.344h2.362v2.574q.842-1.495 1.978-2.236 1.15-.735 2.642-.737 2.463 0 3.728 1.775 1.263 1.753 1.263 5.188M106.068 8.644v4.7h4.838v2.112h-4.838v8.985q0 2.024.473 2.601c.323.385.974.571 1.952.571h2.413v2.278h-2.413c-1.812 0-3.063-.386-3.752-1.17-.69-.785-1.034-2.216-1.034-4.28v-8.985h-1.724v-2.113h1.724V8.644zM126.234 20.94v1.327h-10.798q.153 2.81 1.455 4.287 1.315 1.457 3.651 1.458 1.352.002 2.616-.378a11 11 0 0 0 2.527-1.156v2.573c-.842.413-1.706.73-2.59.943-.885.22-1.784.323-2.694.323-2.28 0-4.088-.764-5.424-2.305q-1.992-2.301-1.992-6.233 0-4.067 1.889-6.44 1.903-2.395 5.119-2.395c1.923 0 3.442.716 4.557 2.16q1.683 2.139 1.684 5.835m-2.348-.799q-.026-2.23-1.085-3.564c-.698-.88-1.626-1.328-2.783-1.328q-1.965-.001-3.153 1.287c-.782.853-1.233 2.064-1.352 3.619z"})]});var z1t=Zve();const L1t=gn(z1t),Y1t=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 26",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,d:"M20.313 11.303v9.51a2.344 2.344 0 0 1-2.344 2.343H7.03a2.344 2.344 0 0 1-2.343-2.343V5.188A2.344 2.344 0 0 1 7.03 2.844h4.822c.414 0 .812.164 1.104.457l6.898 6.898c.293.293.457.69.457 1.104Z"}),v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12.5 3.234v5.86a1.563 1.563 0 0 0 1.563 1.562h5.859M8.594 14.562h7.812M8.594 18.47h7.812"})]});function Mo({label:e,key:t,icon:r,children:n,type:a,className:i,disabled:o=!1,url:s,itemType:l,moduleid:c,originalitem:A}={}){return{label:e,key:t,icon:r,children:n,type:a,className:i,disabled:o,url:s,itemType:l,moduleid:c,originalitem:A}}const Mbe=({siderIsCollapsed:e,selectedModuleKey:t})=>{const r=wn(),n=qf(),a=ut(_=>_.router),i=n.location.pathname,o=ut(_=>_.cti.menu.modules),s=ut(_=>_.cti.menu.item),l=ut(_=>_.cti.globals),c=ut(_=>_.cti.content),A=ut(_=>_.cti.menu.loading),u=ut(_=>_.cti.ui.menuMode),d=o[t]??null,[f,h]=E.useState(null),[g,p]=E.useState(null),[m,y]=E.useState(""),[C,w]=E.useState(null);let B=le.useMemo(()=>({}),[]);const x=E.useRef(),M=_=>{switch(_){case"synthese":return v.jsx(Y1t,{className:"drawer__icon"});case"import":return v.jsx(uV,{className:"drawer__icon"});case"export":return v.jsx(SR,{className:"drawer__icon"});case"parametres":return v.jsx(k_e,{className:"drawer__icon"});case"documentation":return v.jsx(ODe,{className:"drawer__icon"});default:return v.jsx(FFe,{className:"drawer__icon"})}},S=le.useCallback((_,P,k=!1)=>{const j=m.split(/\s/).length>1?!1:k;if(_.children!==void 0){const Y=Object.values(_.children),X=SL(P,_),K=X.replace(/\//g,"_"),U=k||Mne(_,m,["label"],!1),H=Y.map(L=>S(L,X,U)).filter(Boolean);return!j&&H.length===0?null:Mo({label:_.label,disabled:_?.disabled,key:K,icon:M(_.icon),children:H})}if(j||Mne(_,m,["label","name"],!k)){const Y=SL(P,_);let X=_.view.split(".")[0],K=wO(_),U=BO(K),H=Y.replace(/\//g,"_")+"_"+K;return B[X]="/"+Y+"/"+K,K==="view-1"&&(H=Y.replace(/\//g,"_")+"_"+X,B[X]="/"+Y+"/"+X),Mo({icon:N(_.icon),key:H,url:K,itemType:U,label:v.jsx(Xr,{title:_.name,children:_.label}),moduleid:_.softCode,className:"cti-menu-item",disabled:_.disabled,originalitem:_})}return null},[B,m]),R=le.useCallback((_,P)=>{let k=[];for(const j in _.children)if(_.children.hasOwnProperty(j)){const Y=_.children[j];k.push(Y)}return k.map(j=>{const Y=S(j,P);return m!==""&&Y?.type===xd.SubMenu&&Y.props.children.every(X=>X===null)?null:Y})},[S,m]);E.useEffect(()=>{if(d&&!A){const _=R(d,t);if(w(_),m!==""){const P=RL(_);p(P)}}m===""&&f?.length&&p(_V(f[0]))},[d,A,t,R,m,f]),E.useEffect(()=>{const _=setTimeout(()=>{x?.current&&x.current.focus()},200);return()=>clearTimeout(_)},[x,e]),E.useEffect(()=>{const _=()=>{let P=i.slice(1).replace(/\//g,"_");(f===null||P!==f[0])&&h([P]);let k=_V(P);Array.isArray(g)?p([...new Set([...g,...k,`${t}_synthese`,`${t}_exploration`])]):p([...k])};(!c.viewUrl||c.viewUrl&&c.viewlink)&&_()},[t,c,i,f]),E.useEffect(()=>{B&&r(zOe(B))},[B,r,i]);const b=(_,P,k,j,Y)=>{switch(_){case"view":r(Ehe(P,!1,k));break;case"component":r(n4e(j,Y));break}};E.useEffect(()=>{if(!l.isLoading&&(s&&s.globals===""||s&&l.module===Rf(s.globals)&&Object.keys(l.data).length&&c.type!=="page")){let _=s.label;const P=wO(s);let k=BO(P);b(k,_,i,P,s.softCode)}},[s,l.module]),E.useEffect(()=>{if(!(!o||!Object.keys(o).length)&&(a.action==="POP"||a?.location?.state?.logged||a?.location?.state?.fromSider===!0)){let _="";if(a.location?.state?.homeview){const Y=Object.keys(RR).find(U=>a.location.state.homeview.toLowerCase().includes(U.toLowerCase())),X=RR[Y],K=o[X];if(K){const U=WH(K.children,`/${X}`),H=Object.keys(U).find(L=>L===a.location.state.homeview);_=H?U[H]:`/${X}/${a.location.state.homeview}`}n.push(_),b("view",a.location.state.homeview,_,_,X);return}_=i.substring(1),_=_.replace(Ii()+"jis/","");let P=_.split("/"),k=[];for(let Y=0;Y<P.length-1;Y++)k.push(P[Y]),Y!==P.length-2&&k.push("children");const j=L1t(o,k);if(j?.swf||j?.jisComponent){const Y=j.label;let X=wO(j),K=BO(X);l.isLoading===!1&&r(iy(j.softCode.split("_")[1])),r(zR(j)),b(K,Y,i,X,j.softCode)}else{const Y=i.split("/").length-1;let X=i.endsWith("/")?i.split("/")[Y-1]:i.split("/")[Y];return r(eB(X)),v.jsx(vE,{to:`/${X}`})}}},[a,o,r,i]);const T=_=>{y(_.target.value)},D=_=>{p(_)},F=({item:_})=>{if(u===NR&&r(pE()),r(CQ(!1)),_.props.originalitem?.favoriteOwner!==""&&l.isLoading===!1){const Y=_.props.originalitem.softCode.split("_")[1];r(iy(Y))}const j="/"+_.props["data-menu-id"].split("-").slice(5).join("-").replace(/_/g,"/");n.push(j),r(zR(_.props.originalitem)),r(E3e()),b(_.props.itemType,_.props.originalitem.name,j,_.props.url,_.props.moduleid)};function N(_){if(_?.includes("essentiel"))return v.jsx(DNe,{});switch(_){case"analyse_croisee":return v.jsx(rge,{});case"VIEWLINKPOPUP_RH":case"VIEWLINK_EVO_COMP_RH":return v.jsx(Xj,{});case"comparatif":return v.jsx(Xhe,{});case"analyse":return v.jsx(ege,{});case"evolution":return v.jsx(nge,{});case"justificatif":return v.jsx(Zj,{});case"controle":return v.jsx(Cy,{});case"etude":return v.jsx(YFe,{});case"import":return v.jsx(uV,{});case"export":return v.jsx(SR,{});case"essentiel":return v.jsx(BDe,{});case"synthese":return v.jsx(T_e,{});case"synchronisation":return v.jsx(tm,{});case"liste":return v.jsx(rB,{});case"classe":return v.jsx(CNe,{});default:return v.jsx(Zj,{})}}return t==="accueil"?v.jsx("div",{className:"menu homeMenu"}):A?v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{size:"small"})}):d?f&&g?v.jsxs(v.Fragment,{children:[!e&&v.jsx("div",{className:"search-field",children:v.jsx(jt,{placeholder:"Recherche",value:m,ref:x,onChange:T,onPressEnter:T,prefix:v.jsx(Xf,{}),allowClear:!0})}),v.jsx(xd,{theme:"dark",className:"cti-menu",mode:"inline",selectedKeys:f,openKeys:g,multiple:!1,onSelect:F,onOpenChange:D,items:C})]}):null:t==="myfavorites"?v.jsx("div",{className:"menu-no-access",children:"Vous n'avez pas encore créé de favoris !"}):v.jsx("div",{className:"menu-no-access",children:"Vous n'avez pas accès à ce module"})},wO=e=>{if(e.swf){let t=e.swf.replace(".swf","").replace("./","").split("_").pop();t=t.replace("./CTI_","");const r=Lo(t);return Gv(r,{lower:!0})}if(e.jisComponent){const t=Lo(e.jisComponent);return Gv(t,{lower:!0})}return Ki(8610,e.label),""},SL=(e,t)=>e+"/"+Gv(t.label,{lower:!0}),BO=e=>e==="view-1"?"view":"component",WH=(e,t="")=>{let r={};return Object.values(e).forEach(n=>{const a=SL(t,n);n.children?r={...r,...WH(n.children,a)}:r[n.name]=n.swf!==""?`${a}/${n.name}`:a}),r},RL=e=>{let t=[];return e.forEach(r=>{r&&(t.push(r.key),r.props?.children&&(Array.isArray(r.props.children)?t=[...t,...RL(r.props.children)]:typeof r.props.children=="object"&&(t=[...t,...RL([r.props.children])])))}),t};Mbe.propTypes={siderIsCollapsed:W.bool,selectedModuleKey:W.string};const U1t=le.memo(Mbe),H1t=({siderIsCollapsed:e,handleCollapseSider:t})=>{const r=wn(),n=ut(c=>c.cti.menu.modules),a=ut(c=>c.cti.ui.showMenus),i=ut(c=>c.cti.ui.primaryColor),o=ut(c=>c.cti.menu.selectedModuleKey);E.useEffect(()=>{Object.keys(n).length||r(gpt())},[r,n]);const[s,l]=E.useState();return E.useEffect(()=>{l(G1t(o,e))},[o,e]),v.jsxs("div",{className:"Sider",style:{display:a===!0?"flex":"none"},children:[v.jsx("div",{className:"menuLabelContainer",children:v.jsx("span",{className:"menuLabel",style:{backgroundColor:i},children:v.jsx(Xr,{title:"Informations",placement:"bottom",children:s})})}),v.jsx(Rx,{className:"SiderContent",children:v.jsx(dm,{in:!0,classNames:"menu-fade",timeout:300,unmountOnExit:!0,children:v.jsx("div",{style:{height:300},children:v.jsx(U1t,{siderIsCollapsed:e,selectedModuleKey:o})})},o)}),v.jsx("div",{className:"SiderFooter",children:v.jsxs("div",{className:"ctiLogo",children:[v.jsx(tu,{className:"sider-divider"}),v.jsx(j1t,{style:{height:"30px",margin:"10px 0"}})]})})]})};function G1t(e,t){switch(e){case"accueil":return t?v.jsx(O1t,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(P1t,{className:"sider-icon"}),v.jsx("span",{children:"Accueil"})]});case"myfavorites":return t?v.jsx(xbe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(Bbe,{className:"sider-icon"}),v.jsx("span",{children:"Mes Favoris"}),v.jsx(yT,{to:{pathname:"/outils/parametrage-utilisateur/organisation-de-mes-favoris/favorites-manager",state:{fromSider:!0}},children:v.jsx(Mi,{title:"Organisation de mes favoris",children:v.jsx(bY,{style:{color:"white",marginLeft:"10px"}})})})]});case"pmsissr":return t?v.jsx(gBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(W6,{className:"sider-icon"}),v.jsx("span",{children:"PMSI SMR"})]});case"pmsihad":return t?v.jsx(sBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(oBe,{className:"sider-icon"}),v.jsx("span",{children:"PMSI HAD"})]});case"pmsipsy":return t?v.jsx(ABe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(W6,{className:"sider-icon"}),v.jsx("span",{children:"PMSI PSY"})]});case"pmsi":return t?v.jsx(cBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(lBe,{className:"sider-icon"}),v.jsx("span",{children:"PMSI MCO"})]});case"activite":return t?v.jsx(qwe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(Xwe,{className:"sider-icon"}),v.jsx("span",{children:"Activité"})]});case"rh":return t?v.jsx(dBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(uBe,{className:"sider-icon"}),v.jsx("span",{children:"Ressources Humaines - Paie"})]});case"ssae":return t?v.jsx(hBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(fBe,{className:"sider-icon"}),v.jsx("span",{children:"SSAE"})]});case"compta":return t?v.jsx($we,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(Zwe,{className:"sider-icon"}),v.jsx("span",{children:"Comptabilité"})]});case"dpi":return t?v.jsx(tBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(eBe,{className:"sider-icon"}),v.jsx("span",{children:"Dossier Patient"})]});case"qualite":return t?v.jsx(J6,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(J6,{className:"sider-icon"}),v.jsx("span",{children:"Qualité"})]});case"eco":return t?v.jsx(nBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(rBe,{className:"sider-icon"}),v.jsx("span",{children:"Gestion Economique"})]});case"eis":return t?v.jsx(iBe,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(aBe,{className:"sider-icon"}),v.jsx("span",{children:"EIS"})]});case"outils":return t?v.jsx(cH,{className:"sider-icon-collapse"}):v.jsxs(v.Fragment,{children:[v.jsx(pBe,{className:"sider-icon"}),v.jsx("span",{children:"Outils"})]});default:return"Menu"}}const bse=le.memo(H1t);function K1t(e){let t=Nt(e,"HTTP_SERVICE");const r=Nt(t[0],"DASHBOARDS");let n={};return r&&r.length&&r.forEach(a=>{let i=Yr(a),o=Nt(a,"DASHBOARD");o&&o.length&&(i.modules=J1t(o)),n[i.type]=i}),n}function Ibe(e){let t=[];e.linkViewVariables!==""&&(t=e.linkViewVariables.split("&"));let r={};return t.forEach(function(a,i){let o=a.split("="),s=o[0],l=o[1];r[`${s}-${i}`]={name:s,value:l}}),r}function V1t(e,t){let r=[],n=Nt(e,"DASHBOARD");return n&&n.length&&n.forEach((a,i)=>{let o=Yr(a);o.key=t.key+"-"+i;let s=Ibe(o),l=bbe(o);o.icon=l,o.viewLinkParams=s,r.push(o)}),r}function J1t(e){let t=[];return e.forEach((r,n)=>{let a=Yr(r);a.key=n.toString();let i=Ibe(a),o=V1t(r,a),s=bbe(a);a.icon=s,a.children=o,a.viewLinkParams=i,t.push(a)}),t}function bbe(e){let t="";switch(e.status){case"OK":t=v.jsx(IR,{twoToneColor:"#52c41a"});break;case"KO":t=v.jsx(bR,{twoToneColor:"#d12121"});break;case"WARNING":t=v.jsx(AFe,{twoToneColor:"#FF8801"});break}return t}const W1t=()=>async function(e,t){try{const r=await jn("modules/outils/php/httpService_dashboards_getPortalDashboards.php"),n=K1t(r);e(HOe(n))}catch(r){console.error(r)}},X1t=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20.883 17.16c-1.254-1.535-2.14-2.316-2.14-6.547 0-3.875-1.978-5.255-3.606-5.925a.87.87 0 0 1-.486-.516c-.286-.972-1.087-1.828-2.151-1.828-1.065 0-1.866.857-2.148 1.83-.066.224-.27.425-.486.513-1.63.672-3.607 2.047-3.607 5.926-.003 4.23-.888 5.012-2.142 6.547-.52.635-.064 1.59.844 1.59h15.083c.903 0 1.355-.957.839-1.59M15.625 18.75v.781a3.125 3.125 0 1 1-6.25 0v-.781"})}),q1t=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M12.642 2.344C6.93 2.267 2.267 6.93 2.344 12.642 2.42 18.12 6.88 22.58 12.358 22.656c5.713.078 10.375-4.585 10.297-10.297C22.58 6.88 18.12 2.42 12.642 2.344m6.172 15.979a.194.194 0 0 1-.235.04.2.2 0 0 1-.064-.056 6.1 6.1 0 0 0-1.58-1.445c-1.243-.798-2.818-1.237-4.435-1.237s-3.192.44-4.435 1.237a6.1 6.1 0 0 0-1.58 1.445.196.196 0 0 1-.3.015 8.56 8.56 0 0 1-2.279-5.675c-.08-4.752 3.82-8.73 8.573-8.74 4.754-.013 8.615 3.847 8.615 8.593a8.56 8.56 0 0 1-2.28 5.823"}),v.jsx("path",{fill:"currentColor",d:"M12.5 7.031c-.963 0-1.834.361-2.452 1.017-.619.656-.928 1.562-.858 2.536.142 1.916 1.626 3.479 3.31 3.479s3.165-1.563 3.31-3.479c.072-.964-.234-1.862-.863-2.53-.621-.66-1.49-1.023-2.447-1.023"})]});var Z1t=mc();const $1t=gn(Z1t);var xO,Sse;function eCt(){if(Sse)return xO;Sse=1;var e=Fy(),t=UIe(),r=Ny(),n=t(function(a,i){e(i,r(i),a)});return xO=n,xO}var MO,Rse;function tCt(){return Rse||(Rse=1,MO=eCt()),MO}var rCt=tCt();const Tse=gn(rCt);function nCt(e,t,r,n){for(let a in e)if(typeof e[a]=="object"){let i=e[a].name,o=e[a].value;if(i!=="_NONE"){let s=o;/=|SELECT.|VIEW.|ROW.|return|Date|'(.*)'/gm.test(s)&&(isNaN(Number(s))?s=ca(o,r,n):s=Number(s)),s&&(t[i]=s)}}else t[a]=e[a];return t}function aCt(e,t,r,n){return Object.values(e).forEach(a=>{let i={};if(a.name!=="_NONE"&&a.value){const o=ca(a.value,r,n);if($1t(o))for(let s in o)t[s]=o[s]}t={...t,...i}}),t}function iCt(e,t,r){let n={};return e?n=Tse({},e.run.args,t):n=Tse({},r,t),!t.ALIAS_PERIODE&&n.PERIODE&&(n.ALIAS_PERIODE="-1"),oCt(n)}function oCt(e){delete e.ALIAS_PERIODE2,delete e.ALIAS_PERIODE3;for(let t in e)e[t]==="undefined"&&delete e[t];return e}const sCt=async(e,t)=>{const r=Ii(),n=await To({method:"get",url:r+`modules/base/php/getCsvFile.php?longfile=${encodeURI(e.longfile)}`,responseType:"arraybuffer",headers:{"Content-Type":"multipart/form-data"}});let a="cti.zip";n.headers["content-disposition"]&&(a=n.headers["content-disposition"].match(/filename="(?<filename>.*)"/).groups.filename),Y4(n.data,a),t(rm(!1))};async function UT(e,t,r,n,a,i=null,o=null,s=null,l=null){r(rm(!0));const c=e.replace(".XML","");let A=Object.keys(a.moduleEntries).find(p=>p===c),u,d={},f={};(o||s)&&(u=s.row?s.row:o),t&&(d=nCt(t,d,n,u)),i&&(d=aCt(i,d,n,u)),f=iCt(n,d,t);const h=U4(f).substring(0,7);let g=A?a.moduleEntries[A]+"?p="+h:e.replace(".XML","")+"?p="+h;if(!A&&l!==a.selectedModuleKey){const p=a.modules[l];if(p){const m=WH(p.children,`/${l}`);A=Object.keys(m).find(y=>y===c),g=A?m[A]+"?p="+h:`/${l}/${e.replace(".XML","")}?p=${h}`}}g.startsWith("*URL")?sCt(f,r):Ko.unstable_batchedUpdates(()=>{r(Ehe(c,e,!0)),r(Rpt(g,h,f)),r($h(null,null)),r(rw(null))})}const lCt=({visible:e,closeModal:t})=>{const n=[{name:"Vues",shortcuts:{f:"Ouvrir / Fermer les filtres",e:"Lancer l'analyse"}}].map((a,i)=>{let o=Object.keys(a.shortcuts).map((s,l)=>v.jsx("div",{className:"shortcut",children:v.jsxs("p",{children:[v.jsx(Bx,{className:"shortcut-key",children:s}),a.shortcuts[s]]})},l));return v.jsxs("div",{className:"shortcut-section",children:[v.jsx("div",{className:"section-title",children:a.name}),v.jsx("div",{className:"section-shortcuts",children:o})]},i)});return Ql.createPortal(v.jsx(gi,{title:"Raccourcis clavier",open:e,footer:null,onCancel:t,centered:!0,width:"30vw",className:"shortcuts-modal",zIndex:3100,children:n}),document.getElementById("root"))},TL=({label:e,infos:t})=>v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"module-tooltip-label",children:e}),t&&v.jsx("div",{style:{marginTop:8},children:Object.keys(t).map(r=>v.jsxs("div",{style:{display:"flex"},children:[v.jsx("div",{style:{width:200},children:t[r].label})," ",v.jsx("div",{style:{flex:3,textAlign:"right"},children:t[r].value})]},r))})]});TL.propTypes={label:W.string,infos:W.object};const cCt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 26 25",...e,children:[v.jsx("path",{fill:"currentColor",d:"M21.594 8.594h-5.469V3.125A2.344 2.344 0 0 0 13.781.781H4.406a2.344 2.344 0 0 0-2.343 2.344v20.313a.78.78 0 0 0 .78.78h5.079a.39.39 0 0 0 .39-.39v-3.494c0-.42.324-.78.744-.802a.78.78 0 0 1 .819.78v3.516a.39.39 0 0 0 .39.39h12.891a.78.78 0 0 0 .782-.78v-12.5a2.344 2.344 0 0 0-2.344-2.344M5.289 21.087a.781.781 0 1 1-.203-1.549.781.781 0 0 1 .203 1.55m0-3.906a.782.782 0 1 1-.202-1.55.782.782 0 0 1 .202 1.55m0-3.906a.781.781 0 1 1-.203-1.549.781.781 0 0 1 .203 1.549m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.203-1.549.781.781 0 0 1 .203 1.55m3.906 11.72a.782.782 0 1 1-.202-1.551.782.782 0 0 1 .202 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.549m0-3.906a.781.781 0 1 1-.202-1.55.781.781 0 0 1 .202 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.55m3.907 15.625a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.782.782 0 1 1-.203-1.55.782.782 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m9.078 17.194h-6.055v-12.5h5.469a.78.78 0 0 1 .781.781v11.524a.195.195 0 0 1-.195.195"}),v.jsx("path",{fill:"currentColor",d:"M20.031 19.531a.782.782 0 1 0 0 1.564.782.782 0 0 0 0-1.564m0-3.906a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563m-3.125 7.812a.782.782 0 1 0 0 1.564.782.782 0 0 0 0-1.564m0-3.906a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563"})]}),ACt=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:[v.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8.594 20.313v3.125M3.906 1.563h9.375a1.56 1.56 0 0 1 1.563 1.562v20.117a.195.195 0 0 1-.196.195H2.344V3.125a1.56 1.56 0 0 1 1.562-1.562m11.719 7.812h5.469a1.56 1.56 0 0 1 1.562 1.563v12.5h-7.812V10.156a.78.78 0 0 1 .781-.781"}),v.jsx("path",{fill:"currentColor",d:"M4.79 21.087a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.549m0-3.906a.781.781 0 1 1-.204-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.204-1.549.781.781 0 0 1 .203 1.55m3.905 11.72a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.549m0-3.906a.781.781 0 1 1-.202-1.55.781.781 0 0 1 .202 1.55m0-3.907a.781.781 0 1 1-.202-1.549.781.781 0 0 1 .202 1.55m3.907 15.625a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m0-3.906a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55M13.053 9.147a.78.78 0 0 0-.002-1.104.78.78 0 0 0-1.104-.003.78.78 0 0 0 .002 1.104.78.78 0 0 0 1.104.003M12.602 5.462a.781.781 0 1 1-.203-1.55.781.781 0 0 1 .203 1.55m6.93 14.07a.782.782 0 1 0 0 1.562.782.782 0 0 0 0-1.563m0-3.907a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563m-3.126 7.812a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563m0-3.906a.78.78 0 1 0 0 1.562.78.78 0 0 0 0-1.562m0-3.906a.782.782 0 1 0 0 1.563.782.782 0 0 0 0-1.563"})]}),uCt=(e,t,r)=>{let n=e.filter(o=>!Adt.includes(o.label));n=n.map(o=>{const s=r.modules[o.softCode.substring(5)];return{...o,info:s?.informations??{},key:o.name.toLowerCase(),purchased:o.licenceOK==="OK"}});let a=[...n];t.forEach(o=>{a.find(l=>l.key===o.key)||a.push({...o,purchased:!1})});const i=a.findIndex(o=>o.key==="outils");return i>-1&&a.push(a.splice(i,1)[0]),dCt(a,vBe),fCt(a),a},dCt=(e,t)=>{let r=[];return e.forEach((n,a)=>{r=t.find(i=>i.key===n.key),n.index=r?.index?r.index:e.length+a,n.icon=r?.icon?r.icon:v.jsx(cCt,{}),n.iconOutline=r?.iconOutline?r.iconOutline:v.jsx(ACt,{})}),e},fCt=e=>(e.sort(function(r,n){return r.index<n.index?-1:r.index>n.index?1:0}),e),Sbe=({handleModuleSelect:e,selectedKey:t,setSelectedKey:r})=>{const n=wn(),a=qf(),i=ut(M=>M.cti.settings.data.userDisplaySettings),o=ut(M=>M.cti.ui.primaryColor),s=ut(M=>M.cti.licences.data.modules),l=ut(M=>M.cti.menu),c=ut(M=>M.cti.globals),A=uCt(s,vBe,l),u=A.filter(M=>M.key.includes("pmsi")),[d,f]=E.useState(()=>hCt(i,u));E.useEffect(()=>{let M=a.location.pathname.split("/")[1];M===""&&(a.replace("/accueil/"),M="accueil",n(eB("accueil"))),r(M),c.isLoading===!1&&n(iy(M))},[a,a.location.pathname,n]),E.useEffect(()=>{t?.includes("pmsi")&&d!==t&&f(t)},[t,u]);const h=u.find(M=>M.key===d),g=t===h.key?h.icon:h.iconOutline,p=({key:M})=>{e({key:M}),M?.includes("pmsi")&&M!==d&&f(M)},m=A?.map(M=>Mo({label:v.jsx(Bv,{dot:!M.purchased,offset:[2,0],style:{background:o},children:v.jsx(Mi,{mouseEnterDelay:1,title:v.jsx(TL,{label:M.label,infos:M.info}),children:v.jsx("span",{className:"top-navigation-item",style:t===M.key?{color:o}:void 0,children:t===M.key?M.icon:M.iconOutline})})}),key:M.key})),y=m?.find(M=>M.key==="eis"),w=m.filter(M=>M.key!=="eis"&&M.key!=="outils").filter(M=>!M.key.includes("pmsi")),B=u.map(M=>Mo({label:v.jsx(Bv,{dot:!M.purchased,offset:[3,8],style:{background:o},children:v.jsx(Mi,{mouseEnterDelay:1,title:v.jsx(TL,{label:M.label,infos:M.info}),children:v.jsx("span",{className:"top-navigation-item",children:M.label})})}),key:M.key,icon:t===M.key?M.icon:M.iconOutline,className:"menu-item-pmsi"})),x=[{label:v.jsx(Mi,{mouseEnterDelay:1,title:"Mes favoris",children:v.jsx("span",{className:"top-navigation-item",children:t==="myfavorites"?v.jsx(Bbe,{}):v.jsx(xbe,{})})}),key:"myfavorites"},y,{label:v.jsx(tu,{type:"vertical",style:{height:32,borderColor:"rgba(0,0,0,0.1)"}}),key:"divider-1",disabled:!0},{key:"subMenu",label:v.jsx("span",{children:g}),children:B,popupClassName:"pmsi-popup",onTitleClick:()=>e({key:d})},...w];return v.jsx("div",{className:"top-navigation-menu",children:v.jsx(xd,{mode:"horizontal",selectedKeys:[t],onClick:p,items:x,subMenuCloseDelay:.7})})},hCt=(e,t)=>{if(e?.pmsiDefaultModule)return e.pmsiDefaultModule;const r=t.find(n=>n.purchased);return r?r.key:"pmsi"};Sbe.propTypes={handleModuleSelect:W.func,selectedKey:W.string,setSelectedKey:W.func};const gCt=le.memo(Sbe),pCt=({handleCollapseSider:e,siderIsCollapsed:t})=>{const[r,n]=E.useState(!1),a=wn(),i=ut(K=>K.cti.settings.data.session),o=ut(K=>K.cti.settings.data.environment),s=ut(K=>K.cti.settings.data.version),l=ut(K=>K.router.location.pathname),c=ut(K=>K.cti.ui.showShortcuts),A=ut(K=>K.cti.ui.bugTracker),u=ut(K=>K.cti.notifications.data),d=ut(K=>K.cti.ui.showMenus),f=ut(K=>K.cti.ui.menuMode),h=ut(K=>K.cti.ui.devMode),g=ut(K=>K.cti.menu),p=ut(K=>K.cti.menu.item),m=ut(K=>K.cti.menu.selectedModuleKey),y=ut(K=>K.cti.settings.data.environment),C=qf(),w=ut(K=>K.router),B=ut(K=>K.cti.history.modules),[x,M]=E.useState(null);let S=l.split("/")[1];E.useEffect(()=>{a(GY(S))},[a,S]),E.useEffect(()=>{a(W1t())},[a]);const R=()=>t?v.jsx(mNe,{}):v.jsx(fV,{}),b=K=>{a(A8e(K))},T=({key:K})=>{let U;switch(K){case"logout":twe();break;case"bug":U=document.createElement("a"),U.href=cwe(o,s),document.body.appendChild(U),U.click(),document.body.removeChild(U);break;case"shortcuts":a(gV(!0));break;case"tools":P({key:"outils"});break;case"about":n(!0);break;case"reload_menu":a(hpt());break;case"reload_filters":a(k4());break;case"reload_views":Pxe();break}},D=()=>{a(gV(!1))},F=(K,U)=>{U.stopPropagation(),a(pE(!!K)),a(yge())},N=()=>{a(eB("options")),C.push("/outils/logs")},_=(K,U)=>{const H=U.node;P({key:H.moduleKey}),UT(H.linkView,H.linkViewVariables,a,null,g,null,null,null,H.moduleKey)},P=({key:K})=>{a(CQ(!1)),a(pE(!1));const U=p?{...p,url:`${{...w.location}.pathname}${{...w.location}.search}`}:null,H=p?.softCode.slice(5)??null;if(H&&(!U.favoriteOwner||U.favoriteOwner==="")&&U.url.includes(H)&&a(_Oe(H,U)),a(iy(K)),M(K),B[K]){const L=B[K];a(zR(L)),C.replace(L.url,{fromSider:!0})}else a(zR(null)),a(eB(K)),C.push(`/${K}`)},k=[Mo({label:v.jsxs(v.Fragment,{children:["Menu drawer",v.jsx(bo,{checked:f===NR,onChange:F,style:{marginLeft:6},size:"small"})]}),key:"menu_mode",icon:v.jsx(fV,{})}),Mo({type:"divider"}),Mo({label:"Recharger le menu",key:"reload_menu",icon:v.jsx(gE,{})}),Mo({label:"Recharger les filtres",key:"reload_filters",icon:v.jsx(gE,{})}),Mo({label:"Recharger les vues",key:"reload_views",icon:v.jsx(gE,{})}),Mo({type:"divider"}),Mo({label:"Raccourcis clavier",key:"shortcuts",icon:v.jsx(tge,{})}),Mo({label:"A propos",key:"about",icon:v.jsx(mQ,{})}),Mo({label:"Rapporter un bug",key:"bug",icon:v.jsx(FS,{})}),Mo({type:"divider"}),Mo({label:"Paramètres",key:"tools",icon:v.jsx(cH,{})}),Mo({label:"Se déconnecter",key:"logout",icon:v.jsx(fNe,{})})],j=()=>{const K=Object.values(u).map((U,H)=>{let L=Y();return{label:v.jsx(Bv,{count:L,offset:[10,10],children:U.type}),key:H,children:v.jsxs(v.Fragment,{children:[v.jsx(Id,{showIcon:!0,defaultExpandAll:!0,treeData:U.modules,onSelect:U.type==="EXPERT"?_:null}),o.ISEXPLOIT&&v.jsx(yT,{to:"/outils/exploit",children:v.jsx(yt,{type:"primary",style:{width:"100%",marginTop:12},className:"notifications-list-detail",children:v.jsx("span",{children:"Accès au détail"})})})]})}});return v.jsx("div",{className:"notifications-menu",children:v.jsx(Oi,{centered:!0,items:K})})},Y=()=>{let K=0;return Object.values(u).forEach((U,H)=>{U?.module&&(K=Object.values(U?.modules).filter(L=>L.status==="KO").length)}),K},X=Object.keys(s).map(K=>v.jsx("div",{className:"about-version",children:`${K} v${s[K]}`},K));return v.jsxs("div",{className:"Top",style:{display:d===!0?"flex":"none"},children:[v.jsx(gi,{open:r,footer:null,onCancel:()=>n(!1),width:700,children:v.jsxs("div",{className:"about-modal",children:[v.jsx("div",{className:"about-logo",children:v.jsx(lwe,{style:{height:"80px",margin:"10px 0"}})}),v.jsx("div",{className:"about-environment",children:`${o.ENVIRONMENT} (${o.FINESS})`}),v.jsx("div",{className:"about-versions",children:X}),v.jsxs("div",{children:["Build n°: ",window.appVersion]}),v.jsx(yt,{type:"link",href:"https://www.ctisante.com",children:"https://www.ctisante.com"})]})}),v.jsx(yt,{className:"siderButton",type:"link",onClick:e,disabled:m==="accueil",children:R()}),v.jsx(yT,{to:"/accueil",children:v.jsx(Mi,{placement:"bottom",title:"Accueil",children:v.jsx("div",{className:"headerEtablissement",children:v.jsxs("div",{children:[v.jsx("div",{className:"nomEtablissement",children:y&&y.ENVIRONMENT}),v.jsx("div",{className:"numFiness",children:v.jsx(Bx,{style:{background:"#eeeeee"},icon:v.jsx(nFe,{style:{marginTop:"3px"}}),children:y&&y.FINESS})})]})})})}),v.jsx(gCt,{handleModuleSelect:P,selectedKey:x,setSelectedKey:M}),v.jsx(lCt,{visible:c,closeModal:D}),v.jsxs("div",{className:"settings-buttons",children:[i.ISROLECTI&&h===!0&&v.jsx(yt,{type:"link",onClick:N,children:v.jsx(Bv,{count:A,children:v.jsx(FS,{})})}),i.ISROLECTI&&h===!1&&v.jsx(yt,{type:"link",disabled:!0,children:v.jsx(FS,{})}),i.ISROLECTI&&v.jsx(bo,{style:{height:"20px",width:"auto"},checked:h,onChange:b}),u&&v.jsx(JQ,{content:j(),placement:"bottomRight",arrow:!0,trigger:"click",className:"settings-dropdown",children:v.jsx(yt,{type:"link",children:v.jsx(Bv,{count:Y(),children:v.jsx(X1t,{})})})}),v.jsx(Yg,{menu:{items:k,onClick:T},placement:"bottomRight",arrow:!0,overlayClassName:"settings-dropdown",trigger:["click"],children:v.jsxs(yt,{type:"link",className:"user-button",children:[v.jsx("span",{children:i.CONNECTEDUSER}),v.jsx(q1t,{})]})})]})]})},Rbe=({style:e})=>v.jsx("div",{className:"progress-line"});Rbe.propTypes={style:W.object};const{Panel:vCt}=$E,mCt=()=>v.jsx($E,{className:"filters__collapse",defaultActiveKey:["favorite"],children:v.jsxs(vCt,{header:"Définition du favori",children:[v.jsx(We.Item,{label:"Label",name:"favorite_label",children:v.jsx(jt,{})}),v.jsxs("div",{className:"editor-header-checkbox",children:[v.jsx(We.Item,{label:"Partagé",name:"favorite_shared",valuePropName:"checked",children:v.jsx(un,{})}),v.jsx(We.Item,{label:"Diffusé",name:"favorite_diffuser",valuePropName:"checked",children:v.jsx(un,{})})]})]},"favorite")}),ECt=le.memo(mCt),QL=(e,t,r,n,a,i,o)=>{if((a?.name==="PERIODE"||a?.name==="TOPERIODE")&&!i&&o?.ALIAS_PERIODE==="-1"||t==null)return!0;if(t.toLowerCase()==="false")return!1;window.form=e,window.getValue=function(c,A){switch(c){case"ENV":return r.environment?.[A]??A;case"VIEW":return n?.[A]??A}};let s=t.replace(/(SELECT)\.([A-Za-z_0-9]*)/gm,"form.getFieldValue('$2')").replace(/(ENV|VIEW)\.([A-Za-z_0-9]*)/gm,"getValue('$1', '$2')").trim().replace(/=?/,"");try{return vB(s)}catch(l){return console.log(s),console.log(l),Ki(8103,s,l),!0}};function HT(e,t,r,n,a,i,o,s,l){return r&&r==="true"&&i===!1?!1:QL(e,t,n,a,o,s,l)}const yCt=e=>e.treeData.filter(t=>{if(!t.condition)return!0;let r=t.condition.replace(/(SELECT)\.([A-Za-z_0-9]*)/gm,"form.getFieldValue('$2')").replace(/(ENV|VIEW)\.([A-Za-z_0-9]*)/gm,"getValue('$1', '$2')").trim().replace(/=?/,"");try{return vB(r)}catch(n){return console.log(r),console.log(n),!0}}),XH=({field:e,hidden:t,locked:r})=>v.jsx(We.Item,{shouldUpdate:(n,a)=>n[e.name]!==a[e.name],children:n=>{let a="";return(n.getFieldValue(e.name)?e.selectedValue:e.unSelectedValue)!==e.default&&e.showIfNotDefault==="true"&&(a="changed-filter"),v.jsx(We.Item,{name:e.name,valuePropName:"checked",shouldUpdate:!0,className:a,hidden:t,locked:r.toString(),children:v.jsx(un,{field:e})},e.name)}});XH.propTypes={field:W.object,hidden:W.bool,locked:W.oneOfType([W.string,W.bool])};var IO,Qse;function CCt(){return Qse||(Qse=1,IO=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,a,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(!e(t[a],r[a]))return!1;return!0}if(t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;for(a of t.entries())if(!e(a[1],r.get(a[0])))return!1;return!0}if(t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a of t.entries())if(!r.has(a[0]))return!1;return!0}if(ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if(n=t.length,n!=r.length)return!1;for(a=n;a--!==0;)if(t[a]!==r[a])return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(a=n;a--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[a]))return!1;for(a=n;a--!==0;){var o=i[a];if(!(o==="_owner"&&t.$$typeof)&&!e(t[o],r[o]))return!1}return!0}return t!==t&&r!==r}),IO}var wCt=CCt();const Qg=gn(wCt),BCt=({field:e,form:t,hidden:r,isFieldEnabled:n,locked:a})=>{const i=(o,s,l)=>{s.field==='"ALIAS_PERIODE"'&&s.data2!==void 0&&s.data3!==void 0&&(t.setFieldsValue({PERIODE:s.data2}),t.setFieldsValue({TOPERIODE:s.data3}))};return v.jsx(We.Item,{shouldUpdate:(o,s)=>o[e.name]!==s[e.name],children:o=>{let s=!1,l=!1,c=o.getFieldValue(e.name),A=[],u=[],d=yCt(e);A=Hf(d,A);const f=A.find(p=>p.option.data===c);let h=[];f&&!Qg(u,f.option.parentKeys)?u=f.option.parentKeys:Qg(u,h)||(u=h),c||(c=e.value);let g="";return c!==e.default&&c&&e.showIfNotDefault==="true"&&(g="combo-modified"),c==="C*"&&(l=!0),c==="T*"&&(s=!0),v.jsxs("div",{className:"form-combo-manual",children:[v.jsx(We.Item,{style:{width:e.width},shouldUpdate:!0,name:e.name,hidden:r,children:v.jsx(_i,{hidden:r,className:g,dropdownStyle:{maxHeight:400,overflow:"auto",minWidth:200},disabled:!n,treeData:d,onSelect:i,treeDefaultExpandedKeys:u,locked:a?"true":"false",showSearch:!0,filterTreeNode:(p,m)=>m.title&&m.title.toLowerCase().indexOf(p.toLowerCase())>=0})},e.name),l&&v.jsx(We.Item,{shouldUpdate:!0,name:`${e.name}_CODE`,className:"filters__form--pading",children:v.jsx(jt,{locked:a?"true":"false"})},`${e.name}_CODE`),s&&v.jsx(We.Item,{shouldUpdate:!0,name:`${e.name}_TEXTE`,className:"filters__form--pading",children:v.jsx(jt,{})},`${e.name}_TEXTE`)]})}})};XH.propTypes={field:W.object,hidden:W.bool,locked:W.oneOfType([W.string,W.bool]),form:W.object,isFieldEnabled:W.any};const xCt=le.memo(BCt,Qg),Tbe=({field:e,hidden:t})=>{const n={width:e.width/2};return v.jsxs("div",{className:"filters__filtersFieldNumberInterval",style:{width:e.width},children:[v.jsx(We.Item,{name:e.name,className:"filtersIntervalNumber",style:{style:n},hidden:t,children:v.jsx(jt,{placeholder:"",hidden:t})},e.name),v.jsx("span",{className:"filters__intervalNumberLabel",children:" à "}),v.jsx(We.Item,{name:`${e.name}2`,className:"filtersIntervalNumber",style:{style:n},children:v.jsx(jt,{placeholder:"",hidden:t})},`${e.name}2`)]})};Tbe.propTypes={field:W.object,hidden:W.bool};const Qbe=({field:e,hidden:t,locked:r})=>{const n=()=>e.UI==="textArea"?v.jsx(jt.TextArea,{className:"combo-modified",placeholder:"",size:"middle",hidden:t,field:e,locked:r.toString()}):e.UI==="number"?v.jsx(H1e,{className:"combo-modified",placeholder:"",size:"middle",hidden:t,field:e,locked:r.toString()}):v.jsx(jt,{className:"combo-modified",placeholder:"",size:"middle",hidden:t,field:e,locked:r.toString()});return v.jsx(We.Item,{name:e.name,style:{width:e.width},hidden:t,children:n()},e.name)};Qbe.propTypes={field:W.object,hidden:W.bool,locked:W.oneOfType([W.string,W.bool])};const qH=({view:e,index:t,field:r,form:n,totalItems:a,filterItems:i,setFilterItems:o,formValues:s,initialFormValues:l})=>{const c=ut(w=>w.cti.settings.data),A=ut(w=>w.cti.ui.filters.editor),u=i.filter(w=>w.name===r.name),d=u[0]?.locked===!0||u[0]?.locked==="true",f=ut(w=>w.cti.ui.primaryColor),h=e.run.properties,g=HT(n,r.visible,r.locked,c,h,A,s,l),p=HT(n,r.enabled,r.locked,c,h,A,r,s,l),m=!(t===0&&r.UI!=="check"||!r.label||r.label.trim()===""||g===!1),y=()=>{o(i.map(w=>w.name===r.name?{...w,locked:!d}:w))},C=()=>{switch(r.UI){case"check":return v.jsx(XH,{field:r,form:n,hidden:!g,locked:d});case"combo":return v.jsx(xCt,{field:r,isFieldEnabled:p,form:n,hidden:!g,locked:d});case"text":case"textArea":case"number":return v.jsx(Qbe,{field:r,hidden:!g,locked:d});case"numberInterval":return v.jsx(Tbe,{field:r,hidden:!g});default:return v.jsx(We.Item,{hidden:!g,children:r.name+" | "+r.label},r.name+t)}};return v.jsxs("div",{className:"filter-field-item",style:{flex:a===t+1?4:3,display:g?"flex":"none"},children:[m&&v.jsx("div",{className:"filter-field-item-label",children:r.label}),v.jsxs("div",{className:"filter-field-item-input",children:[A?v.jsx(yt,{type:"link",className:"editor-lock",onClick:y,children:d?v.jsx(FY,{style:{color:f}}):v.jsx(ige,{})}):null,C()]})]})};qH.propTypes={view:W.object,index:W.number,field:W.object,form:W.object,totalItems:W.number,filterItems:W.array,setFilterItems:W.func,formValues:W.oneOfType([W.array,W.object]),initialFormValues:W.object};const MCt=le.forwardRef(({children:e,title:t,...r},n)=>{const[a,i]=E.useState(!1),o=mU(c=>{for(let A of c)l(A.target)},500),s=le.useMemo(()=>new ResizeObserver(o),[o]);E.useEffect(()=>{const c=n.current;return l(c),n&&s.observe(c),()=>{c&&s.unobserve(c)}},[n,s]);function l(c){c?.offsetWidth&&c?.scrollWidth&&i(c.offsetWidth<c.scrollWidth)}return a?v.jsx(Mi,{placement:"topLeft",...r,title:t?v.jsx("div",{style:{width:"100%"},dangerouslySetInnerHTML:{__html:t}}):null,children:e}):e}),Dbe=({group:e})=>{const t=E.useRef(),[r,n]=E.useState(""),[a,i]=E.useState({});return E.useEffect(()=>{e.label&&e.label!==""?n(e.label.trim()):e.field[0]?.label&&e.field[0].label!==""&&(n(e.field[0].label.trim()),i({fontWeight:"400"}))},[e]),v.jsx("div",{className:"filters-group-label",style:a,children:v.jsx("span",{ref:t,children:v.jsx(MCt,{title:r,ref:t,children:r})})})};Dbe.propTypes={group:W.object};const ICt=({view:e,index:t,form:r,group:n,filterItems:a,setFilterItems:i,formValues:o,initialFormValues:s})=>{const l=ut(f=>f.cti.settings.data),c=ut(f=>f.cti.ui.filters.editor),A=e.run.properties,u=n.field.every(f=>!HT(r,f.visible,f.locked,l,A,c));if(!n.field||u)return null;const d=n.field.map((f,h)=>v.jsx(qH,{field:f,form:r,index:h,totalItems:n.field.length,view:e,filterItems:a,setFilterItems:i,formValues:o,initialFormValues:s},h));return v.jsxs("div",{className:"filters-group",style:{display:"flex"},children:[v.jsx(Dbe,{group:n}),v.jsx("div",{className:"filters-group-fields",children:d})]},t)};qH.propTypes={view:W.object,index:W.number,form:W.object,group:W.object,filterItems:W.array,setFilterItems:W.func,formValues:W.oneOfType([W.array,W.object]),initialFormValues:W.object};const{Panel:Dse}=$E,bCt=({view:e,loading:t})=>{const r=wn(),[n]=We.useForm(),a=qf(),i=e.run.properties,[o,s]=E.useState(),[l,c]=E.useState(),[A,u]=E.useState(null),d=ut(J=>J.cti.ui.filters.editor),[f,h]=E.useState(),g=ut(J=>J.cti.components.favorites.dataOnglet),[p,m]=E.useState(!1),y=ut(J=>J.cti.settings.data),C=ut(J=>J.cti.history.views),w=ut(J=>J.cti.globals),B=E.useRef(),x=e.desc.selections,M=ut(J=>J.cti.ui.primaryColor);if(E.useEffect(()=>{if(x){let J=P(Object.values(x));J=J.map((ee,ae)=>({...ee,id:ae+1})),h(J)}},[x]),E.useEffect(()=>{if(x!==void 0&&e.desc.attributes.globals===""||x!==void 0&&e.run.args&&w.module===Rf(e.desc.attributes.globals)&&Object.keys(w.data).length){let J=_();d&&(J.favorite_label=e.desc.attributes.label,J.favorite_shared=e.desc.attributes.favoriteShared==="true",J.favorite_direct=e.desc.attributes.favoriteEssential==="true",J.favorite_diffuser=e.desc.attributes.diffuser==="true"),J&&c(J)}},[x,e.run.args,w.module,e.desc.globals,d]),E.useEffect(()=>{l&&S(l)},[l]),(e.desc.attributes.globals||e.desc.attributes.globals!=="")&&w.module!==Rf(e.desc.attributes.globals))return v.jsx(go,{size:"small",className:"filters__loadingCube"});return v.jsx("div",{className:"filters-form",children:!t&&w.isLoading===!1?Y():v.jsx(go,{size:"small",className:"filters__loadingCube"})});function S(J){J!==void 0&&n.setFieldsValue(J)}function R(){const J=f.map(ee=>({...ee,locked:!p}));h(J),m(!p)}function b(){const J=e.desc.attributes.isFavorite==="true";let ee={vue:{XMLType:"VUE",fromView:J?e.desc.attributes.fromViewFile:`${e.desc.attributes.name}.XML`,label:n.getFieldValue("favorite_label"),title:e.desc.attributes.title,name:e.desc.attributes.name,viewFilePath:e.desc.attributes.viewFilePath,isFavorite:J?"true":"false",shared:n.getFieldValue("favorite_shared"),essential:"false",diffuser:n.getFieldValue("favorite_diffuser"),children:[]}};f.forEach(he=>{let ye={XMLType:"FIELD",name:he.name,default:he.default,default2:he.default2?he.default2:"",value:n.getFieldValue(he.name),locked:he.locked?"true":"false"};he.UI==="check"&&(ye.value===!0?ye.value=he.selectedValue:ye.value=he.unselectedValue===""?"0":he.unselectedValue),n.getFieldValue(`${he.name}2`)&&(ye.value2=n.getFieldValue(`${he.name}2`)),ye.value==="C*"&&(ye.value=`C*${n.getFieldValue(`${he.name}_CODE`)}`),ye.value==="T*"&&(ye.value=`T*${n.getFieldValue(`${he.name}_TEXTE`)}`),ee.vue.children.push(ye)});let ae=e.run.data;const ne=Object.keys(ae);g.forEach(({tabName:he,columnsFiltered:ye})=>{ne.includes(he)&&(ae[he].datagrid.columns=[...ye])}),Object.values(ae).forEach(he=>{let ye=[],be={XMLType:"ONGLET",showDatagrid:"true",showCharts:"true",children:[{XMLType:"DATAGRID",showDatagrid:"true",showCharts:"true",forceColonnes:"",children:[]}]};Object.values(he.datagrid.columns).forEach(Se=>{let ve={XMLType:"COLUMN",dataField:Se.dataField,hide:String(Se.hidden)};be.children[0].children.push(ve),Se.visible&&ye.push(Se.dataField)}),be.children[0].forceColonnes=ye.join("|"),ee.vue.children.push(be)});let fe=Au(ee,!0);r(kv(!1)),r(_pt(fe,J))}async function T(){let J=n.getFieldsValue(!0);const ee=J.TYPE_COMPARAISON&&J.TYPE_COMPARAISON!=="S";for(const ve in J){!d&&ve.startsWith("favorite")&&delete J[ve];let de=f.filter(Ue=>Ue.name===ve);if(de[0]){de[0].UI==="check"&&(J[ve]===!0?J[ve]=de[0].selectedValue:J[ve]=de[0].unselectedValue===""?"0":de[0].unselectedValue);const Ue=de[0].UI==="text"||de[0].UI==="textArea"||de[0].UI==="numberInterval";(J[ve]===void 0||J[ve]==="null"||J[ve]===""&&!Ue)&&delete J[ve]}ve==="ALIAS_PERIODE"&&J[ve]!=="-1"&&(J.ALIAS_PERIODE2=J.PERIODE,J.ALIAS_PERIODE3=J.TOPERIODE),(ee&&ve==="PERIODE_D"||ee&&ve==="TOPERIODE_D")&&delete J[ve],J[ve]==="C*"&&J[`${ve}_CODE`]&&(J[ve]=J[ve]+J[`${ve}_CODE`],delete J[`${ve}_CODE`]),J[ve]==="T*"&&J[`${ve}_TEXTE`]&&(J[ve]=J[ve]+J[`${ve}_TEXTE`],delete J[`${ve}_TEXTE`])}const ae=N(!0,!0,!1);let ne={};J.ALIAS_PERIODE&&J.ALIAS_PERIODE!=="-1"&&(ne.ALIAS_PERIODE2=J.ALIAS_PERIODE2,ne.ALIAS_PERIODE3=J.ALIAS_PERIODE3);for(let ve in J)(!ae[ve]||ae[ve]!==J[ve]||ae[ve]===J[ve]&&["PERIODE","TOPERIODE","MOIS","TOMOIS"].includes(ve))&&(ne[ve]=J[ve]);const he=U4(ne).substring(0,7);let ye=!1;he===a.location.search.substring(3)&&(ye=!0);const be=MB(e.desc.attributes.name,ne,0),Se="?p="+he;try{const ve=await dc(be);if(ve===null||ve.executed===!1||ye){const de=Object.assign({},e,{...e,run:{...e.run,args:ne,executed:!1,forceServer:!0}});await Hv(be,de.run)}}catch(ve){Ki(8201,"",ve)}a.push(Se),Ko.unstable_batchedUpdates(()=>{r(rm(!0)),r(kv(!1)),r(_E(e.desc.attributes.name,he,C,ye))})}function D(J,ee){const ae=Object.keys(J)[0],ne=Object.values(J)[0];if(ae==="JIS_FULL_PERIODE"&&ne!==null&&n.setFieldsValue({PERIODE:ne[0].format("YYYY-MM-DD"),TOPERIODE:ne[1].format("YYYY-MM-DD")}),ae==="JIS_TOPERIODE"&&n.setFieldsValue({TOPERIODE:ne.format("YYYY-MM-DD")}),ae==="ALIAS_PERIODE"&&ne!=="-1"){const ye=Rf(e.desc.attributes.globals);if(ye&&ye!==""){const Se=w.data.providers.ALIAS_PERIODE;if(Se){let de=Sx(Se.children).find(Ue=>Ue.data===ne);de&&n.setFieldsValue({PERIODE:de.data2,TOPERIODE:de.data3})}}}let fe=/jsx-[0-9]_/,he={...J};if(fe.test(Object.values(he)[0])){const ye=Object.keys(he)[0],be=Object.values(he)[0].replace(fe,"");n.setFieldsValue({[ye]:be})}s(n.getFieldsValue())}function F(){const J=N();c(J),S(l)}function N(J=!1,ee=!1,ae=!0){let ne={};return f.forEach(fe=>{if(fe.showIfNotDefault==="true"||ee)if(fe.UI==="check"&&!J)fe.default===fe.selectedValue?ne[fe.name]=!0:ne[fe.name]=!1;else{let he=fe.default;if(ne[fe.name]=he,he==="*FIRST"&&fe.UI==="combo"&&fe.treeData[0]&&(ne[fe.name]=fe.treeData[0].data),ae&&he&&(he.startsWith("#LI")||he.startsWith("#LS")||he.startsWith("#LC")||he.startsWith("#SL")||he.startsWith("#CH"))&&fe.UI==="combo"){const be=Hf(fe.treeData,[]).find(Se=>Se.option.aliasData===he);be&&(ne[fe.name]=be.option.data)}fe.UI==="numberInterval"&&(ne[`${fe.name}2`]=he)}}),ne}function _(){let J={},ee=["0"];const ae=Object.values(x);if(ae.forEach((he,ye)=>{H(he)&&ee.push(ye)}),J={...e.run.args},P(ae).forEach(he=>{if(J[he.name]&&(J[he.name].startsWith("#LI")||J[he.name].startsWith("#LS")||J[he.name].startsWith("#LC")||J[he.name].startsWith("#SL")||J[he.name].startsWith("#CH"))&&he.UI==="combo"){const be=Hf(he.treeData,[]).find(Se=>Se.option.aliasData===J[he.name]);be&&(J[he.name]=be.option.data)}J[he.name]==="*FIRST"&&he.UI==="combo"&&he.treeData[0]&&(J[he.name]=he.treeData[0].data),(J[he.name]===void 0&&he.default!==void 0||J[he.name]==="undefined")&&(J[he.name]=he.default),J[he.name]!==he.default&&!ee.includes(he.sectionIndex)&&he.showIfNotDefault==="true"&&ee.push(he.sectionIndex),J[he.name]?.substring(0,2)==="C*"&&(J[`${he.name}_CODE`]=J[he.name].substring(2),J[he.name]=J[he.name].substring(0,2)),J[he.name]?.substring(0,2)==="T*"&&(J[`${he.name}_TEXTE`]=J[he.name].substring(2),J[he.name]=J[he.name].substring(0,2)),he.UI==="check"&&(J[he.name]=J[he.name]===he.selectedValue)}),xo(ee,A)||u(ee),J.ALIAS_PERIODE&&J.ALIAS_PERIODE!=="-1"&&J.ALIAS_PERIODE2&&J.ALIAS_PERIODE3)J.PERIODE=J.ALIAS_PERIODE2,J.TOPERIODE=J.ALIAS_PERIODE3;else if(J.ALIAS_PERIODE&&J.ALIAS_PERIODE!=="-1"){const he=Rf(e.desc.attributes.globals);if(he&&he!==""){const be=w.data.providers.ALIAS_PERIODE;if(be){const Se=be.children.find(ve=>ve.data===J.ALIAS_PERIODE);Se&&(J.PERIODE=Se.data2,J.TOPERIODE=Se.data3)}}}else!J.ALIAS_PERIODE&&J.TOPERIODE&&(J.JIS_TOPERIODE=ei(J.TOPERIODE));return J.favorite_label="",J.favorite_shared=!1,J.favorite_direct=!1,J.favorite_diffuser=!1,J}function P(J){let ee=[];return[...J].forEach((ne,fe)=>{ne.group!==void 0?P(ne.group).forEach(ye=>{let be={...ye,sectionIndex:fe};ee.push(be)}):ne.field!==void 0&&ne.field.forEach(he=>{let ye={...he,sectionIndex:fe};ee.push(ye)})}),ee}function k(){return x!==void 0&&!w.isLoading}function j(){return d?v.jsxs(v.Fragment,{children:[v.jsx(Xr,{title:"Enregistrer le favori",placement:"bottom",children:v.jsx(yt,{onClick:b,type:"link",children:v.jsx(age,{})})}),v.jsx(Xr,{title:"Tout verrouiller/ Tout déverrouiller",placement:"bottom",children:v.jsx(yt,{onClick:R,type:"link",children:p?v.jsx(ige,{style:{color:M}}):v.jsx(FY,{})})})]}):v.jsx(Xr,{title:"Exécuter la requête (e)",placement:"bottom",children:v.jsx(yt,{htmlType:"submit",type:"link",children:v.jsx(qDe,{})})})}function Y(){return v.jsx(v.Fragment,{children:v.jsxs(We,{layout:"horizontal",form:n,onValuesChange:D,onFinish:T,name:"Filters",children:[v.jsxs("div",{className:"filters-header",children:[v.jsx("div",{className:"filters-title",children:"Paramètres et sélections"}),v.jsxs("div",{className:"filters-actions",children:[j(),v.jsx(Xr,{title:"Réinitialiser les filtres",placement:"bottom",children:v.jsx(yt,{type:"link",onClick:F,children:v.jsx(ki,{})})})]})]}),v.jsxs("div",{ref:B,className:"filters-content",children:[d?v.jsx(ECt,{}):null,k()?X():v.jsx("div",{className:"loading-wrapper",children:v.jsx(go,{size:"small",className:"filters__loadingCube--filter"})})]})]})})}function X(){let J=U(x);return A?v.jsx($E,{defaultActiveKey:A,destroyInactivePanel:!1,className:"filters__collapse",children:J}):null}function K(J){if(J.visible&&!QL(n,J.visible,y,i)||J.label===null||J.label===void 0)return!0;let ee=PY({0:J},[]);return ee.every(ae=>ae.locked==="true")&&!d?!0:ee.every(ae=>ae.visible==="false"||!HT(n,ae.visible,ae.locked,y,i,d))}function U(J){return Object.values(J).map((ee,ae)=>{if(K(ee))return null;const ne=L(ee);return v.jsx(Dse,{header:ee.label===""?null:ee.label,showArrow:ee.label!=="",forceRender:!0,style:{backgroundColor:ee.label===""?"white":"transparent"},children:ne},ae)})}function H(J){return J.label===""||J.collapsible&&J.collapsible==="false"}function L(J,ee){let ae=J.group;if(ae!==void 0)return ae.map((ne,fe)=>{if(ne.visible&&!QL(n,ne.visible,y,i))return null;const he=ne.group;if(!he)return v.jsx(ICt,{group:ne,form:n,index:fe,view:e,filterItems:f,setFilterItems:h,formValues:o,initialFormValues:l},fe);if(K(ne))return null;const ye=V(he)?[fe]:[];return v.jsx($E,{className:"filters__collapse",defaultActiveKey:ye,children:v.jsx(Dse,{header:ne.label,forceRender:!0,children:L(ne)},fe)},fe+"collapse")})}function V(J){let ee=[];return J.forEach((ae,ne)=>{ae.field&&ae.field.forEach(fe=>{l?.field?.name!==fe?.default&&!ee.includes(ne)&&ee.push(ne)})}),ee.length}},SCt=le.memo(bCt),RCt=()=>v.jsx("div",{className:"filters-footer",children:v.jsx(Xr,{title:"Retour en haut de page",children:v.jsx(yt,{onClick:()=>{document.querySelector(".ant-drawer-body").scrollTop=0},type:"link",children:v.jsx(Whe,{})})})}),TCt=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"currentColor",d:"M14.453 22.656q-.19 0-.368-.06l-3.914-1.302a1.17 1.17 0 0 1-.796-1.112V14.36l-.004-.007-8.235-9.591a1.465 1.465 0 0 1 1.113-2.42h20.505a1.465 1.465 0 0 1 1.113 2.42l-8.238 9.593-.004.006v7.122a1.17 1.17 0 0 1-1.172 1.172"})}),QCt=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 25 25",...e,children:v.jsx("path",{fill:"#fff",stroke:"currentColor",d:"M14.455 22.156h-.002a.7.7 0 0 1-.21-.034L10.33 20.82a.67.67 0 0 1-.455-.636v-5.931l-.044-.098a.5.5 0 0 0-.085-.131l-8.23-9.587a.965.965 0 0 1 .732-1.593h20.506a.965.965 0 0 1 .957 1.098l.495.07-.495-.07a.97.97 0 0 1-.224.495L15.25 14.03a.6.6 0 0 0-.063.091l-.062.112v7.253a.67.67 0 0 1-.196.474l.354.354-.354-.354a.67.67 0 0 1-.474.196Z"})}),Fbe=({loading:e})=>{const t=ut(n=>n.cti.ui.filters.visible),r=wn();return v.jsx("div",{className:"cti-view-controls",children:v.jsx(Xr,{title:t?"Fermer paramètres et sélections (f)":"Ouvrir paramètres et sélections (f)",placement:"left",children:v.jsx(yt,{type:"link",children:t?v.jsx(TCt,{className:"filters-action-button",onClick:()=>r(kv(!t))}):v.jsx(QCt,{className:"filters-action-button",onClick:()=>r(kv(!t))})})})})};Fbe.propTypes={loading:W.bool};const{Paragraph:Fse,Text:DCt}=Hg,Nbe=({errors:e})=>{const[t,r]=E.useState([]),n=ut(o=>o.cti.ui.showOverlay),a=wn();E.useEffect(()=>{e.length&&(r([...e]),a(KE([])))},[e,a]);const i=()=>{a(CQ(!1))};return n===!1?null:v.jsx(Ug,{icon:v.jsx(x5e,{}),title:"Une erreur est survenue",subTitle:"Si le problème persiste veuillez contacter le support CTI.",style:{height:"100%",position:"relative"},extra:[v.jsx(yt,{type:"primary",onClick:i,children:"Fermer"},"close")],children:v.jsxs("div",{className:"desc",children:[v.jsx(Fse,{children:v.jsx(DCt,{strong:!0,style:{fontSize:16},children:"Nous avons détecté les erreurs suivantes:"})}),t.map(o=>v.jsxs(Fse,{children:[v.jsx(pQ,{className:"site-result-demo-error-icon"}),o.text]},o.key))]})})};Nbe.propTypes={errors:W.array};const FCt=({view:e,selectedSimiliTab:t})=>{const[r,n]=E.useState(!1),[a,i]=E.useState(!1),o=wn(),s=ut(P=>P.cti.menu),l=ut(P=>P.cti.viewlinks.row),c=ut(P=>P.cti.viewlinks.cell),A=ut(P=>P.cti.history.sort),u=ut(P=>P.cti.ui.primaryColor),d=ut(P=>P.cti.ui.tab);window.TAB=d;const f=ut(P=>P.cti.globalVariables);window.SELECT=f;const h=ut(P=>P.cti.settings.user.spreadsheetSeparator),g=ut(P=>P.cti.settings.user.spreadsheetEditor),p=ut(P=>P.cti.settings.data.session),m=e.desc.viewlinks,y=qf();let C="0";t?C=t.slice(-1):d&&(C=Number(d.slice(-1)));function w(P){return P?P.map(function(j,Y){if(j.viewitems){const X=Object.values(j.viewitems).filter(K=>K.granted!=="false");return X.length?{label:v.jsxs(yt,{type:"link",className:"view-link-button view-link",style:{color:u},children:[M(j.buttonType),v.jsxs("span",{className:"button-label",children:[j.label,v.jsx(VB,{})]})]}),children:B(Object.values(X)),className:"submenu__viewlinks",key:"parentLink"+j.label+String(Y)}:null}else return x(j,Y)}):null}function B(P){return P.map((j,Y)=>x(j,Y))}function x(P,k){let j=!1;(e.isLoading||P.rowContext===!0&&l===null&&(c===null||c.row===null&&c.column===null))&&(j=!0);const Y=X=>{const K=X.softCode?X.softCode.substring(5):null;if(X.swf==="*CTI_view1"||X.view.startsWith("*URL"))return UT(X.view,X.args,o,e,s,X.allArgs,l,c,K);{let U=X.name?s.moduleEntries[X.name]:null;U&&y.push(U,{fromSider:!0})}};return Mo({key:"simpleLink"+P.label+String(k),label:v.jsx(Xr,{title:P.label,placement:"bottom",children:v.jsxs(yt,{type:"link",onClick:()=>Y(P),disabled:j,className:"view-link-button",style:{color:u},children:[M(P.buttonType),v.jsx("span",{className:"button-label",children:P.label})]})}),className:"view-link"})}function M(P){switch(P){case"ANALYSE_CROISEE":return v.jsx(rge,{className:"links__viewlinks-icon"});case"VIEWLINKPOPUP_RH":return v.jsx(Xj,{className:"links__viewlinks-icon"});case"COMPARATIF":return v.jsx(Xhe,{className:"links__viewlinks-icon"});case"VIEWLINK_EVO_COMP_RH":return v.jsx(Xj,{className:"links__viewlinks-icon"});case"ANALYSE_VIEWLINK_RH":return v.jsx(ege,{className:"links__viewlinks-icon"});case"EVOLUTION":return v.jsx(nge,{className:"links__viewlinks-icon"});default:return v.jsx(Zj,{className:"links__viewlinks-icon"})}}function S({key:P}){switch(P){case"excel":try{Object.keys(e.run.data).length>1?n(!0):(o(uP(e,"TOUT",d,C,g,h)),tl.success("Export en cours"))}catch(k){throw Ki(8301,"",k),tl.error("Erreur dans l'export"),new Error("Erreur export excel")}break;case"pdf":try{if(Object.keys(e.run.data).length>1)i(!0);else{let j=Object.values(e.run.data)[d];Object.keys(j.similitabs).length>1?i(!0):o(pne(e,"TOUT",d,C,A))}}catch(k){throw Ki(8302,"",k),new Error("Erreur export pdf")}break}}const R=()=>{const P=e.desc.attributes.isFavorite==="true",k=!P||P&&e.desc.attributes.favoriteOwner.toLowerCase()===p.CONNECTEDUSER.toLowerCase(),j=[Mo({label:"Exporter au format PDF",icon:v.jsx(dV,{}),key:"pdf"}),Mo({label:"Exporter au format tableur",icon:v.jsx($he,{}),key:"excel"})];return v.jsxs(v.Fragment,{children:[v.jsx(Yg,{menu:{items:j,onClick:S},placement:"bottomLeft",trigger:["click"],children:v.jsx(Xr,{title:"Exporter",children:v.jsx(yt,{type:"link",className:"button-action",children:v.jsx(XB,{})})})}),v.jsx(Xr,{title:P?"Modifier le favoris":"Ajouter aux favoris",children:k&&v.jsx(yt,{type:"link",className:"button-action",onClick:()=>{o(kv(!0,!0))},children:P?v.jsx(w_e,{twoToneColor:"grey"}):v.jsx(age,{})})}),v.jsx(Mi,{"data-html":"true",title:P?"Favoris : "+e.desc.attributes.name+" Vue d'origine : "+e.desc.attributes.fromViewFile:e.desc.attributes.name,children:v.jsx(yt,{type:"link",className:"button-action",children:v.jsx(tge,{})})})]})},b=Object.values(m).filter(P=>{if(P.granted==="false")return!1;let k=!0;if(P.visible)try{k=ca(P.visible,e,l)}catch(j){console.log(j,P.visible)}return k}),T=()=>{n(!r)},D=()=>{i(!a)},F=(P,k,j,Y)=>{o(uP(P,k,j,Y,g,h)),n(!1)},N=(P,k,j,Y,X)=>{o(pne(P,k,j,Y,X)),i(!1)},_=()=>e.desc.viewRefs.map((P,k)=>{const j=P.url.startsWith("http")?P.url:`${window.location.origin}${Ii()}${P.url}`;return v.jsx(Xr,{title:P.label,children:v.jsx(yt,{href:j,target:"_blank",className:"viewref-button",icon:v.jsx(dV,{}),children:P.shortLabel})},k)});return v.jsxs("div",{className:"view-links-bar",children:[v.jsx(gi,{title:"EXPORT CSV",open:r,onCancel:T,footer:[v.jsx(yt,{onClick:()=>{o(uP(e,"PAGE",d,C,g,h)),tl.success("Export en cours"),n(!1)},children:"Onglet en cours"},"page"),v.jsx(yt,{type:"primary",onClick:()=>{F(e,"TOUT",d,C),tl.success("Export en cours")},children:"Tout"},"tout")],children:"Souhaitez-vous tout exporter, ou seulement l'onglet en cours ?"}),v.jsx(gi,{title:"Export PDF",open:a,onCancel:D,footer:[v.jsx(yt,{onClick:()=>{N(e,"PAGE",d,C,A),tl.success("Export en cours")},children:"Onglet en cours"},"page"),v.jsx(yt,{type:"primary",onClick:()=>{N(e,"TOUT",d,C),tl.success("Export en cours")},children:"Tout"},"tout")],children:"Souhaitez-vous tout exporter, ou seulement l'onglet en cours ?"}),v.jsx("div",{className:"view-actions",children:R()}),v.jsxs("div",{className:"align-right",children:[v.jsx("div",{className:"view-refs",children:_()}),v.jsx(xd,{selectedKeys:[],mode:"horizontal",className:"links__viewlinks-container",items:w(b)})]})]})},NCt=le.memo(FCt);var nc={},bO={},SO,Nse;function _be(){if(Nse)return SO;Nse=1;function e(t){for(var r=5381,n=t.length;n;)r=r*33^t.charCodeAt(--n);return r>>>0}return SO=e,SO}var RO,_se;function _Ct(){if(_se)return RO;_se=1,RO=e;function e(A){t.length||r(),t[t.length]=A}var t=[],r,n=0,a=1024;function i(){for(;n<t.length;){var A=n;if(n=n+1,t[A].call(),n>a){for(var u=0,d=t.length-n;u<d;u++)t[u]=t[u+n];t.length-=n,n=0}}t.length=0,n=0}var o=typeof Ho<"u"?Ho:self,s=o.MutationObserver||o.WebKitMutationObserver;typeof s=="function"?r=l(i):r=c(i),e.requestFlush=r;function l(A){var u=1,d=new s(A),f=document.createTextNode("");return d.observe(f,{characterData:!0}),function(){u=-u,f.data=u}}function c(A){return function(){var d=setTimeout(h,0),f=setInterval(h,50);function h(){clearTimeout(d),clearInterval(f),A()}}}return e.makeRequestCallFromTimer=c,RO}var TO,kse;function kbe(){if(kse)return TO;kse=1;var e=_Ct(),t=[],r=[],n=e.makeRequestCallFromTimer(a);function a(){if(r.length)throw r.shift()}TO=i;function i(s){var l;t.length?l=t.pop():l=new o,l.task=s,e(l)}function o(){this.task=null}return o.prototype.call=function(){try{this.task.call()}catch(s){i.onerror?i.onerror(s):(r.push(s),n())}finally{this.task=null,t[t.length]=this}},TO}var Pse;function kCt(){if(Pse)return bO;Pse=1;function e(pt){return pt&&typeof pt=="object"&&"default"in pt?pt.default:pt}var t=e(_be()),r=e(kbe());function n(pt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(Ze){return typeof Ze}:n=function(Ze){return Ze&&typeof Symbol=="function"&&Ze.constructor===Symbol&&Ze!==Symbol.prototype?"symbol":typeof Ze},n(pt)}function a(pt,Ze,bt){return Ze in pt?Object.defineProperty(pt,Ze,{value:bt,enumerable:!0,configurable:!0,writable:!0}):pt[Ze]=bt,pt}function i(pt){for(var Ze=1;Ze<arguments.length;Ze++){var bt=arguments[Ze]!=null?arguments[Ze]:{},kt=Object.keys(bt);typeof Object.getOwnPropertySymbols=="function"&&(kt=kt.concat(Object.getOwnPropertySymbols(bt).filter(function(Wt){return Object.getOwnPropertyDescriptor(bt,Wt).enumerable}))),kt.forEach(function(Wt){a(pt,Wt,bt[Wt])})}return pt}function o(pt){return s(pt)||l(pt)||c()}function s(pt){if(Array.isArray(pt)){for(var Ze=0,bt=new Array(pt.length);Ze<pt.length;Ze++)bt[Ze]=pt[Ze];return bt}}function l(pt){if(Symbol.iterator in Object(pt)||Object.prototype.toString.call(pt)==="[object Arguments]")return Array.from(pt)}function c(){throw new TypeError("Invalid attempt to spread non-iterable instance")}var A=/([A-Z])/g,u=function(Ze){return"-".concat(Ze.toLowerCase())},d=function(Ze){var bt=Ze.replace(A,u);return bt[0]==="m"&&bt[1]==="s"&&bt[2]==="-"?"-".concat(bt):bt},f={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};function h(pt,Ze){return pt+Ze.charAt(0).toUpperCase()+Ze.substring(1)}var g=["Webkit","ms","Moz","O"];Object.keys(f).forEach(function(pt){g.forEach(function(Ze){f[h(Ze,pt)]=f[pt]})});var p=function(Ze,bt){return typeof bt=="number"?f[Ze]?""+bt:bt+"px":""+bt},m=function(Ze,bt){return w(p(Ze,bt))},y=function(Ze,bt){return t(Ze).toString(36)},C=function(Ze){return y(JSON.stringify(Ze))},w=function(Ze){return Ze[Ze.length-10]==="!"&&Ze.slice(-11)===" !important"?Ze:"".concat(Ze," !important")},B=typeof Map<"u",x=(function(){function pt(){this.elements={},this.keyOrder=[]}var Ze=pt.prototype;return Ze.forEach=function(kt){for(var Wt=0;Wt<this.keyOrder.length;Wt++)kt(this.elements[this.keyOrder[Wt]],this.keyOrder[Wt])},Ze.set=function(kt,Wt,St){if(!this.elements.hasOwnProperty(kt))this.keyOrder.push(kt);else if(St){var pe=this.keyOrder.indexOf(kt);this.keyOrder.splice(pe,1),this.keyOrder.push(kt)}if(Wt==null){this.elements[kt]=Wt;return}if(B&&Wt instanceof Map||Wt instanceof pt){var ke=this.elements.hasOwnProperty(kt)?this.elements[kt]:new pt;Wt.forEach(function(et,Ct){ke.set(Ct,et,St)}),this.elements[kt]=ke;return}if(!Array.isArray(Wt)&&n(Wt)==="object"){for(var Me=this.elements.hasOwnProperty(kt)?this.elements[kt]:new pt,ze=Object.keys(Wt),Ye=0;Ye<ze.length;Ye+=1)Me.set(ze[Ye],Wt[ze[Ye]],St);this.elements[kt]=Me;return}this.elements[kt]=Wt},Ze.get=function(kt){return this.elements[kt]},Ze.has=function(kt){return this.elements.hasOwnProperty(kt)},Ze.addStyleType=function(kt){var Wt=this;if(B&&kt instanceof Map||kt instanceof pt)kt.forEach(function(ke,Me){Wt.set(Me,ke,!0)});else for(var St=Object.keys(kt),pe=0;pe<St.length;pe++)this.set(St[pe],kt[St[pe]],!0)},pt})();function M(pt){return pt&&pt.__esModule&&Object.prototype.hasOwnProperty.call(pt,"default")?pt.default:pt}function S(pt,Ze){return Ze={exports:{}},pt(Ze,Ze.exports),Ze.exports}function R(pt){return pt&&pt.default||pt}var b=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=bt;function bt(kt){return kt.charAt(0).toUpperCase()+kt.slice(1)}});M(b);var T=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=Wt;var bt=kt(b);function kt(St){return St&&St.__esModule?St:{default:St}}function Wt(St,pe,ke){if(St.hasOwnProperty(pe)){for(var Me={},ze=St[pe],Ye=(0,bt.default)(pe),et=Object.keys(ke),Ct=0;Ct<et.length;Ct++){var Ot=et[Ct];if(Ot===pe)for(var Ut=0;Ut<ze.length;Ut++)Me[ze[Ut]+Ye]=ke[pe];Me[Ot]=ke[Ot]}return Me}return ke}});M(T);var D=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=bt;function bt(kt,Wt,St,pe,ke){for(var Me=0,ze=kt.length;Me<ze;++Me){var Ye=kt[Me](Wt,St,pe,ke);if(Ye)return Ye}}});M(D);var F=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=kt;function bt(Wt,St){Wt.indexOf(St)===-1&&Wt.push(St)}function kt(Wt,St){if(Array.isArray(St))for(var pe=0,ke=St.length;pe<ke;++pe)bt(Wt,St[pe]);else bt(Wt,St)}});M(F);var N=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=bt;function bt(kt){return kt instanceof Object&&!Array.isArray(kt)}});M(N);var _=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=ke;var bt=pe(T),kt=pe(D),Wt=pe(F),St=pe(N);function pe(Me){return Me&&Me.__esModule?Me:{default:Me}}function ke(Me){var ze=Me.prefixMap,Ye=Me.plugins;return function et(Ct){for(var Ot in Ct){var Ut=Ct[Ot];if((0,St.default)(Ut))Ct[Ot]=et(Ut);else if(Array.isArray(Ut)){for(var Jt=[],ar=0,Nr=Ut.length;ar<Nr;++ar){var rn=(0,kt.default)(Ye,Ot,Ut[ar],Ct,ze);(0,Wt.default)(Jt,rn||Ut[ar])}Jt.length>0&&(Ct[Ot]=Jt)}else{var dn=(0,kt.default)(Ye,Ot,Ut,Ct,ze);dn&&(Ct[Ot]=dn),Ct=(0,bt.default)(ze,Ot,Ct)}}return Ct}}}),P=M(_),k=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=bt;function bt(kt,Wt){if(typeof Wt=="string"&&Wt==="text")return["-webkit-text","text"]}}),j=M(k),Y=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=kt;var bt=/-webkit-|-moz-|-ms-/;function kt(Wt){return typeof Wt=="string"&&bt.test(Wt)}pt.exports=Ze.default});M(Y);var X=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=St;var bt=kt(Y);function kt(pe){return pe&&pe.__esModule?pe:{default:pe}}var Wt=["-webkit-","-moz-",""];function St(pe,ke){if(typeof ke=="string"&&!(0,bt.default)(ke)&&ke.indexOf("calc(")>-1)return Wt.map(function(Me){return ke.replace(/calc\(/g,Me+"calc(")})}}),K=M(X),U=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=St;var bt=kt(Y);function kt(pe){return pe&&pe.__esModule?pe:{default:pe}}var Wt=["-webkit-",""];function St(pe,ke){if(typeof ke=="string"&&!(0,bt.default)(ke)&&ke.indexOf("cross-fade(")>-1)return Wt.map(function(Me){return ke.replace(/cross-fade\(/g,Me+"cross-fade(")})}}),H=M(U),L=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=Wt;var bt=["-webkit-","-moz-",""],kt={"zoom-in":!0,"zoom-out":!0,grab:!0,grabbing:!0};function Wt(St,pe){if(St==="cursor"&&kt.hasOwnProperty(pe))return bt.map(function(ke){return ke+pe})}}),V=M(L),J=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=St;var bt=kt(Y);function kt(pe){return pe&&pe.__esModule?pe:{default:pe}}var Wt=["-webkit-",""];function St(pe,ke){if(typeof ke=="string"&&!(0,bt.default)(ke)&&ke.indexOf("filter(")>-1)return Wt.map(function(Me){return ke.replace(/filter\(/g,Me+"filter(")})}}),ee=M(J),ae=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=kt;var bt={flex:["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex","flex"],"inline-flex":["-webkit-inline-box","-moz-inline-box","-ms-inline-flexbox","-webkit-inline-flex","inline-flex"]};function kt(Wt,St){if(Wt==="display"&&bt.hasOwnProperty(St))return bt[St]}}),ne=M(ae),fe=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=pe;var bt={"space-around":"distribute","space-between":"justify","flex-start":"start","flex-end":"end"},kt={alignContent:"msFlexLinePack",alignSelf:"msFlexItemAlign",alignItems:"msFlexAlign",justifyContent:"msFlexPack",order:"msFlexOrder",flexGrow:"msFlexPositive",flexShrink:"msFlexNegative",flexBasis:"msFlexPreferredSize"},Wt={auto:"1 1 auto",inherit:"inherit",initial:"0 1 auto",none:"0 0 auto",unset:"unset"},St=/^\d+(\.\d+)?$/;function pe(ke,Me,ze){if(Object.prototype.hasOwnProperty.call(kt,ke)&&(ze[kt[ke]]=bt[Me]||Me),ke==="flex"){if(Object.prototype.hasOwnProperty.call(Wt,Me)){ze.msFlex=Wt[Me];return}if(St.test(Me)){ze.msFlex=Me+" 1 0%";return}var Ye=Me.split(/\s/);switch(Ye.length){case 1:ze.msFlex="1 1 "+Me;return;case 2:St.test(Ye[1])?ze.msFlex=Ye[0]+" "+Ye[1]+" 0%":ze.msFlex=Ye[0]+" 1 "+Ye[1];return;default:ze.msFlex=Me}}}}),he=M(fe),ye=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=Wt;var bt={"space-around":"justify","space-between":"justify","flex-start":"start","flex-end":"end","wrap-reverse":"multiple",wrap:"multiple"},kt={alignItems:"WebkitBoxAlign",justifyContent:"WebkitBoxPack",flexWrap:"WebkitBoxLines",flexGrow:"WebkitBoxFlex"};function Wt(St,pe,ke){St==="flexDirection"&&typeof pe=="string"&&(pe.indexOf("column")>-1?ke.WebkitBoxOrient="vertical":ke.WebkitBoxOrient="horizontal",pe.indexOf("reverse")>-1?ke.WebkitBoxDirection="reverse":ke.WebkitBoxDirection="normal"),kt.hasOwnProperty(St)&&(ke[kt[St]]=bt[pe]||pe)}}),be=M(ye),Se=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=pe;var bt=kt(Y);function kt(ke){return ke&&ke.__esModule?ke:{default:ke}}var Wt=["-webkit-","-moz-",""],St=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi;function pe(ke,Me){if(typeof Me=="string"&&!(0,bt.default)(Me)&&St.test(Me))return Wt.map(function(ze){return Me.replace(St,function(Ye){return ze+Ye})})}}),ve=M(Se),de=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0});var bt=(function(){function Me(ze,Ye){var et=[],Ct=!0,Ot=!1,Ut=void 0;try{for(var Jt=ze[Symbol.iterator](),ar;!(Ct=(ar=Jt.next()).done)&&(et.push(ar.value),!(Ye&&et.length===Ye));Ct=!0);}catch(Nr){Ot=!0,Ut=Nr}finally{try{!Ct&&Jt.return&&Jt.return()}finally{if(Ot)throw Ut}}return et}return function(ze,Ye){if(Array.isArray(ze))return ze;if(Symbol.iterator in Object(ze))return Me(ze,Ye);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})();Ze.default=ke;function kt(Me){return typeof Me=="number"&&!isNaN(Me)}var Wt=["center","end","start","stretch"],St={"inline-grid":["-ms-inline-grid","inline-grid"],grid:["-ms-grid","grid"]},pe={alignSelf:function(ze,Ye){Wt.indexOf(ze)>-1&&(Ye.msGridRowAlign=ze)},gridColumn:function(ze,Ye){if(kt(ze))Ye.msGridColumn=ze;else{var et=ze.split("/").map(function(Jt){return+Jt}),Ct=bt(et,2),Ot=Ct[0],Ut=Ct[1];pe.gridColumnStart(Ot,Ye),pe.gridColumnEnd(Ut,Ye)}},gridColumnEnd:function(ze,Ye){var et=Ye.msGridColumn;kt(ze)&&kt(et)&&(Ye.msGridColumnSpan=ze-et)},gridColumnStart:function(ze,Ye){kt(ze)&&(Ye.msGridColumn=ze)},gridRow:function(ze,Ye){if(kt(ze))Ye.msGridRow=ze;else{var et=ze.split("/").map(function(Jt){return+Jt}),Ct=bt(et,2),Ot=Ct[0],Ut=Ct[1];pe.gridRowStart(Ot,Ye),pe.gridRowEnd(Ut,Ye)}},gridRowEnd:function(ze,Ye){var et=Ye.msGridRow;kt(ze)&&kt(et)&&(Ye.msGridRowSpan=ze-et)},gridRowStart:function(ze,Ye){kt(ze)&&(Ye.msGridRow=ze)},gridTemplateColumns:function(ze,Ye){Ye.msGridColumns=ze},gridTemplateRows:function(ze,Ye){Ye.msGridRows=ze},justifySelf:function(ze,Ye){Wt.indexOf(ze)>-1&&(Ye.msGridColumnAlign=ze)}};function ke(Me,ze,Ye){if(Me==="display"&&ze in St)return St[ze];if(Me in pe){var et=pe[Me];et(ze,Ye)}}}),Ue=M(de),at=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=St;var bt=kt(Y);function kt(pe){return pe&&pe.__esModule?pe:{default:pe}}var Wt=["-webkit-",""];function St(pe,ke){if(typeof ke=="string"&&!(0,bt.default)(ke)&&ke.indexOf("image-set(")>-1)return Wt.map(function(Me){return ke.replace(/image-set\(/g,Me+"image-set(")})}}),Ve=M(at),Ie=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=kt;var bt={marginBlockStart:["WebkitMarginBefore"],marginBlockEnd:["WebkitMarginAfter"],marginInlineStart:["WebkitMarginStart","MozMarginStart"],marginInlineEnd:["WebkitMarginEnd","MozMarginEnd"],paddingBlockStart:["WebkitPaddingBefore"],paddingBlockEnd:["WebkitPaddingAfter"],paddingInlineStart:["WebkitPaddingStart","MozPaddingStart"],paddingInlineEnd:["WebkitPaddingEnd","MozPaddingEnd"],borderBlockStart:["WebkitBorderBefore"],borderBlockStartColor:["WebkitBorderBeforeColor"],borderBlockStartStyle:["WebkitBorderBeforeStyle"],borderBlockStartWidth:["WebkitBorderBeforeWidth"],borderBlockEnd:["WebkitBorderAfter"],borderBlockEndColor:["WebkitBorderAfterColor"],borderBlockEndStyle:["WebkitBorderAfterStyle"],borderBlockEndWidth:["WebkitBorderAfterWidth"],borderInlineStart:["WebkitBorderStart","MozBorderStart"],borderInlineStartColor:["WebkitBorderStartColor","MozBorderStartColor"],borderInlineStartStyle:["WebkitBorderStartStyle","MozBorderStartStyle"],borderInlineStartWidth:["WebkitBorderStartWidth","MozBorderStartWidth"],borderInlineEnd:["WebkitBorderEnd","MozBorderEnd"],borderInlineEndColor:["WebkitBorderEndColor","MozBorderEndColor"],borderInlineEndStyle:["WebkitBorderEndStyle","MozBorderEndStyle"],borderInlineEndWidth:["WebkitBorderEndWidth","MozBorderEndWidth"]};function kt(Wt,St,pe){if(Object.prototype.hasOwnProperty.call(bt,Wt))for(var ke=bt[Wt],Me=0,ze=ke.length;Me<ze;++Me)pe[ke[Me]]=St}}),we=M(Ie),Re=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=bt;function bt(kt,Wt){if(kt==="position"&&Wt==="sticky")return["-webkit-sticky","sticky"]}}),Te=M(Re),Ke=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=St;var bt=["-webkit-","-moz-",""],kt={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},Wt={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0};function St(pe,ke){if(kt.hasOwnProperty(pe)&&Wt.hasOwnProperty(ke))return bt.map(function(Me){return Me+ke})}}),mt=M(Ke),tt=/[A-Z]/g,rt=/^ms-/,lt={};function At(pt){return"-"+pt.toLowerCase()}function $e(pt){if(lt.hasOwnProperty(pt))return lt[pt];var Ze=pt.replace(tt,At);return lt[pt]=rt.test(Ze)?"-"+Ze:Ze}var ce=Object.freeze({default:$e}),qe=R(ce),ct=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=Wt;var bt=kt(qe);function kt(St){return St&&St.__esModule?St:{default:St}}function Wt(St){return(0,bt.default)(St)}pt.exports=Ze.default});M(ct);var Tt=S(function(pt,Ze){Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.default=ze;var bt=St(ct),kt=St(Y),Wt=St(b);function St(Ye){return Ye&&Ye.__esModule?Ye:{default:Ye}}var pe={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},ke={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"};function Me(Ye,et){if((0,kt.default)(Ye))return Ye;for(var Ct=Ye.split(/,(?![^()]*(?:\([^()]*\))?\))/g),Ot=0,Ut=Ct.length;Ot<Ut;++Ot){var Jt=Ct[Ot],ar=[Jt];for(var Nr in et){var rn=(0,bt.default)(Nr);if(Jt.indexOf(rn)>-1&&rn!=="order")for(var dn=et[Nr],kr=0,Wr=dn.length;kr<Wr;++kr)ar.unshift(Jt.replace(rn,ke[dn[kr]]+rn))}Ct[Ot]=ar.join(",")}return Ct.join(",")}function ze(Ye,et,Ct,Ot){if(typeof et=="string"&&pe.hasOwnProperty(Ye)){var Ut=Me(et,Ot),Jt=Ut.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Nr){return!/-moz-|-ms-/.test(Nr)}).join(",");if(Ye.indexOf("Webkit")>-1)return Jt;var ar=Ut.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter(function(Nr){return!/-webkit-|-ms-/.test(Nr)}).join(",");return Ye.indexOf("Moz")>-1?ar:(Ct["Webkit"+(0,Wt.default)(Ye)]=Jt,Ct["Moz"+(0,Wt.default)(Ye)]=ar,Ut)}}}),He=M(Tt),Ge=["Webkit"],Ee=["Moz"],Et=["ms"],Yt=["Webkit","Moz"],$=["Webkit","ms"],Fe=["Webkit","Moz","ms"],je={plugins:[j,K,H,V,ee,ne,he,be,ve,Ue,Ve,we,Te,mt,He],prefixMap:{transform:$,transformOrigin:$,transformOriginX:$,transformOriginY:$,backfaceVisibility:Ge,perspective:Ge,perspectiveOrigin:Ge,transformStyle:Ge,transformOriginZ:Ge,animation:Ge,animationDelay:Ge,animationDirection:Ge,animationFillMode:Ge,animationDuration:Ge,animationIterationCount:Ge,animationName:Ge,animationPlayState:Ge,animationTimingFunction:Ge,appearance:Yt,userSelect:Fe,fontKerning:Ge,textEmphasisPosition:Ge,textEmphasis:Ge,textEmphasisStyle:Ge,textEmphasisColor:Ge,boxDecorationBreak:Ge,clipPath:Ge,maskImage:Ge,maskMode:Ge,maskRepeat:Ge,maskPosition:Ge,maskClip:Ge,maskOrigin:Ge,maskSize:Ge,maskComposite:Ge,mask:Ge,maskBorderSource:Ge,maskBorderMode:Ge,maskBorderSlice:Ge,maskBorderWidth:Ge,maskBorderOutset:Ge,maskBorderRepeat:Ge,maskBorder:Ge,maskType:Ge,textDecorationStyle:Yt,textDecorationSkip:Yt,textDecorationLine:Yt,textDecorationColor:Yt,filter:Ge,fontFeatureSettings:Yt,breakAfter:Fe,breakBefore:Fe,breakInside:Fe,columnCount:Yt,columnFill:Yt,columnGap:Yt,columnRule:Yt,columnRuleColor:Yt,columnRuleStyle:Yt,columnRuleWidth:Yt,columns:Yt,columnSpan:Yt,columnWidth:Yt,writingMode:$,flex:$,flexBasis:Ge,flexDirection:$,flexGrow:Ge,flexFlow:$,flexShrink:Ge,flexWrap:$,alignContent:Ge,alignItems:Ge,alignSelf:Ge,justifyContent:Ge,order:Ge,transitionDelay:Ge,transitionDuration:Ge,transitionProperty:Ge,transitionTimingFunction:Ge,backdropFilter:Ge,scrollSnapType:$,scrollSnapPointsX:$,scrollSnapPointsY:$,scrollSnapDestination:$,scrollSnapCoordinate:$,shapeImageThreshold:Ge,shapeImageMargin:Ge,shapeImageOutside:Ge,hyphens:Fe,flowInto:$,flowFrom:$,regionFragment:$,textOrientation:Ge,boxSizing:Ee,textAlignLast:Ee,tabSize:Ee,wrapFlow:Et,wrapThrough:Et,wrapMargin:Et,touchAction:Et,textSizeAdjust:$,borderImage:Ge,borderImageOutset:Ge,borderImageRepeat:Ge,borderImageSlice:Ge,borderImageSource:Ge,borderImageWidth:Ge}},ue=P(je),ie=[function(Ze,bt,kt){return Ze[0]!==":"?null:kt(bt+Ze)},function(Ze,bt,kt){if(Ze[0]!=="@")return null;var Wt=kt(bt);return["".concat(Ze,"{").concat(Wt.join(""),"}")]}],Be=function pt(Ze,bt,kt,Wt,St){for(var pe=new x,ke=0;ke<bt.length;ke++)pe.addStyleType(bt[ke]);var Me=new x,ze=[];pe.forEach(function(et,Ct){var Ot=kt.some(function(Ut){var Jt=Ut(Ct,Ze,function(ar){return pt(ar,[et],kt,Wt,St)});if(Jt!=null)return Array.isArray(Jt)?ze.push.apply(ze,o(Jt)):(console.warn("WARNING: Selector handlers should return an array of rules.Returning a string containing multiple rules is deprecated.",Ut),ze.push("@media all {".concat(Jt,"}"))),!0});Ot||Me.set(Ct,et,!0)});var Ye=wt(Ze,Me,Wt,St,kt);return Ye&&ze.unshift(Ye),ze},Xe=function(Ze,bt,kt){if(bt)for(var Wt=Object.keys(bt),St=0;St<Wt.length;St++){var pe=Wt[St];Ze.has(pe)&&Ze.set(pe,bt[pe](Ze.get(pe),kt),!1)}},Oe=function(Ze,bt,kt){return"".concat(d(Ze),":").concat(kt(Ze,bt),";")},ft=function(Ze,bt){return Ze[bt]=!0,Ze},wt=function(Ze,bt,kt,Wt,St){Xe(bt,kt,St);var pe=Object.keys(bt.elements).reduce(ft,Object.create(null)),ke=ue(bt.elements),Me=Object.keys(ke);if(Me.length!==bt.keyOrder.length){for(var ze=0;ze<Me.length;ze++)if(!pe[Me[ze]]){var Ye=void 0;if(Me[ze][0]==="W"?Ye=Me[ze][6].toLowerCase()+Me[ze].slice(7):Me[ze][1]==="o"?Ye=Me[ze][3].toLowerCase()+Me[ze].slice(4):Ye=Me[ze][2].toLowerCase()+Me[ze].slice(3),Ye&&pe[Ye]){var et=bt.keyOrder.indexOf(Ye);bt.keyOrder.splice(et,0,Me[ze])}else bt.keyOrder.unshift(Me[ze])}}for(var Ct=Wt===!1?p:m,Ot=[],Ut=0;Ut<bt.keyOrder.length;Ut++){var Jt=bt.keyOrder[Ut],ar=ke[Jt];if(Array.isArray(ar))for(var Nr=0;Nr<ar.length;Nr++)Ot.push(Oe(Jt,ar[Nr],Ct));else Ot.push(Oe(Jt,ar,Ct))}return Ot.length?"".concat(Ze,"{").concat(Ot.join(""),"}"):""},ot=null,it=function(Ze){if(ot==null&&(ot=document.querySelector("style[data-aphrodite]"),ot==null)){var bt=document.head||document.getElementsByTagName("head")[0];ot=document.createElement("style"),ot.type="text/css",ot.setAttribute("data-aphrodite",""),bt.appendChild(ot)}var kt=ot.styleSheet||ot.sheet;if(kt.insertRule){var Wt=kt.cssRules.length;Ze.forEach(function(St){try{kt.insertRule(St,Wt),Wt+=1}catch{}})}else ot.innerText=(ot.innerText||"")+Ze.join("")},vt={fontFamily:function pt(Ze){if(Array.isArray(Ze)){var bt={};return Ze.forEach(function(kt){bt[pt(kt)]=!0}),Object.keys(bt).join(",")}else return n(Ze)==="object"?(Vr(Ze.src,"@font-face",[Ze],!1),'"'.concat(Ze.fontFamily,'"')):Ze},animationName:function pt(Ze,bt){if(Array.isArray(Ze))return Ze.map(function(St){return pt(St,bt)}).join(",");if(n(Ze)==="object"){var kt="keyframe_".concat(C(Ze)),Wt="@keyframes ".concat(kt,"{");return Ze instanceof x?Ze.forEach(function(St,pe){Wt+=Be(pe,[St],bt,vt,!1).join("")}):Object.keys(Ze).forEach(function(St){Wt+=Be(St,[Ze[St]],bt,vt,!1).join("")}),Wt+="}",Kr(kt,[Wt]),kt}else return Ze}},qt={},Xt=[],Tr=!1,Kr=function(Ze,bt){var kt;if(!qt[Ze]){if(!Tr){if(typeof document>"u")throw new Error("Cannot automatically buffer without a document");Tr=!0,r(br)}(kt=Xt).push.apply(kt,o(bt)),qt[Ze]=!0}},Vr=function(Ze,bt,kt,Wt){var St=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[];if(!qt[Ze]){var pe=Be(bt,kt,St,vt,Wt);Kr(Ze,pe)}},Pr=function(){Xt=[],qt={},Tr=!1,ot=null},mr=function(Ze){delete qt[Ze]},xr=function(){if(Tr)throw new Error("Cannot buffer while already buffering");Tr=!0},Ir=function(){Tr=!1;var Ze=Xt;return Xt=[],Ze},Fr=function(){return Ir().join("")},br=function(){var Ze=Ir();Ze.length>0&&it(Ze)},Sr=function(){return Object.keys(qt)},fr=function(Ze){Ze.forEach(function(bt){qt[bt]=!0})},Cr=function(Ze){return"_definition"in Ze&&"_name"in Ze&&"_len"in Ze},hr=function pt(Ze,bt,kt,Wt){for(var St=0;St<Ze.length;St+=1)if(Ze[St])if(Array.isArray(Ze[St]))Wt+=pt(Ze[St],bt,kt,Wt);else if(Cr(Ze[St]))bt.push(Ze[St]._name),kt.push(Ze[St]._definition),Wt+=Ze[St]._len;else throw new Error("Invalid Style Definition: Styles should be defined using the StyleSheet.create method.");return Wt},Ht=function(Ze,bt,kt){var Wt=[],St=[],pe=hr(bt,Wt,St,0);if(Wt.length===0)return"";var ke;return ke=Wt.length===1?"_".concat(Wt[0]):"_".concat(y(Wt.join())).concat((pe%36).toString(36)),Vr(ke,".".concat(ke),St,Ze,kt),ke},Gt=function(Ze,bt){return"".concat(bt,"_").concat(y(Ze))},er=function(){return y},Qr=er(),Hr={create:function(Ze){for(var bt={},kt=Object.keys(Ze),Wt=0;Wt<kt.length;Wt+=1){var St=kt[Wt],pe=Ze[St],ke=JSON.stringify(pe);bt[St]={_len:ke.length,_name:Qr(ke,St),_definition:pe}}return bt},rehydrate:function(){var Ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];fr(Ze)}},vn=typeof window<"u"?null:{renderStatic:function(Ze){Pr(),xr();var bt=Ze(),kt=Fr();return{html:bt,css:{content:kt,renderedClassNames:Sr()}}}},pn=null;function Qn(pt){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ie;return{StyleSheet:i({},Hr,{extend:function(kt){var Wt=kt.map(function(St){return St.selectorHandler}).filter(function(St){return St});return Qn(pt,Ze.concat(Wt))}}),StyleSheetServer:vn,StyleSheetTestUtils:pn,minify:function(kt){Qr=kt?y:Gt},css:function(){for(var kt=arguments.length,Wt=new Array(kt),St=0;St<kt;St++)Wt[St]=arguments[St];return Ht(pt,Wt,Ze)},flushToStyleTag:br,injectAndGetClassName:Ht,defaultSelectorHandlers:ie,reset:Pr,resetInjectedStyle:mr}}return bO.makeExports=Qn,bO}var Ose;function PCt(){if(Ose)return nc;Ose=1,Object.defineProperty(nc,"__esModule",{value:!0});var e=kCt();_be(),kbe();var t=!1,r=e.makeExports(t),n=r.StyleSheet,a=r.StyleSheetServer,i=r.StyleSheetTestUtils,o=r.css,s=r.minify,l=r.flushToStyleTag,c=r.injectAndGetClassName,A=r.defaultSelectorHandlers,u=r.reset,d=r.resetInjectedStyle;return nc.StyleSheet=n,nc.StyleSheetServer=a,nc.StyleSheetTestUtils=i,nc.css=o,nc.minify=s,nc.flushToStyleTag=l,nc.injectAndGetClassName=c,nc.defaultSelectorHandlers=A,nc.reset=u,nc.resetInjectedStyle=d,nc}var QO,jse;function OCt(){return jse||(jse=1,QO=PCt()),QO}var zse=OCt();const Pbe=({className:e,symbol:t,text:r,description:n,complement:a})=>v.jsx(Xr,{title:n+" : "+r+a,children:v.jsxs("div",{className:e??"",children:[t,r??""]})});Pbe.propTypes={className:W.string,symbol:W.object,text:W.string,description:W.string,complement:W.string};var _h={},sb={},DL=function(e,t){return DL=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},DL(e,t)};function en(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");DL(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nr=function(){return nr=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},nr.apply(this,arguments)};function Hy(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}function Obe(e,t,r,n){var a=arguments.length,i=a<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function jbe(e,t){return function(r,n){t(r,n,e)}}function zbe(e,t,r,n,a,i){function o(m){if(m!==void 0&&typeof m!="function")throw new TypeError("Function expected");return m}for(var s=n.kind,l=s==="getter"?"get":s==="setter"?"set":"value",c=!t&&e?n.static?e:e.prototype:null,A=t||(c?Object.getOwnPropertyDescriptor(c,n.name):{}),u,d=!1,f=r.length-1;f>=0;f--){var h={};for(var g in n)h[g]=g==="access"?{}:n[g];for(var g in n.access)h.access[g]=n.access[g];h.addInitializer=function(m){if(d)throw new TypeError("Cannot add initializers after decoration has completed");i.push(o(m||null))};var p=(0,r[f])(s==="accessor"?{get:A.get,set:A.set}:A[l],h);if(s==="accessor"){if(p===void 0)continue;if(p===null||typeof p!="object")throw new TypeError("Object expected");(u=o(p.get))&&(A.get=u),(u=o(p.set))&&(A.set=u),(u=o(p.init))&&a.unshift(u)}else(u=o(p))&&(s==="field"?a.unshift(u):A[l]=u)}c&&Object.defineProperty(c,n.name,A),d=!0}function Lbe(e,t,r){for(var n=arguments.length>2,a=0;a<t.length;a++)r=n?t[a].call(e,r):t[a].call(e);return n?r:void 0}function Ybe(e){return typeof e=="symbol"?e:"".concat(e)}function Ube(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Hbe(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Gbe(e,t,r,n){function a(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function s(A){try{c(n.next(A))}catch(u){o(u)}}function l(A){try{c(n.throw(A))}catch(u){o(u)}}function c(A){A.done?i(A.value):a(A.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}function Kbe(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,a,i,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(c){return function(A){return l([c,A])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(r=0)),r;)try{if(n=1,a&&(i=c[0]&2?a.return:c[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,c[1])).done)return i;switch(a=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,a=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(A){c=[6,A],a=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}var Z4=Object.create?(function(e,t,r,n){n===void 0&&(n=r);var a=Object.getOwnPropertyDescriptor(t,r);(!a||("get"in a?!t.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,a)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]});function Vbe(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Z4(t,e,r)}function GT(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ZH(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),a,i=[],o;try{for(;(t===void 0||t-- >0)&&!(a=n.next()).done;)i.push(a.value)}catch(s){o={error:s}}finally{try{a&&!a.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return i}function Jbe(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ZH(arguments[t]));return e}function Jv(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),a=0,t=0;t<r;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,a++)n[a]=i[o];return n}function KT(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function Ay(e){return this instanceof Ay?(this.v=e,this):new Ay(e)}function Wbe(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),a,i=[];return a=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",o),a[Symbol.asyncIterator]=function(){return this},a;function o(f){return function(h){return Promise.resolve(h).then(f,u)}}function s(f,h){n[f]&&(a[f]=function(g){return new Promise(function(p,m){i.push([f,g,p,m])>1||l(f,g)})},h&&(a[f]=h(a[f])))}function l(f,h){try{c(n[f](h))}catch(g){d(i[0][3],g)}}function c(f){f.value instanceof Ay?Promise.resolve(f.value.v).then(A,u):d(i[0][2],f)}function A(f){l("next",f)}function u(f){l("throw",f)}function d(f,h){f(h),i.shift(),i.length&&l(i[0][0],i[0][1])}}function Xbe(e){var t,r;return t={},n("next"),n("throw",function(a){throw a}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(a,i){t[a]=e[a]?function(o){return(r=!r)?{value:Ay(e[a](o)),done:!1}:i?i(o):o}:i}}function qbe(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof GT=="function"?GT(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(o){return new Promise(function(s,l){o=e[i](o),a(s,l,o.done,o.value)})}}function a(i,o,s,l){Promise.resolve(l).then(function(c){i({value:c,done:s})},o)}}function Zbe(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var jCt=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},FL=function(e){return FL=Object.getOwnPropertyNames||function(t){var r=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[r.length]=n);return r},FL(e)};function $be(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=FL(e),n=0;n<r.length;n++)r[n]!=="default"&&Z4(t,e,r[n]);return jCt(t,e),t}function e2e(e){return e&&e.__esModule?e:{default:e}}function t2e(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function r2e(e,t,r,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!a:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,r):a?a.value=r:t.set(e,r),r}function n2e(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function a2e(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n,a;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose],r&&(a=n)}if(typeof n!="function")throw new TypeError("Object not disposable.");a&&(n=function(){try{a.call(this)}catch(i){return Promise.reject(i)}}),e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var zCt=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function i2e(e){function t(i){e.error=e.hasError?new zCt(i,e.error,"An error was suppressed during disposal."):i,e.hasError=!0}var r,n=0;function a(){for(;r=e.stack.pop();)try{if(!r.async&&n===1)return n=0,e.stack.push(r),Promise.resolve().then(a);if(r.dispose){var i=r.dispose.call(r.value);if(r.async)return n|=2,Promise.resolve(i).then(a,function(o){return t(o),a()})}else n|=1}catch(o){t(o)}if(n===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return a()}function o2e(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,a,i,o){return n?t?".jsx":".js":a&&(!i||!o)?r:a+i+"."+o.toLowerCase()+"js"}):e}const LCt={__extends:en,__assign:nr,__rest:Hy,__decorate:Obe,__param:jbe,__esDecorate:zbe,__runInitializers:Lbe,__propKey:Ybe,__setFunctionName:Ube,__metadata:Hbe,__awaiter:Gbe,__generator:Kbe,__createBinding:Z4,__exportStar:Vbe,__values:GT,__read:ZH,__spread:Jbe,__spreadArrays:Jv,__spreadArray:KT,__await:Ay,__asyncGenerator:Wbe,__asyncDelegator:Xbe,__asyncValues:qbe,__makeTemplateObject:Zbe,__importStar:$be,__importDefault:e2e,__classPrivateFieldGet:t2e,__classPrivateFieldSet:r2e,__classPrivateFieldIn:n2e,__addDisposableResource:a2e,__disposeResources:i2e,__rewriteRelativeImportExtension:o2e},YCt=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:a2e,get __assign(){return nr},__asyncDelegator:Xbe,__asyncGenerator:Wbe,__asyncValues:qbe,__await:Ay,__awaiter:Gbe,__classPrivateFieldGet:t2e,__classPrivateFieldIn:n2e,__classPrivateFieldSet:r2e,__createBinding:Z4,__decorate:Obe,__disposeResources:i2e,__esDecorate:zbe,__exportStar:Vbe,__extends:en,__generator:Kbe,__importDefault:e2e,__importStar:$be,__makeTemplateObject:Zbe,__metadata:Hbe,__param:jbe,__propKey:Ybe,__read:ZH,__rest:Hy,__rewriteRelativeImportExtension:o2e,__runInitializers:Lbe,__setFunctionName:Ube,__spread:Jbe,__spreadArray:KT,__spreadArrays:Jv,__values:GT,default:LCt},Symbol.toStringTag,{value:"Module"})),Mr=Ya(YCt);var jl=function(e){return e!==null&&typeof e!="function"&&isFinite(e.length)},VT=function(e,t){return jl(e)?e.indexOf(t)>-1:!1},Gy=function(e,t){if(!jl(e))return e;for(var r=[],n=0;n<e.length;n++){var a=e[n];t(a,n)&&r.push(a)}return r},s2e=function(e,t){return t===void 0&&(t=[]),Gy(e,function(r){return!VT(t,r)})},UCt={}.toString,yu=function(e,t){return UCt.call(e)==="[object "+t+"]"};const Sa=(function(e){return yu(e,"Function")});var zr=function(e){return e==null};const sa=(function(e){return Array.isArray?Array.isArray(e):yu(e,"Array")}),fc=(function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"});function wr(e,t){if(e){var r;if(sa(e))for(var n=0,a=e.length;n<a&&(r=t(e[n],n),r!==!1);n++);else if(fc(e)){for(var i in e)if(e.hasOwnProperty(i)&&(r=t(e[i],i),r===!1))break}}}var $H=Object.keys?function(e){return Object.keys(e)}:function(e){var t=[];return wr(e,function(r,n){Sa(e)&&n==="prototype"||t.push(n)}),t};function l2e(e,t){var r=$H(t),n=r.length;if(zr(e))return!n;for(var a=0;a<n;a+=1){var i=r[a];if(t[i]!==e[i]||!(i in e))return!1}return!0}var JT=function(e){return typeof e=="object"&&e!==null},uy=function(e){if(!JT(e)||!yu(e,"Object"))return!1;if(Object.getPrototypeOf(e)===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t};function HCt(e,t){if(!sa(e))return null;var r;if(Sa(t)&&(r=t),uy(t)&&(r=function(a){return l2e(a,t)}),r){for(var n=0;n<e.length;n+=1)if(r(e[n]))return e[n]}return null}function GCt(e,t,r){r===void 0&&(r=0);for(var n=r;n<e.length;n++)if(t(e[n],n))return n;return-1}var KCt=function(e,t){for(var r=null,n=0;n<e.length;n++){var a=e[n],i=a[t];if(!zr(i)){sa(i)?r=i[0]:r=i;break}}return r},TB=function(e){if(!sa(e))return[];for(var t=[],r=0;r<e.length;r++)t=t.concat(e[r]);return t},c2e=function(e,t){if(t===void 0&&(t=[]),!sa(e))t.push(e);else for(var r=0;r<e.length;r+=1)c2e(e[r],t);return t};const aA=(function(e){if(sa(e))return e.reduce(function(t,r){return Math.max(t,r)},e[0])}),iA=(function(e){if(sa(e))return e.reduce(function(t,r){return Math.min(t,r)},e[0])});var A2e=function(e){var t=e.filter(function(o){return!isNaN(o)});if(!t.length)return{min:0,max:0};if(sa(e[0])){for(var r=[],n=0;n<e.length;n++)r=r.concat(e[n]);t=r}var a=aA(t),i=iA(t);return{min:i,max:a}},u2e=Array.prototype,VCt=u2e.splice,JCt=u2e.indexOf,WCt=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n++)for(var a=t[n],i=-1;(i=JCt.call(e,a))>-1;)VCt.call(e,i,1);return e},XCt=Array.prototype.splice,d2e=function(t,r){if(!jl(t))return[];for(var n=t?r.length:0,a=n-1;n--;){var i=void 0,o=r[n];(n===a||o!==i)&&(i=o,XCt.call(t,o,1))}return t},f2e=function(e,t,r){if(!sa(e)&&!uy(e))return e;var n=r;return wr(e,function(a,i){n=t(n,a,i)}),n},qCt=function(e,t){var r=[];if(!jl(e))return r;for(var n=-1,a=[],i=e.length;++n<i;){var o=e[n];t(o,n,e)&&(r.push(o),a.push(n))}return d2e(e,a),r};const Pa=(function(e){return yu(e,"String")});function ZCt(e,t){var r;if(Sa(t))r=function(a,i){return t(a)-t(i)};else{var n=[];Pa(t)?n.push(t):sa(t)&&(n=t),r=function(a,i){for(var o=0;o<n.length;o+=1){var s=n[o];if(a[s]>i[s])return 1;if(a[s]<i[s])return-1}return 0}}return e.sort(r),e}function h2e(e,t){t===void 0&&(t=new Map);var r=[];if(Array.isArray(e))for(var n=0,a=e.length;n<a;n++){var i=e[n];t.has(i)||(r.push(i),t.set(i,!0))}return r}var $Ct=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return h2e([].concat.apply([],e))};const e9=(function(e,t){for(var r=[],n={},a=0;a<e.length;a++){var i=e[a],o=i[t];if(!zr(o)){sa(o)||(o=[o]);for(var s=0;s<o.length;s++){var l=o[s];n[l]||(r.push(l),n[l]=!0)}}}return r});function yd(e){if(jl(e))return e[0]}function Zc(e){if(jl(e)){var t=e;return t[t.length-1]}}function ewt(e,t){return sa(e)||Pa(e)?e[0]===t:!1}function twt(e,t){return sa(e)||Pa(e)?e[e.length-1]===t:!1}var rwt=function(e,t){for(var r=0;r<e.length;r++)if(!t(e[r],r))return!1;return!0},nwt=function(e,t){for(var r=0;r<e.length;r++)if(t(e[r],r))return!0;return!1},awt=Object.prototype.hasOwnProperty;function $4(e,t){if(!t||!sa(e))return{};for(var r={},n=Sa(t)?t:function(s){return s[t]},a,i=0;i<e.length;i++){var o=e[i];a=n(o),awt.call(r,a)?r[a].push(o):r[a]=[o]}return r}function g2e(e,t){if(!t)return{0:e};if(!Sa(t)){var r=sa(t)?t:t.replace(/\s+/g,"").split("*");t=function(n){for(var a="_",i=0,o=r.length;i<o;i++)a+=n[r[i]]&&n[r[i]].toString();return a}}return $4(e,t)}const p2e=(function(e,t){if(!t)return[e];var r=g2e(e,t),n=[];for(var a in r)n.push(r[a]);return n});function iwt(e,t){return e["_wrap_"+t]}function owt(e,t){if(e["_wrap_"+t])return e["_wrap_"+t];var r=function(n){e[t](n)};return e["_wrap_"+t]=r,r}var Lse={};function swt(e){var t=Lse[e];if(!t){for(var r=e.toString(16),n=r.length;n<6;n++)r="0"+r;t="#"+r,Lse[e]=t}return t}function lwt(e){var t=0,r=0,n=0,a=0;return sa(e)?e.length===1?t=r=n=a=e[0]:e.length===2?(t=n=e[0],r=a=e[1]):e.length===3?(t=e[0],r=a=e[1],n=e[2]):(t=e[0],r=e[1],n=e[2],a=e[3]):t=r=n=a=e,{r1:t,r2:r,r3:n,r4:a}}var Ts=function(e,t,r){return e<t?t:e>r?r:e},gR=function(e,t){var r=t.toString(),n=r.indexOf(".");if(n===-1)return Math.round(e);var a=r.substr(n+1).length;return a>20&&(a=20),parseFloat(e.toFixed(a))},ti=function(e){return yu(e,"Number")},cwt=function(e){return ti(e)&&e%1!==0},Awt=function(e){return ti(e)&&e%2===0},uwt=Number.isInteger?Number.isInteger:function(e){return ti(e)&&e%1===0},dwt=function(e){return ti(e)&&e<0},fwt=1e-5;function Cd(e,t,r){return r===void 0&&(r=fwt),Math.abs(e-t)<r}var hwt=function(e){return ti(e)&&e%2!==0},gwt=function(e){return ti(e)&&e>0};const pwt=(function(e,t){if(sa(e)){for(var r,n=-1/0,a=0;a<e.length;a++){var i=e[a],o=Sa(t)?t(i):i[t];o>n&&(r=i,n=o)}return r}}),vwt=(function(e,t){if(sa(e)){for(var r,n=1/0,a=0;a<e.length;a++){var i=e[a],o=Sa(t)?t(i):i[t];o<n&&(r=i,n=o)}return r}});var t9=function(e,t){return(e%t+t)%t},mwt=180/Math.PI,Ewt=function(e){return mwt*e};const ywt=parseInt;var Cwt=Math.PI/180,r9=function(e){return Cwt*e};const Dg=(function(e,t){return e.hasOwnProperty(t)});var n9=Object.values?function(e){return Object.values(e)}:function(e){var t=[];return wr(e,function(r,n){Sa(e)&&n==="prototype"||t.push(r)}),t};const wwt=(function(e,t){return VT(n9(e),t)}),Ky=(function(e){return zr(e)?"":e.toString()});var Bwt=function(e){return Ky(e).toLowerCase()},xwt=function(e){var t=Ky(e);return t.charAt(0).toLowerCase()+t.substring(1)};function a9(e,t){return!e||!t?e:e.replace(/\\?\{([^{}]+)\}/g,function(r,n){return r.charAt(0)==="\\"?r.slice(1):t[n]===void 0?"":t[n]})}var Mwt=function(e){return Ky(e).toUpperCase()},eD=function(e){var t=Ky(e);return t.charAt(0).toUpperCase()+t.substring(1)},Iwt={}.toString,v2e=function(e){return Iwt.call(e).replace(/^\[object /,"").replace(/]$/,"")},bwt=function(e){return yu(e,"Arguments")},Swt=function(e){return yu(e,"Boolean")},i9=function(e){return yu(e,"Date")},Rwt=function(e){return yu(e,"Error")};function Twt(e){return ti(e)&&isFinite(e)}var Qwt=function(e){return e===null},Dwt=Object.prototype,m2e=function(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Dwt;return e===r},Fwt=function(e){return yu(e,"RegExp")},Nwt=function(e){return e===void 0},o9=function(e){return e instanceof Element||e instanceof HTMLDocument};function E2e(e){var t=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(r){return setTimeout(r,16)};return t(e)}function y2e(e){var t=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;t(e)}function DO(e,t){for(var r in t)t.hasOwnProperty(r)&&r!=="constructor"&&t[r]!==void 0&&(e[r]=t[r])}function xi(e,t,r,n){return t&&DO(e,t),r&&DO(e,r),n&&DO(e,n),e}var _wt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],n=1;n<e.length;n++){var a=e[n];Sa(a)&&(a=a.prototype),xi(r.prototype,a)}},Wv=function(e){if(typeof e!="object"||e===null)return e;var t;if(sa(e)){t=[];for(var r=0,n=e.length;r<n;r++)typeof e[r]=="object"&&e[r]!=null?t[r]=Wv(e[r]):t[r]=e[r]}else{t={};for(var a in e)typeof e[a]=="object"&&e[a]!=null?t[a]=Wv(e[a]):t[a]=e[a]}return t};function kwt(e,t,r){var n;return function(){var a=this,i=arguments,o=function(){n=null,r||e.apply(a,i)},s=r&&!n;clearTimeout(n),n=setTimeout(o,t),s&&e.apply(a,i)}}const s9=(function(e,t){if(!Sa(e))throw new TypeError("Expected a function");var r=function(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var s=e.apply(this,n);return o.set(i,s),s};return r.cache=new Map,r});var Pwt=5;function C2e(e,t,r,n){r=r||0,n=n||Pwt;for(var a in t)if(t.hasOwnProperty(a)){var i=t[a];i!==null&&uy(i)?(uy(e[a])||(e[a]={}),r<n?C2e(e[a],i,r+1,n):e[a]=t[a]):sa(i)?(e[a]=[],e[a]=e[a].concat(i)):i!==void 0&&(e[a]=i)}}var Wf=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0;n<t.length;n+=1)C2e(e,t[n]);return e},Owt=function(e,t,r,n){Sa(t)||(r=t,t=e,e=function(){});var a=Object.create?function(o,s){return Object.create(o,{constructor:{value:s}})}:function(o,s){function l(){}l.prototype=o;var c=new l;return c.constructor=s,c},i=a(t.prototype,e);return e.prototype=xi(i,e.prototype),e.superclass=a(t.prototype,t),xi(i,r),xi(e,n),e},l9=function(e,t){if(!jl(e))return-1;var r=Array.prototype.indexOf;if(r)return r.call(e,t);for(var n=-1,a=0;a<e.length;a++)if(e[a]===t){n=a;break}return n},jwt=Object.prototype.hasOwnProperty;function w2e(e){if(zr(e))return!0;if(jl(e))return!e.length;var t=v2e(e);if(t==="Map"||t==="Set")return!e.size;if(m2e(e))return!Object.keys(e).length;for(var r in e)if(jwt.call(e,r))return!1;return!0}var Fg=function(e,t){if(e===t)return!0;if(!e||!t||Pa(e)||Pa(t))return!1;if(jl(e)||jl(t)){if(e.length!==t.length)return!1;for(var r=!0,n=0;n<e.length&&(r=Fg(e[n],t[n]),!!r);n++);return r}if(JT(e)||JT(t)){var a=Object.keys(e),i=Object.keys(t);if(a.length!==i.length)return!1;for(var r=!0,n=0;n<a.length&&(r=Fg(e[a[n]],t[a[n]]),!!r);n++);return r}return!1};const zwt=(function(e,t,r){return Sa(r)?!!r(e,t):Fg(e,t)});var gd=function(e,t){if(!jl(e))return e;for(var r=[],n=0;n<e.length;n++){var a=e[n];r.push(t(a,n))}return r},Lwt=function(e){return e};const B2e=(function(e,t){t===void 0&&(t=Lwt);var r={};return fc(e)&&!zr(e)&&Object.keys(e).forEach(function(n){r[n]=t(e[n],n)}),r}),qn=(function(e,t,r){for(var n=0,a=Pa(t)?t.split("."):t;e&&n<a.length;)e=e[a[n++]];return e===void 0||n<a.length?r:e}),Ywt=(function(e,t,r){var n=e,a=Pa(t)?t.split("."):t;return a.forEach(function(i,o){o<a.length-1?(fc(n[i])||(n[i]=ti(a[o+1])?[]:{}),n=n[i]):n[i]=r}),e});var Uwt=Object.prototype.hasOwnProperty;const c9=(function(e,t){if(e===null||!uy(e))return{};var r={};return wr(t,function(n){Uwt.call(e,n)&&(r[n]=e[n])}),r}),Hwt=(function(e,t){return f2e(e,function(r,n,a){return t.includes(a)||(r[a]=n),r},{})}),Gwt=(function(e,t,r){var n,a,i,o,s=0;r||(r={});var l=function(){s=r.leading===!1?0:Date.now(),n=null,o=e.apply(a,i),n||(a=i=null)},c=function(){var A=Date.now();!s&&r.leading===!1&&(s=A);var u=t-(A-s);return a=this,i=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),s=A,o=e.apply(a,i),n||(a=i=null)):!n&&r.trailing!==!1&&(n=setTimeout(l,u)),o};return c.cancel=function(){clearTimeout(n),s=0,n=a=i=null},c}),Kwt=(function(e){return jl(e)?Array.prototype.slice.call(e):[]});var lb={};const x2e=(function(e){return e=e||"g",lb[e]?lb[e]+=1:lb[e]=1,e+lb[e]}),vv=(function(){}),Vwt=(function(e){return e});function Ux(e){return zr(e)?0:jl(e)?e.length:Object.keys(e).length}var cb;const mw=s9(function(e,t){t===void 0&&(t={});var r=t.fontSize,n=t.fontFamily,a=t.fontWeight,i=t.fontStyle,o=t.fontVariant;return cb||(cb=document.createElement("canvas").getContext("2d")),cb.font=[i,o,a,r+"px",n].join(" "),cb.measureText(Pa(e)?e:"").width},function(e,t){return t===void 0&&(t={}),Jv([e],n9(t)).join("")}),M2e=(function(e,t,r,n){n===void 0&&(n="...");var a=16,i=mw(n,r),o=Pa(e)?e:Ky(e),s=t,l=[],c,A;if(mw(e,r)<=t)return e;for(;c=o.substr(0,a),A=mw(c,r),!(A+i>s&&A>s);)if(l.push(c),s-=A,o=o.substr(a),!o)return l.join("");for(;c=o.substr(0,1),A=mw(c,r),!(A+i>s);)if(l.push(c),s-=A,o=o.substr(1),!o)return l.join("");return""+l.join("")+n});var I2e=(function(){function e(){this.map={}}return e.prototype.has=function(t){return this.map[t]!==void 0},e.prototype.get=function(t,r){var n=this.map[t];return n===void 0?r:n},e.prototype.set=function(t,r){this.map[t]=r},e.prototype.clear=function(){this.map={}},e.prototype.delete=function(t){delete this.map[t]},e.prototype.size=function(){return Object.keys(this.map).length},e})();const Jwt=Object.freeze(Object.defineProperty({__proto__:null,Cache:I2e,assign:xi,augment:_wt,clamp:Ts,clearAnimationFrame:y2e,clone:Wv,contains:VT,debounce:kwt,deepMix:Wf,difference:s2e,each:wr,endsWith:twt,every:rwt,extend:Owt,filter:Gy,find:HCt,findIndex:GCt,firstValue:KCt,fixedBase:gR,flatten:TB,flattenDeep:c2e,forIn:wr,get:qn,getEllipsisText:M2e,getRange:A2e,getType:v2e,getWrapBehavior:iwt,group:p2e,groupBy:$4,groupToMap:g2e,has:Dg,hasKey:Dg,hasValue:wwt,head:yd,identity:Vwt,includes:VT,indexOf:l9,isArguments:bwt,isArray:sa,isArrayLike:jl,isBoolean:Swt,isDate:i9,isDecimal:cwt,isElement:o9,isEmpty:w2e,isEqual:Fg,isEqualWith:zwt,isError:Rwt,isEven:Awt,isFinite:Twt,isFunction:Sa,isInteger:uwt,isMatch:l2e,isNegative:dwt,isNil:zr,isNull:Qwt,isNumber:ti,isNumberEqual:Cd,isObject:fc,isObjectLike:JT,isOdd:hwt,isPlainObject:uy,isPositive:gwt,isPrototype:m2e,isRegExp:Fwt,isString:Pa,isType:yu,isUndefined:Nwt,keys:$H,last:Zc,lowerCase:Bwt,lowerFirst:xwt,map:gd,mapValues:B2e,max:aA,maxBy:pwt,measureTextWidth:mw,memoize:s9,min:iA,minBy:vwt,mix:xi,mod:t9,noop:vv,number2color:swt,omit:Hwt,parseRadius:lwt,pick:c9,pull:WCt,pullAt:d2e,reduce:f2e,remove:qCt,requestAnimationFrame:E2e,set:Ywt,size:Ux,some:nwt,sortBy:ZCt,startsWith:ewt,substitute:a9,throttle:Gwt,toArray:Kwt,toDegree:Ewt,toInteger:ywt,toRadian:r9,toString:Ky,union:$Ct,uniq:h2e,uniqueId:x2e,upperCase:Mwt,upperFirst:eD,values:n9,valuesOfKey:e9,wrapBehavior:owt},Symbol.toStringTag,{value:"Module"})),Br=Ya(Jwt);var FO={},Yse;function Wi(){return Yse||(Yse=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,(function(t){t.FORE="fore",t.MID="mid",t.BG="bg"})(e.LAYER||(e.LAYER={})),(function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"})(e.DIRECTION||(e.DIRECTION={})),(function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"})(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},(function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"})(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),(function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate"})(e.GEOMETRY_LIFE_CIRCLE||(e.GEOMETRY_LIFE_CIRCLE={})),(function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"})(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),(function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"})(e.ELEMENT_STATE||(e.ELEMENT_STATE={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25})(FO)),FO}var NO={},Hw=`	
\v\f\r   ᠎             　\u2028\u2029`,Wwt=new RegExp("([a-z])["+Hw+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Hw+"]*,?["+Hw+"]*)+)","ig"),Xwt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Hw+"]*,?["+Hw+"]*","ig"),hE=function(e){if(!e)return null;if(sa(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(e).replace(Wwt,function(n,a,i){var o=[],s=a.toLowerCase();if(i.replace(Xwt,function(l,c){c&&o.push(+c)}),s==="m"&&o.length>2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=t[s]&&(r.push([a].concat(o.splice(0,t[s]))),!!t[s]););return e}),r},NL=function(e,t){for(var r=[],n=0,a=e.length;a-2*!t>n;n+=2){var i=[{x:+e[n-2],y:+e[n-1]},{x:+e[n],y:+e[n+1]},{x:+e[n+2],y:+e[n+3]},{x:+e[n+4],y:+e[n+5]}];t?n?a-4===n?i[3]={x:+e[0],y:+e[1]}:a-2===n&&(i[2]={x:+e[0],y:+e[1]},i[3]={x:+e[2],y:+e[3]}):i[0]={x:+e[a-2],y:+e[a-1]}:a-4===n?i[3]=i[2]:n||(i[0]={x:+e[n],y:+e[n+1]}),r.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return r},Ab=function(e,t,r,n,a){var i=[];if(a===null&&n===null&&(n=r),e=+e,t=+t,r=+r,n=+n,a!==null){var o=Math.PI/180,s=e+r*Math.cos(-n*o),l=e+r*Math.cos(-a*o),c=t+r*Math.sin(-n*o),A=t+r*Math.sin(-a*o);i=[["M",s,c],["A",r,r,0,+(a-n>180),0,l,A]]}else i=[["M",e,t],["m",0,-n],["a",r,n,0,1,1,0,2*n],["a",r,n,0,1,1,0,-2*n],["z"]];return i},_L=function(e){if(e=hE(e),!e||!e.length)return[["M",0,0]];var t=[],r=0,n=0,a=0,i=0,o=0,s,l;e[0][0]==="M"&&(r=+e[0][1],n=+e[0][2],a=r,i=n,o++,t[0]=["M",r,n]);for(var c=e.length===3&&e[0][0]==="M"&&e[1][0].toUpperCase()==="R"&&e[2][0].toUpperCase()==="Z",A=void 0,u=void 0,d=o,f=e.length;d<f;d++){if(t.push(A=[]),u=e[d],s=u[0],s!==s.toUpperCase())switch(A[0]=s.toUpperCase(),A[0]){case"A":A[1]=u[1],A[2]=u[2],A[3]=u[3],A[4]=u[4],A[5]=u[5],A[6]=+u[6]+r,A[7]=+u[7]+n;break;case"V":A[1]=+u[1]+n;break;case"H":A[1]=+u[1]+r;break;case"R":l=[r,n].concat(u.slice(1));for(var h=2,g=l.length;h<g;h++)l[h]=+l[h]+r,l[++h]=+l[h]+n;t.pop(),t=t.concat(NL(l,c));break;case"O":t.pop(),l=Ab(r,n,u[1],u[2]),l.push(l[0]),t=t.concat(l);break;case"U":t.pop(),t=t.concat(Ab(r,n,u[1],u[2],u[3])),A=["U"].concat(t[t.length-1].slice(-2));break;case"M":a=+u[1]+r,i=+u[2]+n;break;default:for(var h=1,g=u.length;h<g;h++)A[h]=+u[h]+(h%2?r:n)}else if(s==="R")l=[r,n].concat(u.slice(1)),t.pop(),t=t.concat(NL(l,c)),A=["R"].concat(u.slice(-2));else if(s==="O")t.pop(),l=Ab(r,n,u[1],u[2]),l.push(l[0]),t=t.concat(l);else if(s==="U")t.pop(),t=t.concat(Ab(r,n,u[1],u[2],u[3])),A=["U"].concat(t[t.length-1].slice(-2));else for(var p=0,m=u.length;p<m;p++)A[p]=u[p];if(s=s.toUpperCase(),s!=="O")switch(A[0]){case"Z":r=+a,n=+i;break;case"H":r=A[1];break;case"V":n=A[1];break;case"M":a=A[A.length-2],i=A[A.length-1];break;default:r=A[A.length-2],n=A[A.length-1]}}return t},ub=function(e,t,r,n){return[e,t,r,n,r,n]},Use=function(e,t,r,n,a,i){var o=.3333333333333333,s=2/3;return[o*e+s*r,o*t+s*n,o*a+s*r,o*i+s*n,a,i]},b2e=function(e,t,r,n,a,i,o,s,l,c){r===n&&(r+=1);var A=Math.PI*120/180,u=Math.PI/180*(+a||0),d=[],f,h,g,p,m,y=function(ee,ae,ne){var fe=ee*Math.cos(ne)-ae*Math.sin(ne),he=ee*Math.sin(ne)+ae*Math.cos(ne);return{x:fe,y:he}};if(c)h=c[0],g=c[1],p=c[2],m=c[3];else{f=y(e,t,-u),e=f.x,t=f.y,f=y(s,l,-u),s=f.x,l=f.y,e===s&&t===l&&(s+=1,l+=1);var C=(e-s)/2,w=(t-l)/2,B=C*C/(r*r)+w*w/(n*n);B>1&&(B=Math.sqrt(B),r=B*r,n=B*n);var x=r*r,M=n*n,S=(i===o?-1:1)*Math.sqrt(Math.abs((x*M-x*w*w-M*C*C)/(x*w*w+M*C*C)));p=S*r*w/n+(e+s)/2,m=S*-n*C/r+(t+l)/2,h=Math.asin(((t-m)/n).toFixed(9)),g=Math.asin(((l-m)/n).toFixed(9)),h=e<p?Math.PI-h:h,g=s<p?Math.PI-g:g,h<0&&(h=Math.PI*2+h),g<0&&(g=Math.PI*2+g),o&&h>g&&(h=h-Math.PI*2),!o&&g>h&&(g=g-Math.PI*2)}var R=g-h;if(Math.abs(R)>A){var b=g,T=s,D=l;g=h+A*(o&&g>h?1:-1),s=p+r*Math.cos(g),l=m+n*Math.sin(g),d=b2e(s,l,r,n,a,0,o,T,D,[g,b,p,m])}R=g-h;var F=Math.cos(h),N=Math.sin(h),_=Math.cos(g),P=Math.sin(g),k=Math.tan(R/4),j=4/3*r*k,Y=4/3*n*k,X=[e,t],K=[e+j*N,t-Y*F],U=[s+j*P,l-Y*_],H=[s,l];if(K[0]=2*X[0]-K[0],K[1]=2*X[1]-K[1],c)return[K,U,H].concat(d);d=[K,U,H].concat(d).join().split(",");for(var L=[],V=0,J=d.length;V<J;V++)L[V]=V%2?y(d[V-1],d[V],u).y:y(d[V],d[V+1],u).x;return L},kL=function(e,t){var r=_L(e),n=t&&_L(t),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},i={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o=[],s=[],l="",c="",A,u=function(C,w,B){var x,M;if(!C)return["C",w.x,w.y,w.x,w.y,w.x,w.y];switch(!(C[0]in{T:1,Q:1})&&(w.qx=w.qy=null),C[0]){case"M":w.X=C[1],w.Y=C[2];break;case"A":C=["C"].concat(b2e.apply(0,[w.x,w.y].concat(C.slice(1))));break;case"S":B==="C"||B==="S"?(x=w.x*2-w.bx,M=w.y*2-w.by):(x=w.x,M=w.y),C=["C",x,M].concat(C.slice(1));break;case"T":B==="Q"||B==="T"?(w.qx=w.x*2-w.qx,w.qy=w.y*2-w.qy):(w.qx=w.x,w.qy=w.y),C=["C"].concat(Use(w.x,w.y,w.qx,w.qy,C[1],C[2]));break;case"Q":w.qx=C[1],w.qy=C[2],C=["C"].concat(Use(w.x,w.y,C[1],C[2],C[3],C[4]));break;case"L":C=["C"].concat(ub(w.x,w.y,C[1],C[2]));break;case"H":C=["C"].concat(ub(w.x,w.y,C[1],w.y));break;case"V":C=["C"].concat(ub(w.x,w.y,w.x,C[1]));break;case"Z":C=["C"].concat(ub(w.x,w.y,w.X,w.Y));break}return C},d=function(C,w){if(C[w].length>7){C[w].shift();for(var B=C[w];B.length;)o[w]="A",n&&(s[w]="A"),C.splice(w++,0,["C"].concat(B.splice(0,6)));C.splice(w,1),A=Math.max(r.length,n&&n.length||0)}},f=function(C,w,B,x,M){C&&w&&C[M][0]==="M"&&w[M][0]!=="M"&&(w.splice(M,0,["M",x.x,x.y]),B.bx=0,B.by=0,B.x=C[M][1],B.y=C[M][2],A=Math.max(r.length,n&&n.length||0))};A=Math.max(r.length,n&&n.length||0);for(var h=0;h<A;h++){r[h]&&(l=r[h][0]),l!=="C"&&(o[h]=l,h&&(c=o[h-1])),r[h]=u(r[h],a,c),o[h]!=="A"&&l==="C"&&(o[h]="C"),d(r,h),n&&(n[h]&&(l=n[h][0]),l!=="C"&&(s[h]=l,h&&(c=s[h-1])),n[h]=u(n[h],i,c),s[h]!=="A"&&l==="C"&&(s[h]="C"),d(n,h)),f(r,n,a,i,h),f(n,r,i,a,h);var g=r[h],p=n&&n[h],m=g.length,y=n&&p.length;a.x=g[m-2],a.y=g[m-1],a.bx=parseFloat(g[m-4])||a.x,a.by=parseFloat(g[m-3])||a.y,i.bx=n&&(parseFloat(p[y-4])||i.x),i.by=n&&(parseFloat(p[y-3])||i.y),i.x=n&&p[y-2],i.y=n&&p[y-1]}return n?[r,n]:r},qwt=/,?([a-z]),?/gi,S2e=function(e){return e.join(",").replace(qwt,"$1")},Hse=function(e,t,r,n,a){var i=-3*t+9*r-9*n+3*a,o=e*i+6*t-12*r+6*n;return e*o-3*t+3*r},Gse=function(e,t,r,n,a,i,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,A=12,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,h=0;h<A;h++){var g=c*u[h]+c,p=Hse(g,e,r,a,o),m=Hse(g,t,n,i,s),y=p*p+m*m;f+=d[h]*Math.sqrt(y)}return c*f},Zwt=function(e,t,r,n,a,i,o,s){for(var l=[],c=[[],[]],A,u,d,f,h=0;h<2;++h){if(h===0?(u=6*e-12*r+6*a,A=-3*e+9*r-9*a+3*o,d=3*r-3*e):(u=6*t-12*n+6*i,A=-3*t+9*n-9*i+3*s,d=3*n-3*t),Math.abs(A)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u,f>0&&f<1&&l.push(f);continue}var g=u*u-4*d*A,p=Math.sqrt(g);if(!(g<0)){var m=(-u+p)/(2*A);m>0&&m<1&&l.push(m);var y=(-u-p)/(2*A);y>0&&y<1&&l.push(y)}}for(var C=l.length,w=C,B;C--;)f=l[C],B=1-f,c[0][C]=B*B*B*e+3*B*B*f*r+3*B*f*f*a+f*f*f*o,c[1][C]=B*B*B*t+3*B*B*f*n+3*B*f*f*i+f*f*f*s;return c[0][w]=e,c[1][w]=t,c[0][w+1]=o,c[1][w+1]=s,c[0].length=c[1].length=w+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}},$wt=function(e,t,r,n,a,i,o,s){if(!(Math.max(e,r)<Math.min(a,o)||Math.min(e,r)>Math.max(a,o)||Math.max(t,n)<Math.min(i,s)||Math.min(t,n)>Math.max(i,s))){var l=(e*n-t*r)*(a-o)-(e-r)*(a*s-i*o),c=(e*n-t*r)*(i-s)-(t-n)*(a*s-i*o),A=(e-r)*(i-s)-(t-n)*(a-o);if(A){var u=l/A,d=c/A,f=+u.toFixed(2),h=+d.toFixed(2);if(!(f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,o).toFixed(2)||f>+Math.max(a,o).toFixed(2)||h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,s).toFixed(2)||h>+Math.max(i,s).toFixed(2)))return{x:u,y:d}}}},kh=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},R2e=function(e,t,r,n,a){if(a)return[["M",+e+ +a,t],["l",r-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-r,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]];var i=[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]];return i.parsePathArray=S2e,i},PL=function(e,t,r,n){return e===null&&(e=t=r=n=0),t===null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:R2e(e,t,r,n),vb:[e,t,r,n].join(" ")}},eBt=function(e,t){return e=PL(e),t=PL(t),kh(t,e.x,e.y)||kh(t,e.x2,e.y)||kh(t,e.x,e.y2)||kh(t,e.x2,e.y2)||kh(e,t.x,t.y)||kh(e,t.x2,t.y)||kh(e,t.x,t.y2)||kh(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)},Kse=function(e,t,r,n,a,i,o,s){sa(e)||(e=[e,t,r,n,a,i,o,s]);var l=Zwt.apply(null,e);return PL(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Vse=function(e,t,r,n,a,i,o,s,l){var c=1-l,A=Math.pow(c,3),u=Math.pow(c,2),d=l*l,f=d*l,h=A*e+u*3*l*r+c*3*l*l*a+f*o,g=A*t+u*3*l*n+c*3*l*l*i+f*s,p=e+2*l*(r-e)+d*(a-2*r+e),m=t+2*l*(n-t)+d*(i-2*n+t),y=r+2*l*(a-r)+d*(o-2*a+r),C=n+2*l*(i-n)+d*(s-2*i+n),w=c*e+l*r,B=c*t+l*n,x=c*a+l*o,M=c*i+l*s,S=90-Math.atan2(p-y,m-C)*180/Math.PI;return{x:h,y:g,m:{x:p,y:m},n:{x:y,y:C},start:{x:w,y:B},end:{x,y:M},alpha:S}},tBt=function(e,t,r){var n=Kse(e),a=Kse(t);if(!eBt(n,a))return[];for(var i=Gse.apply(0,e),o=Gse.apply(0,t),s=~~(i/8),l=~~(o/8),c=[],A=[],u={},d=[],f=0;f<s+1;f++){var h=Vse.apply(0,e.concat(f/s));c.push({x:h.x,y:h.y,t:f/s})}for(var f=0;f<l+1;f++){var h=Vse.apply(0,t.concat(f/l));A.push({x:h.x,y:h.y,t:f/l})}for(var f=0;f<s;f++)for(var g=0;g<l;g++){var p=c[f],m=c[f+1],y=A[g],C=A[g+1],w=Math.abs(m.x-p.x)<.001?"y":"x",B=Math.abs(C.x-y.x)<.001?"y":"x",x=$wt(p.x,p.y,m.x,m.y,y.x,y.y,C.x,C.y);if(x){if(u[x.x.toFixed(4)]===x.y.toFixed(4))continue;u[x.x.toFixed(4)]=x.y.toFixed(4);var M=p.t+Math.abs((x[w]-p[w])/(m[w]-p[w]))*(m.t-p.t),S=y.t+Math.abs((x[B]-y[B])/(C[B]-y[B]))*(C.t-y.t);M>=0&&M<=1&&S>=0&&S<=1&&d.push({x:x.x,y:x.y,t1:M,t2:S})}}return d},rBt=function(e,t,r){e=kL(e),t=kL(t);for(var n,a,i,o,s,l,c,A,u,d,f=r?0:[],h=0,g=e.length;h<g;h++){var p=e[h];if(p[0]==="M")n=s=p[1],a=l=p[2];else{p[0]==="C"?(u=[n,a].concat(p.slice(1)),n=u[6],a=u[7]):(u=[n,a,n,a,s,l,s,l],n=s,a=l);for(var m=0,y=t.length;m<y;m++){var C=t[m];if(C[0]==="M")i=c=C[1],o=A=C[2];else{C[0]==="C"?(d=[i,o].concat(C.slice(1)),i=d[6],o=d[7]):(d=[i,o,i,o,c,A,c,A],i=c,o=A);var w=tBt(u,d);{for(var B=0,x=w.length;B<x;B++)w[B].segment1=h,w[B].segment2=m,w[B].bez1=u,w[B].bez2=d;f=f.concat(w)}}}}}return f},nBt=function(e,t){return rBt(e,t)};function aBt(e,t){var r=[],n=[];function a(i,o){if(i.length===1)r.push(i[0]),n.push(i[0]);else{for(var s=[],l=0;l<i.length-1;l++)l===0&&r.push(i[0]),l===i.length-2&&n.push(i[l+1]),s[l]=[(1-o)*i[l][0]+o*i[l+1][0],(1-o)*i[l][1]+o*i[l+1][1]];a(s,o)}}return e.length&&a(e,t),{left:r,right:n.reverse()}}function iBt(e,t,r){var n=[[e[1],e[2]]];r=r||2;var a=[];t[0]==="A"?(n.push(t[6]),n.push(t[7])):t[0]==="C"?(n.push([t[1],t[2]]),n.push([t[3],t[4]]),n.push([t[5],t[6]])):t[0]==="S"||t[0]==="Q"?(n.push([t[1],t[2]]),n.push([t[3],t[4]])):n.push([t[1],t[2]]);for(var i=n,o=1/r,s=0;s<r-1;s++){var l=o/(1-o*s),c=aBt(i,l);a.push(c.left),i=c.right}a.push(i);var A=a.map(function(u){var d=[];return u.length===4&&(d.push("C"),d=d.concat(u[2])),u.length>=3&&(u.length===3&&d.push("Q"),d=d.concat(u[1])),u.length===2&&d.push("L"),d=d.concat(u[u.length-1]),d});return A}var oBt=function(e,t,r){if(r===1)return[[].concat(e)];var n=[];if(t[0]==="L"||t[0]==="C"||t[0]==="Q")n=n.concat(iBt(e,t,r));else{var a=[].concat(e);a[0]==="M"&&(a[0]="L");for(var i=0;i<=r-1;i++)n.push(a)}return n},sBt=function(e,t){if(e.length===1)return e;var r=e.length-1,n=t.length-1,a=r/n,i=[];if(e.length===1&&e[0][0]==="M"){for(var o=0;o<n-r;o++)e.push(e[0]);return e}for(var o=0;o<n;o++){var s=Math.floor(a*o);i[s]=(i[s]||0)+1}var l=i.reduce(function(c,A,u){return u===r?c.concat(e[r]):c.concat(oBt(e[u],e[u+1],A))},[]);return l.unshift(e[0]),(t[n]==="Z"||t[n]==="z")&&l.push("Z"),l},lBt=function(e,t){if(e.length!==t.length)return!1;var r=!0;return wr(e,function(n,a){if(n!==t[a])return r=!1,!1}),r};function cBt(e,t,r){var n=null,a=r;return t<a&&(a=t,n="add"),e<a&&(a=e,n="del"),{type:n,min:a}}var ABt=function(e,t){var r=e.length,n=t.length,a,i,o=0;if(r===0||n===0)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var c=0;c<=n;c++)s[0][c]={min:c};for(var l=1;l<=r;l++){a=e[l-1];for(var c=1;c<=n;c++){i=t[c-1],lBt(a,i)?o=0:o=1;var A=s[l-1][c].min+1,u=s[l][c-1].min+1,d=s[l-1][c-1].min+o;s[l][c]=cBt(A,u,d)}}return s},T2e=function(e,t){var r=ABt(e,t),n=e.length,a=t.length,i=[],o=1,s=1;if(r[n][a].min!==n){for(var l=1;l<=n;l++){var c=r[l][l].min;s=l;for(var A=o;A<=a;A++)r[l][A].min<c&&(c=r[l][A].min,s=A);o=s,r[l][o].type&&i.push({index:l-1,type:r[l][o].type})}for(var l=i.length-1;l>=0;l--)o=i[l].index,i[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}n=e.length;var u=a-n;if(n<a)for(var l=0;l<u;l++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]),n+=1;return e};function _O(e,t,r){for(var n=[].concat(e),a,i=1/(r+1),o=Q2e(t)[0],s=1;s<=r;s++)i*=s,a=Math.floor(e.length*i),a===0?n.unshift([o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]):n.splice(a,0,[o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]);return n}function Q2e(e){var t=[];switch(e[0]){case"M":t.push([e[1],e[2]]);break;case"L":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"T":t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"H":t.push([e[1],e[1]]);break;case"V":t.push([e[1],e[1]]);break}return t}var OL=function(e,t){if(e.length<=1)return e;for(var r,n=0;n<t.length;n++)if(e[n][0]!==t[n][0])switch(r=Q2e(e[n]),t[n][0]){case"M":e[n]=["M"].concat(r[0]);break;case"L":e[n]=["L"].concat(r[0]);break;case"A":e[n]=[].concat(t[n]),e[n][6]=r[0][0],e[n][7]=r[0][1];break;case"Q":if(r.length<2)if(n>0)r=_O(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["Q"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"T":e[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=_O(r,e[n-1],2);else{e[n]=t[n];break}e[n]=["C"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(r.length<2)if(n>0)r=_O(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["S"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;default:e[n]=t[n]}return e};const A9=Object.freeze(Object.defineProperty({__proto__:null,catmullRomToBezier:NL,fillPath:sBt,fillPathByDiff:T2e,formatPath:OL,intersection:nBt,parsePathArray:S2e,parsePathString:hE,pathToAbsolute:_L,pathToCurve:kL,rectPath:R2e},Symbol.toStringTag,{value:"Module"}));var tD=(function(){function e(t,r){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=r,this.timeStamp=r.timeStamp}return e.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){this.propagationStopped=!0},e.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},e.prototype.save=function(){},e.prototype.restore=function(){},e})(),uBt="*",D2e=(function(){function e(){this._events={}}return e.prototype.on=function(t,r,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:r,once:!!n}),this},e.prototype.once=function(t,r){return this.on(t,r,!0)},e.prototype.emit=function(t){for(var r=this,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var i=this._events[t]||[],o=this._events[uBt]||[],s=function(l){for(var c=l.length,A=0;A<c;A++)if(l[A]){var u=l[A],d=u.callback,f=u.once;f&&(l.splice(A,1),l.length===0&&delete r._events[t],c--,A--),d.apply(r,n)}};s(i),s(o)},e.prototype.off=function(t,r){if(!t)this._events={};else if(!r)delete this._events[t];else{for(var n=this._events[t]||[],a=n.length,i=0;i<a;i++)n[i].callback===r&&(n.splice(i,1),a--,i--);n.length===0&&delete this._events[t]}return this},e.prototype.getEvents=function(){return this._events},e})();const dBt=Object.freeze(Object.defineProperty({__proto__:null,default:D2e},Symbol.toStringTag,{value:"Module"}));function F2e(e,t){var r=e.indexOf(t);r!==-1&&e.splice(r,1)}var Jse=typeof window<"u"&&typeof window.document<"u";function N2e(e,t){if(e.isCanvas())return!0;for(var r=t.getParent(),n=!1;r;){if(r===e){n=!0;break}r=r.getParent()}return n}function QB(e){return e.cfg.visible&&e.cfg.capture}var rD=(function(e){en(t,e);function t(r){var n=e.call(this)||this;n.destroyed=!1;var a=n.getDefaultCfg();return n.cfg=xi(a,r),n}return t.prototype.getDefaultCfg=function(){return{}},t.prototype.get=function(r){return this.cfg[r]},t.prototype.set=function(r,n){this.cfg[r]=n},t.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},t})(D2e),Wse=function(e,t,r){if(r||arguments.length===2)for(var n=0,a=t.length,i;n<a;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},_2e=(function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e})(),k2e=(function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=process.platform}return e})(),P2e=(function(){function e(t,r,n,a){this.name=t,this.version=r,this.os=n,this.bot=a,this.type="bot-device"}return e})(),O2e=(function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e})(),j2e=(function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e})(),fBt=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,hBt=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Xse=3,gBt=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",fBt]],qse=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function z2e(e){return e?jL(e):typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new j2e:typeof navigator<"u"?jL(navigator.userAgent):U2e()}function L2e(e){return e!==""&&gBt.reduce(function(t,r){var n=r[0],a=r[1];if(t)return t;var i=a.exec(e);return!!i&&[n,i]},!1)}function pBt(e){var t=L2e(e);return t?t[0]:null}function jL(e){var t=L2e(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new O2e;var a=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);a?a.length<Xse&&(a=Wse(Wse([],a,!0),vBt(Xse-a.length),!0)):a=[];var i=a.join("."),o=Y2e(e),s=hBt.exec(e);return s&&s[1]?new P2e(r,i,o,s[1]):new _2e(r,i,o)}function Y2e(e){for(var t=0,r=qse.length;t<r;t++){var n=qse[t],a=n[0],i=n[1],o=i.exec(e);if(o)return a}return null}function U2e(){var e=typeof process<"u"&&process.version;return e?new k2e(process.version.slice(1)):null}function vBt(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}const mBt=Object.freeze(Object.defineProperty({__proto__:null,BotInfo:O2e,BrowserInfo:_2e,NodeInfo:k2e,ReactNativeInfo:j2e,SearchBotDeviceInfo:P2e,browserName:pBt,detect:z2e,detectOS:Y2e,getNodeVersion:U2e,parseUserAgent:jL},Symbol.toStringTag,{value:"Module"}));var Rl=1e-6,oA=typeof Float32Array<"u"?Float32Array:Array,zL=Math.random;function Gw(e){return e>=0?Math.round(e):e%.5===0?Math.floor(e):Math.round(e)}function EBt(){var e=new oA(9);return oA!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[5]=0,e[6]=0,e[7]=0),e[0]=1,e[4]=1,e[8]=1,e}function yBt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],e}function CBt(e){var t=new oA(9);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function wBt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function BBt(e,t,r,n,a,i,o,s,l){var c=new oA(9);return c[0]=e,c[1]=t,c[2]=r,c[3]=n,c[4]=a,c[5]=i,c[6]=o,c[7]=s,c[8]=l,c}function xBt(e,t,r,n,a,i,o,s,l,c){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e[4]=i,e[5]=o,e[6]=s,e[7]=l,e[8]=c,e}function MBt(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function IBt(e,t){if(e===t){var r=t[1],n=t[2],a=t[5];e[1]=t[3],e[2]=t[6],e[3]=r,e[5]=t[7],e[6]=n,e[7]=a}else e[0]=t[0],e[1]=t[3],e[2]=t[6],e[3]=t[1],e[4]=t[4],e[5]=t[7],e[6]=t[2],e[7]=t[5],e[8]=t[8];return e}function H2e(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],A=t[8],u=A*o-s*c,d=-A*i+s*l,f=c*i-o*l,h=r*u+n*d+a*f;return h?(h=1/h,e[0]=u*h,e[1]=(-A*n+a*c)*h,e[2]=(s*n-a*o)*h,e[3]=d*h,e[4]=(A*r-a*l)*h,e[5]=(-s*r+a*i)*h,e[6]=f*h,e[7]=(-c*r+n*l)*h,e[8]=(o*r-n*i)*h,e):null}function bBt(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],A=t[8];return e[0]=o*A-s*c,e[1]=a*c-n*A,e[2]=n*s-a*o,e[3]=s*l-i*A,e[4]=r*A-a*l,e[5]=a*i-r*s,e[6]=i*c-o*l,e[7]=n*l-r*c,e[8]=r*o-n*i,e}function SBt(e){var t=e[0],r=e[1],n=e[2],a=e[3],i=e[4],o=e[5],s=e[6],l=e[7],c=e[8];return t*(c*i-o*l)+r*(-c*a+o*s)+n*(l*a-i*s)}function Vy(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],A=t[7],u=t[8],d=r[0],f=r[1],h=r[2],g=r[3],p=r[4],m=r[5],y=r[6],C=r[7],w=r[8];return e[0]=d*n+f*o+h*c,e[1]=d*a+f*s+h*A,e[2]=d*i+f*l+h*u,e[3]=g*n+p*o+m*c,e[4]=g*a+p*s+m*A,e[5]=g*i+p*l+m*u,e[6]=y*n+C*o+w*c,e[7]=y*a+C*s+w*A,e[8]=y*i+C*l+w*u,e}function RBt(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],A=t[7],u=t[8],d=r[0],f=r[1];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e[6]=d*n+f*o+c,e[7]=d*a+f*s+A,e[8]=d*i+f*l+u,e}function TBt(e,t,r){var n=t[0],a=t[1],i=t[2],o=t[3],s=t[4],l=t[5],c=t[6],A=t[7],u=t[8],d=Math.sin(r),f=Math.cos(r);return e[0]=f*n+d*o,e[1]=f*a+d*s,e[2]=f*i+d*l,e[3]=f*o-d*n,e[4]=f*s-d*a,e[5]=f*l-d*i,e[6]=c,e[7]=A,e[8]=u,e}function QBt(e,t,r){var n=r[0],a=r[1];return e[0]=n*t[0],e[1]=n*t[1],e[2]=n*t[2],e[3]=a*t[3],e[4]=a*t[4],e[5]=a*t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function G2e(e,t){return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=t[0],e[7]=t[1],e[8]=1,e}function K2e(e,t){var r=Math.sin(t),n=Math.cos(t);return e[0]=n,e[1]=r,e[2]=0,e[3]=-r,e[4]=n,e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function V2e(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=t[1],e[5]=0,e[6]=0,e[7]=0,e[8]=1,e}function DBt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=0,e[3]=t[2],e[4]=t[3],e[5]=0,e[6]=t[4],e[7]=t[5],e[8]=1,e}function FBt(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=r+r,s=n+n,l=a+a,c=r*o,A=n*o,u=n*s,d=a*o,f=a*s,h=a*l,g=i*o,p=i*s,m=i*l;return e[0]=1-u-h,e[3]=A-m,e[6]=d+p,e[1]=A+m,e[4]=1-c-h,e[7]=f-g,e[2]=d-p,e[5]=f+g,e[8]=1-c-u,e}function NBt(e,t){var r=t[0],n=t[1],a=t[2],i=t[3],o=t[4],s=t[5],l=t[6],c=t[7],A=t[8],u=t[9],d=t[10],f=t[11],h=t[12],g=t[13],p=t[14],m=t[15],y=r*s-n*o,C=r*l-a*o,w=r*c-i*o,B=n*l-a*s,x=n*c-i*s,M=a*c-i*l,S=A*g-u*h,R=A*p-d*h,b=A*m-f*h,T=u*p-d*g,D=u*m-f*g,F=d*m-f*p,N=y*F-C*D+w*T+B*b-x*R+M*S;return N?(N=1/N,e[0]=(s*F-l*D+c*T)*N,e[1]=(l*b-o*F-c*R)*N,e[2]=(o*D-s*b+c*S)*N,e[3]=(a*D-n*F-i*T)*N,e[4]=(r*F-a*b+i*R)*N,e[5]=(n*b-r*D-i*S)*N,e[6]=(g*M-p*x+m*B)*N,e[7]=(p*w-h*M-m*C)*N,e[8]=(h*x-g*w+m*y)*N,e):null}function _Bt(e,t,r){return e[0]=2/t,e[1]=0,e[2]=0,e[3]=0,e[4]=-2/r,e[5]=0,e[6]=-1,e[7]=1,e[8]=1,e}function kBt(e){return"mat3("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+")"}function PBt(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]+e[3]*e[3]+e[4]*e[4]+e[5]*e[5]+e[6]*e[6]+e[7]*e[7]+e[8]*e[8])}function OBt(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e}function J2e(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e}function jBt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e}function zBt(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e}function LBt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]}function YBt(e,t){var r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],c=e[7],A=e[8],u=t[0],d=t[1],f=t[2],h=t[3],g=t[4],p=t[5],m=t[6],y=t[7],C=t[8];return Math.abs(r-u)<=Rl*Math.max(1,Math.abs(r),Math.abs(u))&&Math.abs(n-d)<=Rl*Math.max(1,Math.abs(n),Math.abs(d))&&Math.abs(a-f)<=Rl*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(i-h)<=Rl*Math.max(1,Math.abs(i),Math.abs(h))&&Math.abs(o-g)<=Rl*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-p)<=Rl*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-m)<=Rl*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-y)<=Rl*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(A-C)<=Rl*Math.max(1,Math.abs(A),Math.abs(C))}var UBt=Vy,HBt=J2e;const GBt=Object.freeze(Object.defineProperty({__proto__:null,add:OBt,adjoint:bBt,clone:CBt,copy:wBt,create:EBt,determinant:SBt,equals:YBt,exactEquals:LBt,frob:PBt,fromMat2d:DBt,fromMat4:yBt,fromQuat:FBt,fromRotation:K2e,fromScaling:V2e,fromTranslation:G2e,fromValues:BBt,identity:MBt,invert:H2e,mul:UBt,multiply:Vy,multiplyScalar:jBt,multiplyScalarAndAdd:zBt,normalFromMat4:NBt,projection:_Bt,rotate:TBt,scale:QBt,set:xBt,str:kBt,sub:HBt,subtract:J2e,translate:RBt,transpose:IBt},Symbol.toStringTag,{value:"Module"}));function W2e(){var e=new oA(3);return oA!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function KBt(e){var t=new oA(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function X2e(e){var t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function VBt(e,t,r){var n=new oA(3);return n[0]=e,n[1]=t,n[2]=r,n}function JBt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function WBt(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function XBt(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function q2e(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function Z2e(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function $2e(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function qBt(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function ZBt(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function $Bt(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function ext(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function txt(e,t){return e[0]=Gw(t[0]),e[1]=Gw(t[1]),e[2]=Gw(t[2]),e}function rxt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function nxt(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function eSe(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2];return Math.sqrt(r*r+n*n+a*a)}function tSe(e,t){var r=t[0]-e[0],n=t[1]-e[1],a=t[2]-e[2];return r*r+n*n+a*a}function rSe(e){var t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function axt(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function ixt(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function oxt(e,t){var r=t[0],n=t[1],a=t[2],i=r*r+n*n+a*a;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e[2]=t[2]*i,e}function u9(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function sxt(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[0],s=r[1],l=r[2];return e[0]=a*l-i*s,e[1]=i*o-n*l,e[2]=n*s-a*o,e}function lxt(e,t,r,n){var a=t[0],i=t[1],o=t[2];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e[2]=o+n*(r[2]-o),e}function cxt(e,t,r,n){var a=Math.acos(Math.min(Math.max(u9(t,r),-1),1)),i=Math.sin(a),o=Math.sin((1-n)*a)/i,s=Math.sin(n*a)/i;return e[0]=o*t[0]+s*r[0],e[1]=o*t[1]+s*r[1],e[2]=o*t[2]+s*r[2],e}function Axt(e,t,r,n,a,i){var o=i*i,s=o*(2*i-3)+1,l=o*(i-2)+i,c=o*(i-1),A=o*(3-2*i);return e[0]=t[0]*s+r[0]*l+n[0]*c+a[0]*A,e[1]=t[1]*s+r[1]*l+n[1]*c+a[1]*A,e[2]=t[2]*s+r[2]*l+n[2]*c+a[2]*A,e}function uxt(e,t,r,n,a,i){var o=1-i,s=o*o,l=i*i,c=s*o,A=3*i*s,u=3*l*o,d=l*i;return e[0]=t[0]*c+r[0]*A+n[0]*u+a[0]*d,e[1]=t[1]*c+r[1]*A+n[1]*u+a[1]*d,e[2]=t[2]*c+r[2]*A+n[2]*u+a[2]*d,e}function dxt(e,t){t=t===void 0?1:t;var r=zL()*2*Math.PI,n=zL()*2-1,a=Math.sqrt(1-n*n)*t;return e[0]=Math.cos(r)*a,e[1]=Math.sin(r)*a,e[2]=n*t,e}function fxt(e,t,r){var n=t[0],a=t[1],i=t[2],o=r[3]*n+r[7]*a+r[11]*i+r[15];return o=o||1,e[0]=(r[0]*n+r[4]*a+r[8]*i+r[12])/o,e[1]=(r[1]*n+r[5]*a+r[9]*i+r[13])/o,e[2]=(r[2]*n+r[6]*a+r[10]*i+r[14])/o,e}function dy(e,t,r){var n=t[0],a=t[1],i=t[2];return e[0]=n*r[0]+a*r[3]+i*r[6],e[1]=n*r[1]+a*r[4]+i*r[7],e[2]=n*r[2]+a*r[5]+i*r[8],e}function hxt(e,t,r){var n=r[0],a=r[1],i=r[2],o=r[3],s=t[0],l=t[1],c=t[2],A=a*c-i*l,u=i*s-n*c,d=n*l-a*s;return A=A+A,u=u+u,d=d+d,e[0]=s+o*A+a*d-i*u,e[1]=l+o*u+i*A-n*d,e[2]=c+o*d+n*u-a*A,e}function gxt(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0],i[1]=a[1]*Math.cos(n)-a[2]*Math.sin(n),i[2]=a[1]*Math.sin(n)+a[2]*Math.cos(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e}function pxt(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[2]*Math.sin(n)+a[0]*Math.cos(n),i[1]=a[1],i[2]=a[2]*Math.cos(n)-a[0]*Math.sin(n),e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e}function vxt(e,t,r,n){var a=[],i=[];return a[0]=t[0]-r[0],a[1]=t[1]-r[1],a[2]=t[2]-r[2],i[0]=a[0]*Math.cos(n)-a[1]*Math.sin(n),i[1]=a[0]*Math.sin(n)+a[1]*Math.cos(n),i[2]=a[2],e[0]=i[0]+r[0],e[1]=i[1]+r[1],e[2]=i[2]+r[2],e}function mxt(e,t){var r=e[0],n=e[1],a=e[2],i=t[0],o=t[1],s=t[2],l=Math.sqrt((r*r+n*n+a*a)*(i*i+o*o+s*s)),c=l&&u9(e,t)/l;return Math.acos(Math.min(Math.max(c,-1),1))}function Ext(e){return e[0]=0,e[1]=0,e[2]=0,e}function yxt(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function Cxt(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function wxt(e,t){var r=e[0],n=e[1],a=e[2],i=t[0],o=t[1],s=t[2];return Math.abs(r-i)<=Rl*Math.max(1,Math.abs(r),Math.abs(i))&&Math.abs(n-o)<=Rl*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(a-s)<=Rl*Math.max(1,Math.abs(a),Math.abs(s))}var Bxt=q2e,xxt=Z2e,Mxt=$2e,Ixt=eSe,bxt=tSe,Sxt=X2e,Rxt=rSe,Txt=(function(){var e=W2e();return function(t,r,n,a,i,o){var s,l;for(r||(r=3),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s<l;s+=r)e[0]=t[s],e[1]=t[s+1],e[2]=t[s+2],i(e,e,o),t[s]=e[0],t[s+1]=e[1],t[s+2]=e[2];return t}})();const nSe=Object.freeze(Object.defineProperty({__proto__:null,add:XBt,angle:mxt,bezier:uxt,ceil:qBt,clone:KBt,copy:JBt,create:W2e,cross:sxt,dist:Ixt,distance:eSe,div:Mxt,divide:$2e,dot:u9,equals:wxt,exactEquals:Cxt,floor:ZBt,forEach:Txt,fromValues:VBt,hermite:Axt,inverse:ixt,len:Sxt,length:X2e,lerp:lxt,max:ext,min:$Bt,mul:xxt,multiply:Z2e,negate:axt,normalize:oxt,random:dxt,rotateX:gxt,rotateY:pxt,rotateZ:vxt,round:txt,scale:rxt,scaleAndAdd:nxt,set:WBt,slerp:cxt,sqrDist:bxt,sqrLen:Rxt,squaredDistance:tSe,squaredLength:rSe,str:yxt,sub:Bxt,subtract:q2e,transformMat3:dy,transformMat4:fxt,transformQuat:hxt,zero:Ext},Symbol.toStringTag,{value:"Module"}));function aSe(){var e=new oA(2);return oA!=Float32Array&&(e[0]=0,e[1]=0),e}function Qxt(e){var t=new oA(2);return t[0]=e[0],t[1]=e[1],t}function Dxt(e,t){var r=new oA(2);return r[0]=e,r[1]=t,r}function Fxt(e,t){return e[0]=t[0],e[1]=t[1],e}function Nxt(e,t,r){return e[0]=t,e[1]=r,e}function Ew(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function d9(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function iSe(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}function oSe(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}function _xt(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e}function kxt(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e}function Wh(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Xh(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}function Pxt(e,t){return e[0]=Gw(t[0]),e[1]=Gw(t[1]),e}function ig(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Oxt(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function WT(e,t){var r=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(r*r+n*n)}function sSe(e,t){var r=t[0]-e[0],n=t[1]-e[1];return r*r+n*n}function fg(e){var t=e[0],r=e[1];return Math.sqrt(t*t+r*r)}function lSe(e){var t=e[0],r=e[1];return t*t+r*r}function jxt(e,t){return e[0]=-t[0],e[1]=-t[1],e}function zxt(e,t){return e[0]=1/t[0],e[1]=1/t[1],e}function f9(e,t){var r=t[0],n=t[1],a=r*r+n*n;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e}function cSe(e,t){return e[0]*t[0]+e[1]*t[1]}function Lxt(e,t,r){var n=t[0]*r[1]-t[1]*r[0];return e[0]=e[1]=0,e[2]=n,e}function Yxt(e,t,r,n){var a=t[0],i=t[1];return e[0]=a+n*(r[0]-a),e[1]=i+n*(r[1]-i),e}function Uxt(e,t){t=t===void 0?1:t;var r=zL()*2*Math.PI;return e[0]=Math.cos(r)*t,e[1]=Math.sin(r)*t,e}function Hxt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a,e[1]=r[1]*n+r[3]*a,e}function Gxt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function ASe(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[3]*a+r[6],e[1]=r[1]*n+r[4]*a+r[7],e}function Kxt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[4]*a+r[12],e[1]=r[1]*n+r[5]*a+r[13],e}function Vxt(e,t,r,n){var a=t[0]-r[0],i=t[1]-r[1],o=Math.sin(n),s=Math.cos(n);return e[0]=a*s-i*o+r[0],e[1]=a*o+i*s+r[1],e}function uSe(e,t){var r=e[0],n=e[1],a=t[0],i=t[1];return Math.abs(Math.atan2(n*a-r*i,r*a+n*i))}function Jxt(e,t){var r=e[0],n=e[1],a=t[0],i=t[1];return Math.atan2(r*i-n*a,r*a+n*i)}function Wxt(e){return e[0]=0,e[1]=0,e}function Xxt(e){return"vec2("+e[0]+", "+e[1]+")"}function dSe(e,t){return e[0]===t[0]&&e[1]===t[1]}function qxt(e,t){var r=e[0],n=e[1],a=t[0],i=t[1];return Math.abs(r-a)<=Rl*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-i)<=Rl*Math.max(1,Math.abs(n),Math.abs(i))}var Zxt=fg,pR=d9,$xt=iSe,eMt=oSe,tMt=WT,rMt=sSe,nMt=lSe,aMt=(function(){var e=aSe();return function(t,r,n,a,i,o){var s,l;for(r||(r=2),n||(n=0),a?l=Math.min(a*r+n,t.length):l=t.length,s=n;s<l;s+=r)e[0]=t[s],e[1]=t[s+1],i(e,e,o),t[s]=e[0],t[s+1]=e[1];return t}})();const iMt=Object.freeze(Object.defineProperty({__proto__:null,add:Ew,angle:uSe,ceil:_xt,clone:Qxt,copy:Fxt,create:aSe,cross:Lxt,dist:tMt,distance:WT,div:eMt,divide:oSe,dot:cSe,equals:qxt,exactEquals:dSe,floor:kxt,forEach:aMt,fromValues:Dxt,inverse:zxt,len:Zxt,length:fg,lerp:Yxt,max:Xh,min:Wh,mul:$xt,multiply:iSe,negate:jxt,normalize:f9,random:Uxt,rotate:Vxt,round:Pxt,scale:ig,scaleAndAdd:Oxt,set:Nxt,signedAngle:Jxt,sqrDist:rMt,sqrLen:nMt,squaredDistance:sSe,squaredLength:lSe,str:Xxt,sub:pR,subtract:d9,transformMat2:Hxt,transformMat2d:Gxt,transformMat3:ASe,transformMat4:Kxt,zero:Wxt},Symbol.toStringTag,{value:"Module"}));function lv(e,t,r){var n=[0,0,0,0,0,0,0,0,0];return G2e(n,r),Vy(e,n,t)}function nD(e,t,r){var n=[0,0,0,0,0,0,0,0,0];return K2e(n,r),Vy(e,n,t)}function h9(e,t,r){var n=[0,0,0,0,0,0,0,0,0];return V2e(n,r),Vy(e,n,t)}function oMt(e,t,r){return Vy(e,r,t)}function Hx(e,t){for(var r=e?[].concat(e):[1,0,0,0,1,0,0,0,1],n=0,a=t.length;n<a;n++){var i=t[n];switch(i[0]){case"t":lv(r,r,[i[1],i[2]]);break;case"s":h9(r,r,[i[1],i[2]]);break;case"r":nD(r,r,i[1]);break;case"m":oMt(r,r,i[1]);break}}return r}function fSe(e,t){return e[0]*t[1]-t[0]*e[1]}function aD(e,t,r){var n=uSe(e,t),a=fSe(e,t)>=0;return r?a?Math.PI*2-n:n:a?n:Math.PI*2-n}function sMt(e,t,r){return r?(e[0]=t[1],e[1]=-1*t[0]):(e[0]=-1*t[1],e[1]=t[0]),e}const lMt=Object.freeze(Object.defineProperty({__proto__:null,angleTo:aD,direction:fSe,leftRotate:nD,leftScale:h9,leftTranslate:lv,transform:Hx,vertical:sMt},Symbol.toStringTag,{value:"Module"})),cMt=Object.freeze(Object.defineProperty({__proto__:null,ext:lMt,mat3:GBt,vec2:iMt,vec3:nSe},Symbol.toStringTag,{value:"Module"}));function Zse(e,t){var r=[],n=e[0],a=e[1],i=e[2],o=e[3],s=e[4],l=e[5],c=e[6],A=e[7],u=e[8],d=t[0],f=t[1],h=t[2],g=t[3],p=t[4],m=t[5],y=t[6],C=t[7],w=t[8];return r[0]=d*n+f*o+h*c,r[1]=d*a+f*s+h*A,r[2]=d*i+f*l+h*u,r[3]=g*n+p*o+m*c,r[4]=g*a+p*s+m*A,r[5]=g*i+p*l+m*u,r[6]=y*n+C*o+w*c,r[7]=y*a+C*s+w*A,r[8]=y*i+C*l+w*u,r}function Pf(e,t){var r=[],n=t[0],a=t[1];return r[0]=e[0]*n+e[3]*a+e[6],r[1]=e[1]*n+e[4]*a+e[7],r}function iD(e){var t=[],r=e[0],n=e[1],a=e[2],i=e[3],o=e[4],s=e[5],l=e[6],c=e[7],A=e[8],u=A*o-s*c,d=-A*i+s*l,f=c*i-o*l,h=r*u+n*d+a*f;return h?(h=1/h,t[0]=u*h,t[1]=(-A*n+a*c)*h,t[2]=(s*n-a*o)*h,t[3]=d*h,t[4]=(A*r-a*l)*h,t[5]=(-s*r+a*i)*h,t[6]=f*h,t[7]=(-c*r+n*l)*h,t[8]=(o*r-n*i)*h,t):null}var pC=Hx,kO="matrix",AMt=["zIndex","capture","visible","type"],uMt=["repeat"],dMt=":",fMt="*";function hMt(e){for(var t=[],r=0;r<e.length;r++)sa(e[r])?t.push([].concat(e[r])):t.push(e[r]);return t}function gMt(e,t){var r={},n=t.attrs;for(var a in e)r[a]=n[a];return r}function pMt(e,t){var r={},n=t.attr();return wr(e,function(a,i){uMt.indexOf(i)===-1&&!Fg(n[i],a)&&(r[i]=a)}),r}function vMt(e,t){if(t.onFrame)return e;var r=t.startTime,n=t.delay,a=t.duration,i=Object.prototype.hasOwnProperty;return wr(e,function(o){r+n<o.startTime+o.delay+o.duration&&a>o.delay&&wr(t.toAttrs,function(s,l){i.call(o.toAttrs,l)&&(delete o.toAttrs[l],delete o.fromAttrs[l])})}),e}var hSe=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;n.attrs={};var a=n.getDefaultAttrs();return xi(a,r.attrs),n.attrs=a,n.initAttrs(a),n.initAnimate(),n}return t.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},t.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},t.prototype.onCanvasChange=function(r){},t.prototype.initAttrs=function(r){},t.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},t.prototype.isGroup=function(){return!1},t.prototype.getParent=function(){return this.get("parent")},t.prototype.getCanvas=function(){return this.get("canvas")},t.prototype.attr=function(){for(var r,n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];var i=n[0],o=n[1];if(!i)return this.attrs;if(fc(i)){for(var s in i)this.setAttr(s,i[s]);return this.afterAttrsChange(i),this}return n.length===2?(this.setAttr(i,o),this.afterAttrsChange((r={},r[i]=o,r)),this):this.attrs[i]},t.prototype.isClipped=function(r,n){var a=this.getClip();return a&&!a.isHit(r,n)},t.prototype.setAttr=function(r,n){var a=this.attrs[r];a!==n&&(this.attrs[r]=n,this.onAttrChange(r,n,a))},t.prototype.onAttrChange=function(r,n,a){r==="matrix"&&this.set("totalMatrix",null)},t.prototype.afterAttrsChange=function(r){if(this.cfg.isClipShape){var n=this.cfg.applyTo;n&&n.onCanvasChange("clip")}else this.onCanvasChange("attr")},t.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},t.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},t.prototype.setZIndex=function(r){this.set("zIndex",r);var n=this.getParent();return n&&n.sort(),this},t.prototype.toFront=function(){var r=this.getParent();if(r){var n=r.getChildren();this.get("el");var a=n.indexOf(this);n.splice(a,1),n.push(this),this.onCanvasChange("zIndex")}},t.prototype.toBack=function(){var r=this.getParent();if(r){var n=r.getChildren();this.get("el");var a=n.indexOf(this);n.splice(a,1),n.unshift(this),this.onCanvasChange("zIndex")}},t.prototype.remove=function(r){r===void 0&&(r=!0);var n=this.getParent();n?(F2e(n.getChildren(),this),n.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),r&&this.destroy()},t.prototype.resetMatrix=function(){this.attr(kO,this.getDefaultMatrix()),this.onCanvasChange("matrix")},t.prototype.getMatrix=function(){return this.attr(kO)},t.prototype.setMatrix=function(r){this.attr(kO,r),this.onCanvasChange("matrix")},t.prototype.getTotalMatrix=function(){var r=this.cfg.totalMatrix;if(!r){var n=this.attr("matrix"),a=this.cfg.parentMatrix;a&&n?r=Zse(a,n):r=n||a,this.set("totalMatrix",r)}return r},t.prototype.applyMatrix=function(r){var n=this.attr("matrix"),a=null;r&&n?a=Zse(r,n):a=n||r,this.set("totalMatrix",a),this.set("parentMatrix",r)},t.prototype.getDefaultMatrix=function(){return null},t.prototype.applyToMatrix=function(r){var n=this.attr("matrix");return n?Pf(n,r):r},t.prototype.invertFromMatrix=function(r){var n=this.attr("matrix");if(n){var a=iD(n);if(a)return Pf(a,r)}return r},t.prototype.setClip=function(r){var n=this.getCanvas(),a=null;if(r){var i=this.getShapeBase(),o=eD(r.type),s=i[o];s&&(a=new s({type:r.type,isClipShape:!0,applyTo:this,attrs:r.attrs,canvas:n}))}return this.set("clipShape",a),this.onCanvasChange("clip"),a},t.prototype.getClip=function(){var r=this.cfg.clipShape;return r||null},t.prototype.clone=function(){var r=this,n=this.attrs,a={};wr(n,function(s,l){sa(n[l])?a[l]=hMt(n[l]):a[l]=n[l]});var i=this.constructor,o=new i({attrs:a});return wr(AMt,function(s){o.set(s,r.get(s))}),o},t.prototype.destroy=function(){var r=this.destroyed;r||(this.attrs={},e.prototype.destroy.call(this))},t.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},t.prototype.animate=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!(!this.get("timeline")&&!this.get("canvas"))){this.set("animating",!0);var a=this.get("timeline");a||(a=this.get("canvas").get("timeline"),this.set("timeline",a));var i=this.get("animations")||[];a.timer||a.initTimer();var o=r[0],s=r[1],l=r[2],c=l===void 0?"easeLinear":l,A=r[3],u=A===void 0?vv:A,d=r[4],f=d===void 0?0:d,h,g,p,m,y;Sa(o)?(h=o,o={}):fc(o)&&o.onFrame&&(h=o.onFrame,g=o.repeat),fc(s)?(y=s,s=y.duration,c=y.easing||"easeLinear",f=y.delay||0,g=y.repeat||g||!1,u=y.callback||vv,p=y.pauseCallback||vv,m=y.resumeCallback||vv):(ti(u)&&(f=u,u=null),Sa(c)?(u=c,c="easeLinear"):c=c||"easeLinear");var C=pMt(o,this),w={fromAttrs:gMt(C,this),toAttrs:C,duration:s,easing:c,repeat:g,callback:u,pauseCallback:p,resumeCallback:m,delay:f,startTime:a.getTime(),id:x2e(),onFrame:h,pathFormatted:!1};i.length>0?i=vMt(i,w):a.addAnimator(this),i.push(w),this.set("animations",i),this.set("_pause",{isPaused:!1})}},t.prototype.stopAnimate=function(r){var n=this;r===void 0&&(r=!0);var a=this.get("animations");wr(a,function(i){r&&(i.onFrame?n.attr(i.onFrame(1)):n.attr(i.toAttrs)),i.callback&&i.callback()}),this.set("animating",!1),this.set("animations",[])},t.prototype.pauseAnimate=function(){var r=this.get("timeline"),n=this.get("animations"),a=r.getTime();return wr(n,function(i){i._paused=!0,i._pauseTime=a,i.pauseCallback&&i.pauseCallback()}),this.set("_pause",{isPaused:!0,pauseTime:a}),this},t.prototype.resumeAnimate=function(){var r=this.get("timeline"),n=r.getTime(),a=this.get("animations"),i=this.get("_pause").pauseTime;return wr(a,function(o){o.startTime=o.startTime+(n-i),o._paused=!1,o._pauseTime=null,o.resumeCallback&&o.resumeCallback()}),this.set("_pause",{isPaused:!1}),this.set("animations",a),this},t.prototype.emitDelegation=function(r,n){var a=this,i=n.propagationPath;this.getEvents();var o;r==="mouseenter"?o=n.fromShape:r==="mouseleave"&&(o=n.toShape);for(var s=function(u){var d=i[u],f=d.get("name");if(f){if((d.isGroup()||d.isCanvas&&d.isCanvas())&&o&&N2e(d,o))return"break";sa(f)?wr(f,function(h){a.emitDelegateEvent(d,h,n)}):l.emitDelegateEvent(d,f,n)}},l=this,c=0;c<i.length;c++){var A=s(c);if(A==="break")break}},t.prototype.emitDelegateEvent=function(r,n,a){var i=this.getEvents(),o=n+dMt+a.type;(i[o]||i[fMt])&&(a.name=o,a.currentTarget=r,a.delegateTarget=this,a.delegateObject=r.get("delegateObject"),this.emit(o,a))},t.prototype.translate=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0);var a=this.getMatrix(),i=pC(a,[["t",r,n]]);return this.setMatrix(i),this},t.prototype.move=function(r,n){var a=this.attr("x")||0,i=this.attr("y")||0;return this.translate(r-a,n-i),this},t.prototype.moveTo=function(r,n){return this.move(r,n)},t.prototype.scale=function(r,n){var a=this.getMatrix(),i=pC(a,[["s",r,n||r]]);return this.setMatrix(i),this},t.prototype.rotate=function(r){var n=this.getMatrix(),a=pC(n,[["r",r]]);return this.setMatrix(a),this},t.prototype.rotateAtStart=function(r){var n=this.attr(),a=n.x,i=n.y,o=this.getMatrix(),s=pC(o,[["t",-a,-i],["r",r],["t",a,i]]);return this.setMatrix(s),this},t.prototype.rotateAtPoint=function(r,n,a){var i=this.getMatrix(),o=pC(i,[["t",-r,-n],["r",a],["t",r,n]]);return this.setMatrix(o),this},t})(rD),$se={},LL="_INDEX";function gSe(e,t){if(e.set("canvas",t),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(n){gSe(n,t)})}}function pSe(e,t){if(e.set("timeline",t),e.isGroup()){var r=e.get("children");r.length&&r.forEach(function(n){pSe(n,t)})}}function mMt(e,t,r){t.set("parent",null),t.set("canvas",null),F2e(e.getChildren(),t)}function EMt(e){return function(t,r){var n=e(t,r);return n===0?t[LL]-r[LL]:n}}var vSe=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isCanvas=function(){return!1},t.prototype.getBBox=function(){var r=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?wr(o,function(l){var c=l.getBBox(),A=c.minX,u=c.maxX,d=c.minY,f=c.maxY;A<r&&(r=A),u>n&&(n=u),d<a&&(a=d),f>i&&(i=f)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},t.prototype.getCanvasBBox=function(){var r=1/0,n=-1/0,a=1/0,i=-1/0,o=this.getChildren().filter(function(l){return l.get("visible")&&(!l.isGroup()||l.isGroup()&&l.getChildren().length>0)});o.length>0?wr(o,function(l){var c=l.getCanvasBBox(),A=c.minX,u=c.maxX,d=c.minY,f=c.maxY;A<r&&(r=A),u>n&&(n=u),d<a&&(a=d),f>i&&(i=f)}):(r=0,n=0,a=0,i=0);var s={x:r,y:a,minX:r,minY:a,maxX:n,maxY:i,width:n-r,height:i-a};return s},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.children=[],r},t.prototype.onAttrChange=function(r,n,a){if(e.prototype.onAttrChange.call(this,r,n,a),r==="matrix"){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},t.prototype.applyMatrix=function(r){var n=this.getTotalMatrix();e.prototype.applyMatrix.call(this,r);var a=this.getTotalMatrix();a!==n&&this._applyChildrenMarix(a)},t.prototype._applyChildrenMarix=function(r){var n=this.getChildren();wr(n,function(a){a.applyMatrix(r)})},t.prototype.addShape=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=r[0],i=r[1];fc(a)?i=a:i.type=a;var o=$se[i.type];o||(o=eD(i.type),$se[i.type]=o);var s=this.getShapeBase(),l=new s[o](i);return this.add(l),l},t.prototype.addGroup=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=r[0],i=r[1],o;if(Sa(a))i?o=new a(i):o=new a({parent:this});else{var s=a||{},l=this.getGroupBase();o=new l(s)}return this.add(o),o},t.prototype.getCanvas=function(){var r;return this.isCanvas()?r=this:r=this.get("canvas"),r},t.prototype.getShape=function(r,n,a){if(!QB(this))return null;var i=this.getChildren(),o;if(this.isCanvas())o=this._findShape(i,r,n,a);else{var s=[r,n,1];s=this.invertFromMatrix(s),this.isClipped(s[0],s[1])||(o=this._findShape(i,s[0],s[1],a))}return o},t.prototype._findShape=function(r,n,a,i){for(var o=null,s=r.length-1;s>=0;s--){var l=r[s];if(QB(l)&&(l.isGroup()?o=l.getShape(n,a,i):l.isHit(n,a)&&(o=l)),o)break}return o},t.prototype.add=function(r){var n=this.getCanvas(),a=this.getChildren(),i=this.get("timeline"),o=r.getParent();o&&mMt(o,r),r.set("parent",this),n&&gSe(r,n),i&&pSe(r,i),a.push(r),r.onCanvasChange("add"),this._applyElementMatrix(r)},t.prototype._applyElementMatrix=function(r){var n=this.getTotalMatrix();n&&r.applyMatrix(n)},t.prototype.getChildren=function(){return this.get("children")||[]},t.prototype.sort=function(){var r=this.getChildren();wr(r,function(n,a){return n[LL]=a,n}),r.sort(EMt(function(n,a){return n.get("zIndex")-a.get("zIndex")})),this.onCanvasChange("sort")},t.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var r=this.getChildren(),n=r.length-1;n>=0;n--)r[n].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},t.prototype.destroy=function(){this.get("destroyed")||(this.clear(),e.prototype.destroy.call(this))},t.prototype.getFirst=function(){return this.getChildByIndex(0)},t.prototype.getLast=function(){var r=this.getChildren();return this.getChildByIndex(r.length-1)},t.prototype.getChildByIndex=function(r){var n=this.getChildren();return n[r]},t.prototype.getCount=function(){var r=this.getChildren();return r.length},t.prototype.contain=function(r){var n=this.getChildren();return n.indexOf(r)>-1},t.prototype.removeChild=function(r,n){n===void 0&&(n=!0),this.contain(r)&&r.remove(n)},t.prototype.findAll=function(r){var n=[],a=this.getChildren();return wr(a,function(i){r(i)&&n.push(i),i.isGroup()&&(n=n.concat(i.findAll(r)))}),n},t.prototype.find=function(r){var n=null,a=this.getChildren();return wr(a,function(i){if(r(i)?n=i:i.isGroup()&&(n=i.find(r)),n)return!1}),n},t.prototype.findById=function(r){return this.find(function(n){return n.get("id")===r})},t.prototype.findByClassName=function(r){return this.find(function(n){return n.get("className")===r})},t.prototype.findAllByName=function(r){return this.findAll(function(n){return n.get("name")===r})},t})(hSe),fy=0,yw=0,vC=0,mSe=1e3,XT,Cw,qT=0,Xv=0,oD=0,DB=typeof performance=="object"&&performance.now?performance:Date,ESe=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ySe(){return Xv||(ESe(yMt),Xv=DB.now()+oD)}function yMt(){Xv=0}function YL(){this._call=this._time=this._next=null}YL.prototype=CSe.prototype={constructor:YL,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?ySe():+r)+(t==null?0:+t),!this._next&&Cw!==this&&(Cw?Cw._next=this:XT=this,Cw=this),this._call=e,this._time=r,UL()},stop:function(){this._call&&(this._call=null,this._time=1/0,UL())}};function CSe(e,t,r){var n=new YL;return n.restart(e,t,r),n}function CMt(){ySe(),++fy;for(var e=XT,t;e;)(t=Xv-e._time)>=0&&e._call.call(null,t),e=e._next;--fy}function ele(){Xv=(qT=DB.now())+oD,fy=yw=0;try{CMt()}finally{fy=0,BMt(),Xv=0}}function wMt(){var e=DB.now(),t=e-qT;t>mSe&&(oD-=t,qT=e)}function BMt(){for(var e,t=XT,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:XT=r);Cw=e,UL(n)}function UL(e){if(!fy){yw&&(yw=clearTimeout(yw));var t=e-Xv;t>24?(e<1/0&&(yw=setTimeout(ele,e-DB.now()-oD)),vC&&(vC=clearInterval(vC))):(vC||(qT=DB.now(),vC=setInterval(wMt,mSe)),fy=1,ESe(ele))}}function g9(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function wSe(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Gx(){}var FB=.7,ZT=1/FB,PE="\\s*([+-]?\\d+)\\s*",NB="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wd="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xMt=/^#([0-9a-f]{3,8})$/,MMt=new RegExp(`^rgb\\(${PE},${PE},${PE}\\)$`),IMt=new RegExp(`^rgb\\(${wd},${wd},${wd}\\)$`),bMt=new RegExp(`^rgba\\(${PE},${PE},${PE},${NB}\\)$`),SMt=new RegExp(`^rgba\\(${wd},${wd},${wd},${NB}\\)$`),RMt=new RegExp(`^hsl\\(${NB},${wd},${wd}\\)$`),TMt=new RegExp(`^hsla\\(${NB},${wd},${wd},${NB}\\)$`),tle={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};g9(Gx,_B,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:rle,formatHex:rle,formatHex8:QMt,formatHsl:DMt,formatRgb:nle,toString:nle});function rle(){return this.rgb().formatHex()}function QMt(){return this.rgb().formatHex8()}function DMt(){return BSe(this).formatHsl()}function nle(){return this.rgb().formatRgb()}function _B(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=xMt.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?ale(t):r===3?new Dl(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?db(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?db(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=MMt.exec(e))?new Dl(t[1],t[2],t[3],1):(t=IMt.exec(e))?new Dl(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=bMt.exec(e))?db(t[1],t[2],t[3],t[4]):(t=SMt.exec(e))?db(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=RMt.exec(e))?sle(t[1],t[2]/100,t[3]/100,1):(t=TMt.exec(e))?sle(t[1],t[2]/100,t[3]/100,t[4]):tle.hasOwnProperty(e)?ale(tle[e]):e==="transparent"?new Dl(NaN,NaN,NaN,0):null}function ale(e){return new Dl(e>>16&255,e>>8&255,e&255,1)}function db(e,t,r,n){return n<=0&&(e=t=r=NaN),new Dl(e,t,r,n)}function FMt(e){return e instanceof Gx||(e=_B(e)),e?(e=e.rgb(),new Dl(e.r,e.g,e.b,e.opacity)):new Dl}function HL(e,t,r,n){return arguments.length===1?FMt(e):new Dl(e,t,r,n??1)}function Dl(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}g9(Dl,HL,wSe(Gx,{brighter(e){return e=e==null?ZT:Math.pow(ZT,e),new Dl(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?FB:Math.pow(FB,e),new Dl(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Dl(Rv(this.r),Rv(this.g),Rv(this.b),$T(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ile,formatHex:ile,formatHex8:NMt,formatRgb:ole,toString:ole}));function ile(){return`#${mv(this.r)}${mv(this.g)}${mv(this.b)}`}function NMt(){return`#${mv(this.r)}${mv(this.g)}${mv(this.b)}${mv((isNaN(this.opacity)?1:this.opacity)*255)}`}function ole(){const e=$T(this.opacity);return`${e===1?"rgb(":"rgba("}${Rv(this.r)}, ${Rv(this.g)}, ${Rv(this.b)}${e===1?")":`, ${e})`}`}function $T(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Rv(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mv(e){return e=Rv(e),(e<16?"0":"")+e.toString(16)}function sle(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new qA(e,t,r,n)}function BSe(e){if(e instanceof qA)return new qA(e.h,e.s,e.l,e.opacity);if(e instanceof Gx||(e=_B(e)),!e)return new qA;if(e instanceof qA)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,a=Math.min(t,r,n),i=Math.max(t,r,n),o=NaN,s=i-a,l=(i+a)/2;return s?(t===i?o=(r-n)/s+(r<n)*6:r===i?o=(n-t)/s+2:o=(t-r)/s+4,s/=l<.5?i+a:2-i-a,o*=60):s=l>0&&l<1?0:o,new qA(o,s,l,e.opacity)}function _Mt(e,t,r,n){return arguments.length===1?BSe(e):new qA(e,t,r,n??1)}function qA(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}g9(qA,_Mt,wSe(Gx,{brighter(e){return e=e==null?ZT:Math.pow(ZT,e),new qA(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?FB:Math.pow(FB,e),new qA(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,a=2*r-n;return new Dl(PO(e>=240?e-240:e+120,a,n),PO(e,a,n),PO(e<120?e+240:e-120,a,n),this.opacity)},clamp(){return new qA(lle(this.h),fb(this.s),fb(this.l),$T(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=$T(this.opacity);return`${e===1?"hsl(":"hsla("}${lle(this.h)}, ${fb(this.s)*100}%, ${fb(this.l)*100}%${e===1?")":`, ${e})`}`}}));function lle(e){return e=(e||0)%360,e<0?e+360:e}function fb(e){return Math.max(0,Math.min(1,e||0))}function PO(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const p9=e=>()=>e;function kMt(e,t){return function(r){return e+r*t}}function PMt(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function OMt(e){return(e=+e)==1?xSe:function(t,r){return r-t?PMt(t,r,e):p9(isNaN(t)?r:t)}}function xSe(e,t){var r=t-e;return r?kMt(e,r):p9(isNaN(e)?t:e)}const cle=(function e(t){var r=OMt(t);function n(a,i){var o=r((a=HL(a)).r,(i=HL(i)).r),s=r(a.g,i.g),l=r(a.b,i.b),c=xSe(a.opacity,i.opacity);return function(A){return a.r=o(A),a.g=s(A),a.b=l(A),a.opacity=c(A),a+""}}return n.gamma=e,n})(1);function MSe(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),a;return function(i){for(a=0;a<r;++a)n[a]=e[a]*(1-i)+t[a]*i;return n}}function ISe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function jMt(e,t){return(ISe(t)?MSe:bSe)(e,t)}function bSe(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,a=new Array(n),i=new Array(r),o;for(o=0;o<n;++o)a[o]=eQ(e[o],t[o]);for(;o<r;++o)i[o]=t[o];return function(s){for(o=0;o<n;++o)i[o]=a[o](s);return i}}function zMt(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function GL(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function LMt(e,t){var r={},n={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?r[a]=eQ(e[a],t[a]):n[a]=t[a];return function(i){for(a in r)n[a]=r[a](i);return n}}var KL=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,OO=new RegExp(KL.source,"g");function YMt(e){return function(){return e}}function UMt(e){return function(t){return e(t)+""}}function HMt(e,t){var r=KL.lastIndex=OO.lastIndex=0,n,a,i,o=-1,s=[],l=[];for(e=e+"",t=t+"";(n=KL.exec(e))&&(a=OO.exec(t));)(i=a.index)>r&&(i=t.slice(r,i),s[o]?s[o]+=i:s[++o]=i),(n=n[0])===(a=a[0])?s[o]?s[o]+=a:s[++o]=a:(s[++o]=null,l.push({i:o,x:GL(n,a)})),r=OO.lastIndex;return r<t.length&&(i=t.slice(r),s[o]?s[o]+=i:s[++o]=i),s.length<2?l[0]?UMt(l[0].x):YMt(t):(t=l.length,function(c){for(var A=0,u;A<t;++A)s[(u=l[A]).i]=u.x(c);return s.join("")})}function eQ(e,t){var r=typeof t,n;return t==null||r==="boolean"?p9(t):(r==="number"?GL:r==="string"?(n=_B(t))?(t=n,cle):HMt:t instanceof _B?cle:t instanceof Date?zMt:ISe(t)?MSe:Array.isArray(t)?bSe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?LMt:GL)(e,t)}function GMt(e){return+e}function KMt(e){return e*e}function VMt(e){return e*(2-e)}function Ale(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function JMt(e){return e*e*e}function WMt(e){return--e*e*e+1}function ule(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var v9=3,XMt=(function e(t){t=+t;function r(n){return Math.pow(n,t)}return r.exponent=e,r})(v9),qMt=(function e(t){t=+t;function r(n){return 1-Math.pow(1-n,t)}return r.exponent=e,r})(v9),dle=(function e(t){t=+t;function r(n){return((n*=2)<=1?Math.pow(n,t):2-Math.pow(2-n,t))/2}return r.exponent=e,r})(v9),SSe=Math.PI,RSe=SSe/2;function ZMt(e){return+e==1?1:1-Math.cos(e*RSe)}function $Mt(e){return Math.sin(e*RSe)}function fle(e){return(1-Math.cos(SSe*e))/2}function Ng(e){return(Math.pow(2,-10*e)-.0009765625)*1.0009775171065494}function eIt(e){return Ng(1-+e)}function tIt(e){return 1-Ng(e)}function hle(e){return((e*=2)<=1?Ng(1-e):2-Ng(e-1))/2}function rIt(e){return 1-Math.sqrt(1-e*e)}function nIt(e){return Math.sqrt(1- --e*e)}function gle(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var VL=4/11,aIt=6/11,iIt=8/11,oIt=3/4,sIt=9/11,lIt=10/11,cIt=15/16,AIt=21/22,uIt=63/64,hb=1/VL/VL;function dIt(e){return 1-kB(1-e)}function kB(e){return(e=+e)<VL?hb*e*e:e<iIt?hb*(e-=aIt)*e+oIt:e<lIt?hb*(e-=sIt)*e+cIt:hb*(e-=AIt)*e+uIt}function fIt(e){return((e*=2)<=1?1-kB(1-e):kB(e-1)+1)/2}var m9=1.70158,hIt=(function e(t){t=+t;function r(n){return(n=+n)*n*(t*(n-1)+n)}return r.overshoot=e,r})(m9),gIt=(function e(t){t=+t;function r(n){return--n*n*((n+1)*t+n)+1}return r.overshoot=e,r})(m9),ple=(function e(t){t=+t;function r(n){return((n*=2)<1?n*n*((t+1)*n-t):(n-=2)*n*((t+1)*n+t)+2)/2}return r.overshoot=e,r})(m9),hy=2*Math.PI,E9=1,y9=.3,pIt=(function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=hy);function a(i){return t*Ng(- --i)*Math.sin((n-i)/r)}return a.amplitude=function(i){return e(i,r*hy)},a.period=function(i){return e(t,i)},a})(E9,y9),vle=(function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=hy);function a(i){return 1-t*Ng(i=+i)*Math.sin((i+n)/r)}return a.amplitude=function(i){return e(i,r*hy)},a.period=function(i){return e(t,i)},a})(E9,y9),vIt=(function e(t,r){var n=Math.asin(1/(t=Math.max(1,t)))*(r/=hy);function a(i){return((i=i*2-1)<0?t*Ng(-i)*Math.sin((n-i)/r):2-t*Ng(i)*Math.sin((n+i)/r))/2}return a.amplitude=function(i){return e(i,r*hy)},a.period=function(i){return e(t,i)},a})(E9,y9);const mIt=Object.freeze(Object.defineProperty({__proto__:null,easeBack:ple,easeBackIn:hIt,easeBackInOut:ple,easeBackOut:gIt,easeBounce:kB,easeBounceIn:dIt,easeBounceInOut:fIt,easeBounceOut:kB,easeCircle:gle,easeCircleIn:rIt,easeCircleInOut:gle,easeCircleOut:nIt,easeCubic:ule,easeCubicIn:JMt,easeCubicInOut:ule,easeCubicOut:WMt,easeElastic:vle,easeElasticIn:pIt,easeElasticInOut:vIt,easeElasticOut:vle,easeExp:hle,easeExpIn:eIt,easeExpInOut:hle,easeExpOut:tIt,easeLinear:GMt,easePoly:dle,easePolyIn:XMt,easePolyInOut:dle,easePolyOut:qMt,easeQuad:Ale,easeQuadIn:KMt,easeQuadInOut:Ale,easeQuadOut:VMt,easeSin:fle,easeSinIn:ZMt,easeSinInOut:fle,easeSinOut:$Mt},Symbol.toStringTag,{value:"Module"}));var TSe={};function EIt(e){return TSe[e.toLowerCase()]||mIt[e]}function QSe(e,t){TSe[e.toLowerCase()]=t}var yIt=function(e){return["fill","stroke","fillStyle","strokeStyle"].includes(e)},CIt=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},mle=[1,0,0,0,1,0,0,0,1];function wIt(e,t,r){var n={},a=t.fromAttrs,i=t.toAttrs;if(!e.destroyed){var o;for(var s in i)if(!Fg(a[s],i[s]))if(s==="path"){var l=i[s],c=a[s];l.length>c.length?(l=hE(i[s]),c=hE(a[s]),c=T2e(c,l),c=OL(c,l),t.fromAttrs.path=c,t.toAttrs.path=l):t.pathFormatted||(l=hE(i[s]),c=hE(a[s]),c=OL(c,l),t.fromAttrs.path=c,t.toAttrs.path=l,t.pathFormatted=!0),n[s]=[];for(var A=0;A<l.length;A++){for(var u=l[A],d=c[A],f=[],h=0;h<u.length;h++)ti(u[h])&&d&&ti(d[h])?(o=eQ(d[h],u[h]),f.push(o(r))):f.push(u[h]);n[s].push(f)}}else if(s==="matrix"){var g=jMt(a[s]||mle,i[s]||mle),p=g(r);n[s]=p}else yIt(s)&&CIt(i[s])?n[s]=i[s]:Sa(i[s])||(o=eQ(a[s],i[s]),n[s]=o(r));e.attr(n)}}function BIt(e,t,r){var n=t.startTime,a=t.delay;if(r<n+a||t._paused)return!1;var i,o=t.duration,s=t.easing,l=EIt(s);if(r=r-n-t.delay,t.repeat)i=r%o/o,i=l(i);else if(i=r/o,i<1)i=l(i);else return t.onFrame?e.attr(t.onFrame(1)):e.attr(t.toAttrs),!0;if(t.onFrame){var c=t.onFrame(i);e.attr(c)}else wIt(e,t,i);return!1}var xIt=(function(){function e(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return e.prototype.initTimer=function(){var t=this,r=!1,n,a,i;this.timer=CSe(function(o){if(t.current=o,t.animators.length>0){for(var s=t.animators.length-1;s>=0;s--){if(n=t.animators[s],n.destroyed){t.removeAnimator(s);continue}if(!n.isAnimatePaused()){a=n.get("animations");for(var l=a.length-1;l>=0;l--)i=a[l],r=BIt(n,i,o),r&&(a.splice(l,1),r=!1,i.callback&&i.callback())}a.length===0&&t.removeAnimator(s)}var c=t.canvas.get("autoDraw");c||t.canvas.draw()}})},e.prototype.addAnimator=function(t){this.animators.push(t)},e.prototype.removeAnimator=function(t){this.animators.splice(t,1)},e.prototype.isAnimating=function(){return!!this.animators.length},e.prototype.stop=function(){this.timer&&this.timer.stop()},e.prototype.stopAllAnimations=function(t){t===void 0&&(t=!0),this.animators.forEach(function(r){r.stopAnimate(t)}),this.animators=[],this.canvas.draw()},e.prototype.getTime=function(){return this.current},e})(),MIt=40,Ele=0,yle=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Cle(e,t,r){r.name=t,r.target=e,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}function IIt(e,t,r){if(r.bubbles){var n=void 0,a=!1;if(t==="mouseenter"?(n=r.fromShape,a=!0):t==="mouseleave"&&(a=!0,n=r.toShape),e.isCanvas()&&a)return;if(n&&N2e(e,n)){r.bubbles=!1;return}r.name=t,r.currentTarget=e,r.delegateTarget=e,e.emit(t,r)}}var bIt=(function(){function e(t){var r=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(n){var a=n.type;r._triggerEvent(a,n)},this._onDocumentMove=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&(r.dragging||r.currentShape)){var o=r._getPointInfo(n);r.dragging&&r._emitEvent("drag",n,o,r.draggingShape)}},this._onDocumentMouseUp=function(n){var a=r.canvas,i=a.get("el");if(i!==n.target&&r.dragging){var o=r._getPointInfo(n);r.draggingShape&&r._emitEvent("drop",n,o,null),r._emitEvent("dragend",n,o,r.draggingShape),r._afterDrag(r.draggingShape,o,n)}},this.canvas=t.canvas}return e.prototype.init=function(){this._bindEvents()},e.prototype._bindEvents=function(){var t=this,r=this.canvas.get("el");wr(yle,function(n){r.addEventListener(n,t._eventCallback)}),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._clearEvents=function(){var t=this,r=this.canvas.get("el");wr(yle,function(n){r.removeEventListener(n,t._eventCallback)}),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},e.prototype._getEventObj=function(t,r,n,a,i,o){var s=new tD(t,r);return s.fromShape=i,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(a),s},e.prototype._getShape=function(t,r){return this.canvas.getShape(t.x,t.y,r)},e.prototype._getPointInfo=function(t){var r=this.canvas,n=r.getClientByEvent(t),a=r.getPointByEvent(t);return{x:a.x,y:a.y,clientX:n.x,clientY:n.y}},e.prototype._triggerEvent=function(t,r){var n=this._getPointInfo(r),a=this._getShape(n,r),i=this["_on"+t],o=!1;if(i)i.call(this,n,a,r);else{var s=this.currentShape;t==="mouseenter"||t==="dragenter"||t==="mouseover"?(this._emitEvent(t,r,n,null,null,a),a&&this._emitEvent(t,r,n,a,null,a),t==="mouseenter"&&this.draggingShape&&this._emitEvent("dragenter",r,n,null)):t==="mouseleave"||t==="dragleave"||t==="mouseout"?(o=!0,s&&this._emitEvent(t,r,n,s,s,null),this._emitEvent(t,r,n,null,s,null),t==="mouseleave"&&this.draggingShape&&this._emitEvent("dragleave",r,n,null)):this._emitEvent(t,r,n,a,null,null)}if(o||(this.currentShape=a),a&&!a.get("destroyed")){var l=this.canvas,c=l.get("el");c.style.cursor=a.attr("cursor")||l.get("cursor")}},e.prototype._onmousedown=function(t,r,n){n.button===Ele&&(this.mousedownShape=r,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,r,null,null)},e.prototype._emitMouseoverEvents=function(t,r,n,a){var i=this.canvas.get("el");n!==a&&(n&&(this._emitEvent("mouseout",t,r,n,n,a),this._emitEvent("mouseleave",t,r,n,n,a),(!a||a.get("destroyed"))&&(i.style.cursor=this.canvas.get("cursor"))),a&&(this._emitEvent("mouseover",t,r,a,n,a),this._emitEvent("mouseenter",t,r,a,n,a)))},e.prototype._emitDragoverEvents=function(t,r,n,a,i){a?(a!==n&&(n&&this._emitEvent("dragleave",t,r,n,n,a),this._emitEvent("dragenter",t,r,a,n,a)),i||this._emitEvent("dragover",t,r,a)):n&&this._emitEvent("dragleave",t,r,n,n,a),i&&this._emitEvent("dragover",t,r,a)},e.prototype._afterDrag=function(t,r,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var a=this._getShape(r,n);a!==t&&this._emitMouseoverEvents(n,r,t,a),this.currentShape=a},e.prototype._onmouseup=function(t,r,n){if(n.button===Ele){var a=this.draggingShape;this.dragging?(a&&this._emitEvent("drop",n,t,r),this._emitEvent("dragend",n,t,a),this._afterDrag(a,t,n)):(this._emitEvent("mouseup",n,t,r),r===this.mousedownShape&&this._emitEvent("click",n,t,r),this.mousedownShape=null,this.mousedownPoint=null)}},e.prototype._ondragover=function(t,r,n){n.preventDefault();var a=this.currentShape;this._emitDragoverEvents(n,t,a,r,!0)},e.prototype._onmousemove=function(t,r,n){var a=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,r,!1),this._emitEvent("drag",n,t,o);else{var s=this.mousedownPoint;if(s){var l=this.mousedownShape,c=n.timeStamp,A=c-this.mousedownTimeStamp,u=s.clientX-t.clientX,d=s.clientY-t.clientY,f=u*u+d*d;A>120||f>MIt?l&&l.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!l&&a.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,r),this._emitEvent("mousemove",n,t,r)):(this._emitMouseoverEvents(n,t,i,r),this._emitEvent("mousemove",n,t,r))}else this._emitMouseoverEvents(n,t,i,r),this._emitEvent("mousemove",n,t,r)}},e.prototype._emitEvent=function(t,r,n,a,i,o){var s=this._getEventObj(t,r,n,a,i,o);if(a){s.shape=a,Cle(a,t,s);for(var l=a.getParent();l;)l.emitDelegation(t,s),s.propagationStopped||IIt(l,t,s),s.propagationPath.push(l),l=l.getParent()}else{var c=this.canvas;Cle(c,t,s)}},e.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},e})(),wle="px",Ble=z2e(),SIt=Ble&&Ble.name==="firefox",C9=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.cursor="default",r.supportCSSTransform=!1,r},t.prototype.initContainer=function(){var r=this.get("container");Pa(r)&&(r=document.getElementById(r),this.set("container",r))},t.prototype.initDom=function(){var r=this.createDom();this.set("el",r);var n=this.get("container");n.appendChild(r),this.setDOMSize(this.get("width"),this.get("height"))},t.prototype.initEvents=function(){var r=new bIt({canvas:this});r.init(),this.set("eventController",r)},t.prototype.initTimeline=function(){var r=new xIt(this);this.set("timeline",r)},t.prototype.setDOMSize=function(r,n){var a=this.get("el");Jse&&(a.style.width=r+wle,a.style.height=n+wle)},t.prototype.changeSize=function(r,n){this.setDOMSize(r,n),this.set("width",r),this.set("height",n),this.onCanvasChange("changeSize")},t.prototype.getRenderer=function(){return this.get("renderer")},t.prototype.getCursor=function(){return this.get("cursor")},t.prototype.setCursor=function(r){this.set("cursor",r);var n=this.get("el");Jse&&n&&(n.style.cursor=r)},t.prototype.getPointByEvent=function(r){var n=this.get("supportCSSTransform");if(n){if(SIt&&!zr(r.layerX)&&r.layerX!==r.offsetX)return{x:r.layerX,y:r.layerY};if(!zr(r.offsetX))return{x:r.offsetX,y:r.offsetY}}var a=this.getClientByEvent(r),i=a.x,o=a.y;return this.getPointByClient(i,o)},t.prototype.getClientByEvent=function(r){var n=r;return r.touches&&(r.type==="touchend"?n=r.changedTouches[0]:n=r.touches[0]),{x:n.clientX,y:n.clientY}},t.prototype.getPointByClient=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r-i.left,y:n-i.top}},t.prototype.getClientByPoint=function(r,n){var a=this.get("el"),i=a.getBoundingClientRect();return{x:r+i.left,y:n+i.top}},t.prototype.draw=function(){},t.prototype.removeDom=function(){var r=this.get("el");r.parentNode.removeChild(r)},t.prototype.clearEvents=function(){var r=this.get("eventController");r.destroy()},t.prototype.isCanvas=function(){return!0},t.prototype.getParent=function(){return null},t.prototype.destroy=function(){var r=this.get("timeline");this.get("destroyed")||(this.clear(),r&&r.stop(),this.clearEvents(),this.removeDom(),e.prototype.destroy.call(this))},t})(vSe),w9=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isGroup=function(){return!0},t.prototype.isEntityGroup=function(){return!1},t.prototype.clone=function(){for(var r=e.prototype.clone.call(this),n=this.getChildren(),a=0;a<n.length;a++){var i=n[a];r.add(i.clone())}return r},t})(vSe),B9=(function(e){en(t,e);function t(r){return e.call(this,r)||this}return t.prototype._isInBBox=function(r,n){var a=this.getBBox();return a.minX<=r&&a.maxX>=r&&a.minY<=n&&a.maxY>=n},t.prototype.afterAttrsChange=function(r){e.prototype.afterAttrsChange.call(this,r),this.clearCacheBBox()},t.prototype.getBBox=function(){var r=this.cfg.bbox;return r||(r=this.calculateBBox(),this.set("bbox",r)),r},t.prototype.getCanvasBBox=function(){var r=this.cfg.canvasBBox;return r||(r=this.calculateCanvasBBox(),this.set("canvasBBox",r)),r},t.prototype.applyMatrix=function(r){e.prototype.applyMatrix.call(this,r),this.set("canvasBBox",null)},t.prototype.calculateCanvasBBox=function(){var r=this.getBBox(),n=this.getTotalMatrix(),a=r.minX,i=r.minY,o=r.maxX,s=r.maxY;if(n){var l=Pf(n,[r.minX,r.minY]),c=Pf(n,[r.maxX,r.minY]),A=Pf(n,[r.minX,r.maxY]),u=Pf(n,[r.maxX,r.maxY]);a=Math.min(l[0],c[0],A[0],u[0]),o=Math.max(l[0],c[0],A[0],u[0]),i=Math.min(l[1],c[1],A[1],u[1]),s=Math.max(l[1],c[1],A[1],u[1])}var d=this.attrs;if(d.shadowColor){var f=d.shadowBlur,h=f===void 0?0:f,g=d.shadowOffsetX,p=g===void 0?0:g,m=d.shadowOffsetY,y=m===void 0?0:m,C=a-h+p,w=o+h+p,B=i-h+y,x=s+h+y;a=Math.min(a,C),o=Math.max(o,w),i=Math.min(i,B),s=Math.max(s,x)}return{x:a,y:i,minX:a,minY:i,maxX:o,maxY:s,width:o-a,height:s-i}},t.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},t.prototype.isClipShape=function(){return this.get("isClipShape")},t.prototype.isInShape=function(r,n){return!1},t.prototype.isOnlyHitBox=function(){return!1},t.prototype.isHit=function(r,n){var a=this.get("startArrowShape"),i=this.get("endArrowShape"),o=[r,n,1];o=this.invertFromMatrix(o);var s=o[0],l=o[1],c=this._isInBBox(s,l);return this.isOnlyHitBox()?c:!!(c&&!this.isClipped(s,l)&&(this.isInShape(s,l)||a&&a.isHit(s,l)||i&&i.isHit(s,l)))},t})(hSe),DSe=new Map;function fA(e,t){DSe.set(e,t)}function x9(e){return DSe.get(e)}function FSe(e){var t=e.attr(),r=t.x,n=t.y,a=t.width,i=t.height;return{x:r,y:n,width:a,height:i}}function NSe(e){var t=e.attr(),r=t.x,n=t.y,a=t.r;return{x:r-a,y:n-a,width:a*2,height:a*2}}function As(e,t,r,n){var a=e-r,i=t-n;return Math.sqrt(a*a+i*i)}function Kw(e,t){return Math.abs(e-t)<.001}function wm(e,t){var r=iA(e),n=iA(t),a=aA(e),i=aA(t);return{x:r,y:n,width:a-r,height:i-n}}function RIt(e,t,r,n){return{minX:iA([e,r]),maxX:aA([e,r]),minY:iA([t,n]),maxY:aA([t,n])}}function Kx(e){return(e+Math.PI*2)%(Math.PI*2)}const TIt=Object.freeze(Object.defineProperty({__proto__:null,distance:As,getBBoxByArray:wm,getBBoxRange:RIt,isNumberEqual:Kw,piMod:Kx},Symbol.toStringTag,{value:"Module"})),il={box:function(e,t,r,n){return wm([e,r],[t,n])},length:function(e,t,r,n){return As(e,t,r,n)},pointAt:function(e,t,r,n,a){return{x:(1-a)*e+a*r,y:(1-a)*t+a*n}},pointDistance:function(e,t,r,n,a,i){var o=(r-e)*(a-e)+(n-t)*(i-t);if(o<0)return As(e,t,a,i);var s=(r-e)*(r-e)+(n-t)*(n-t);return o>s?As(r,n,a,i):this.pointToLine(e,t,r,n,a,i)},pointToLine:function(e,t,r,n,a,i){var o=[r-e,n-t];if(dSe(o,[0,0]))return Math.sqrt((a-e)*(a-e)+(i-t)*(i-t));var s=[-o[1],o[0]];f9(s,s);var l=[a-e,i-t];return Math.abs(cSe(l,s))},tangentAngle:function(e,t,r,n){return Math.atan2(n-t,r-e)}};var QIt=1e-4;function _Se(e,t,r,n,a,i){var o,s=1/0,l=[r,n],c=20;i&&i>200&&(c=i/10);for(var A=1/c,u=A/10,d=0;d<=c;d++){var f=d*A,h=[a.apply(null,e.concat([f])),a.apply(null,t.concat([f]))],g=As(l[0],l[1],h[0],h[1]);g<s&&(o=f,s=g)}if(o===0)return{x:e[0],y:t[0]};if(o===1){var p=e.length;return{x:e[p-1],y:t[p-1]}}s=1/0;for(var d=0;d<32&&!(u<QIt);d++){var m=o-u,y=o+u,h=[a.apply(null,e.concat([m])),a.apply(null,t.concat([m]))],g=As(l[0],l[1],h[0],h[1]);if(m>=0&&g<s)o=m,s=g;else{var C=[a.apply(null,e.concat([y])),a.apply(null,t.concat([y]))],w=As(l[0],l[1],C[0],C[1]);y<=1&&w<s?(o=y,s=w):u*=.5}}return{x:a.apply(null,e.concat([o])),y:a.apply(null,t.concat([o]))}}function DIt(e,t){for(var r=0,n=e.length,a=0;a<n;a++){var i=e[a],o=t[a],s=e[(a+1)%n],l=t[(a+1)%n];r+=As(i,o,s,l)}return r/2}function rg(e,t,r,n){var a=1-n;return a*a*e+2*n*a*t+n*n*r}function xle(e,t,r){var n=e+r-2*t;if(Kw(n,0))return[.5];var a=(e-t)/n;return a<=1&&a>=0?[a]:[]}function Mle(e,t,r,n){return 2*(1-n)*(t-e)+2*n*(r-t)}function kSe(e,t,r,n,a,i,o){var s=rg(e,r,a,o),l=rg(t,n,i,o),c=il.pointAt(e,t,r,n,o),A=il.pointAt(r,n,a,i,o);return[[e,t,c.x,c.y,s,l],[s,l,A.x,A.y,a,i]]}function JL(e,t,r,n,a,i,o){if(o===0)return(As(e,t,r,n)+As(r,n,a,i)+As(e,t,a,i))/2;var s=kSe(e,t,r,n,a,i,.5),l=s[0],c=s[1];return l.push(o-1),c.push(o-1),JL.apply(null,l)+JL.apply(null,c)}const M9={box:function(e,t,r,n,a,i){var o=xle(e,r,a)[0],s=xle(t,n,i)[0],l=[e,a],c=[t,i];return o!==void 0&&l.push(rg(e,r,a,o)),s!==void 0&&c.push(rg(t,n,i,s)),wm(l,c)},length:function(e,t,r,n,a,i){return JL(e,t,r,n,a,i,3)},nearestPoint:function(e,t,r,n,a,i,o,s){return _Se([e,r,a],[t,n,i],o,s,rg)},pointDistance:function(e,t,r,n,a,i,o,s){var l=this.nearestPoint(e,t,r,n,a,i,o,s);return As(l.x,l.y,o,s)},interpolationAt:rg,pointAt:function(e,t,r,n,a,i,o){return{x:rg(e,r,a,o),y:rg(t,n,i,o)}},divide:function(e,t,r,n,a,i,o){return kSe(e,t,r,n,a,i,o)},tangentAngle:function(e,t,r,n,a,i,o){var s=Mle(e,r,a,o),l=Mle(t,n,i,o),c=Math.atan2(l,s);return Kx(c)}};function ng(e,t,r,n,a){var i=1-a;return i*i*i*e+3*t*a*i*i+3*r*a*a*i+n*a*a*a}function Ile(e,t,r,n,a){var i=1-a;return 3*(i*i*(t-e)+2*i*a*(r-t)+a*a*(n-r))}function jO(e,t,r,n){var a=-3*e+9*t-9*r+3*n,i=6*e-12*t+6*r,o=3*t-3*e,s=[],l,c,A;if(Kw(a,0))Kw(i,0)||(l=-o/i,l>=0&&l<=1&&s.push(l));else{var u=i*i-4*a*o;Kw(u,0)?s.push(-i/(2*a)):u>0&&(A=Math.sqrt(u),l=(-i+A)/(2*a),c=(-i-A)/(2*a),l>=0&&l<=1&&s.push(l),c>=0&&c<=1&&s.push(c))}return s}function PSe(e,t,r,n,a,i,o,s,l){var c=ng(e,r,a,o,l),A=ng(t,n,i,s,l),u=il.pointAt(e,t,r,n,l),d=il.pointAt(r,n,a,i,l),f=il.pointAt(a,i,o,s,l),h=il.pointAt(u.x,u.y,d.x,d.y,l),g=il.pointAt(d.x,d.y,f.x,f.y,l);return[[e,t,u.x,u.y,h.x,h.y,c,A],[c,A,g.x,g.y,f.x,f.y,o,s]]}function WL(e,t,r,n,a,i,o,s,l){if(l===0)return DIt([e,r,a,o],[t,n,i,s]);var c=PSe(e,t,r,n,a,i,o,s,.5),A=c[0],u=c[1];return A.push(l-1),u.push(l-1),WL.apply(null,A)+WL.apply(null,u)}const OE={extrema:jO,box:function(e,t,r,n,a,i,o,s){for(var l=[e,o],c=[t,s],A=jO(e,r,a,o),u=jO(t,n,i,s),d=0;d<A.length;d++)l.push(ng(e,r,a,o,A[d]));for(var d=0;d<u.length;d++)c.push(ng(t,n,i,s,u[d]));return wm(l,c)},length:function(e,t,r,n,a,i,o,s){return WL(e,t,r,n,a,i,o,s,3)},nearestPoint:function(e,t,r,n,a,i,o,s,l,c,A){return _Se([e,r,a,o],[t,n,i,s],l,c,ng,A)},pointDistance:function(e,t,r,n,a,i,o,s,l,c,A){var u=this.nearestPoint(e,t,r,n,a,i,o,s,l,c,A);return As(u.x,u.y,l,c)},interpolationAt:ng,pointAt:function(e,t,r,n,a,i,o,s,l){return{x:ng(e,r,a,o,l),y:ng(t,n,i,s,l)}},divide:function(e,t,r,n,a,i,o,s,l){return PSe(e,t,r,n,a,i,o,s,l)},tangentAngle:function(e,t,r,n,a,i,o,s,l){var c=Ile(e,r,a,o,l),A=Ile(t,n,i,s,l);return Kx(Math.atan2(A,c))}};function ble(e,t){var r=Math.abs(e);return t>0?r:r*-1}const FIt={box:function(e,t,r,n){return{x:e-r,y:t-n,width:r*2,height:n*2}},length:function(e,t,r,n){return Math.PI*(3*(r+n)-Math.sqrt((3*r+n)*(r+3*n)))},nearestPoint:function(e,t,r,n,a,i){var o=r,s=n;if(o===0||s===0)return{x:e,y:t};for(var l=a-e,c=i-t,A=Math.abs(l),u=Math.abs(c),d=o*o,f=s*s,h=Math.PI/4,g,p,m=0;m<4;m++){g=o*Math.cos(h),p=s*Math.sin(h);var y=(d-f)*Math.pow(Math.cos(h),3)/o,C=(f-d)*Math.pow(Math.sin(h),3)/s,w=g-y,B=p-C,x=A-y,M=u-C,S=Math.hypot(B,w),R=Math.hypot(M,x),b=S*Math.asin((w*M-B*x)/(S*R)),T=b/Math.sqrt(d+f-g*g-p*p);h+=T,h=Math.min(Math.PI/2,Math.max(0,h))}return{x:e+ble(g,l),y:t+ble(p,c)}},pointDistance:function(e,t,r,n,a,i){var o=this.nearestPoint(e,t,r,n,a,i);return As(o.x,o.y,a,i)},pointAt:function(e,t,r,n,a){var i=2*Math.PI*a;return{x:e+r*Math.cos(i),y:t+n*Math.sin(i)}},tangentAngle:function(e,t,r,n,a){var i=2*Math.PI*a,o=Math.atan2(n*Math.cos(i),-r*Math.sin(i));return Kx(o)}};function NIt(e,t,r,n,a,i,o,s){return-1*r*Math.cos(a)*Math.sin(s)-n*Math.sin(a)*Math.cos(s)}function _It(e,t,r,n,a,i,o,s){return-1*r*Math.sin(a)*Math.sin(s)+n*Math.cos(a)*Math.cos(s)}function kIt(e,t,r){return Math.atan(-t/e*Math.tan(r))}function PIt(e,t,r){return Math.atan(t/(e*Math.tan(r)))}function Sle(e,t,r,n,a,i){return r*Math.cos(a)*Math.cos(i)-n*Math.sin(a)*Math.sin(i)+e}function Rle(e,t,r,n,a,i){return r*Math.sin(a)*Math.cos(i)+n*Math.cos(a)*Math.sin(i)+t}function OIt(e,t,r,n){var a=Math.atan2(n*e,r*t);return(a+Math.PI*2)%(Math.PI*2)}function Tle(e,t,r){return{x:e*Math.cos(r),y:t*Math.sin(r)}}function Qle(e,t,r){var n=Math.cos(r),a=Math.sin(r);return[e*n-t*a,e*a+t*n]}const OSe={box:function(e,t,r,n,a,i,o){for(var s=kIt(r,n,a),l=1/0,c=-1/0,A=[i,o],u=-Math.PI*2;u<=Math.PI*2;u+=Math.PI){var d=s+u;i<o?i<d&&d<o&&A.push(d):o<d&&d<i&&A.push(d)}for(var u=0;u<A.length;u++){var f=Sle(e,t,r,n,a,A[u]);f<l&&(l=f),f>c&&(c=f)}for(var h=PIt(r,n,a),g=1/0,p=-1/0,m=[i,o],u=-Math.PI*2;u<=Math.PI*2;u+=Math.PI){var y=h+u;i<o?i<y&&y<o&&m.push(y):o<y&&y<i&&m.push(y)}for(var u=0;u<m.length;u++){var C=Rle(e,t,r,n,a,m[u]);C<g&&(g=C),C>p&&(p=C)}return{x:l,y:g,width:c-l,height:p-g}},length:function(e,t,r,n,a,i,o){},nearestPoint:function(e,t,r,n,a,i,o,s,l){var c=Qle(s-e,l-t,-a),A=c[0],u=c[1],d=FIt.nearestPoint(0,0,r,n,A,u),f=OIt(r,n,d.x,d.y);f<i?d=Tle(r,n,i):f>o&&(d=Tle(r,n,o));var h=Qle(d.x,d.y,a);return{x:h[0]+e,y:h[1]+t}},pointDistance:function(e,t,r,n,a,i,o,s,l){var c=this.nearestPoint(e,t,r,n,s,l);return As(c.x,c.y,s,l)},pointAt:function(e,t,r,n,a,i,o,s){var l=(o-i)*s+i;return{x:Sle(e,t,r,n,a,l),y:Rle(e,t,r,n,a,l)}},tangentAngle:function(e,t,r,n,a,i,o,s){var l=(o-i)*s+i,c=NIt(e,t,r,n,a,i,o,l),A=_It(e,t,r,n,a,i,o,l);return Kx(Math.atan2(A,c))}};function jSe(e){for(var t=0,r=[],n=0;n<e.length-1;n++){var a=e[n],i=e[n+1],o=As(a[0],a[1],i[0],i[1]),s={from:a,to:i,length:o};r.push(s),t+=o}return{segments:r,totalLength:t}}function zSe(e){if(e.length<2)return 0;for(var t=0,r=0;r<e.length-1;r++){var n=e[r],a=e[r+1];t+=As(n[0],n[1],a[0],a[1])}return t}function LSe(e,t){if(t>1||t<0||e.length<2)return null;var r=jSe(e),n=r.segments,a=r.totalLength;if(a===0)return{x:e[0][0],y:e[0][1]};for(var i=0,o=null,s=0;s<n.length;s++){var l=n[s],c=l.from,A=l.to,u=l.length/a;if(t>=i&&t<=i+u){var d=(t-i)/u;o=il.pointAt(c[0],c[1],A[0],A[1],d);break}i+=u}return o}function YSe(e,t){if(t>1||t<0||e.length<2)return 0;for(var r=jSe(e),n=r.segments,a=r.totalLength,i=0,o=0,s=0;s<n.length;s++){var l=n[s],c=l.from,A=l.to,u=l.length/a;if(t>=i&&t<=i+u){o=Math.atan2(A[1]-c[1],A[0]-c[0]);break}i+=u}return o}function USe(e,t,r){for(var n=1/0,a=0;a<e.length-1;a++){var i=e[a],o=e[a+1],s=il.pointDistance(i[0],i[1],o[0],o[1],t,r);s<n&&(n=s)}return n}const I9={box:function(e){for(var t=[],r=[],n=0;n<e.length;n++){var a=e[n];t.push(a[0]),r.push(a[1])}return wm(t,r)},length:function(e){return zSe(e)},pointAt:function(e,t){return LSe(e,t)},pointDistance:function(e,t,r){return USe(e,t,r)},tangentAngle:function(e,t){return YSe(e,t)}};function gb(e){var t=e.slice(0);return e.length&&t.push(e[0]),t}const jIt={box:function(e){return I9.box(e)},length:function(e){return zSe(gb(e))},pointAt:function(e,t){return LSe(gb(e),t)},pointDistance:function(e,t,r){return USe(gb(e),t,r)},tangentAngle:function(e,t){return YSe(gb(e),t)}},zIt=Object.freeze(Object.defineProperty({__proto__:null,Arc:OSe,Cubic:OE,Line:il,Polygon:jIt,Polyline:I9,Quad:M9,Util:TIt},Symbol.toStringTag,{value:"Module"}));function Dle(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function b9(e,t){var r=e.get("startArrowShape"),n=e.get("endArrowShape"),a=null,i=null;return r&&(a=r.getCanvasBBox(),t=Dle(t,a)),n&&(i=n.getCanvasBBox(),t=Dle(t,i)),t}function LIt(e){for(var t=e.attr(),r=t.points,n=[],a=[],i=0;i<r.length;i++){var o=r[i];n.push(o[0]),a.push(o[1])}var s=wm(n,a),l=s.x,c=s.y,A=s.width,u=s.height,d={minX:l,minY:c,maxX:l+A,maxY:c+u};return d=b9(e,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}}function YIt(e){for(var t=e.attr(),r=t.points,n=[],a=[],i=0;i<r.length;i++){var o=r[i];n.push(o[0]),a.push(o[1])}return wm(n,a)}var zO=null;function sD(){if(!zO){var e=document.createElement("canvas");e.width=1,e.height=1,zO=e.getContext("2d")}return zO}function lD(e,t,r){var n=1;if(Pa(e)&&(n=e.split(`
`).length),n>1){var a=UIt(t,r);return t*n+a*(n-1)}return t}function UIt(e,t){return t?t-e:e*.14}function HIt(e,t){var r=sD(),n=0;if(zr(e)||e==="")return n;if(r.save(),r.font=t,Pa(e)&&e.includes(`
`)){var a=e.split(`
`);wr(a,function(i){var o=r.measureText(i).width;n<o&&(n=o)})}else n=r.measureText(e).width;return r.restore(),n}function cD(e){var t=e.fontSize,r=e.fontFamily,n=e.fontWeight,a=e.fontStyle,i=e.fontVariant;return[a,i,n,t+"px",r].join(" ").trim()}function GIt(e){var t=e.attr(),r=t.x,n=t.y,a=t.text,i=t.fontSize,o=t.lineHeight,s=t.font;s||(s=cD(t));var l=HIt(a,s),c;if(!l)c={x:r,y:n,width:0,height:0};else{var A=t.textAlign,u=t.textBaseline,d=lD(a,i,o),f={x:r,y:n-d};A&&(A==="end"||A==="right"?f.x-=l:A==="center"&&(f.x-=l/2)),u&&(u==="top"?f.y+=d:u==="middle"&&(f.y+=d/2)),c={x:f.x,y:f.y,width:l,height:d}}return c}var KIt=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig,VIt=/[^\s\,]+/ig;function HSe(e){var t=e||[];if(sa(t))return t;if(Pa(t))return t=t.match(KIt),wr(t,function(r,n){if(r=r.match(VIt),r[0].length>1){var a=r[0].charAt(0);r.splice(1,0,r[0].substr(1)),r[0]=a}wr(r,function(i,o){isNaN(i)||(r[o]=+i)}),t[n]=r}),t}function JIt(e,t,r,n){var a=[],i=!!n,o,s,l,c,A,u,d;if(i){l=n[0],c=n[1];for(var f=0,h=e.length;f<h;f+=1){var g=e[f];l=Wh([0,0],l,g),c=Xh([0,0],c,g)}}for(var f=0,p=e.length;f<p;f+=1){var g=e[f];if(f===0&&!r)d=g;else if(f===p-1&&!r)u=g,a.push(d),a.push(u);else{var m=[f?f-1:p-1,f-1][r?0:1];o=e[m],s=e[r?(f+1)%p:f+1];var y=[0,0];y=pR(y,s,o),y=ig(y,y,t);var C=WT(g,o),w=WT(g,s),B=C+w;B!==0&&(C/=B,w/=B);var x=ig([0,0],y,-C),M=ig([0,0],y,w);u=Ew([0,0],g,x),A=Ew([0,0],g,M),A=Wh([0,0],A,Xh([0,0],s,g)),A=Xh([0,0],A,Wh([0,0],s,g)),x=pR([0,0],A,g),x=ig([0,0],x,-C/w),u=Ew([0,0],g,x),u=Wh([0,0],u,Xh([0,0],o,g)),u=Xh([0,0],u,Wh([0,0],o,g)),M=pR([0,0],g,u),M=ig([0,0],M,w/C),A=Ew([0,0],g,M),i&&(u=Xh([0,0],u,l),u=Wh([0,0],u,c),A=Xh([0,0],A,l),A=Wh([0,0],A,c)),a.push(d),a.push(u),d=A}}return r&&a.push(a.shift()),a}function GSe(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=[[0,0],[1,1]]);for(var n=!!t,a=[],i=0,o=e.length;i<o;i+=2)a.push([e[i],e[i+1]]);for(var s=JIt(a,.4,n,r),l=a.length,c=[],A,u,d,i=0;i<l-1;i+=1)A=s[i*2],u=s[i*2+1],d=a[i+1],c.push(["C",A[0],A[1],u[0],u[1],d[0],d[1]]);return n&&(A=s[l],u=s[l+1],d=a[0],c.push(["C",A[0],A[1],u[0],u[1],d[0],d[1]])),c}function WIt(e,t){var r=[],n=[];function a(i,o){if(i.length===1)r.push(i[0]),n.push(i[0]);else{for(var s=[],l=0;l<i.length-1;l++)l===0&&r.push(i[0]),l===i.length-2&&n.push(i[l+1]),s[l]=[(1-o)*i[l][0]+o*i[l+1][0],(1-o)*i[l][1]+o*i[l+1][1]];a(s,o)}}return e.length&&a(e,t),{left:r,right:n.reverse()}}function XIt(e,t,r){var n=[[e[1],e[2]]];r=r||2;var a=[];t[0]==="A"?(n.push(t[6]),n.push(t[7])):t[0]==="C"?(n.push([t[1],t[2]]),n.push([t[3],t[4]]),n.push([t[5],t[6]])):t[0]==="S"||t[0]==="Q"?(n.push([t[1],t[2]]),n.push([t[3],t[4]])):n.push([t[1],t[2]]);for(var i=n,o=1/r,s=0;s<r-1;s++){var l=o/(1-o*s),c=WIt(i,l);a.push(c.left),i=c.right}a.push(i);var A=a.map(function(u){var d=[];return u.length===4&&(d.push("C"),d=d.concat(u[2])),u.length>=3&&(u.length===3&&d.push("Q"),d=d.concat(u[1])),u.length===2&&d.push("L"),d=d.concat(u[u.length-1]),d});return A}function qIt(e,t,r){if(r===1)return[[].concat(e)];var n=[];if(t[0]==="L"||t[0]==="C"||t[0]==="Q")n=n.concat(XIt(e,t,r));else{var a=[].concat(e);a[0]==="M"&&(a[0]="L");for(var i=0;i<=r-1;i++)n.push(a)}return n}function ZIt(e,t){if(e.length===1)return e;var r=e.length-1,n=t.length-1,a=r/n,i=[];if(e.length===1&&e[0][0]==="M"){for(var o=0;o<n-r;o++)e.push(e[0]);return e}for(var o=0;o<n;o++){var s=Math.floor(a*o);i[s]=(i[s]||0)+1}var l=i.reduce(function(c,A,u){return u===r?c.concat(e[r]):c.concat(qIt(e[u],e[u+1],A))},[]);return l.unshift(e[0]),(t[n]==="Z"||t[n]==="z")&&l.push("Z"),l}function $It(e,t,r){var n=null,a=r;return t<a&&(a=t,n="add"),e<a&&(a=e,n="del"),{type:n,min:a}}var ebt=function(e,t){var r=e.length,n=t.length,a,i,o=0;if(r===0||n===0)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var c=0;c<=n;c++)s[0][c]={min:c};for(var l=1;l<=r;l++){a=e[l-1];for(var c=1;c<=n;c++){i=t[c-1],Fg(a,i)?o=0:o=1;var A=s[l-1][c].min+1,u=s[l][c-1].min+1,d=s[l-1][c-1].min+o;s[l][c]=$It(A,u,d)}}return s};function tbt(e,t){var r=ebt(e,t),n=e.length,a=t.length,i=[],o=1,s=1;if(r[n][a]!==n){for(var l=1;l<=n;l++){var c=r[l][l].min;s=l;for(var A=o;A<=a;A++)r[l][A].min<c&&(c=r[l][A].min,s=A);o=s,r[l][o].type&&i.push({index:l-1,type:r[l][o].type})}for(var l=i.length-1;l>=0;l--)o=i[l].index,i[l].type==="add"?e.splice(o,0,[].concat(e[o])):e.splice(o,1)}if(n=e.length,n<a)for(var l=0;l<a-n;l++)e[n-1][0]==="z"||e[n-1][0]==="Z"?e.splice(n-2,0,e[n-2]):e.push(e[n-1]);return e}function KSe(e){var t=[];switch(e[0]){case"M":t.push([e[1],e[2]]);break;case"L":t.push([e[1],e[2]]);break;case"A":t.push([e[6],e[7]]);break;case"Q":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"T":t.push([e[1],e[2]]);break;case"C":t.push([e[5],e[6]]),t.push([e[1],e[2]]),t.push([e[3],e[4]]);break;case"S":t.push([e[3],e[4]]),t.push([e[1],e[2]]);break;case"H":t.push([e[1],e[1]]);break;case"V":t.push([e[1],e[1]]);break}return t}function LO(e,t,r){for(var n=[].concat(e),a,i=1/(r+1),o=KSe(t)[0],s=1;s<=r;s++)i*=s,a=Math.floor(e.length*i),a===0?n.unshift([o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]):n.splice(a,0,[o[0]*i+e[a][0]*(1-i),o[1]*i+e[a][1]*(1-i)]);return n}function rbt(e,t){if(e.length<=1)return e;for(var r,n=0;n<t.length;n++)if(e[n][0]!==t[n][0])switch(r=KSe(e[n]),t[n][0]){case"M":e[n]=["M"].concat(r[0]);break;case"L":e[n]=["L"].concat(r[0]);break;case"A":e[n]=[].concat(t[n]),e[n][6]=r[0][0],e[n][7]=r[0][1];break;case"Q":if(r.length<2)if(n>0)r=LO(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["Q"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"T":e[n]=["T"].concat(r[0]);break;case"C":if(r.length<3)if(n>0)r=LO(r,e[n-1],2);else{e[n]=t[n];break}e[n]=["C"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;case"S":if(r.length<2)if(n>0)r=LO(r,e[n-1],1);else{e[n]=t[n];break}e[n]=["S"].concat(r.reduce(function(a,i){return a.concat(i)},[]));break;default:e[n]=t[n]}return e}function VSe(e,t,r,n,a){return a?[["M",+e+ +a,t],["l",r-a*2,0],["a",a,a,0,0,1,a,a],["l",0,n-a*2],["a",a,a,0,0,1,-a,a],["l",a*2-r,0],["a",a,a,0,0,1,-a,-a],["l",0,a*2-n],["a",a,a,0,0,1,a,-a],["z"]]:[["M",e,t],["l",r,0],["l",0,n],["l",-r,0],["z"]]}var Vw=`	
\v\f\r   ᠎             　\u2028\u2029`,nbt=new RegExp("([a-z])["+Vw+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+Vw+"]*,?["+Vw+"]*)+)","ig"),abt=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+Vw+"]*,?["+Vw+"]*","ig");function JSe(e){if(!e)return null;if(sa(e))return e;var t={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},r=[];return String(e).replace(nbt,function(n,a,i){var o=[],s=a.toLowerCase();if(i.replace(abt,function(l,c){c&&o.push(+c)}),s==="m"&&o.length>2&&(r.push([a].concat(o.splice(0,2))),s="l",a=a==="m"?"l":"L"),s==="o"&&o.length===1&&r.push([a,o[0]]),s==="r")r.push([a].concat(o));else for(;o.length>=t[s]&&(r.push([a].concat(o.splice(0,t[s]))),!!t[s]););return""}),r}var ibt=/[a-z]/;function Fle(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function AD(e){var t=JSe(e);if(!t||!t.length)return[["M",0,0]];for(var r=!1,n=0;n<t.length;n++){var a=t[n][0];if(ibt.test(a)||["V","H","T","S"].indexOf(a)>=0){r=!0;break}}if(!r)return t;var i=[],o=0,s=0,l=0,c=0,A=0,u=t[0];(u[0]==="M"||u[0]==="m")&&(o=+u[1],s=+u[2],l=o,c=s,A++,i[0]=["M",o,s]);for(var n=A,d=t.length;n<d;n++){var f=t[n],h=i[n-1],g=[],a=f[0],p=a.toUpperCase();if(a!==p)switch(g[0]=p,p){case"A":g[1]=f[1],g[2]=f[2],g[3]=f[3],g[4]=f[4],g[5]=f[5],g[6]=+f[6]+o,g[7]=+f[7]+s;break;case"V":g[1]=+f[1]+s;break;case"H":g[1]=+f[1]+o;break;case"M":l=+f[1]+o,c=+f[2]+s,g[1]=l,g[2]=c;break;default:for(var m=1,y=f.length;m<y;m++)g[m]=+f[m]+(m%2?o:s)}else g=t[n];switch(p){case"Z":o=+l,s=+c;break;case"H":o=g[1],g=["L",o,s];break;case"V":s=g[1],g=["L",o,s];break;case"T":o=g[1],s=g[2];var C=Fle([h[1],h[2]],[h[3],h[4]]);g=["Q",C[0],C[1],o,s];break;case"S":o=g[g.length-2],s=g[g.length-1];var w=h.length,B=Fle([h[w-4],h[w-3]],[h[w-2],h[w-1]]);g=["C",B[0],B[1],g[1],g[2],o,s];break;case"M":l=g[g.length-2],c=g[g.length-1];break;default:o=g[g.length-2],s=g[g.length-1]}i.push(g)}return i}var Jw=Math.PI*2,YO=function(e,t,r,n,a,i,o){var s=e.x,l=e.y;s*=t,l*=r;var c=n*s-a*l,A=a*s+n*l;return{x:c+i,y:A+o}},obt=function(e,t){var r=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),n=Math.cos(e),a=Math.sin(e),i=Math.cos(e+t),o=Math.sin(e+t);return[{x:n-a*r,y:a+n*r},{x:i+o*r,y:o-i*r},{x:i,y:o}]},Nle=function(e,t,r,n){var a=e*n-t*r<0?-1:1,i=e*r+t*n;return i>1&&(i=1),i<-1&&(i=-1),a*Math.acos(i)},sbt=function(e,t,r,n,a,i,o,s,l,c,A,u){var d=Math.pow(a,2),f=Math.pow(i,2),h=Math.pow(A,2),g=Math.pow(u,2),p=d*f-d*g-f*h;p<0&&(p=0),p/=d*g+f*h,p=Math.sqrt(p)*(o===s?-1:1);var m=p*a/i*u,y=p*-i/a*A,C=c*m-l*y+(e+r)/2,w=l*m+c*y+(t+n)/2,B=(A-m)/a,x=(u-y)/i,M=(-A-m)/a,S=(-u-y)/i,R=Nle(1,0,B,x),b=Nle(B,x,M,S);return s===0&&b>0&&(b-=Jw),s===1&&b<0&&(b+=Jw),[C,w,R,b]},lbt=function(e){var t=e.px,r=e.py,n=e.cx,a=e.cy,i=e.rx,o=e.ry,s=e.xAxisRotation,l=s===void 0?0:s,c=e.largeArcFlag,A=c===void 0?0:c,u=e.sweepFlag,d=u===void 0?0:u,f=[];if(i===0||o===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:a}];var h=Math.sin(l*Jw/360),g=Math.cos(l*Jw/360),p=g*(t-n)/2+h*(r-a)/2,m=-h*(t-n)/2+g*(r-a)/2;if(p===0&&m===0)return[{x1:0,y1:0,x2:0,y2:0,x:n,y:a}];i=Math.abs(i),o=Math.abs(o);var y=Math.pow(p,2)/Math.pow(i,2)+Math.pow(m,2)/Math.pow(o,2);y>1&&(i*=Math.sqrt(y),o*=Math.sqrt(y));var C=sbt(t,r,n,a,i,o,A,d,h,g,p,m),w=C[0],B=C[1],x=C[2],M=C[3],S=Math.abs(M)/(Jw/4);Math.abs(1-S)<1e-7&&(S=1);var R=Math.max(Math.ceil(S),1);M/=R;for(var b=0;b<R;b++)f.push(obt(x,M)),x+=M;return f.map(function(T){var D=YO(T[0],i,o,g,h,w,B),F=D.x,N=D.y,_=YO(T[1],i,o,g,h,w,B),P=_.x,k=_.y,j=YO(T[2],i,o,g,h,w,B),Y=j.x,X=j.y;return{x1:F,y1:N,x2:P,y2:k,x:Y,y:X}})};function cbt(e,t,r,n,a,i,o,s,l){var c=lbt({px:e,py:t,cx:s,cy:l,rx:r,ry:n,xAxisRotation:a,largeArcFlag:i,sweepFlag:o});return c.reduce(function(A,u){var d=u.x1,f=u.y1,h=u.x2,g=u.y2,p=u.x,m=u.y;return A.push(d,f,h,g,p,m),A},[])}function Abt(e,t,r,n,a,i){var o=.3333333333333333,s=2/3;return[o*e+s*r,o*t+s*n,o*a+s*r,o*i+s*n,a,i]}function pb(e,t,r,n){return[e,t,r,n,r,n]}function ubt(e,t){"TQ".indexOf(e[0])<0&&(t.qx=null,t.qy=null);var r=e.slice(1),n=r[0],a=r[1];switch(e[0]){case"M":return t.x=n,t.y=a,e;case"A":return["C"].concat(cbt.apply(0,[t.x1,t.y1].concat(e.slice(1))));case"Q":return t.qx=n,t.qy=a,["C"].concat(Abt.apply(0,[t.x1,t.y1].concat(e.slice(1))));case"L":return["C"].concat(pb(t.x1,t.y1,e[1],e[2]));case"H":return["C"].concat(pb(t.x1,t.y1,e[1],t.y1));case"V":return["C"].concat(pb(t.x1,t.y1,t.x1,e[1]));case"Z":return["C"].concat(pb(t.x1,t.y1,t.x,t.y))}return e}function XL(e,t){t===void 0&&(t=!1);for(var r=AD(e),n={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},a=[],i="",o=r.length,s,l,c=[],A=0;A<o;A+=1)r[A]&&(i=r[A][0]),a[A]=i,r[A]=ubt(r[A],n),dbt(r,a,A),o=r.length,i==="Z"&&c.push(A),s=r[A],l=s.length,n.x1=+s[l-2],n.y1=+s[l-1],n.x2=+s[l-4]||n.x1,n.y2=+s[l-3]||n.y1;return t?[r,c]:r}function dbt(e,t,r){if(e[r].length>7){e[r].shift();for(var n=e[r],a=r;n.length;)t[r]="A",e.splice(a+=1,0,["C"].concat(n.splice(0,6)));e.splice(r,1)}}var _le=function(e,t,r,n,a){var i=-3*t+9*r-9*n+3*a,o=e*i+6*t-12*r+6*n;return e*o-3*t+3*r},kle=function(e,t,r,n,a,i,o,s,l){l===null&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/2,A=12,u=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,h=0;h<A;h++){var g=c*u[h]+c,p=_le(g,e,r,a,o),m=_le(g,t,n,i,s),y=p*p+m*m;f+=d[h]*Math.sqrt(y)}return c*f},fbt=function(e,t,r,n,a,i,o,s){for(var l=[],c=[[],[]],A,u,d,f,h=0;h<2;++h){if(h===0?(u=6*e-12*r+6*a,A=-3*e+9*r-9*a+3*o,d=3*r-3*e):(u=6*t-12*n+6*i,A=-3*t+9*n-9*i+3*s,d=3*n-3*t),Math.abs(A)<1e-12){if(Math.abs(u)<1e-12)continue;f=-d/u,f>0&&f<1&&l.push(f);continue}var g=u*u-4*d*A,p=Math.sqrt(g);if(!(g<0)){var m=(-u+p)/(2*A);m>0&&m<1&&l.push(m);var y=(-u-p)/(2*A);y>0&&y<1&&l.push(y)}}for(var C=l.length,w=C,B;C--;)f=l[C],B=1-f,c[0][C]=B*B*B*e+3*B*B*f*r+3*B*f*f*a+f*f*f*o,c[1][C]=B*B*B*t+3*B*B*f*n+3*B*f*f*i+f*f*f*s;return c[0][w]=e,c[1][w]=t,c[0][w+1]=o,c[1][w+1]=s,c[0].length=c[1].length=w+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}},hbt=function(e,t,r,n,a,i,o,s){if(!(Math.max(e,r)<Math.min(a,o)||Math.min(e,r)>Math.max(a,o)||Math.max(t,n)<Math.min(i,s)||Math.min(t,n)>Math.max(i,s))){var l=(e*n-t*r)*(a-o)-(e-r)*(a*s-i*o),c=(e*n-t*r)*(i-s)-(t-n)*(a*s-i*o),A=(e-r)*(i-s)-(t-n)*(a-o);if(A){var u=l/A,d=c/A,f=+u.toFixed(2),h=+d.toFixed(2);if(!(f<+Math.min(e,r).toFixed(2)||f>+Math.max(e,r).toFixed(2)||f<+Math.min(a,o).toFixed(2)||f>+Math.max(a,o).toFixed(2)||h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(i,s).toFixed(2)||h>+Math.max(i,s).toFixed(2)))return{x:u,y:d}}}},Ph=function(e,t,r){return t>=e.x&&t<=e.x+e.width&&r>=e.y&&r<=e.y+e.height},qL=function(e,t,r,n){return e===null&&(e=t=r=n=0),t===null&&(t=e.y,r=e.width,n=e.height,e=e.x),{x:e,y:t,width:r,w:r,height:n,h:n,x2:e+r,y2:t+n,cx:e+r/2,cy:t+n/2,r1:Math.min(r,n)/2,r2:Math.max(r,n)/2,r0:Math.sqrt(r*r+n*n)/2,path:VSe(e,t,r,n),vb:[e,t,r,n].join(" ")}},gbt=function(e,t){return e=qL(e),t=qL(t),Ph(t,e.x,e.y)||Ph(t,e.x2,e.y)||Ph(t,e.x,e.y2)||Ph(t,e.x2,e.y2)||Ph(e,t.x,t.y)||Ph(e,t.x2,t.y)||Ph(e,t.x,t.y2)||Ph(e,t.x2,t.y2)||(e.x<t.x2&&e.x>t.x||t.x<e.x2&&t.x>e.x)&&(e.y<t.y2&&e.y>t.y||t.y<e.y2&&t.y>e.y)},Ple=function(e,t,r,n,a,i,o,s){sa(e)||(e=[e,t,r,n,a,i,o,s]);var l=fbt.apply(null,e);return qL(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},Ole=function(e,t,r,n,a,i,o,s,l){var c=1-l,A=Math.pow(c,3),u=Math.pow(c,2),d=l*l,f=d*l,h=A*e+u*3*l*r+c*3*l*l*a+f*o,g=A*t+u*3*l*n+c*3*l*l*i+f*s,p=e+2*l*(r-e)+d*(a-2*r+e),m=t+2*l*(n-t)+d*(i-2*n+t),y=r+2*l*(a-r)+d*(o-2*a+r),C=n+2*l*(i-n)+d*(s-2*i+n),w=c*e+l*r,B=c*t+l*n,x=c*a+l*o,M=c*i+l*s,S=90-Math.atan2(p-y,m-C)*180/Math.PI;return{x:h,y:g,m:{x:p,y:m},n:{x:y,y:C},start:{x:w,y:B},end:{x,y:M},alpha:S}},pbt=function(e,t,r){var n=Ple(e),a=Ple(t);if(!gbt(n,a))return[];for(var i=kle.apply(0,e),o=kle.apply(0,t),s=~~(i/8),l=~~(o/8),c=[],A=[],u={},d=[],f=0;f<s+1;f++){var h=Ole.apply(0,e.concat(f/s));c.push({x:h.x,y:h.y,t:f/s})}for(var f=0;f<l+1;f++){var h=Ole.apply(0,t.concat(f/l));A.push({x:h.x,y:h.y,t:f/l})}for(var f=0;f<s;f++)for(var g=0;g<l;g++){var p=c[f],m=c[f+1],y=A[g],C=A[g+1],w=Math.abs(m.x-p.x)<.001?"y":"x",B=Math.abs(C.x-y.x)<.001?"y":"x",x=hbt(p.x,p.y,m.x,m.y,y.x,y.y,C.x,C.y);if(x){if(u[x.x.toFixed(4)]===x.y.toFixed(4))continue;u[x.x.toFixed(4)]=x.y.toFixed(4);var M=p.t+Math.abs((x[w]-p[w])/(m[w]-p[w]))*(m.t-p.t),S=y.t+Math.abs((x[B]-y[B])/(C[B]-y[B]))*(C.t-y.t);M>=0&&M<=1&&S>=0&&S<=1&&d.push({x:x.x,y:x.y,t1:M,t2:S})}}return d},vbt=function(e,t,r){e=XL(e),t=XL(t);for(var n,a,i,o,s,l,c,A,u,d,f=r?0:[],h=0,g=e.length;h<g;h++){var p=e[h];if(p[0]==="M")n=s=p[1],a=l=p[2];else{p[0]==="C"?(u=[n,a].concat(p.slice(1)),n=u[6],a=u[7]):(u=[n,a,n,a,s,l,s,l],n=s,a=l);for(var m=0,y=t.length;m<y;m++){var C=t[m];if(C[0]==="M")i=c=C[1],o=A=C[2];else{C[0]==="C"?(d=[i,o].concat(C.slice(1)),i=d[6],o=d[7]):(d=[i,o,i,o,c,A,c,A],i=c,o=A);var w=pbt(u,d);{for(var B=0,x=w.length;B<x;B++)w[B].segment1=h,w[B].segment2=m,w[B].bez1=u,w[B].bez2=d;f=f.concat(w)}}}}}return f};function mbt(e,t){return vbt(e,t)}var Ebt=/,?([a-z]),?/gi;function ybt(e){return e.join(",").replace(Ebt,"$1")}function vb(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function ZL(e,t){return vb(e)*vb(t)?(e[0]*t[0]+e[1]*t[1])/(vb(e)*vb(t)):1}function jle(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(ZL(e,t))}function $L(e,t){return e[0]===t[0]&&e[1]===t[1]}function WSe(e,t){var r=t[1],n=t[2],a=t9(r9(t[3]),Math.PI*2),i=t[4],o=t[5],s=e[0],l=e[1],c=t[6],A=t[7],u=Math.cos(a)*(s-c)/2+Math.sin(a)*(l-A)/2,d=-1*Math.sin(a)*(s-c)/2+Math.cos(a)*(l-A)/2,f=u*u/(r*r)+d*d/(n*n);f>1&&(r*=Math.sqrt(f),n*=Math.sqrt(f));var h=r*r*(d*d)+n*n*(u*u),g=h?Math.sqrt((r*r*(n*n)-h)/h):1;i===o&&(g*=-1),isNaN(g)&&(g=0);var p=n?g*r*d/n:0,m=r?g*-n*u/r:0,y=(s+c)/2+Math.cos(a)*p-Math.sin(a)*m,C=(l+A)/2+Math.sin(a)*p+Math.cos(a)*m,w=[(u-p)/r,(d-m)/n],B=[(-1*u-p)/r,(-1*d-m)/n],x=jle([1,0],w),M=jle(w,B);return ZL(w,B)<=-1&&(M=Math.PI),ZL(w,B)>=1&&(M=0),o===0&&M>0&&(M=M-2*Math.PI),o===1&&M<0&&(M=M+2*Math.PI),{cx:y,cy:C,rx:$L(e,[c,A])?0:r,ry:$L(e,[c,A])?0:n,startAngle:x,endAngle:x+M,xRotation:a,arcFlag:i,sweepFlag:o}}function zle(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}function S9(e){e=HSe(e);for(var t=[],r=null,n=null,a=null,i=0,o=e.length,s=0;s<o;s++){var l=e[s];n=e[s+1];var c=l[0],A={command:c,prePoint:r,params:l,startTangent:null,endTangent:null};switch(c){case"M":a=[l[1],l[2]],i=s;break;case"A":var u=WSe(r,l);A.arcParams=u;break}if(c==="Z")r=a,n=e[i+1];else{var d=l.length;r=[l[d-2],l[d-1]]}n&&n[0]==="Z"&&(n=e[i],t[i]&&(t[i].prePoint=r)),A.currentPoint=r,t[i]&&$L(r,t[i].currentPoint)&&(t[i].prePoint=A.prePoint);var f=n?[n[n.length-2],n[n.length-1]]:null;A.nextPoint=f;var h=A.prePoint;if(["L","H","V"].includes(c))A.startTangent=[h[0]-r[0],h[1]-r[1]],A.endTangent=[r[0]-h[0],r[1]-h[1]];else if(c==="Q"){var g=[l[1],l[2]];A.startTangent=[h[0]-g[0],h[1]-g[1]],A.endTangent=[r[0]-g[0],r[1]-g[1]]}else if(c==="T"){var p=t[s-1],g=zle(p.currentPoint,h);p.command==="Q"?(A.command="Q",A.startTangent=[h[0]-g[0],h[1]-g[1]],A.endTangent=[r[0]-g[0],r[1]-g[1]]):(A.command="TL",A.startTangent=[h[0]-r[0],h[1]-r[1]],A.endTangent=[r[0]-h[0],r[1]-h[1]])}else if(c==="C"){var m=[l[1],l[2]],y=[l[3],l[4]];A.startTangent=[h[0]-m[0],h[1]-m[1]],A.endTangent=[r[0]-y[0],r[1]-y[1]],A.startTangent[0]===0&&A.startTangent[1]===0&&(A.startTangent=[m[0]-y[0],m[1]-y[1]]),A.endTangent[0]===0&&A.endTangent[1]===0&&(A.endTangent=[y[0]-m[0],y[1]-m[1]])}else if(c==="S"){var p=t[s-1],m=zle(p.currentPoint,h),y=[l[1],l[2]];p.command==="C"?(A.command="C",A.startTangent=[h[0]-m[0],h[1]-m[1]],A.endTangent=[r[0]-y[0],r[1]-y[1]]):(A.command="SQ",A.startTangent=[h[0]-y[0],h[1]-y[1]],A.endTangent=[r[0]-y[0],r[1]-y[1]])}else if(c==="A"){var C=.001,w=A.arcParams||{},B=w.cx,x=B===void 0?0:B,M=w.cy,S=M===void 0?0:M,R=w.rx,b=R===void 0?0:R,T=w.ry,D=T===void 0?0:T,F=w.sweepFlag,N=F===void 0?0:F,_=w.startAngle,P=_===void 0?0:_,k=w.endAngle,j=k===void 0?0:k;N===0&&(C*=-1);var Y=b*Math.cos(P-C)+x,X=D*Math.sin(P-C)+S;A.startTangent=[Y-a[0],X-a[1]];var K=b*Math.cos(P+j+C)+x,U=D*Math.sin(P+j-C)+S;A.endTangent=[h[0]-K,h[1]-U]}t.push(A)}return t}var Lle=function(e,t,r){return e>=t&&e<=r};function XSe(e,t,r,n){var a=.001,i={x:r.x-e.x,y:r.y-e.y},o={x:t.x-e.x,y:t.y-e.y},s={x:n.x-r.x,y:n.y-r.y},l=o.x*s.y-o.y*s.x,c=l*l,A=o.x*o.x+o.y*o.y,u=s.x*s.x+s.y*s.y,d=null;if(c>a*A*u){var f=(i.x*s.y-i.y*s.x)/l,h=(i.x*o.y-i.y*o.x)/l;Lle(f,0,1)&&Lle(h,0,1)&&(d={x:e.x+f*o.x,y:e.y+f*o.y})}return d}var Cbt=1e-6;function UO(e){return Math.abs(e)<Cbt?0:e<0?-1:1}function wbt(e,t,r){return(r[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(r[1]-e[1])&&Math.min(e[0],t[0])<=r[0]&&r[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=r[1]&&r[1]<=Math.max(e[1],t[1])}function eY(e,t,r){var n=!1,a=e.length;if(a<=2)return!1;for(var i=0;i<a;i++){var o=e[i],s=e[(i+1)%a];if(wbt(o,s,[t,r]))return!0;UO(o[1]-r)>0!=UO(s[1]-r)>0&&UO(t-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function Yle(e){for(var t=[],r=e.length,n=0;n<r-1;n++){var a=e[n],i=e[n+1];t.push({from:{x:a[0],y:a[1]},to:{x:i[0],y:i[1]}})}if(t.length>1){var o=e[0],s=e[r-1];t.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return t}function Bbt(e,t){var r=!1;return wr(e,function(n){if(XSe(n.from,n.to,t.from,t.to))return r=!0,!1}),r}function Ule(e){var t=e.map(function(n){return n[0]}),r=e.map(function(n){return n[1]});return{minX:Math.min.apply(null,t),maxX:Math.max.apply(null,t),minY:Math.min.apply(null,r),maxY:Math.max.apply(null,r)}}function xbt(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)}function Mbt(e,t){if(e.length<2||t.length<2)return!1;var r=Ule(e),n=Ule(t);if(!xbt(r,n))return!1;var a=!1;if(wr(t,function(l){if(eY(e,l[0],l[1]))return a=!0,!1}),a||(wr(e,function(l){if(eY(t,l[0],l[1]))return a=!0,!1}),a))return!0;var i=Yle(e),o=Yle(t),s=!1;return wr(o,function(l){if(Bbt(i,l))return s=!0,!1}),s}const Ibt=Object.freeze(Object.defineProperty({__proto__:null,catmullRom2Bezier:GSe,fillPath:ZIt,fillPathByDiff:tbt,formatPath:rbt,getArcParams:WSe,getLineIntersect:XSe,isPointInPolygon:eY,isPolygonsIntersect:Mbt,parsePath:HSe,parsePathArray:ybt,parsePathString:JSe,path2Absolute:AD,path2Curve:XL,path2Segments:S9,pathIntersection:mbt,reactPath:VSe},Symbol.toStringTag,{value:"Module"}));function bbt(e,t){for(var r=[],n=[],a=[],i=0;i<e.length;i++){var o=e[i],s=o.currentPoint,l=o.params,c=o.prePoint,A=void 0;switch(o.command){case"Q":A=M9.box(c[0],c[1],l[1],l[2],l[3],l[4]);break;case"C":A=OE.box(c[0],c[1],l[1],l[2],l[3],l[4],l[5],l[6]);break;case"A":var u=o.arcParams;A=OSe.box(u.cx,u.cy,u.rx,u.ry,u.xRotation,u.startAngle,u.endAngle);break;default:r.push(s[0]),n.push(s[1]);break}A&&(o.box=A,r.push(A.x,A.x+A.width),n.push(A.y,A.y+A.height)),t&&(o.command==="L"||o.command==="M")&&o.prePoint&&o.nextPoint&&a.push(o)}r=r.filter(function(m){return!Number.isNaN(m)&&m!==1/0&&m!==-1/0}),n=n.filter(function(m){return!Number.isNaN(m)&&m!==1/0&&m!==-1/0});var d=iA(r),f=iA(n),h=aA(r),g=aA(n);if(a.length===0)return{x:d,y:f,width:h-d,height:g-f};for(var i=0;i<a.length;i++){var o=a[i],s=o.currentPoint,p=void 0;s[0]===d?(p=mb(o,t),d=d-p.xExtra):s[0]===h&&(p=mb(o,t),h=h+p.xExtra),s[1]===f?(p=mb(o,t),f=f-p.yExtra):s[1]===g&&(p=mb(o,t),g=g+p.yExtra)}return{x:d,y:f,width:h-d,height:g-f}}function mb(e,t){var r=e.prePoint,n=e.currentPoint,a=e.nextPoint,i=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),o=Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2),s=Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2),l=Math.acos((i+o-s)/(2*Math.sqrt(i)*Math.sqrt(o)));if(!l||Math.sin(l)===0||Cd(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(a[1]-n[1],a[0]-n[0])),A=Math.abs(Math.atan2(a[0]-n[0],a[1]-n[1]));c=c>Math.PI/2?Math.PI-c:c,A=A>Math.PI/2?Math.PI-A:A;var u={xExtra:Math.cos(l/2-c)*(t/2*(1/Math.sin(l/2)))-t/2||0,yExtra:Math.cos(A-l/2)*(t/2*(1/Math.sin(l/2)))-t/2||0};return u}function Sbt(e){var t=e.attr(),r=t.path,n=t.stroke,a=n?t.lineWidth:0,i=e.get("segments")||S9(r),o=bbt(i,a),s=o.x,l=o.y,c=o.width,A=o.height,u={minX:s,minY:l,maxX:s+c,maxY:l+A};return u=b9(e,u),{x:u.minX,y:u.minY,width:u.maxX-u.minX,height:u.maxY-u.minY}}function Rbt(e){var t=e.attr(),r=t.x1,n=t.y1,a=t.x2,i=t.y2,o=Math.min(r,a),s=Math.max(r,a),l=Math.min(n,i),c=Math.max(n,i),A={minX:o,maxX:s,minY:l,maxY:c};return A=b9(e,A),{x:A.minX,y:A.minY,width:A.maxX-A.minX,height:A.maxY-A.minY}}function Tbt(e){var t=e.attr(),r=t.x,n=t.y,a=t.rx,i=t.ry;return{x:r-a,y:n-i,width:a*2,height:i*2}}fA("rect",FSe);fA("image",FSe);fA("circle",NSe);fA("marker",NSe);fA("polyline",LIt);fA("polygon",YIt);fA("text",GIt);fA("path",Sbt);fA("line",Rbt);fA("ellipse",Tbt);var Qbt="0.5.11";const Dbt=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:C9,AbstractGroup:w9,AbstractShape:B9,Base:rD,Event:tD,PathUtil:A9,assembleFont:cD,getBBoxMethod:x9,getOffScreenContext:sD,getTextHeight:lD,invert:iD,isAllowCapture:QB,multiplyVec2:Pf,registerBBox:fA,registerEasing:QSe,version:Qbt},Symbol.toStringTag,{value:"Module"})),Al=Ya(Dbt);var Hle=0,Fbt=1/2,Nbt=1/2,_bt=.05,Vx=(function(){function e(t){var r=t.xField,n=t.yField,a=t.adjustNames,i=a===void 0?["x","y"]:a,o=t.dimValuesMap;this.adjustNames=i,this.xField=r,this.yField=n,this.dimValuesMap=o}return e.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},e.prototype.getAdjustRange=function(t,r,n){var a=this.yField,i=n.indexOf(r),o=n.length,s,l;return!a&&this.isAdjust("y")?(s=0,l=1):o>1?(s=n[i===0?0:i-1],l=n[i===o-1?o-1:i+1],i!==0?s+=(r-s)/2:s-=(l-r)/2,i!==o-1?l-=(l-r)/2:l+=(r-n[o-2])/2):(s=r===0?0:r-.5,l=r===0?1:r+.5),{pre:s,next:l}},e.prototype.adjustData=function(t,r){var n=this,a=this.getDimValues(r);wr(t,function(i,o){wr(a,function(s,l){n.adjustDim(l,s,i,o)})})},e.prototype.groupData=function(t,r){return wr(t,function(n){n[r]===void 0&&(n[r]=Hle)}),$4(t,r)},e.prototype.adjustDim=function(t,r,n,a){},e.prototype.getDimValues=function(t){var r=this,n=r.xField,a=r.yField,i=xi({},this.dimValuesMap),o=[];if(n&&this.isAdjust("x")&&o.push(n),a&&this.isAdjust("y")&&o.push(a),o.forEach(function(l){i&&i[l]||(i[l]=e9(t,l).sort(function(c,A){return c-A}))}),!a&&this.isAdjust("y")){var s="y";i[s]=[Hle,1]}return i},e})(),qSe={},ZSe=function(e){return qSe[e.toLowerCase()]},Jx=function(e,t){if(ZSe(e))throw new Error("Adjust type '"+e+"' existed.");qSe[e.toLowerCase()]=t};/*! *****************************************************************************
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 tY=function(e,t){return tY=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)n.hasOwnProperty(a)&&(r[a]=n[a])},tY(e,t)};function uD(e,t){tY(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var pd=function(){return pd=Object.assign||function(t){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},pd.apply(this,arguments)},kbt=(function(e){uD(t,e);function t(r){var n=e.call(this,r)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var a=r.marginRatio,i=a===void 0?Fbt:a,o=r.dodgeRatio,s=o===void 0?Nbt:o,l=r.dodgeBy,c=r.intervalPadding,A=r.dodgePadding,u=r.xDimensionLength,d=r.groupNum,f=r.defaultSize,h=r.maxColumnWidth,g=r.minColumnWidth,p=r.columnWidthRatio,m=r.customOffset;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=c,n.dodgePadding=A,n.xDimensionLegenth=u,n.groupNum=d,n.defaultSize=f,n.maxColumnWidth=h,n.minColumnWidth=g,n.columnWidthRatio=p,n.customOffset=m,n}return t.prototype.process=function(r){var n=Wv(r),a=TB(n),i=this.dodgeBy,o=i?p2e(a,i):n;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=a,this.adjustData(o,a),this.adjustDataArray=[],this.mergeData=[],n},t.prototype.adjustDim=function(r,n,a,i){var o=this,s=this.customOffset,l=this.getDistribution(r),c=this.groupData(a,r);return wr(c,function(A,u){var d;n.length===1?d={pre:n[0]-1,next:n[0]+1}:d=o.getAdjustRange(r,parseFloat(u),n),wr(A,function(f){var h=f[r],g=l[h],p=g.indexOf(i);if(zr(s))f[r]=o.getDodgeOffset(d,p,g.length);else{var m=d.pre,y=d.next;f[r]=Sa(s)?s(f,d):(m+y)/2+s}})}),[]},t.prototype.getDodgeOffset=function(r,n,a){var i=this,o=i.dodgeRatio,s=i.marginRatio,l=i.intervalPadding,c=i.dodgePadding,A=r.pre,u=r.next,d=u-A,f;if(!zr(l)&&zr(c)&&l>=0){var h=this.getIntervalOnlyOffset(a,n);f=A+h}else if(!zr(c)&&zr(l)&&c>=0){var h=this.getDodgeOnlyOffset(a,n);f=A+h}else if(!zr(l)&&!zr(c)&&l>=0&&c>=0){var h=this.getIntervalAndDodgeOffset(a,n);f=A+h}else{var g=d*o/a,p=s*g,h=1/2*(d-a*g-(a-1)*p)+((n+1)*g+n*p)-1/2*g-1/2*d;f=(A+u)/2+h}return f},t.prototype.getIntervalOnlyOffset=function(r,n){var a=this,i=a.defaultSize,o=a.intervalPadding,s=a.xDimensionLegenth,l=a.groupNum,c=a.dodgeRatio,A=a.maxColumnWidth,u=a.minColumnWidth,d=a.columnWidthRatio,f=o/s,h=(1-(l-1)*f)/l*c/(r-1),g=((1-f*(l-1))/l-h*(r-1))/r;if(g=zr(d)?g:1/l/r*d,!zr(A)){var p=A/s;g=Math.min(g,p)}if(!zr(u)){var m=u/s;g=Math.max(g,m)}g=i?i/s:g,h=((1-(l-1)*f)/l-r*g)/(r-1);var y=((1/2+n)*g+n*h+1/2*f)*l-f/2;return y},t.prototype.getDodgeOnlyOffset=function(r,n){var a=this,i=a.defaultSize,o=a.dodgePadding,s=a.xDimensionLegenth,l=a.groupNum,c=a.marginRatio,A=a.maxColumnWidth,u=a.minColumnWidth,d=a.columnWidthRatio,f=o/s,h=1*c/(l-1),g=((1-h*(l-1))/l-f*(r-1))/r;if(g=d?1/l/r*d:g,!zr(A)){var p=A/s;g=Math.min(g,p)}if(!zr(u)){var m=u/s;g=Math.max(g,m)}g=i?i/s:g,h=(1-(g*r+f*(r-1))*l)/(l-1);var y=((1/2+n)*g+n*f+1/2*h)*l-h/2;return y},t.prototype.getIntervalAndDodgeOffset=function(r,n){var a=this,i=a.intervalPadding,o=a.dodgePadding,s=a.xDimensionLegenth,l=a.groupNum,c=i/s,A=o/s,u=((1-c*(l-1))/l-A*(r-1))/r,d=((1/2+n)*u+n*A+1/2*c)*l-c/2;return d},t.prototype.getDistribution=function(r){var n=this.adjustDataArray,a=this.cacheMap,i=a[r];return i||(i={},wr(n,function(o,s){var l=e9(o,r);l.length||l.push(0),wr(l,function(c){i[c]||(i[c]=[]),i[c].push(s)})}),a[r]=i),i},t})(Vx);function Pbt(e,t){return(t-e)*Math.random()+e}var Obt=(function(e){uD(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(r){var n=Wv(r),a=TB(n);return this.adjustData(n,a),n},t.prototype.adjustDim=function(r,n,a){var i=this,o=this.groupData(a,r);return wr(o,function(s,l){return i.adjustGroup(s,r,parseFloat(l),n)})},t.prototype.getAdjustOffset=function(r){var n=r.pre,a=r.next,i=(a-n)*_bt;return Pbt(n+i,a-i)},t.prototype.adjustGroup=function(r,n,a,i){var o=this,s=this.getAdjustRange(n,a,i);return wr(r,function(l){l[n]=o.getAdjustOffset(s)}),r},t})(Vx),HO=I2e,jbt=(function(e){uD(t,e);function t(r){var n=e.call(this,r)||this,a=r.adjustNames,i=a===void 0?["y"]:a,o=r.height,s=o===void 0?NaN:o,l=r.size,c=l===void 0?10:l,A=r.reverseOrder,u=A===void 0?!1:A;return n.adjustNames=i,n.height=s,n.size=c,n.reverseOrder=u,n}return t.prototype.process=function(r){var n=this,a=n.yField,i=n.reverseOrder,o=a?this.processStack(r):this.processOneDimStack(r);return i?this.reverse(o):o},t.prototype.reverse=function(r){return r.slice(0).reverse()},t.prototype.processStack=function(r){var n=this,a=n.xField,i=n.yField,o=n.reverseOrder,s=o?this.reverse(r):r,l=new HO,c=new HO;return s.map(function(A){return A.map(function(u){var d,f=qn(u,a,0),h=qn(u,[i]),g=f.toString();if(h=sa(h)?h[1]:h,!zr(h)){var p=h>=0?l:c;p.has(g)||p.set(g,0);var m=p.get(g),y=h+m;return p.set(g,y),pd(pd({},u),(d={},d[i]=[m,y],d))}return u})})},t.prototype.processOneDimStack=function(r){var n=this,a=this,i=a.xField,o=a.height,s=a.reverseOrder,l="y",c=s?this.reverse(r):r,A=new HO;return c.map(function(u){return u.map(function(d){var f,h=n.size,g=d[i],p=h*2/o;A.has(g)||A.set(g,p/2);var m=A.get(g);return A.set(g,m+p),pd(pd({},d),(f={},f[l]=m,f))})})},t})(Vx),zbt=(function(e){uD(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.process=function(r){var n=TB(r),a=this,i=a.xField,o=a.yField,s=this.getXValuesMaxMap(n),l=Math.max.apply(Math,Object.keys(s).map(function(c){return s[c]}));return gd(r,function(c){return gd(c,function(A){var u,d,f=A[o],h=A[i];if(sa(f)){var g=(l-s[h])/2;return pd(pd({},A),(u={},u[o]=gd(f,function(m){return g+m}),u))}var p=(l-f)/2;return pd(pd({},A),(d={},d[o]=[p,f+p],d))})})},t.prototype.getXValuesMaxMap=function(r){var n=this,a=this,i=a.xField,o=a.yField,s=$4(r,function(l){return l[i]});return B2e(s,function(l){return n.getDimMaxValue(l,o)})},t.prototype.getDimMaxValue=function(r,n){var a=gd(r,function(o){return qn(o,n,[])}),i=TB(a);return Math.max.apply(Math,i)},t})(Vx);Jx("Dodge",kbt);Jx("Jitter",Obt);Jx("Stack",jbt);Jx("Symmetric",zbt);const Lbt=Object.freeze(Object.defineProperty({__proto__:null,Adjust:Vx,getAdjust:ZSe,registerAdjust:Jx},Symbol.toStringTag,{value:"Module"})),$Se=Ya(Lbt);var Gle=function(e,t){return Pa(t)?t:e.invert(e.scale(t))},Jy=(function(){function e(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return e.prototype.mapping=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=r.map(function(i,o){return t._toOriginParam(i,t.scales[o])});return this.callback.apply(this,a)},e.prototype.getLinearValue=function(t){var r=this.values.length-1,n=Math.floor(r*t),a=r*t-n,i=this.values[n],o=n===r?i:this.values[n+1];return i+(o-i)*a},e.prototype.getNames=function(){for(var t=this.scales,r=this.names,n=Math.min(t.length,r.length),a=[],i=0;i<n;i+=1)a.push(r[i]);return a},e.prototype.getFields=function(){return this.scales.map(function(t){return t.field})},e.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},e.prototype.defaultCallback=function(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===0?this.values:r.map(function(a,i){var o=t.scales[i];return o.type==="identity"?o.values[0]:t._getAttributeValue(o,a)})},e.prototype._parseCfg=function(t){var r=this,n=t.type,a=n===void 0?"base":n,i=t.names,o=i===void 0?[]:i,s=t.scales,l=s===void 0?[]:s,c=t.values,A=c===void 0?[]:c,u=t.callback;this.type=a,this.scales=l,this.values=A,this.names=o,this.callback=function(){for(var d=[],f=0;f<arguments.length;f++)d[f]=arguments[f];if(u){var h=u.apply(void 0,d);if(!zr(h))return[h]}return r.defaultCallback.apply(r,d)}},e.prototype._getAttributeValue=function(t,r){if(t.isCategory&&!this.linear){var n=t.translate(r);return this.values[n%this.values.length]}var a=t.scale(r);return this.getLinearValue(a)},e.prototype._toOriginParam=function(t,r){return r.isLinear?t:sa(t)?t.map(function(n){return Gle(r,n)}):Gle(r,t)},e})(),Ybt=/rgba?\(([\s.,0-9]+)\)/,Ubt=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Hbt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Gbt=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,Kbt=function(e){return/^[r,R,L,l]{1}[\s]*\(/.test(e)},Vbt=function(){var e=document.createElement("i");return e.title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),e},GO=function(e,t,r,n){return e[n]+(t[n]-e[n])*r};function eRe(e){return"#"+KO(e[0])+KO(e[1])+KO(e[2])}var tRe=function(e){return[parseInt(e.substr(1,2),16),parseInt(e.substr(3,2),16),parseInt(e.substr(5,2),16)]},KO=function(e){var t=Math.round(e).toString(16);return t.length===1?"0"+t:t},Jbt=function(e,t){var r=isNaN(Number(t))||t<0?0:t>1?1:Number(t),n=e.length-1,a=Math.floor(n*r),i=n*r-a,o=e[a],s=a===n?o:e[a+1];return eRe([GO(o,s,i,0),GO(o,s,i,1),GO(o,s,i,2)])},Eb,rRe=function(e){if(e[0]==="#"&&e.length===7)return e;Eb||(Eb=Vbt()),Eb.style.color=e;var t=document.defaultView.getComputedStyle(Eb,"").getPropertyValue("color"),r=Ybt.exec(t),n=r[1].split(/\s*,\s*/).map(function(a){return Number(a)});return t=eRe(n),t},Wbt=function(e){var t=Pa(e)?e.split("-"):e,r=gd(t,function(n){return tRe(n.indexOf("#")===-1?rRe(n):n)});return function(n){return Jbt(r,n)}},Xbt=function(e){if(Kbt(e)){var t,r=void 0;if(e[0]==="l"){var n=Ubt.exec(e),a=+n[1]+90;r=n[2],t="linear-gradient("+a+"deg, "}else if(e[0]==="r"){t="radial-gradient(";var n=Hbt.exec(e);r=n[4]}var i=r.match(Gbt);return wr(i,function(o,s){var l=o.split(":");t+=l[1]+" "+l[0]*100+"%",s!==i.length-1&&(t+=", ")}),t+=")",t}return e};const nRe={rgb2arr:tRe,gradient:Wbt,toRGB:s9(rRe),toCSSGradient:Xbt};var aRe=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.type="color",n.names=["color"],Pa(n.values)&&(n.linear=!0),n.gradient=nRe.gradient(n.values),n}return t.prototype.getLinearValue=function(r){return this.gradient(r)},t})(Jy),iRe=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.type="opacity",n.names=["opacity"],n}return t})(Jy),oRe=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.names=["x","y"],n.type="position",n}return t.prototype.mapping=function(r,n){var a=this.scales,i=a[0],o=a[1];return zr(r)||zr(n)?[]:[sa(r)?r.map(function(s){return i.scale(s)}):i.scale(r),sa(n)?n.map(function(s){return o.scale(s)}):o.scale(n)]},t})(Jy),sRe=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.type="shape",n.names=["shape"],n}return t.prototype.getLinearValue=function(r){var n=Math.round((this.values.length-1)*r);return this.values[n]},t})(Jy),lRe=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.type="size",n.names=["size"],n}return t})(Jy),cRe={};function ARe(e){return cRe[e]}function Cu(e,t){cRe[e]=t}var Wx=(function(){function e(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return e.prototype.translate=function(t){return t},e.prototype.change=function(t){xi(this.__cfg__,t),this.init()},e.prototype.clone=function(){return this.constructor(this.__cfg__)},e.prototype.getTicks=function(){var t=this;return gd(this.ticks,function(r,n){return fc(r)?r:{text:t.getText(r,n),tickValue:r,value:t.scale(r)}})},e.prototype.getText=function(t,r){var n=this.formatter,a=n?n(t,r):t;return zr(a)||!Sa(a.toString)?"":a.toString()},e.prototype.getConfig=function(t){return this.__cfg__[t]},e.prototype.init=function(){xi(this,this.__cfg__),this.setDomain(),w2e(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},e.prototype.initCfg=function(){},e.prototype.setDomain=function(){},e.prototype.calculateTicks=function(){var t=this.tickMethod,r=[];if(Pa(t)){var n=ARe(t);if(!n)throw new Error("There is no method to to calculate ticks!");r=n(this)}else Sa(t)&&(r=t(this));return r},e.prototype.rangeMin=function(){return this.range[0]},e.prototype.rangeMax=function(){return this.range[1]},e.prototype.calcPercent=function(t,r,n){return ti(t)?(t-r)/(n-r):NaN},e.prototype.calcValue=function(t,r,n){return r+t*(n-r)},e})(),Xx=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cat",r.isCategory=!0,r}return t.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var r=0;r<this.values.length;r++)this.translateIndexMap.set(this.values[r],r)}},t.prototype.translate=function(r){this.buildIndexMap();var n=this.translateIndexMap.get(r);return n===void 0&&(n=ti(r)?r:NaN),n},t.prototype.scale=function(r){var n=this.translate(r),a=this.calcPercent(n,this.min,this.max);return this.calcValue(a,this.rangeMin(),this.rangeMax())},t.prototype.invert=function(r){var n=this.max-this.min,a=this.calcPercent(r,this.rangeMin(),this.rangeMax()),i=Math.round(n*a)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},t.prototype.getText=function(r){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var i=r;return ti(r)&&!this.values.includes(r)&&(i=this.values[i]),e.prototype.getText.apply(this,Jv([i],n))},t.prototype.initCfg=function(){this.tickMethod="cat"},t.prototype.setDomain=function(){if(zr(this.getConfig("min"))&&(this.min=0),zr(this.getConfig("max"))){var r=this.values.length;this.max=r>1?r-1:r}this.translateIndexMap&&(this.translateIndexMap=void 0)},t})(Wx),uRe=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,qh="\\d\\d?",Oh="\\d\\d",qbt="\\d{3}",Zbt="\\d{4}",Ww="[^\\s]+",dRe=/\[([^]*?)\]/gm;function fRe(e,t){for(var r=[],n=0,a=e.length;n<a;n++)r.push(e[n].substr(0,t));return r}var Kle=function(e){return function(t,r){var n=r[e].map(function(i){return i.toLowerCase()}),a=n.indexOf(t.toLowerCase());return a>-1?a:null}};function _g(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=0,a=t;n<a.length;n++){var i=a[n];for(var o in i)e[o]=i[o]}return e}var hRe=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],gRe=["January","February","March","April","May","June","July","August","September","October","November","December"],$bt=fRe(gRe,3),e2t=fRe(hRe,3),R9={dayNamesShort:e2t,dayNames:hRe,monthNamesShort:$bt,monthNames:gRe,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!==10?1:0)*e%10]}},tQ=_g({},R9),pRe=function(e){return tQ=_g(tQ,e)},Vle=function(e){return e.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},wl=function(e,t){for(t===void 0&&(t=2),e=String(e);e.length<t;)e="0"+e;return e},t2t={D:function(e){return String(e.getDate())},DD:function(e){return wl(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return String(e.getDay())},dd:function(e){return wl(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return String(e.getMonth()+1)},MM:function(e){return wl(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return wl(String(e.getFullYear()),4).substr(2)},YYYY:function(e){return wl(e.getFullYear(),4)},h:function(e){return String(e.getHours()%12||12)},hh:function(e){return wl(e.getHours()%12||12)},H:function(e){return String(e.getHours())},HH:function(e){return wl(e.getHours())},m:function(e){return String(e.getMinutes())},mm:function(e){return wl(e.getMinutes())},s:function(e){return String(e.getSeconds())},ss:function(e){return wl(e.getSeconds())},S:function(e){return String(Math.round(e.getMilliseconds()/100))},SS:function(e){return wl(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return wl(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+wl(Math.floor(Math.abs(t)/60)*100+Math.abs(t)%60,4)},Z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+wl(Math.floor(Math.abs(t)/60),2)+":"+wl(Math.abs(t)%60,2)}},Jle=function(e){return+e-1},Wle=[null,qh],Xle=[null,Ww],qle=["isPm",Ww,function(e,t){var r=e.toLowerCase();return r===t.amPm[0]?0:r===t.amPm[1]?1:null}],Zle=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(e){var t=(e+"").match(/([+-]|\d\d)/gi);if(t){var r=+t[1]*60+parseInt(t[2],10);return t[0]==="+"?r:-r}return 0}],r2t={D:["day",qh],DD:["day",Oh],Do:["day",qh+Ww,function(e){return parseInt(e,10)}],M:["month",qh,Jle],MM:["month",Oh,Jle],YY:["year",Oh,function(e){var t=new Date,r=+(""+t.getFullYear()).substr(0,2);return+(""+(+e>68?r-1:r)+e)}],h:["hour",qh,void 0,"isPm"],hh:["hour",Oh,void 0,"isPm"],H:["hour",qh],HH:["hour",Oh],m:["minute",qh],mm:["minute",Oh],s:["second",qh],ss:["second",Oh],YYYY:["year",Zbt],S:["millisecond","\\d",function(e){return+e*100}],SS:["millisecond",Oh,function(e){return+e*10}],SSS:["millisecond",qbt],d:Wle,dd:Wle,ddd:Xle,dddd:Xle,MMM:["month",Ww,Kle("monthNamesShort")],MMMM:["month",Ww,Kle("monthNames")],a:qle,A:qle,ZZ:Zle,Z:Zle},rQ={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},vRe=function(e){return _g(rQ,e)},mRe=function(e,t,r){if(t===void 0&&(t=rQ.default),r===void 0&&(r={}),typeof e=="number"&&(e=new Date(e)),Object.prototype.toString.call(e)!=="[object Date]"||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");t=rQ[t]||t;var n=[];t=t.replace(dRe,function(i,o){return n.push(o),"@@@"});var a=_g(_g({},tQ),r);return t=t.replace(uRe,function(i){return t2t[i](e,a)}),t.replace(/@@@/g,function(){return n.shift()})};function ERe(e,t,r){if(r===void 0&&(r={}),typeof t!="string")throw new Error("Invalid format in fecha parse");if(t=rQ[t]||t,e.length>1e3)return null;var n=new Date,a={year:n.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],s=t.replace(dRe,function(w,B){return o.push(Vle(B)),"@@@"}),l={},c={};s=Vle(s).replace(uRe,function(w){var B=r2t[w],x=B[0],M=B[1],S=B[3];if(l[x])throw new Error("Invalid format. "+x+" specified twice in format");return l[x]=!0,S&&(c[S]=!0),i.push(B),"("+M+")"}),Object.keys(c).forEach(function(w){if(!l[w])throw new Error("Invalid format. "+w+" is required in specified format")}),s=s.replace(/@@@/g,function(){return o.shift()});var A=e.match(new RegExp(s,"i"));if(!A)return null;for(var u=_g(_g({},tQ),r),d=1;d<A.length;d++){var f=i[d-1],h=f[0],g=f[2],p=g?g(A[d],u):+A[d];if(p==null)return null;a[h]=p}a.isPm===1&&a.hour!=null&&+a.hour!=12?a.hour=+a.hour+12:a.isPm===0&&+a.hour==12&&(a.hour=0);var m;if(a.timezoneOffset==null){m=new Date(a.year,a.month,a.day,a.hour,a.minute,a.second,a.millisecond);for(var y=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],d=0,C=y.length;d<C;d++)if(l[y[d][0]]&&a[y[d][0]]!==m[y[d][1]]())return null}else if(m=new Date(Date.UTC(a.year,a.month,a.day,a.hour,a.minute-a.timezoneOffset,a.second,a.millisecond)),a.month>11||a.month<0||a.day>31||a.day<1||a.hour>23||a.hour<0||a.minute>59||a.minute<0||a.second>59||a.second<0)return null;return m}var yRe={format:mRe,parse:ERe,defaultI18n:R9,setGlobalDateI18n:pRe,setGlobalDateMasks:vRe};const n2t=Object.freeze(Object.defineProperty({__proto__:null,assign:_g,default:yRe,defaultI18n:R9,format:mRe,parse:ERe,setGlobalDateI18n:pRe,setGlobalDateMasks:vRe},Symbol.toStringTag,{value:"Module"}));function a2t(e){return function(t,r,n,a){for(var i=zr(n)?0:n,o=zr(a)?t.length:a;i<o;){var s=i+o>>>1;e(t[s])>r?o=s:i=s+1}return i}}var $le="format";function CRe(e,t){var r=n2t[$le]||yRe[$le];return r(e,t)}function nQ(e){return Pa(e)&&(e.indexOf("T")>0?e=new Date(e).getTime():e=new Date(e.replace(/-/gi,"/")).getTime()),i9(e)&&(e=e.getTime()),e}var JA=1e3,Tv=60*JA,Qv=60*Tv,Of=24*Qv,Xw=Of*31,ece=Of*365,mC=[["HH:mm:ss",JA],["HH:mm:ss",JA*10],["HH:mm:ss",JA*30],["HH:mm",Tv],["HH:mm",Tv*10],["HH:mm",Tv*30],["HH",Qv],["HH",Qv*6],["HH",Qv*12],["YYYY-MM-DD",Of],["YYYY-MM-DD",Of*4],["YYYY-WW",Of*7],["YYYY-MM",Xw],["YYYY-MM",Xw*4],["YYYY-MM",Xw*6],["YYYY",Of*380]];function i2t(e,t,r){var n=(t-e)/r,a=a2t(function(o){return o[1]})(mC,n)-1,i=mC[a];return a<0?i=mC[0]:a>=mC.length&&(i=Zc(mC)),i}var wRe=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="timeCat",r}return t.prototype.translate=function(r){r=nQ(r);var n=this.values.indexOf(r);return n===-1&&(ti(r)&&r<this.values.length?n=r:n=NaN),n},t.prototype.getText=function(r,n){var a=this.translate(r);if(a>-1){var i=this.values[a],o=this.formatter;return i=o?o(i,n):CRe(i,this.mask),i}return r},t.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},t.prototype.setDomain=function(){var r=this.values;wr(r,function(n,a){r[a]=nQ(n)}),r.sort(function(n,a){return n-a}),e.prototype.setDomain.call(this)},t})(Xx),dD=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.isContinuous=!0,r}return t.prototype.scale=function(r){if(zr(r))return NaN;var n=this.rangeMin(),a=this.rangeMax(),i=this.max,o=this.min;if(i===o)return n;var s=this.getScalePercent(r);return n+s*(a-n)},t.prototype.init=function(){e.prototype.init.call(this);var r=this.ticks,n=yd(r),a=Zc(r);n<this.min&&(this.min=n),a>this.max&&(this.max=a),zr(this.minLimit)||(this.min=n),zr(this.maxLimit)||(this.max=a)},t.prototype.setDomain=function(){var r=A2e(this.values),n=r.min,a=r.max;zr(this.min)&&(this.min=n),zr(this.max)&&(this.max=a),this.min>this.max&&(this.min=n,this.max=a)},t.prototype.calculateTicks=function(){var r=this,n=e.prototype.calculateTicks.call(this);return this.nice||(n=Gy(n,function(a){return a>=r.min&&a<=r.max})),n},t.prototype.getScalePercent=function(r){var n=this.max,a=this.min;return(r-a)/(n-a)},t.prototype.getInvertPercent=function(r){return(r-this.rangeMin())/(this.rangeMax()-this.rangeMin())},t})(Wx),qx=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="linear",r.isLinear=!0,r}return t.prototype.invert=function(r){var n=this.getInvertPercent(r);return this.min+n*(this.max-this.min)},t.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},t})(dD);function ag(e,t){var r=Math.E,n;return t>=0?n=Math.pow(r,Math.log(t)/e):n=Math.pow(r,Math.log(-t)/e)*-1,n}function Jc(e,t){return e===1?1:Math.log(t)/Math.log(e)}function BRe(e,t,r){zr(r)&&(r=Math.max.apply(null,e));var n=r;return wr(e,function(a){a>0&&a<n&&(n=a)}),n===r&&(n=r/t),n>1&&(n=1),n}var xRe=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r}return t.prototype.invert=function(r){var n=this.base,a=Jc(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s,l=this.positiveMin;if(l){if(r===0)return 0;s=Jc(n,l/n);var c=1/(a-s)*o;if(r<c)return r/c*l}else s=Jc(n,this.min);var A=(r-i)/o,u=A*(a-s)+s;return Math.pow(n,u)},t.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},t.prototype.setDomain=function(){e.prototype.setDomain.call(this);var r=this.min;if(r<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");r===0&&(this.positiveMin=BRe(this.values,this.base,this.max))},t.prototype.getScalePercent=function(r){var n=this.max,a=this.min;if(n===a||r<=0)return 0;var i=this.base,o=this.positiveMin;o&&(a=o*1/i);var s;return r<o?s=r/o/(Jc(i,n)-Jc(i,a)):s=(Jc(i,r)-Jc(i,a))/(Jc(i,n)-Jc(i,a)),s},t})(dD),MRe=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="pow",r}return t.prototype.invert=function(r){var n=this.getInvertPercent(r),a=this.exponent,i=ag(a,this.max),o=ag(a,this.min),s=n*(i-o)+o,l=s>=0?1:-1;return Math.pow(s,a)*l},t.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},t.prototype.getScalePercent=function(r){var n=this.max,a=this.min;if(n===a)return 0;var i=this.exponent,o=(ag(i,r)-ag(i,a))/(ag(i,n)-ag(i,a));return o},t})(dD),IRe=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="time",r}return t.prototype.getText=function(r,n){var a=this.translate(r),i=this.formatter;return i?i(a,n):CRe(a,this.mask)},t.prototype.scale=function(r){var n=r;return(Pa(n)||i9(n))&&(n=this.translate(n)),e.prototype.scale.call(this,n)},t.prototype.translate=function(r){return nQ(r)},t.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},t.prototype.setDomain=function(){var r=this.values,n=this.getConfig("min"),a=this.getConfig("max");if((!zr(n)||!ti(n))&&(this.min=this.translate(this.min)),(!zr(a)||!ti(a))&&(this.max=this.translate(this.max)),r&&r.length){var i=[],o=1/0,s=o,l=0;wr(r,function(c){var A=nQ(c);if(isNaN(A))throw new TypeError("Invalid Time: "+c+" in time scale!");o>A?(s=o,o=A):s>A&&(s=A),l<A&&(l=A),i.push(A)}),r.length>1&&(this.minTickInterval=s-o),zr(n)&&(this.min=o),zr(a)&&(this.max=l)}},t})(qx),T9=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="quantize",r}return t.prototype.invert=function(r){var n=this.ticks,a=n.length,i=this.getInvertPercent(r),o=Math.floor(i*(a-1));if(o>=a-1)return Zc(n);if(o<0)return yd(n);var s=n[o],l=n[o+1],c=o/(a-1),A=(o+1)/(a-1);return s+(i-c)/(A-c)*(l-s)},t.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},t.prototype.calculateTicks=function(){var r=e.prototype.calculateTicks.call(this);return this.nice||(Zc(r)!==this.max&&r.push(this.max),yd(r)!==this.min&&r.unshift(this.min)),r},t.prototype.getScalePercent=function(r){var n=this.ticks;if(r<yd(n))return 0;if(r>Zc(n))return 1;var a=0;return wr(n,function(i,o){if(r>=i)a=o;else return!1}),a/(n.length-1)},t})(dD),bRe=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="quantile",r}return t.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},t})(T9),SRe={};function RRe(e){return SRe[e]}function wu(e,t){if(RRe(e))throw new Error("type '"+e+"' existed.");SRe[e]=t}var TRe=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="identity",r.isIdentity=!0,r}return t.prototype.calculateTicks=function(){return this.values},t.prototype.scale=function(r){return this.values[0]!==r&&ti(r)?r:this.range[0]},t.prototype.invert=function(r){var n=this.range;return r<n[0]||r>n[1]?NaN:this.values[0]},t})(Wx);function QRe(e){var t=e.values,r=e.tickInterval,n=e.tickCount,a=e.showLast;if(ti(r)){var i=Gy(t,function(h,g){return g%r===0}),o=Zc(t);return a&&Zc(i)!==o&&i.push(o),i}var s=t.length,l=e.min,c=e.max;if(zr(l)&&(l=0),zr(c)&&(c=t.length-1),!ti(n)||n>=s)return t.slice(l,c+1);if(n<=0||c<=0)return[];for(var A=n===1?s:Math.floor(s/(n-1)),u=[],d=l,f=0;f<n&&!(d>=c);f++)d=Math.min(l+f*A,c),f===n-1&&a?u.push(t[c]):u.push(t[d]);return u}function o2t(e){var t=e.min,r=e.max,n=e.nice,a=e.tickCount,i=new s2t;return i.domain([t,r]),n&&i.nice(a),i.ticks(a)}var VO=5,tce=Math.sqrt(50),rce=Math.sqrt(10),nce=Math.sqrt(2),s2t=(function(){function e(){this._domain=[0,1]}return e.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},e.prototype.nice=function(t){var r,n;t===void 0&&(t=VO);var a=this._domain.slice(),i=0,o=this._domain.length-1,s=this._domain[i],l=this._domain[o],c;return l<s&&(r=[l,s],s=r[0],l=r[1],n=[o,i],i=n[0],o=n[1]),c=vR(s,l,t),c>0?(s=Math.floor(s/c)*c,l=Math.ceil(l/c)*c,c=vR(s,l,t)):c<0&&(s=Math.ceil(s*c)/c,l=Math.floor(l*c)/c,c=vR(s,l,t)),c>0?(a[i]=Math.floor(s/c)*c,a[o]=Math.ceil(l/c)*c,this.domain(a)):c<0&&(a[i]=Math.ceil(s*c)/c,a[o]=Math.floor(l*c)/c,this.domain(a)),this},e.prototype.ticks=function(t){return t===void 0&&(t=VO),l2t(this._domain[0],this._domain[this._domain.length-1],t||VO)},e})();function l2t(e,t,r){var n,a=-1,i,o,s;if(t=+t,e=+e,r=+r,e===t&&r>0)return[e];if((n=t<e)&&(i=e,e=t,t=i),(s=vR(e,t,r))===0||!isFinite(s))return[];if(s>0)for(e=Math.ceil(e/s),t=Math.floor(t/s),o=new Array(i=Math.ceil(t-e+1));++a<i;)o[a]=(e+a)*s;else for(e=Math.floor(e*s),t=Math.ceil(t*s),o=new Array(i=Math.ceil(e-t+1));++a<i;)o[a]=(e-a)/s;return n&&o.reverse(),o}function vR(e,t,r){var n=(t-e)/Math.max(0,r),a=Math.floor(Math.log(n)/Math.LN10),i=n/Math.pow(10,a);return a>=0?(i>=tce?10:i>=rce?5:i>=nce?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(i>=tce?10:i>=rce?5:i>=nce?2:1)}function ace(e,t,r){var n;return r==="ceil"?n=Math.ceil(e/t):r==="floor"?n=Math.floor(e/t):n=Math.round(e/t),n*t}function Q9(e,t,r){var n=ace(e,r,"floor"),a=ace(t,r,"ceil");n=gR(n,r),a=gR(a,r);for(var i=[],o=Math.max((a-n)/(Math.pow(2,12)-1),r),s=n;s<=a;s=s+o){var l=gR(s,o);i.push(l)}return{min:n,max:a,ticks:i}}function D9(e,t,r){var n,a=e.minLimit,i=e.maxLimit,o=e.min,s=e.max,l=e.tickCount,c=l===void 0?5:l,A=zr(a)?zr(t)?o:t:a,u=zr(i)?zr(r)?s:r:i;if(A>u&&(n=[A,u],u=n[0],A=n[1]),c<=2)return[A,u];for(var d=(u-A)/(c-1),f=[],h=0;h<c;h++)f.push(A+d*h);return f}function c2t(e){var t=e.min,r=e.max,n=e.tickInterval,a=e.minLimit,i=e.maxLimit,o=o2t(e);return!zr(a)||!zr(i)?D9(e,yd(o),Zc(o)):n?Q9(t,r,n).ticks:o}function ev(e){return Math.abs(e)<1e-15?e:parseFloat(e.toFixed(15))}var A2t=[1,5,2,2.5,4,3],ice=Number.EPSILON*100;function u2t(e,t){return(e%t+t)%t}function d2t(e){return Math.round(e*1e12)/1e12}function f2t(e,t,r,n,a,i){var o=Ux(t),s=l9(t,e),l=0,c=u2t(n,i);return(c<ice||i-c<ice)&&n<=0&&a>=0&&(l=1),1-s/(o-1)-r+l}function h2t(e,t,r){var n=Ux(t),a=l9(t,e),i=1;return 1-a/(n-1)-r+i}function g2t(e,t,r,n,a,i){var o=(e-1)/(i-a),s=(t-1)/(Math.max(i,n)-Math.min(r,a));return 2-Math.max(o/s,s/o)}function p2t(e,t){return e>=t?2-(e-1)/(t-1):1}function v2t(e,t,r,n){var a=t-e;return 1-.5*(Math.pow(t-n,2)+Math.pow(e-r,2))/Math.pow(.1*a,2)}function m2t(e,t,r){var n=t-e;if(r>n){var a=(r-n)/2;return 1-Math.pow(a,2)/Math.pow(.1*n,2)}return 1}function E2t(){return 1}function y2t(e,t,r,n,a,i){r===void 0&&(r=5),n===void 0&&(n=!0),a===void 0&&(a=A2t),i===void 0&&(i=[.25,.2,.5,.05]);var o=r<0?0:Math.round(r);if(Number.isNaN(e)||Number.isNaN(t)||typeof e!="number"||typeof t!="number"||!o)return{min:0,max:0,ticks:[]};if(t-e<1e-15||o===1)return{min:e,max:t,ticks:[e]};if(t-e>1e148){var s=r||5,l=(t-e)/s;return{min:e,max:t,ticks:Array(s).fill(null).map(function(K,U){return ev(e+l*U)})}}for(var c={score:-2,lmin:0,lmax:0,lstep:0},A=1;A<1/0;){for(var u=0;u<a.length;u+=1){var d=a[u],f=h2t(d,a,A);if(i[0]*f+i[1]+i[2]+i[3]<c.score){A=1/0;break}for(var h=2;h<1/0;){var g=p2t(h,o);if(i[0]*f+i[1]+i[2]*g+i[3]<c.score)break;for(var p=(t-e)/(h+1)/A/d,m=Math.ceil(Math.log10(p));m<1/0;){var y=A*d*Math.pow(10,m),C=m2t(e,t,y*(h-1));if(i[0]*f+i[1]*C+i[2]*g+i[3]<c.score)break;var w=Math.floor(t/y)*A-(h-1)*A,B=Math.ceil(e/y)*A;if(w<=B)for(var s=B-w,x=0;x<=s;x+=1){var M=w+x,S=M*(y/A),R=S+y*(h-1),b=y,T=f2t(d,a,A,S,R,b),D=v2t(e,t,S,R),F=g2t(h,o,e,t,S,R),N=E2t(),_=i[0]*T+i[1]*D+i[2]*F+i[3]*N;_>c.score&&(!n||S<=e&&R>=t)&&(c.lmin=S,c.lmax=R,c.lstep=b,c.score=_)}m+=1}h+=1}}A+=1}var P=ev(c.lmax),k=ev(c.lmin),j=ev(c.lstep),Y=Math.floor(d2t((P-k)/j))+1,X=new Array(Y);X[0]=ev(k);for(var u=1;u<Y;u++)X[u]=ev(X[u-1]+j);return{min:Math.min(e,yd(X)),max:Math.max(t,Zc(X)),ticks:X}}function C2t(e){var t=e.min,r=e.max,n=e.tickCount,a=e.nice,i=e.tickInterval,o=e.minLimit,s=e.maxLimit,l=y2t(t,r,n,a).ticks;return!zr(o)||!zr(s)?D9(e,yd(l),Zc(l)):i?Q9(t,r,i).ticks:l}function w2t(e){var t=e.base,r=e.tickCount,n=e.min,a=e.max,i=e.values,o,s=Jc(t,a);if(n>0)o=Math.floor(Jc(t,n));else{var l=BRe(i,t,a);o=Math.floor(Jc(t,l))}for(var c=s-o,A=Math.ceil(c/r),u=[],d=o;d<s+A;d=d+A)u.push(Math.pow(t,d));return n<=0&&u.unshift(0),u}function DRe(e,t,r){if(r===void 0&&(r=5),e===t)return{max:t,min:e,ticks:[e]};var n=r<0?0:Math.round(r);if(n===0)return{max:t,min:e,ticks:[]};var a=1.5,i=.5+1.5*a,o=t-e,s=o/n,l=Math.pow(10,Math.floor(Math.log10(s))),c=l;2*l-s<a*(s-c)&&(c=2*l,5*l-s<i*(s-c)&&(c=5*l,10*l-s<a*(s-c)&&(c=10*l)));for(var A=Math.ceil(t/c),u=Math.floor(e/c),d=Math.max(A*c,t),f=Math.min(u*c,e),h=Math.floor((d-f)/c)+1,g=new Array(h),p=0;p<h;p++)g[p]=ev(f+p*c);return{min:f,max:d,ticks:g}}function B2t(e){var t=e.exponent,r=e.tickCount,n=Math.ceil(ag(t,e.max)),a=Math.floor(ag(t,e.min)),i=DRe(a,n,r).ticks;return i.map(function(o){var s=o>=0?1:-1;return Math.pow(o,t)*s})}function x2t(e,t){var r=e.length*t;return t===1?e[e.length-1]:t===0?e[0]:r%1!==0?e[Math.ceil(r)-1]:e.length%2===0?(e[r-1]+e[r])/2:e[r]}function M2t(e){var t=e.tickCount,r=e.values;if(!r||!r.length)return[];for(var n=r.slice().sort(function(s,l){return s-l}),a=[],i=0;i<t;i++){var o=i/(t-1);a.push(x2t(n,o))}return a}function I2t(e){var t=e.min,r=e.max,n=e.tickCount,a=e.tickInterval,i=e.minLimit,o=e.maxLimit,s=DRe(t,r,n).ticks;return!zr(i)||!zr(o)?D9(e,yd(s),Zc(s)):a?Q9(t,r,a).ticks:s}function b2t(e){var t=e.min,r=e.max,n=e.minTickInterval,a=e.tickInterval,i=e.tickCount;if(a)i=Math.ceil((r-t)/a);else{a=i2t(t,r,i)[1];var o=(r-t)/a,s=o/i;s>1&&(a=a*Math.ceil(s)),n&&a<n&&(a=n)}a=Math.max(Math.floor((r-t)/(Math.pow(2,12)-1)),a);for(var l=[],c=t;c<r+a;c+=a)l.push(c);return l}function S2t(e){var t=QRe(nr({showLast:!0},e));return t}function aQ(e){return new Date(e).getFullYear()}function R2t(e){return new Date(e,0,1).getTime()}function rY(e){return new Date(e).getMonth()}function T2t(e,t){var r=aQ(e),n=aQ(t),a=rY(e),i=rY(t);return(n-r)*12+(i-a)%12}function Q2t(e,t){return new Date(e,t,1).getTime()}function D2t(e,t){return Math.ceil((t-e)/Of)}function F2t(e,t){return Math.ceil((t-e)/Qv)}function N2t(e,t){return Math.ceil((t-e)/(60*1e3))}function _2t(e){var t=e.min,r=e.max,n=e.minTickInterval,a=e.tickCount,i=e.tickInterval,o=[];i||(i=(r-t)/a,n&&i<n&&(i=n)),i=Math.max(Math.floor((r-t)/(Math.pow(2,12)-1)),i);var s=aQ(t);if(i>ece)for(var l=aQ(r),c=Math.ceil(i/ece),A=s;A<=l+c;A=A+c)o.push(R2t(A));else if(i>Xw)for(var u=Math.ceil(i/Xw),d=rY(t),f=T2t(t,r),A=0;A<=f+u;A=A+u)o.push(Q2t(s,A+d));else if(i>Of)for(var h=new Date(t),g=h.getFullYear(),p=h.getMonth(),m=h.getDate(),y=Math.ceil(i/Of),C=D2t(t,r),A=0;A<C+y;A=A+y)o.push(new Date(g,p,m+A).getTime());else if(i>Qv)for(var h=new Date(t),g=h.getFullYear(),p=h.getMonth(),y=h.getDate(),w=h.getHours(),B=Math.ceil(i/Qv),x=F2t(t,r),A=0;A<=x+B;A=A+B)o.push(new Date(g,p,y,w+A).getTime());else if(i>Tv)for(var M=N2t(t,r),S=Math.ceil(i/Tv),A=0;A<=M+S;A=A+S)o.push(t+A*Tv);else{var R=i;R<JA&&(R=JA);for(var b=Math.floor(t/JA)*JA,T=Math.ceil((r-t)/JA),D=Math.ceil(R/JA),A=0;A<T+D;A=A+D)o.push(b+A*JA)}return o.length>=512&&console.warn("Notice: current ticks length("+o.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+i+") is too small, increase the value to solve the problem!"),o}Cu("cat",QRe);Cu("time-cat",S2t);Cu("wilkinson-extended",C2t);Cu("r-pretty",I2t);Cu("time",b2t);Cu("time-pretty",_2t);Cu("log",w2t);Cu("pow",B2t);Cu("quantile",M2t);Cu("d3-linear",c2t);wu("cat",Xx);wu("category",Xx);wu("identity",TRe);wu("linear",qx);wu("log",xRe);wu("pow",MRe);wu("time",IRe);wu("timeCat",wRe);wu("quantize",T9);wu("quantile",bRe);const k2t=Object.freeze(Object.defineProperty({__proto__:null,Category:Xx,Identity:TRe,Linear:qx,Log:xRe,Pow:MRe,Quantile:bRe,Quantize:T9,Scale:Wx,Time:IRe,TimeCat:wRe,getScale:RRe,getTickMethod:ARe,registerScale:wu,registerTickMethod:Cu},Symbol.toStringTag,{value:"Module"}));var FRe={},NRe=function(e){return FRe[e.toLowerCase()]},Wy=function(e,t){if(NRe(e))throw new Error("Attribute type '".concat(e,"' existed."));FRe[e.toLowerCase()]=t};Wy("Color",aRe);Wy("Opacity",iRe);Wy("Position",oRe);Wy("Shape",sRe);Wy("Size",lRe);const P2t=Object.freeze(Object.defineProperty({__proto__:null,Attribute:Jy,Color:aRe,Opacity:iRe,Position:oRe,Scale:Wx,Shape:sRe,Size:lRe,getAttribute:NRe,registerAttribute:Wy},Symbol.toStringTag,{value:"Module"})),nY=Ya(P2t);var fD=(function(){function e(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var r=t.start,n=t.end,a=t.matrix,i=a===void 0?[1,0,0,0,1,0,0,0,1]:a,o=t.isTransposed,s=o===void 0?!1:o;this.start=r,this.end=n,this.matrix=i,this.originalMatrix=KT([],i),this.isTransposed=s}return e.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},e.prototype.update=function(t){xi(this,t),this.initial()},e.prototype.convertDim=function(t,r){var n,a=this[r],i=a.start,o=a.end;return this.isReflect(r)&&(n=[o,i],i=n[0],o=n[1]),i+t*(o-i)},e.prototype.invertDim=function(t,r){var n,a=this[r],i=a.start,o=a.end;return this.isReflect(r)&&(n=[o,i],i=n[0],o=n[1]),(t-i)/(o-i)},e.prototype.applyMatrix=function(t,r,n){n===void 0&&(n=0);var a=this.matrix,i=[t,r,n];return dy(i,i,a),i},e.prototype.invertMatrix=function(t,r,n){n===void 0&&(n=0);var a=this.matrix,i=H2e([0,0,0,0,0,0,0,0,0],a),o=[t,r,n];return i&&dy(o,o,i),o},e.prototype.convert=function(t){var r=this.convertPoint(t),n=r.x,a=r.y,i=this.applyMatrix(n,a,1);return{x:i[0],y:i[1]}},e.prototype.invert=function(t){var r=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:r[0],y:r[1]})},e.prototype.rotate=function(t){var r=this.matrix,n=this.center;return lv(r,r,[-n.x,-n.y]),nD(r,r,t),lv(r,r,[n.x,n.y]),this},e.prototype.reflect=function(t){return t==="x"?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},e.prototype.scale=function(t,r){var n=this.matrix,a=this.center;return lv(n,n,[-a.x,-a.y]),h9(n,n,[t,r]),lv(n,n,[a.x,a.y]),this},e.prototype.translate=function(t,r){var n=this.matrix;return lv(n,n,[t,r]),this},e.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},e.prototype.getCenter=function(){return this.center},e.prototype.getWidth=function(){return this.width},e.prototype.getHeight=function(){return this.height},e.prototype.getRadius=function(){return this.radius},e.prototype.isReflect=function(t){return t==="x"?this.isReflectX:this.isReflectY},e.prototype.resetMatrix=function(t){this.matrix=t||KT([],this.originalMatrix)},e})(),_Re=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var r=this.start,n=this.end;this.x={start:r.x,end:n.x},this.y={start:r.y,end:n.y}},t.prototype.convertPoint=function(r){var n,a=r.x,i=r.y;return this.isTransposed&&(n=[i,a],a=n[0],i=n[1]),{x:this.convertDim(a,"x"),y:this.convertDim(i,"y")}},t.prototype.invertPoint=function(r){var n,a=this.invertDim(r.x,"x"),i=this.invertDim(r.y,"y");return this.isTransposed&&(n=[i,a],a=n[0],i=n[1]),{x:a,y:i}},t})(fD),O2t=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;n.isHelix=!0,n.type="helix";var a=r.startAngle,i=a===void 0?1.25*Math.PI:a,o=r.endAngle,s=o===void 0?7.25*Math.PI:o,l=r.innerRadius,c=l===void 0?0:l,A=r.radius;return n.startAngle=i,n.endAngle=s,n.innerRadius=c,n.radius=A,n.initial(),n}return t.prototype.initial=function(){e.prototype.initial.call(this);var r=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n=n*this.radius),this.d=Math.floor(n*(1-this.innerRadius)/r),this.a=this.d/(Math.PI*2),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+this.d*.99}},t.prototype.convertPoint=function(r){var n,a=r.x,i=r.y;this.isTransposed&&(n=[i,a],a=n[0],i=n[1]);var o=this.convertDim(a,"x"),s=this.a*o,l=this.convertDim(i,"y");return{x:this.center.x+Math.cos(o)*(s+l),y:this.center.y+Math.sin(o)*(s+l)}},t.prototype.invertPoint=function(r){var n,a=this.d+this.y.start,i=d9([0,0],[r.x,r.y],[this.center.x,this.center.y]),o=aD(i,[1,0],!0),s=o*this.a;fg(i)<s&&(s=fg(i));var l=Math.floor((fg(i)-s)/a);o=2*l*Math.PI+o;var c=this.a*o,A=fg(i)-c;A=Cd(A,0)?0:A;var u=this.invertDim(o,"x"),d=this.invertDim(A,"y");return u=Cd(u,0)?0:u,d=Cd(d,0)?0:d,this.isTransposed&&(n=[d,u],u=n[0],d=n[1]),{x:u,y:d}},t})(fD),j2t=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;n.isPolar=!0,n.type="polar";var a=r.startAngle,i=a===void 0?-Math.PI/2:a,o=r.endAngle,s=o===void 0?Math.PI*3/2:o,l=r.innerRadius,c=l===void 0?0:l,A=r.radius;return n.startAngle=i,n.endAngle=s,n.innerRadius=c,n.radius=A,n.initial(),n}return t.prototype.initial=function(){for(e.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=Math.PI*2;var r=this.getOneBox(),n=r.maxX-r.minX,a=r.maxY-r.minY,i=Math.abs(r.minX)/n,o=Math.abs(r.minY)/a,s;this.height/a>this.width/n?(s=this.width/n,this.circleCenter={x:this.center.x-(.5-i)*this.width,y:this.center.y-(.5-o)*s*a}):(s=this.height/a,this.circleCenter={x:this.center.x-(.5-i)*s*n,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=s*this.radius:(this.radius<=0||this.radius>s)&&(this.polarRadius=s):this.polarRadius=s,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},t.prototype.getRadius=function(){return this.polarRadius},t.prototype.convertPoint=function(r){var n,a=this.getCenter(),i=r.x,o=r.y;return this.isTransposed&&(n=[o,i],i=n[0],o=n[1]),i=this.convertDim(i,"x"),o=this.convertDim(o,"y"),{x:a.x+Math.cos(i)*o,y:a.y+Math.sin(i)*o}},t.prototype.invertPoint=function(r){var n,a=this.getCenter(),i=[r.x-a.x,r.y-a.y],o=this,s=o.startAngle,l=o.endAngle;this.isReflect("x")&&(n=[l,s],s=n[0],l=n[1]);var c=[1,0,0,0,1,0,0,0,1];nD(c,c,s);var A=[1,0,0];dy(A,A,c);var u=[A[0],A[1]],d=aD(u,i,l<s);Cd(d,Math.PI*2)&&(d=0);var f=fg(i),h=d/(l-s);h=l-s>0?h:-h;var g=this.invertDim(f,"y"),p={x:0,y:0};return p.x=this.isTransposed?g:h,p.y=this.isTransposed?h:g,p},t.prototype.getCenter=function(){return this.circleCenter},t.prototype.getOneBox=function(){var r=this.startAngle,n=this.endAngle;if(Math.abs(n-r)>=Math.PI*2)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var a=[0,Math.cos(r),Math.cos(n)],i=[0,Math.sin(r),Math.sin(n)],o=Math.min(r,n);o<Math.max(r,n);o+=Math.PI/18)a.push(Math.cos(o)),i.push(Math.sin(o));return{minX:Math.min.apply(Math,a),maxX:Math.max.apply(Math,a),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},t})(fD),kRe={},z2t=function(e){return kRe[e.toLowerCase()]},Zx=function(e,t){kRe[e.toLowerCase()]=t};Zx("rect",_Re);Zx("cartesian",_Re);Zx("polar",j2t);Zx("helix",O2t);const L2t=Object.freeze(Object.defineProperty({__proto__:null,Coordinate:fD,getCoordinate:z2t,registerCoordinate:Zx},Symbol.toStringTag,{value:"Module"})),Y2t=Ya(L2t),F9=Ya(k2t);function PRe(e,t,r){var n=new tD(t,r);n.target=e,n.propagationPath.push(e),e.emitDelegation(t,n);for(var a=e.getParent();a;)a.emitDelegation(t,n),n.propagationPath.push(a),a=a.getParent()}var ORe=[1,0,0,0,1,0,0,0,1];function qv(e,t,r){if(r===void 0&&(r=ORe),!t)return null;var n=Hx(r,[["t",-e.x,-e.y],["r",t],["t",e.x,e.y]]);return n}function N9(e,t){return!e.x&&!e.y?null:Hx(ORe,[["t",e.x,e.y]])}function U2t(e){var t=[1,0,0],r=[0,0,0];return dy(r,t,e),Math.atan2(r[1],r[0])}function yb(e,t){var r=[0,0];return ASe(r,t,e),r}function H2t(e,t){var r=yb(e,[t.minX,t.minY]),n=yb(e,[t.maxX,t.minY]),a=yb(e,[t.minX,t.maxY]),i=yb(e,[t.maxX,t.maxY]),o=Math.min(r[0],n[0],a[0],i[0]),s=Math.max(r[0],n[0],a[0],i[0]),l=Math.min(r[1],n[1],a[1],i[1]),c=Math.max(r[1],n[1],a[1],i[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:c,width:s-o,height:c-l}}function jRe(e,t,r,n){if(t){var a=qv({x:r,y:n},t,e.getMatrix());e.setMatrix(a)}}function _9(e,t,r){var n=N9({x:t,y:r});e.attr("matrix",n)}function iQ(e){var t=0,r=0,n=0,a=0;return ti(e)?t=r=n=a=e:sa(e)&&(t=e[0],n=zr(e[1])?e[0]:e[1],a=zr(e[2])?e[0]:e[2],r=zr(e[3])?n:e[3]),[t,n,a,r]}function k9(e){for(var t=e.childNodes,r=t.length,n=r-1;n>=0;n--)e.removeChild(t[n])}function G2t(e,t){return!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))}function PB(e){var t=e.start,r=e.end,n=Math.min(t.x,r.x),a=Math.min(t.y,r.y),i=Math.max(t.x,r.x),o=Math.max(t.y,r.y);return{x:n,y:a,minX:n,minY:a,maxX:i,maxY:o,width:i-n,height:o-a}}function K2t(e){var t=e.map(function(s){return s.x}),r=e.map(function(s){return s.y}),n=Math.min.apply(Math,t),a=Math.min.apply(Math,r),i=Math.max.apply(Math,t),o=Math.max.apply(Math,r);return{x:n,y:a,minX:n,minY:a,maxX:i,maxY:o,width:i-n,height:o-a}}function hD(e,t,r,n){var a=e+r,i=t+n;return{x:e,y:t,width:r,height:n,minX:e,minY:t,maxX:isNaN(a)?0:a,maxY:isNaN(i)?0:i}}function Dv(e,t,r){return(1-r)*e+t*r}function jE(e,t,r){return{x:e.x+Math.cos(r)*t,y:e.y+Math.sin(r)*t}}function V2t(e,t){var r=t.x-e.x,n=t.y-e.y;return Math.sqrt(r*r+n*n)}var oQ=function(e,t,r){return r===void 0&&(r=Math.pow(Number.EPSILON,.5)),[e,t].includes(1/0)?Math.abs(e)===Math.abs(t):Math.abs(e-t)<r};function J2t(e,t){var r=Math.max(e.minX,t.minX),n=Math.max(e.minY,t.minY),a=Math.min(e.maxX,t.maxX),i=Math.min(e.maxY,t.maxY);return hD(r,n,a-r,i-n)}function zRe(e){var t=e.getClip(),r=t&&t.getBBox(),n;if(!e.isGroup())n=e.getBBox();else{var a=1/0,i=-1/0,o=1/0,s=-1/0,l=e.getChildren();l.length>0?wr(l,function(c){if(c.get("visible")){if(c.isGroup()&&c.get("children").length===0)return!0;var A=zRe(c),u=c.applyToMatrix([A.minX,A.minY,1]),d=c.applyToMatrix([A.minX,A.maxY,1]),f=c.applyToMatrix([A.maxX,A.minY,1]),h=c.applyToMatrix([A.maxX,A.maxY,1]),g=Math.min(u[0],d[0],f[0],h[0]),p=Math.max(u[0],d[0],f[0],h[0]),m=Math.min(u[1],d[1],f[1],h[1]),y=Math.max(u[1],d[1],f[1],h[1]);g<a&&(a=g),p>i&&(i=p),m<o&&(o=m),y>s&&(s=y)}}):(a=0,i=0,o=0,s=0),n=hD(a,o,i-a,s-o)}return r?J2t(n,r):n}function W2t(e,t){if(!(!e.getClip()&&!t.getClip())){var r=t.getClip();if(!r){e.setClip(null);return}var n={type:r.get("type"),attrs:r.attr()};e.setClip(n)}}function Tl(e){return e+"px"}function LRe(e,t,r,n){var a=V2t(e,t),i=n/a,o=0;return r==="start"?o=0-i:r==="end"&&(o=1+i),{x:Dv(e.x,t.x,o),y:Dv(e.y,t.y,o)}}var X2t={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},P9=(function(e){en(t,e);function t(r){var n=e.call(this,r)||this;return n.initCfg(),n}return t.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},t.prototype.clear=function(){},t.prototype.update=function(r){var n=this,a=this.get("defaultCfg")||{};wr(r,function(i,o){var s=n.get(o),l=i;s!==i&&(fc(i)&&a[o]&&(l=Wf({},a[o],i)),n.set(o,l))}),this.updateInner(r),this.afterUpdate(r)},t.prototype.updateInner=function(r){},t.prototype.afterUpdate=function(r){Dg(r,"visible")&&(r.visible?this.show():this.hide()),Dg(r,"capture")&&this.setCapture(r.capture)},t.prototype.getLayoutBBox=function(){return this.getBBox()},t.prototype.getLocationType=function(){return this.get("locationType")},t.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},t.prototype.setOffset=function(r,n){this.update({offsetX:r,offsetY:n})},t.prototype.setLocation=function(r){var n=nr({},r);this.update(n)},t.prototype.getLocation=function(){var r=this,n={},a=this.get("locationType"),i=X2t[a];return wr(i,function(o){n[o]=r.get(o)}),n},t.prototype.isList=function(){return!1},t.prototype.isSlider=function(){return!1},t.prototype.init=function(){},t.prototype.initCfg=function(){var r=this,n=this.get("defaultCfg");wr(n,function(a,i){var o=r.get(i);if(fc(o)){var s=Wf({},a,o);r.set(i,s)}})},t})(rD),Np="update_status",q2t=["visible","tip","delegateObject"],Z2t=["container","group","shapesMap","isRegister","isUpdating","destroyed"],Xo=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},t.prototype.remove=function(){this.clear();var r=this.get("group");r.remove()},t.prototype.clear=function(){var r=this.get("group");r.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},t.prototype.getChildComponentById=function(r){var n=this.getElementById(r),a=n&&n.get("component");return a},t.prototype.getElementById=function(r){return this.get("shapesMap")[r]},t.prototype.getElementByLocalId=function(r){var n=this.getElementId(r);return this.getElementById(n)},t.prototype.getElementsByName=function(r){var n=[];return wr(this.get("shapesMap"),function(a){a.get("name")===r&&n.push(a)}),n},t.prototype.getContainer=function(){return this.get("container")},t.prototype.updateInner=function(r){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},t.prototype.render=function(){var r=this.get("offScreenGroup");r||(r=this.offScreenRender());var n=this.get("group");this.updateElements(r,n),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},t.prototype.show=function(){var r=this.get("group");r.show(),this.set("visible",!0)},t.prototype.hide=function(){var r=this.get("group");r.hide(),this.set("visible",!1)},t.prototype.setCapture=function(r){var n=this.get("group");n.set("capture",r),this.set("capture",r)},t.prototype.destroy=function(){this.removeEvent(),this.remove(),e.prototype.destroy.call(this)},t.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},t.prototype.getLayoutBBox=function(){var r=this.get("group"),n=this.getInnerLayoutBBox(),a=r.getTotalMatrix();return a&&(n=H2t(a,n)),n},t.prototype.on=function(r,n,a){var i=this.get("group");return i.on(r,n,a),this},t.prototype.off=function(r,n){var a=this.get("group");return a&&a.off(r,n),this},t.prototype.emit=function(r,n){var a=this.get("group");a.emit(r,n)},t.prototype.init=function(){e.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},t.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},t.prototype.delegateEmit=function(r,n){var a=this.get("group");n.target=a,a.emit(r,n),PRe(a,r,n)},t.prototype.createOffScreenGroup=function(){var r=this.get("group"),n=r.getGroupBase(),a=new n({delegateObject:this.getDelegateObject()});return a},t.prototype.applyOffset=function(){var r=this.get("offsetX"),n=this.get("offsetY");this.moveElementTo(this.get("group"),{x:r,y:n})},t.prototype.initGroup=function(){var r=this.get("container");this.set("group",r.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},t.prototype.offScreenRender=function(){this.clearOffScreenCache();var r=this.createOffScreenGroup();return this.renderInner(r),this.set("offScreenGroup",r),this.set("offScreenBBox",zRe(r)),r},t.prototype.addGroup=function(r,n){this.appendDelegateObject(r,n);var a=r.addGroup(n);return this.get("isRegister")&&this.registerElement(a),a},t.prototype.addShape=function(r,n){this.appendDelegateObject(r,n);var a=r.addShape(n);return this.get("isRegister")&&this.registerElement(a),a},t.prototype.addComponent=function(r,n){var a=n.id,i=n.component,o=Hy(n,["id","component"]),s=new i(nr(nr({},o),{id:a,container:r,updateAutoRender:this.get("updateAutoRender")}));return s.init(),s.render(),this.get("isRegister")&&this.registerElement(s.get("group")),s},t.prototype.initEvent=function(){},t.prototype.removeEvent=function(){var r=this.get("group");r.off()},t.prototype.getElementId=function(r){var n=this.get("id"),a=this.get("name");return n+"-"+a+"-"+r},t.prototype.registerElement=function(r){var n=r.get("id");this.get("shapesMap")[n]=r},t.prototype.unregisterElement=function(r){var n=r.get("id");delete this.get("shapesMap")[n]},t.prototype.moveElementTo=function(r,n){var a=N9(n);r.attr("matrix",a)},t.prototype.addAnimation=function(r,n,a){var i=n.attr("opacity");zr(i)&&(i=1),n.attr("opacity",0),n.animate({opacity:i},a)},t.prototype.removeAnimation=function(r,n,a){n.animate({opacity:0},a)},t.prototype.updateAnimation=function(r,n,a,i){n.animate(a,i)},t.prototype.updateElements=function(r,n){var a=this,i=this.get("animate"),o=this.get("animateOption"),s=r.getChildren().slice(0),l;wr(s,function(c){var A=c.get("id"),u=a.getElementById(A),d=c.get("name");if(u)if(c.get("isComponent")){var f=c.get("component"),h=u.get("component"),g=c9(f.cfg,s2e($H(f.cfg),Z2t));h.update(g),u.set(Np,"update")}else{var p=a.getReplaceAttrs(u,c);i&&o.update?a.updateAnimation(d,u,p,o.update):u.attr(p),c.isGroup()&&a.updateElements(c,u),wr(q2t,function(w){u.set(w,c.get(w))}),W2t(u,c),l=u,u.set(Np,"update")}else{n.add(c);var m=n.getChildren();if(m.splice(m.length-1,1),l){var y=m.indexOf(l);m.splice(y+1,0,c)}else m.unshift(c);if(a.registerElement(c),c.set(Np,"add"),c.get("isComponent")){var f=c.get("component");f.set("container",n)}else c.isGroup()&&a.registerNewGroup(c);if(l=c,i){var C=a.get("isInit")?o.appear:o.enter;C&&a.addAnimation(d,c,C)}}})},t.prototype.clearUpdateStatus=function(r){var n=r.getChildren();wr(n,function(a){a.set(Np,null)})},t.prototype.clearOffScreenCache=function(){var r=this.get("offScreenGroup");r&&r.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},t.prototype.getDelegateObject=function(){var r,n=this.get("name"),a=(r={},r[n]=this,r.component=this,r);return a},t.prototype.appendDelegateObject=function(r,n){var a=r.get("delegateObject");n.delegateObject||(n.delegateObject={}),xi(n.delegateObject,a)},t.prototype.getReplaceAttrs=function(r,n){var a=r.attr(),i=n.attr();return wr(a,function(o,s){i[s]===void 0&&(i[s]=void 0)}),i},t.prototype.registerNewGroup=function(r){var n=this,a=r.getChildren();wr(a,function(i){n.registerElement(i),i.set(Np,"add"),i.isGroup()&&n.registerNewGroup(i)})},t.prototype.deleteElements=function(){var r=this,n=this.get("shapesMap"),a=[];wr(n,function(s,l){!s.get(Np)||s.destroyed?a.push([l,s]):s.set(Np,null)});var i=this.get("animate"),o=this.get("animateOption");wr(a,function(s){var l=s[0],c=s[1];if(!c.destroyed){var A=c.get("name");if(i&&o.leave){var u=xi({callback:function(){r.removeElement(c)}},o.leave);r.removeAnimation(A,c,u)}else r.removeElement(c)}delete n[l]})},t.prototype.removeElement=function(r){if(r.get("isGroup")){var n=r.get("component");n&&n.destroy()}r.remove()},t})(P9),JO="…";function $2t(e){for(var t=0,r=0;r<e.length;r++)t+=tv(e,r);return t}function tv(e,t){return e.charCodeAt(t)>0&&e.charCodeAt(t)<128?1:2}function eSt(e,t,r){r===void 0&&(r="tail");var n=e.length,a="";if(r==="tail"){for(var i=0,o=0;i<t;){var s=tv(e,o);if(i+s<=t)a+=e[o],i+=tv(e,o),o++;else break}a+=JO}else if(r==="head"){for(var i=0,o=n-1;i<t;){var s=tv(e,o);if(i+s<=t)a+=e[o],i+=tv(e,o),o--;else break}a=JO+a}else{for(var l="",c="",i=0,A=0,u=n-1;i<t;){var d=tv(e,A),f=!1;d+i<=t&&(l+=e[A],A++,i+=d,f=!0);var h=tv(e,u);if(h+i<=t&&(c=e[u]+c,i+=h,u--,f=!0),!f)break}a=l+JO+c}return a}var tSt="…",rSt=2,nSt=400;function aSt(e){for(var t=e.map(function(l){var c=l.attr("text");return zr(c)?"":""+c}),r=0,n=0,a=0;a<t.length;a+=1){for(var i=0,o=0;o<=t[a].length;o+=1){var s=t[a].charCodeAt(o);s>=19968&&s<=40869?i+=2:i+=1}i>r&&(r=i,n=a)}return e[n].getBBox().width}function aY(e){if(e.length>nSt)return aSt(e);var t=0;return wr(e,function(r){var n=r.getBBox(),a=n.width;t<a&&(t=a)}),t}function iSt(e,t){var r=t.getCanvasBBox();return e?r.width:r.height}function qw(e,t,r,n){var a;n===void 0&&(n="tail");var i=(a=t.attr("text"))!==null&&a!==void 0?a:"";if(n==="tail"){var o=c9(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),s=M2e(i,r,o,"…");return i!==s?(t.attr("text",s),t.set("tip",i),!0):(t.set("tip",null),!1)}var l=iSt(e,t),c=$2t(i),A=!1;if(r<l){var u=Math.floor(r/l*c)-rSt,d=void 0;u>=0?d=eSt(i,u,n):d=tSt,d&&(t.attr("text",d),A=!0)}return A?t.set("tip",i):t.set("tip",null),A}function gD(e,t){var r=t.x,n=t.y,a=t.content,i=t.style,o=t.id,s=t.name,l=t.rotate,c=t.maxLength,A=t.autoEllipsis,u=t.isVertical,d=t.ellipsisPosition,f=t.background,h=e.addGroup({id:o+"-group",name:s+"-group",attrs:{x:r,y:n}}),g=h.addShape({type:"text",id:o,name:s,attrs:nr({x:0,y:0,text:a},i)}),p=iQ(qn(f,"padding",0));if(c&&A){var m=c-(p[1]+p[3]);qw(!u,g,m,d)}if(f){var y=qn(f,"style",{}),C=g.getCanvasBBox(),w=C.minX,B=C.minY,x=C.width,M=C.height,S=h.addShape("rect",{id:o+"-bg",name:o+"-bg",attrs:nr({x:w-p[3],y:B-p[0],width:x+p[1]+p[3],height:M+p[0]+p[2]},y)});S.toBack()}_9(h,r,n),jRe(h,l,r,n)}const On={fontFamily:`
  BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",
  Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
  SimSun, "sans-serif"`,textColor:"#2C3542",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"};var oSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:On.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:On.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:On.lineColor,lineWidth:1}}}})},t.prototype.renderInner=function(r){this.renderLine(r),this.get("text")&&this.renderLabel(r)},t.prototype.renderLine=function(r){var n=this.get("start"),a=this.get("end"),i=this.get("style");this.addShape(r,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:nr({x1:n.x,y1:n.y,x2:a.x,y2:a.y},i)})},t.prototype.getLabelPoint=function(r,n,a){var i;return a==="start"?i=0:a==="center"?i=.5:Pa(a)&&a.indexOf("%")!==-1?i=parseInt(a,10)/100:ti(a)?i=a:i=1,(i>1||i<0)&&(i=1),{x:Dv(r.x,n.x,i),y:Dv(r.y,n.y,i)}},t.prototype.renderLabel=function(r){var n=this.get("text"),a=this.get("start"),i=this.get("end"),o=n.position,s=n.content,l=n.style,c=n.offsetX,A=n.offsetY,u=n.autoRotate,d=n.maxLength,f=n.autoEllipsis,h=n.ellipsisPosition,g=n.background,p=n.isVertical,m=p===void 0?!1:p,y=this.getLabelPoint(a,i,o),C=y.x+c,w=y.y+A,B={id:this.getElementId("line-text"),name:"annotation-line-text",x:C,y:w,content:s,style:l,maxLength:d,autoEllipsis:f,ellipsisPosition:h,background:g,isVertical:m};if(u){var x=[i.x-a.x,i.y-a.y];B.rotate=Math.atan2(x[1],x[0])}gD(r,B)},t})(Xo),sSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:On.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:On.fontFamily}}})},t.prototype.setLocation=function(r){this.set("x",r.x),this.set("y",r.y),this.resetLocation()},t.prototype.renderInner=function(r){var n=this.getLocation(),a=n.x,i=n.y,o=this.get("content"),s=this.get("style"),l=this.getElementId("text"),c=this.get("name")+"-text",A=this.get("maxLength"),u=this.get("autoEllipsis"),d=this.get("isVertical"),f=this.get("ellipsisPosition"),h=this.get("background"),g=this.get("rotate"),p={id:l,name:c,x:a,y:i,content:o,style:s,maxLength:A,autoEllipsis:u,isVertical:d,ellipsisPosition:f,background:h,rotate:g};gD(r,p)},t.prototype.resetLocation=function(){var r=this.getElementByLocalId("text-group");if(r){var n=this.getLocation(),a=n.x,i=n.y,o=this.get("rotate");_9(r,a,i),jRe(r,o,a,i)}},t})(Xo),lSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2,style:{stroke:"#999",lineWidth:1}})},t.prototype.renderInner=function(r){this.renderArc(r)},t.prototype.getArcPath=function(){var r=this.getLocation(),n=r.center,a=r.radius,i=r.startAngle,o=r.endAngle,s=jE(n,a,i),l=jE(n,a,o),c=o-i>Math.PI?1:0,A=[["M",s.x,s.y]];if(o-i===Math.PI*2){var u=jE(n,a,i+Math.PI);A.push(["A",a,a,0,c,1,u.x,u.y]),A.push(["A",a,a,0,c,1,l.x,l.y])}else A.push(["A",a,a,0,c,1,l.x,l.y]);return A},t.prototype.renderArc=function(r){var n=this.getArcPath(),a=this.get("style");this.addShape(r,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:nr({path:n},a)})},t})(Xo),cSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:On.regionColor,opacity:.4}}})},t.prototype.renderInner=function(r){this.renderRegion(r)},t.prototype.renderRegion=function(r){var n=this.get("start"),a=this.get("end"),i=this.get("style"),o=PB({start:n,end:a});this.addShape(r,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:nr({x:o.x,y:o.y,width:o.width,height:o.height},i)})},t})(Xo),ASt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},t.prototype.renderInner=function(r){this.renderImage(r)},t.prototype.getImageAttrs=function(){var r=this.get("start"),n=this.get("end"),a=this.get("style"),i=PB({start:r,end:n}),o=this.get("src");return nr({x:i.x,y:i.y,img:o,width:i.width,height:i.height},a)},t.prototype.renderImage=function(r){this.addShape(r,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},t})(Xo),uSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:On.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:On.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:On.fontFamily}}}})},t.prototype.renderInner=function(r){qn(this.get("line"),"display")&&this.renderLine(r),qn(this.get("text"),"display")&&this.renderText(r),qn(this.get("point"),"display")&&this.renderPoint(r),this.get("autoAdjust")&&this.autoAdjust(r)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},t.prototype.renderPoint=function(r){var n=this.getShapeAttrs().point;this.addShape(r,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:n})},t.prototype.renderLine=function(r){var n=this.getShapeAttrs().line;this.addShape(r,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:n})},t.prototype.renderText=function(r){var n=this.getShapeAttrs().text,a=n.x,i=n.y,o=n.text,s=Hy(n,["x","y","text"]),l=this.get("text"),c=l.background,A=l.maxLength,u=l.autoEllipsis;l.isVertival;var d=l.ellipsisPosition,f={x:a,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:s,background:c,maxLength:A,autoEllipsis:u,ellipsisPosition:d};gD(r,f)},t.prototype.autoAdjust=function(r){var n=this.get("direction"),a=this.get("x"),i=this.get("y"),o=qn(this.get("line"),"length",0),s=this.get("coordinateBBox"),l=r.getBBox(),c=l.minX,A=l.maxX,u=l.minY,d=l.maxY,f=r.findById(this.getElementId("text-group")),h=r.findById(this.getElementId("text")),g=r.findById(this.getElementId("line"));if(s&&f){var p=f.attr("x"),m=f.attr("y"),y=h.getCanvasBBox(),C=y.width,w=y.height,B=0,x=0;if(a+c<=s.minX)if(n==="leftward")B=1;else{var M=s.minX-(a+c);p=f.attr("x")+M}else if(a+A>=s.maxX)if(n==="rightward")B=-1;else{var M=a+A-s.maxX;p=f.attr("x")-M}if(B&&(g&&g.attr("path",[["M",0,0],["L",o*B,0]]),p=(o+2+C)*B),i+u<=s.minY)if(n==="upward")x=1;else{var M=s.minY-(i+u);m=f.attr("y")+M}else if(i+d>=s.maxY)if(n==="downward")x=-1;else{var M=i+d-s.maxY;m=f.attr("y")-M}x&&(g&&g.attr("path",[["M",0,0],["L",0,o*x]]),m=(o+2+w)*x),(p!==f.attr("x")||m!==f.attr("y"))&&_9(f,p,m)}},t.prototype.getShapeAttrs=function(){var r=qn(this.get("line"),"display"),n=qn(this.get("point"),"style",{}),a=qn(this.get("line"),"style",{}),i=qn(this.get("text"),"style",{}),o=this.get("direction"),s=r?qn(this.get("line"),"length",0):0,l=0,c=0,A="top",u="start";switch(o){case"upward":c=-1,A="bottom";break;case"downward":c=1,A="top";break;case"leftward":l=-1,u="end";break;case"rightward":l=1,u="start";break}return{point:nr({x:0,y:0},n),line:nr({path:[["M",0,0],["L",s*l,s*c]]},a),text:nr({x:(s+2)*l,y:(s+2)*c,text:qn(this.get("text"),"content",""),textBaseline:A,textAlign:u},i)}},t})(Xo),dSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:On.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:On.textColor,fontFamily:On.fontFamily}}}})},t.prototype.renderInner=function(r){var n=qn(this.get("region"),"style",{});qn(this.get("text"),"style",{});var a=this.get("lineLength")||0,i=this.get("points");if(i.length){var o=K2t(i),s=[];s.push(["M",i[0].x,o.minY-a]),i.forEach(function(c){s.push(["L",c.x,c.y])}),s.push(["L",i[i.length-1].x,i[i.length-1].y-a]),this.addShape(r,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:nr({path:s},n)});var l=nr({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-a},this.get("text"));gD(r,l)}},t})(Xo),fSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},t.prototype.renderInner=function(r){var n=this,a=this.get("start"),i=this.get("end"),o=this.addGroup(r,{id:this.getElementId("region-filter"),capture:!1});wr(this.get("shapes"),function(l,c){var A=l.get("type"),u=Wv(l.attr());n.adjustShapeAttrs(u),n.addShape(o,{id:n.getElementId("shape-"+A+"-"+c),capture:!1,type:A,attrs:u})});var s=PB({start:a,end:i});o.setClip({type:"rect",attrs:{x:s.minX,y:s.minY,width:s.width,height:s.height}})},t.prototype.adjustShapeAttrs=function(r){var n=this.get("color");r.fill&&(r.fill=r.fillStyle=n),r.stroke=r.strokeStyle=n},t})(Xo),hSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"shape",draw:vv})},t.prototype.renderInner=function(r){var n=this.get("render");Sa(n)&&n(r)},t})(Xo);function rv(e,t,r){if(e){if(typeof e.addEventListener=="function")return e.addEventListener(t,r,!1),{remove:function(){e.removeEventListener(t,r,!1)}};if(typeof e.attachEvent=="function")return e.attachEvent("on"+t,r),{remove:function(){e.detachEvent("on"+t,r)}}}}var ww,WO,YRe,iY;function gSt(){ww=document.createElement("table"),WO=document.createElement("tr"),YRe=/^\s*<(\w+|!)[^>]*>/,iY={tr:document.createElement("tbody"),tbody:ww,thead:ww,tfoot:ww,td:WO,th:WO,"*":document.createElement("div")}}function Eg(e){ww||gSt();var t=YRe.test(e)&&RegExp.$1;(!t||!(t in iY))&&(t="*");var r=iY[t];e=typeof e=="string"?e.replace(/(^\s*)|(\s*$)/g,""):e,r.innerHTML=""+e;var n=r.childNodes[0];return n&&r.contains(n)&&r.removeChild(n),n}function rl(e,t,r){var n;try{n=window.getComputedStyle?window.getComputedStyle(e,null)[t]:e.style[t]}catch{}finally{n=n===void 0?r:n}return n}function URe(e,t){var r=rl(e,"height",t);return r==="auto"&&(r=e.offsetHeight),parseFloat(r)}function HRe(e,t){var r=URe(e,t),n=parseFloat(rl(e,"borderTopWidth"))||0,a=parseFloat(rl(e,"paddingTop"))||0,i=parseFloat(rl(e,"paddingBottom"))||0,o=parseFloat(rl(e,"borderBottomWidth"))||0,s=parseFloat(rl(e,"marginTop"))||0,l=parseFloat(rl(e,"marginBottom"))||0;return r+n+o+a+i+s+l}function GRe(e,t){var r=rl(e,"width",t);return r==="auto"&&(r=e.offsetWidth),parseFloat(r)}function KRe(e,t){var r=GRe(e,t),n=parseFloat(rl(e,"borderLeftWidth"))||0,a=parseFloat(rl(e,"paddingLeft"))||0,i=parseFloat(rl(e,"paddingRight"))||0,o=parseFloat(rl(e,"borderRightWidth"))||0,s=parseFloat(rl(e,"marginRight"))||0,l=parseFloat(rl(e,"marginLeft"))||0;return r+n+o+a+i+l+s}function pSt(){return window.devicePixelRatio?window.devicePixelRatio:2}function Qs(e,t){if(e)for(var r in t)t.hasOwnProperty(r)&&(e.style[r]=t[r]);return e}const vSt=Object.freeze(Object.defineProperty({__proto__:null,addEventListener:rv,createDom:Eg,getHeight:URe,getOuterHeight:HRe,getOuterWidth:KRe,getRatio:pSt,getStyle:rl,getWidth:GRe,modifyCSS:Qs},Symbol.toStringTag,{value:"Module"}));var pD=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},t.prototype.getContainer=function(){return this.get("container")},t.prototype.show=function(){var r=this.get("container");r.style.display="",this.set("visible",!0)},t.prototype.hide=function(){var r=this.get("container");r.style.display="none",this.set("visible",!1)},t.prototype.setCapture=function(r){var n=this.getContainer(),a=r?"auto":"none";n.style.pointerEvents=a,this.set("capture",r)},t.prototype.getBBox=function(){var r=this.getContainer(),n=parseFloat(r.style.left)||0,a=parseFloat(r.style.top)||0;return hD(n,a,r.clientWidth,r.clientHeight)},t.prototype.clear=function(){var r=this.get("container");k9(r)},t.prototype.destroy=function(){this.removeEvent(),this.removeDom(),e.prototype.destroy.call(this)},t.prototype.init=function(){e.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},t.prototype.initCapture=function(){this.setCapture(this.get("capture"))},t.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},t.prototype.initDom=function(){},t.prototype.initContainer=function(){var r=this.get("container");if(zr(r)){r=this.createDom();var n=this.get("parent");Pa(n)&&(n=document.getElementById(n),this.set("parent",n)),n.appendChild(r),this.get("containerId")&&r.setAttribute("id",this.get("containerId")),this.set("container",r)}else Pa(r)&&(r=document.getElementById(r),this.set("container",r));this.get("parent")||this.set("parent",r.parentNode)},t.prototype.resetStyles=function(){var r=this.get("domStyles"),n=this.get("defaultStyles");r?r=Wf({},n,r):r=n,this.set("domStyles",r)},t.prototype.applyStyles=function(){var r=this.get("domStyles");if(r){var n=this.getContainer();this.applyChildrenStyles(n,r);var a=this.get("containerClassName");if(a&&G2t(n,a)){var i=r[a];Qs(n,i)}}},t.prototype.applyChildrenStyles=function(r,n){wr(n,function(a,i){var o=r.getElementsByClassName(i);wr(o,function(s){Qs(s,a)})})},t.prototype.applyStyle=function(r,n){var a=this.get("domStyles");Qs(n,a[r])},t.prototype.createDom=function(){var r=this.get("containerTpl");return Eg(r)},t.prototype.initEvent=function(){},t.prototype.removeDom=function(){var r=this.get("container");r&&r.parentNode&&r.parentNode.removeChild(r)},t.prototype.removeEvent=function(){},t.prototype.updateInner=function(r){Dg(r,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},t.prototype.resetPosition=function(){},t})(P9),mSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation" style="position:absolute"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},t.prototype.render=function(){var r=this.getContainer(),n=this.get("html");k9(r);var a=Sa(n)?n(r):n;if(o9(a))r.appendChild(a);else if(Pa(a)||ti(a)){var i=Eg(""+a);i&&r.appendChild(i)}this.resetPosition()},t.prototype.resetPosition=function(){var r=this.getContainer(),n=this.getLocation(),a=n.x,i=n.y,o=this.get("alignX"),s=this.get("alignY"),l=this.get("offsetX"),c=this.get("offsetY"),A=KRe(r),u=HRe(r),d={x:a,y:i};o==="middle"?d.x-=Math.round(A/2):o==="right"&&(d.x-=Math.round(A)),s==="middle"?d.y-=Math.round(u/2):s==="bottom"&&(d.y-=Math.round(u)),l&&(d.x+=l),c&&(d.y+=c),Qs(r,{position:"absolute",left:d.x+"px",top:d.y+"px",zIndex:this.get("zIndex")})},t})(pD);const ESt=Object.freeze(Object.defineProperty({__proto__:null,Arc:lSt,DataMarker:uSt,DataRegion:dSt,Html:mSt,Image:ASt,Line:oSt,Region:cSt,RegionFilter:fSt,Shape:hSt,Text:sSt},Symbol.toStringTag,{value:"Module"}));function Bw(e,t,r){var n=t+"Style",a=null;return wr(r,function(i,o){e[o]&&i[n]&&(a||(a={}),xi(a,i[n]))}),a}var O9=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:On.lineColor}},tickLine:{style:{lineWidth:1,stroke:On.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:On.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:On.textColor,fontFamily:On.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:On.textColor,textBaseline:"middle",fontFamily:On.fontFamily,textAlign:"center"},iconStyle:{fill:On.descriptionIconFill,stroke:On.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:On.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},t.prototype.renderInner=function(r){this.get("line")&&this.drawLine(r),this.drawTicks(r),this.get("title")&&this.drawTitle(r)},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("ticks")},t.prototype.setItems=function(r){this.update({ticks:r})},t.prototype.updateItem=function(r,n){xi(r,n),this.clear(),this.render()},t.prototype.clearItems=function(){var r=this.getElementByLocalId("label-group");r&&r.clear()},t.prototype.setItemState=function(r,n,a){r[n]=a,this.updateTickStates(r)},t.prototype.hasState=function(r,n){return!!r[n]},t.prototype.getItemStates=function(r){var n=this.get("tickStates"),a=[];return wr(n,function(i,o){r[o]&&a.push(o)}),a},t.prototype.clearItemsState=function(r){var n=this,a=this.getItemsByState(r);wr(a,function(i){n.setItemState(i,r,!1)})},t.prototype.getItemsByState=function(r){var n=this,a=this.getItems();return Gy(a,function(i){return n.hasState(i,r)})},t.prototype.getSidePoint=function(r,n){var a=this,i=a.getSideVector(n,r);return{x:r.x+i[0],y:r.y+i[1]}},t.prototype.getTextAnchor=function(r){var n;return Cd(r[0],0)?n="center":r[0]>0?n="start":r[0]<0&&(n="end"),n},t.prototype.getTextBaseline=function(r){var n;return Cd(r[1],0)?n="middle":r[1]>0?n="top":r[1]<0&&(n="bottom"),n},t.prototype.processOverlap=function(r){},t.prototype.drawLine=function(r){var n=this.getLinePath(),a=this.get("line");this.addShape(r,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:xi({path:n},a.style)})},t.prototype.getTickLineItems=function(r){var n=this,a=[],i=this.get("tickLine"),o=i.alignTick,s=i.length,l=1,c=r.length;return c>=2&&(l=r[1].value-r[0].value),wr(r,function(A){var u=A.point;o||(u=n.getTickPoint(A.value-l/2));var d=n.getSidePoint(u,s);a.push({startPoint:u,tickValue:A.value,endPoint:d,tickId:A.id,id:"tickline-"+A.id})}),a},t.prototype.getSubTickLineItems=function(r){var n=[],a=this.get("subTickLine"),i=a.count,o=r.length;if(o>=2)for(var s=0;s<o-1;s++)for(var l=r[s],c=r[s+1],A=0;A<i;A++){var u=(A+1)/(i+1),d=(1-u)*l.tickValue+u*c.tickValue,f=this.getTickPoint(d),h=this.getSidePoint(f,a.length);n.push({startPoint:f,endPoint:h,tickValue:d,id:"sub-"+l.id+"-"+A})}return n},t.prototype.getTickLineAttrs=function(r,n,a,i){var o=this.get(n).style,s={points:[r.startPoint,r.endPoint]},l=qn(this.get("theme"),["tickLine","style"],{});o=Sa(o)?xi({},l,o(s,a,i)):o;var c=r.startPoint,A=r.endPoint;return nr({x1:c.x,y1:c.y,x2:A.x,y2:A.y},o)},t.prototype.drawTick=function(r,n,a,i,o){this.addShape(n,{type:"line",id:this.getElementId(r.id),name:"axis-"+a,attrs:this.getTickLineAttrs(r,a,i,o)})},t.prototype.drawTickLines=function(r){var n=this,a=this.get("ticks"),i=this.get("subTickLine"),o=this.getTickLineItems(a),s=this.addGroup(r,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),l=this.get("tickLine");if(wr(o,function(A,u){if(l.displayWithLabel){var d=n.getElementId("label-"+A.tickId);r.findById(d)&&n.drawTick(A,s,"tickLine",u,o)}else n.drawTick(A,s,"tickLine",u,o)}),i){var c=this.getSubTickLineItems(o);wr(c,function(A,u){n.drawTick(A,s,"subTickLine",u,c)})}},t.prototype.processTicks=function(){var r=this,n=this.get("ticks");wr(n,function(a){a.point=r.getTickPoint(a.value),zr(a.id)&&(a.id=a.name)})},t.prototype.drawTicks=function(r){var n=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(r),this.get("tickLine")&&this.drawTickLines(r);var a=this.get("ticks");wr(a,function(i){n.applyTickStates(i,r)})},t.prototype.optimizeTicks=function(){var r=this.get("optimize"),n=this.get("ticks");if(r&&r.enable&&r.threshold>0){var a=Ux(n);if(a>r.threshold){var i=Math.ceil(a/r.threshold),o=n.filter(function(s,l){return l%i===0});this.set("ticks",o),this.set("originalTicks",n)}}},t.prototype.getLabelAttrs=function(r,n,a){var i=this.get("label"),o=i.offset,s=i.offsetX,l=i.offsetY,c=i.rotate,A=i.formatter,u=this.getSidePoint(r.point,o),d=this.getSideVector(o,u),f=A?A(r.name,r,n):r.name,h=i.style;h=Sa(h)?qn(this.get("theme"),["label","style"],{}):h;var g=xi({x:u.x+s,y:u.y+l,text:f,textAlign:this.getTextAnchor(d),textBaseline:this.getTextBaseline(d)},h);return c&&(g.matrix=qv(u,c)),g},t.prototype.drawLabels=function(r){var n=this,a=this.get("ticks"),i=this.addGroup(r,{name:"axis-label-group",id:this.getElementId("label-group")});wr(a,function(d,f){n.addShape(i,{type:"text",name:"axis-label",id:n.getElementId("label-"+d.id),attrs:n.getLabelAttrs(d,f,a),delegateObject:{tick:d,item:d,index:f}})}),this.processOverlap(i);var o=i.getChildren(),s=qn(this.get("theme"),["label","style"],{}),l=this.get("label"),c=l.style,A=l.formatter;if(Sa(c)){var u=o.map(function(d){return qn(d.get("delegateObject"),"tick")});wr(o,function(d,f){var h=d.get("delegateObject").tick,g=A?A(h.name,h,f):h.name,p=xi({},s,c(g,f,u));d.attr(p)})}},t.prototype.getTitleAttrs=function(){var r=this.get("title"),n=r.style,a=r.position,i=r.offset,o=r.spacing,s=o===void 0?0:o,l=r.autoRotate,c=n.fontSize,A=.5;a==="start"?A=0:a==="end"&&(A=1);var u=this.getTickPoint(A),d=this.getSidePoint(u,i||s+c/2),f=xi({x:d.x,y:d.y,text:r.text},n),h=r.rotate,g=h;if(zr(h)&&l){var p=this.getAxisVector(u),m=[1,0];g=aD(p,m,!0)}if(g){var y=qv(d,g);f.matrix=y}return f},t.prototype.drawTitle=function(r){var n,a=this.getTitleAttrs(),i=this.addShape(r,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:a});!((n=this.get("title"))===null||n===void 0)&&n.description&&this.drawDescriptionIcon(r,i,a.matrix)},t.prototype.drawDescriptionIcon=function(r,n,a){var i=this.addGroup(r,{name:"axis-description",id:this.getElementById("description")}),o=n.getBBox(),s=o.maxX,l=o.maxY,c=o.height,A=this.get("title").iconStyle,u=4,d=c/2,f=d/6,h=s+u,g=l-c/2,p=[h+d,g-d],m=p[0],y=p[1],C=[m+d,y+d],w=C[0],B=C[1],x=[m,B+d],M=x[0],S=x[1],R=[h,y+d],b=R[0],T=R[1],D=[h+d,g-c/4],F=D[0],N=D[1],_=[F,N+f],P=_[0],k=_[1],j=[P,k+f],Y=j[0],X=j[1],K=[Y,X+d*3/4],U=K[0],H=K[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:nr({path:[["M",m,y],["A",d,d,0,0,1,w,B],["A",d,d,0,0,1,M,S],["A",d,d,0,0,1,b,T],["A",d,d,0,0,1,m,y],["M",F,N],["L",P,k],["M",Y,X],["L",U,H]],lineWidth:f,matrix:a},A)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:g-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:a,cursor:"pointer"}})},t.prototype.applyTickStates=function(r,n){var a=this.getItemStates(r);if(a.length){var i=this.get("tickStates"),o=this.getElementId("label-"+r.id),s=n.findById(o);if(s){var l=Bw(r,"label",i);l&&s.attr(l)}var c=this.getElementId("tickline-"+r.id),A=n.findById(c);if(A){var u=Bw(r,"tickLine",i);u&&A.attr(u)}}},t.prototype.updateTickStates=function(r){var n=this.getItemStates(r),a=this.get("tickStates"),i=this.get("label"),o=this.getElementByLocalId("label-"+r.id),s=this.get("tickLine"),l=this.getElementByLocalId("tickline-"+r.id);if(n.length){if(o){var c=Bw(r,"label",a);c&&o.attr(c)}if(l){var A=Bw(r,"tickLine",a);A&&l.attr(A)}}else o&&o.attr(i.style),l&&l.attr(s.style)},t})(Xo);function j9(e,t,r,n){var a=t.getChildren(),i=!1;return wr(a,function(o){var s=qw(e,o,r,n);i=i||s}),i}function ySt(){return VRe}function CSt(e,t,r){return j9(e,t,r,"head")}function VRe(e,t,r){return j9(e,t,r,"tail")}function wSt(e,t,r){return j9(e,t,r,"middle")}const BSt=Object.freeze(Object.defineProperty({__proto__:null,ellipsisHead:CSt,ellipsisMiddle:wSt,ellipsisTail:VRe,getDefault:ySt},Symbol.toStringTag,{value:"Module"}));function xSt(e){var t=e.attr("matrix");return t&&t[0]!==1}function JRe(e){var t=xSt(e)?U2t(e.attr("matrix")):0;return t%360}function oY(e,t,r,n){var a=!1,i=JRe(t),o=Math.abs(e?r.attr("y")-t.attr("y"):r.attr("x")-t.attr("x")),s=(e?r.attr("y")>t.attr("y"):r.attr("x")>t.attr("x"))?t.getBBox():r.getBBox();if(e){var l=Math.abs(Math.cos(i));oQ(l,0,Math.PI/180)?a=s.width+n>o:a=s.height/l+n>o}else{var l=Math.abs(Math.sin(i));oQ(l,0,Math.PI/180)?a=s.width+n>o:a=s.height/l+n>o}return a}function OB(e,t,r,n){var a=n?.minGap||0,i=t.getChildren().slice().filter(function(f){return f.get("visible")});if(!i.length)return!1;var o=!1;r&&i.reverse();for(var s=i.length,l=i[0],c=l,A=1;A<s;A++){var u=i[A];u.getBBox();var d=oY(e,c,u,a);d?(u.hide(),o=!0):c=u}return o}function WRe(e,t,r){var n=r?.minGap||0,a=t.getChildren().slice();if(a.length<2)return!1;var i=!1,o=a[0],s=o.getBBox(),l=a[1],c=a.length,A=JRe(o),u=Math.abs(e?l.attr("y")-o.attr("y"):l.attr("x")-o.attr("x")),d=0;if(e){var f=Math.abs(Math.cos(A));if(oQ(f,0,Math.PI/180)){var h=aY(a);d=(h+n)/u}else d=(s.height/f+n)/u}else{var f=Math.abs(Math.sin(A));if(oQ(f,0,Math.PI/180)){var h=aY(a);d=(h+n)/u}else d=(s.height/f+n)/u}if(d>1){d=Math.ceil(d);for(var g=0;g<c;g++)g%d!==0&&(a[g].hide(),i=!0)}return i}function MSt(){return XRe}function ISt(e,t,r,n){return OB(e,t,!1,n)}function bSt(e,t,r,n){return OB(e,t,!0,n)}function SSt(e,t,r,n){var a=n?.minGap||0,i=t.getChildren().slice();if(i.length<=2)return!1;for(var o=!1,s=i.length,l=i[0],c=i[s-1],A=l,u=1;u<s-1;u++){var d=i[u];d.getBBox();var f=oY(e,A,d,a);f?(d.hide(),o=!0):A=d}var h=oY(e,A,c,a);return h&&(A.hide(),o=!0),o}function XRe(e,t,r,n){var a=WRe(e,t,n);return OB(e,t,!1)&&(a=!0),a}function RSt(e,t,r,n){var a=t.getChildren().slice(),i=WRe(e,t,n);if(a.length>2){var o=a[0],s=a[a.length-1];o.get("visible")||(o.show(),OB(e,t,!1,n)&&(i=!0)),s.get("visible")||(s.show(),OB(e,t,!0,n)&&(i=!0))}return i}const TSt=Object.freeze(Object.defineProperty({__proto__:null,equidistance:XRe,equidistanceWithReverseBoth:RSt,getDefault:MSt,reserveBoth:SSt,reserveFirst:ISt,reserveLast:bSt},Symbol.toStringTag,{value:"Module"}));function QSt(e,t){wr(e,function(r){var n=r.attr("x"),a=r.attr("y"),i=qv({x:n,y:a},t);r.attr("matrix",i)})}function qRe(e,t,r,n){var a=t.getChildren();if(!a.length||!e&&a.length<2)return!1;var i=aY(a),o=!1;if(e)o=!!r&&i>r;else{var s=Math.abs(a[1].attr("x")-a[0].attr("x"));o=i>s}if(o){var l=n(r,i);QSt(a,l)}return o}function DSt(){return ZRe}function ZRe(e,t,r,n){return qRe(e,t,r,function(){return ti(n)?n:e?On.verticalAxisRotate:On.horizontalAxisRotate})}function FSt(e,t,r){return qRe(e,t,r,function(n,a){if(!n)return e?On.verticalAxisRotate:On.horizontalAxisRotate;if(e)return-Math.acos(n/a);var i=0;return n>a?i=Math.PI/4:(i=Math.asin(n/a),i>Math.PI/4&&(i=Math.PI/4)),i})}const NSt=Object.freeze(Object.defineProperty({__proto__:null,fixedAngle:ZRe,getDefault:DSt,unfixedAngle:FSt},Symbol.toStringTag,{value:"Module"})),$Re=Object.freeze(Object.defineProperty({__proto__:null,autoEllipsis:BSt,autoHide:TSt,autoRotate:NSt},Symbol.toStringTag,{value:"Module"}));var _St=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getLinePath=function(){var r=this.get("start"),n=this.get("end"),a=[];return a.push(["M",r.x,r.y]),a.push(["L",n.x,n.y]),a},t.prototype.getInnerLayoutBBox=function(){var r=this.get("start"),n=this.get("end"),a=e.prototype.getInnerLayoutBBox.call(this),i=Math.min(r.x,n.x,a.x),o=Math.min(r.y,n.y,a.y),s=Math.max(r.x,n.x,a.maxX),l=Math.max(r.y,n.y,a.maxY);return{x:i,y:o,minX:i,minY:o,maxX:s,maxY:l,width:s-i,height:l-o}},t.prototype.isVertical=function(){var r=this.get("start"),n=this.get("end");return Cd(r.x,n.x)},t.prototype.isHorizontal=function(){var r=this.get("start"),n=this.get("end");return Cd(r.y,n.y)},t.prototype.getTickPoint=function(r){var n=this,a=n.get("start"),i=n.get("end"),o=i.x-a.x,s=i.y-a.y;return{x:a.x+o*r,y:a.y+s*r}},t.prototype.getSideVector=function(r){var n=this.getAxisVector(),a=f9([0,0],n),i=this.get("verticalFactor"),o=[a[1],a[0]*-1];return ig([0,0],o,r*i)},t.prototype.getAxisVector=function(){var r=this.get("start"),n=this.get("end");return[n.x-r.x,n.y-r.y]},t.prototype.processOverlap=function(r){var n=this,a=this.isVertical(),i=this.isHorizontal();if(!(!a&&!i)){var o=this.get("label"),s=this.get("title"),l=this.get("verticalLimitLength"),c=o.offset,A=l,u=0,d=0;s&&(u=s.style.fontSize,d=s.spacing),A&&(A=A-c-d-u);var f=this.get("overlapOrder");if(wr(f,function(p){o[p]&&n.canProcessOverlap(p)&&n.autoProcessOverlap(p,o[p],r,A)}),s&&zr(s.offset)){var h=r.getCanvasBBox(),g=a?h.width:h.height;s.offset=c+g+d+u/2}}},t.prototype.canProcessOverlap=function(r){var n=this.get("label");return r==="autoRotate"?zr(n.rotate):!0},t.prototype.autoProcessOverlap=function(r,n,a,i){var o=this,s=this.isVertical(),l=!1,c=$Re[r];if(n===!0)this.get("label"),l=c.getDefault()(s,a,i);else if(Sa(n))l=n(s,a,i);else if(fc(n)){var A=n;c[A.type]&&(l=c[A.type](s,a,i,A.cfg))}else c[n]&&(l=c[n](s,a,i));if(r==="autoRotate"){if(l){var u=a.getChildren(),d=this.get("verticalFactor");wr(u,function(h){var g=h.attr("textAlign");if(g==="center"){var p=d>0?"end":"start";h.attr("textAlign",p)}})}}else if(r==="autoHide"){var f=a.getChildren().slice(0);wr(f,function(h){h.get("visible")||(o.get("isRegister")&&o.unregisterElement(h),h.remove())})}},t})(O9),kSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getLinePath=function(){var r=this.get("center"),n=r.x,a=r.y,i=this.get("radius"),o=i,s=this.get("startAngle"),l=this.get("endAngle"),c=[];if(Math.abs(l-s)===Math.PI*2)c=[["M",n,a-o],["A",i,o,0,1,1,n,a+o],["A",i,o,0,1,1,n,a-o],["Z"]];else{var A=this.getCirclePoint(s),u=this.getCirclePoint(l),d=Math.abs(l-s)>Math.PI?1:0,f=s>l?0:1;c=[["M",n,a],["L",A.x,A.y],["A",i,o,0,d,f,u.x,u.y],["L",n,a]]}return c},t.prototype.getTickPoint=function(r){var n=this.get("startAngle"),a=this.get("endAngle"),i=n+(a-n)*r;return this.getCirclePoint(i)},t.prototype.getSideVector=function(r,n){var a=this.get("center"),i=[n.x-a.x,n.y-a.y],o=this.get("verticalFactor"),s=fg(i);return ig(i,i,o*r/s),i},t.prototype.getAxisVector=function(r){var n=this.get("center"),a=[r.x-n.x,r.y-n.y];return[a[1],-1*a[0]]},t.prototype.getCirclePoint=function(r,n){var a=this.get("center");return n=n||this.get("radius"),{x:a.x+Math.cos(r)*n,y:a.y+Math.sin(r)*n}},t.prototype.canProcessOverlap=function(r){var n=this.get("label");return r==="autoRotate"?zr(n.rotate):!0},t.prototype.processOverlap=function(r){var n=this,a=this.get("label"),i=this.get("title"),o=this.get("verticalLimitLength"),s=a.offset,l=o,c=0,A=0;i&&(c=i.style.fontSize,A=i.spacing),l&&(l=l-s-A-c);var u=this.get("overlapOrder");if(wr(u,function(f){a[f]&&n.canProcessOverlap(f)&&n.autoProcessOverlap(f,a[f],r,l)}),i&&zr(i.offset)){var d=r.getCanvasBBox().height;i.offset=s+d+A+c/2}},t.prototype.autoProcessOverlap=function(r,n,a,i){var o=this,s=!1,l=$Re[r];if(i>0)if(n===!0)s=l.getDefault()(!1,a,i);else if(Sa(n))s=n(!1,a,i);else if(fc(n)){var c=n;l[c.type]&&(s=l[c.type](!1,a,i,c.cfg))}else l[n]&&(s=l[n](!1,a,i));if(r==="autoRotate"){if(s){var A=a.getChildren(),u=this.get("verticalFactor");wr(A,function(f){var h=f.attr("textAlign");if(h==="center"){var g=u>0?"end":"start";f.attr("textAlign",g)}})}}else if(r==="autoHide"){var d=a.getChildren().slice(0);wr(d,function(f){f.get("visible")||(o.get("isRegister")&&o.unregisterElement(f),f.remove())})}},t})(O9);const PSt=Object.freeze(Object.defineProperty({__proto__:null,Base:O9,Circle:kSt,Line:_St},Symbol.toStringTag,{value:"Module"}));var z9=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:On.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:On.textColor,textAlign:"center",textBaseline:"middle",fontFamily:On.fontFamily}},textBackground:{padding:5,style:{stroke:On.lineColor}}}})},t.prototype.renderInner=function(r){this.get("line")&&this.renderLine(r),this.get("text")&&(this.renderText(r),this.renderBackground(r))},t.prototype.renderText=function(r){var n=this.get("text"),a=n.style,i=n.autoRotate,o=n.content;if(!zr(o)){var s=this.getTextPoint(),l=null;if(i){var c=this.getRotateAngle();l=qv(s,c)}this.addShape(r,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:nr(nr(nr({},s),{text:o,matrix:l}),a)})}},t.prototype.renderLine=function(r){var n=this.getLinePath(),a=this.get("line"),i=a.style;this.addShape(r,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:nr({path:n},i)})},t.prototype.renderBackground=function(r){var n=this.getElementId("text"),a=r.findById(n),i=this.get("textBackground");if(i&&a){var o=a.getBBox(),s=iQ(i.padding),l=i.style,c=this.addShape(r,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:nr({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:a.attr("matrix")},l)});c.toBack()}},t})(Xo),OSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{type:"line",locationType:"region",start:null,end:null})},t.prototype.getRotateAngle=function(){var r=this.getLocation(),n=r.start,a=r.end,i=this.get("text").position,o=Math.atan2(a.y-n.y,a.x-n.x),s=i==="start"?o-Math.PI/2:o+Math.PI/2;return s},t.prototype.getTextPoint=function(){var r=this.getLocation(),n=r.start,a=r.end,i=this.get("text"),o=i.position,s=i.offset;return LRe(n,a,o,s)},t.prototype.getLinePath=function(){var r=this.getLocation(),n=r.start,a=r.end;return[["M",n.x,n.y],["L",a.x,a.y]]},t})(z9),jSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:Math.PI*3/2})},t.prototype.getRotateAngle=function(){var r=this.getLocation(),n=r.startAngle,a=r.endAngle,i=this.get("text").position,o=i==="start"?n+Math.PI/2:a-Math.PI/2;return o},t.prototype.getTextPoint=function(){var r=this.get("text"),n=r.position,a=r.offset,i=this.getLocation(),o=i.center,s=i.radius,l=i.startAngle,c=i.endAngle,A=n==="start"?l:c,u=this.getRotateAngle()-Math.PI,d=jE(o,s,A),f=Math.cos(u)*a,h=Math.sin(u)*a;return{x:d.x+f,y:d.y+h}},t.prototype.getLinePath=function(){var r=this.getLocation(),n=r.center,a=r.radius,i=r.startAngle,o=r.endAngle,s=null;if(o-i===Math.PI*2){var l=n.x,c=n.y;s=[["M",l,c-a],["A",a,a,0,1,1,l,c+a],["A",a,a,0,1,1,l,c-a],["Z"]]}else{var A=jE(n,a,i),u=jE(n,a,o),d=Math.abs(o-i)>Math.PI?1:0,f=i>o?0:1;s=[["M",A.x,A.y],["A",a,a,0,d,f,u.x,u.y]]}return s},t})(z9),jB="g2-crosshair",sY=jB+"-line",lY=jB+"-text",EC;const zSt=(EC={},EC[""+jB]={position:"relative"},EC[""+sY]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},EC[""+lY]={position:"absolute",color:On.textColor,fontFamily:On.fontFamily},EC);var LSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+jB+'"></div>',crosshairTpl:'<div class="'+sY+'"></div>',textTpl:'<span class="'+lY+'">{content}</span>',domStyles:null,containerClassName:jB,defaultStyles:zSt,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},t.prototype.render=function(){this.resetText(),this.resetPosition()},t.prototype.initCrossHair=function(){var r=this.getContainer(),n=this.get("crosshairTpl"),a=Eg(n);r.appendChild(a),this.applyStyle(sY,a),this.set("crosshairEl",a)},t.prototype.getTextPoint=function(){var r=this.getLocation(),n=r.start,a=r.end,i=this.get("text"),o=i.position,s=i.offset;return LRe(n,a,o,s)},t.prototype.resetText=function(){var r=this.get("text"),n=this.get("textEl");if(r){var a=r.content;if(!n){var i=this.getContainer(),o=a9(this.get("textTpl"),r);n=Eg(o),i.appendChild(n),this.applyStyle(lY,n),this.set("textEl",n)}n.innerHTML=a}else n&&n.remove()},t.prototype.isVertical=function(r,n){return r.x===n.x},t.prototype.resetPosition=function(){var r=this.get("crosshairEl");r||(this.initCrossHair(),r=this.get("crosshairEl"));var n=this.get("start"),a=this.get("end"),i=Math.min(n.x,a.x),o=Math.min(n.y,a.y);this.isVertical(n,a)?Qs(r,{width:"1px",height:Tl(Math.abs(a.y-n.y))}):Qs(r,{height:"1px",width:Tl(Math.abs(a.x-n.x))}),Qs(r,{top:Tl(o),left:Tl(i)}),this.alignText()},t.prototype.alignText=function(){var r=this.get("textEl");if(r){var n=this.get("text").align,a=r.clientWidth,i=this.getTextPoint();switch(n){case"center":i.x=i.x-a/2;break;case"right":i.x=i.x-a}Qs(r,{top:Tl(i.y),left:Tl(i.x)})}},t.prototype.updateInner=function(r){Dg(r,"text")&&this.resetText(),e.prototype.updateInner.call(this,r)},t})(pD);const YSt=Object.freeze(Object.defineProperty({__proto__:null,Base:z9,Circle:jSt,Html:LSt,Line:OSt},Symbol.toStringTag,{value:"Module"}));var L9=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:On.lineColor}}}})},t.prototype.getLineType=function(){var r=this.get("line")||this.get("defaultCfg").line;return r.type},t.prototype.renderInner=function(r){this.drawGrid(r)},t.prototype.getAlternatePath=function(r,n){var a=this.getGridPath(r),i=n.slice(0).reverse(),o=this.getGridPath(i,!0),s=this.get("closed");return s?a=a.concat(o):(o[0][0]="L",a=a.concat(o),a.push(["Z"])),a},t.prototype.getPathStyle=function(){return this.get("line").style},t.prototype.drawGrid=function(r){var n=this,a=this.get("line"),i=this.get("items"),o=this.get("alternateColor"),s=null;wr(i,function(l,c){var A=l.id||c;if(a){var u=n.getPathStyle();u=Sa(u)?u(l,c,i):u;var d=n.getElementId("line-"+A),f=n.getGridPath(l.points);n.addShape(r,{type:"path",name:"grid-line",id:d,attrs:xi({path:f},u)})}if(o&&c>0){var h=n.getElementId("region-"+A),g=c%2===0;if(Pa(o))g&&n.drawAlternateRegion(h,r,s.points,l.points,o);else{var p=g?o[1]:o[0];n.drawAlternateRegion(h,r,s.points,l.points,p)}}s=l})},t.prototype.drawAlternateRegion=function(r,n,a,i,o){var s=this.getAlternatePath(a,i);this.addShape(n,{type:"path",id:r,name:"grid-region",attrs:{path:s,fill:o}})},t})(Xo);function USt(e,t,r,n){var a=r-e,i=n-t;return Math.sqrt(a*a+i*i)}var HSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{type:"circle",center:null,closed:!0})},t.prototype.getGridPath=function(r,n){var a=this.getLineType(),i=this.get("closed"),o=[];if(r.length)if(a==="circle"){var s=this.get("center"),l=r[0],c=USt(s.x,s.y,l.x,l.y),A=n?0:1;i?(o.push(["M",s.x,s.y-c]),o.push(["A",c,c,0,0,A,s.x,s.y+c]),o.push(["A",c,c,0,0,A,s.x,s.y-c]),o.push(["Z"])):wr(r,function(u,d){d===0?o.push(["M",u.x,u.y]):o.push(["A",c,c,0,0,A,u.x,u.y])})}else wr(r,function(u,d){d===0?o.push(["M",u.x,u.y]):o.push(["L",u.x,u.y])}),i&&o.push(["Z"]);return o},t})(L9),GSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{type:"line"})},t.prototype.getGridPath=function(r){var n=[];return wr(r,function(a,i){i===0?n.push(["M",a.x,a.y]):n.push(["L",a.x,a.y])}),n},t})(L9);const KSt=Object.freeze(Object.defineProperty({__proto__:null,Base:L9,Circle:HSt,Line:GSt},Symbol.toStringTag,{value:"Module"}));var Y9=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},t.prototype.getLayoutBBox=function(){var r=e.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),a=this.get("maxHeight"),i=r.width,o=r.height;return n&&(i=Math.min(i,n)),a&&(o=Math.min(o,a)),hD(r.minX,r.minY,i,o)},t.prototype.setLocation=function(r){this.set("x",r.x),this.set("y",r.y),this.resetLocation()},t.prototype.resetLocation=function(){var r=this.get("x"),n=this.get("y"),a=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:r+a,y:n+i})},t.prototype.applyOffset=function(){this.resetLocation()},t.prototype.getDrawPoint=function(){return this.get("currentPoint")},t.prototype.setDrawPoint=function(r){return this.set("currentPoint",r)},t.prototype.renderInner=function(r){this.resetDraw(),this.get("title")&&this.drawTitle(r),this.drawLegendContent(r),this.get("background")&&this.drawBackground(r)},t.prototype.drawBackground=function(r){var n=this.get("background"),a=r.getBBox(),i=iQ(n.padding),o=nr({x:0,y:0,width:a.width+i[1]+i[3],height:a.height+i[0]+i[2]},n.style),s=this.addShape(r,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});s.toBack()},t.prototype.drawTitle=function(r){var n=this.get("currentPoint"),a=this.get("title"),i=a.spacing,o=a.style,s=a.text,l=this.addShape(r,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:nr({text:s,x:n.x,y:n.y},o)}),c=l.getBBox();this.set("currentPoint",{x:n.x,y:c.maxY+i})},t.prototype.resetDraw=function(){var r=this.get("background"),n={x:0,y:0};if(r){var a=iQ(r.padding);n.x=a[3],n.y=a[0]}this.set("currentPoint",n)},t})(Xo),XO={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},Cb={fill:On.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:On.fontFamily,fontWeight:"normal",lineHeight:12},qO="navigation-arrow-right",ZO="navigation-arrow-left",oce={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},VSt=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.currentPageIndex=1,r.totalPagesCnt=1,r.pageWidth=0,r.pageHeight=0,r.startX=0,r.startY=0,r.onNavigationBack=function(){var n=r.getElementByLocalId("item-group");if(r.currentPageIndex>1){r.currentPageIndex-=1,r.updateNavigation();var a=r.getCurrentNavigationMatrix();r.get("animate")?n.animate({matrix:a},100):n.attr({matrix:a})}},r.onNavigationAfter=function(){var n=r.getElementByLocalId("item-group");if(r.currentPageIndex<r.totalPagesCnt){r.currentPageIndex+=1,r.updateNavigation();var a=r.getCurrentNavigationMatrix();r.get("animate")?n.animate({matrix:a},100):n.attr({matrix:a})}},r}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:On.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:On.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:XO,itemName:{spacing:16,style:Cb},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:Cb,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:On.uncheckedColor},markerStyle:{fill:On.uncheckedColor,stroke:On.uncheckedColor}},inactive:{nameStyle:{fill:On.uncheckedColor},markerStyle:{opacity:.2}}}}})},t.prototype.isList=function(){return!0},t.prototype.getItems=function(){return this.get("items")},t.prototype.setItems=function(r){this.update({items:r})},t.prototype.updateItem=function(r,n){xi(r,n),this.clear(),this.render()},t.prototype.clearItems=function(){var r=this.getElementByLocalId("item-group");r&&r.clear()},t.prototype.setItemState=function(r,n,a){r[n]=a;var i=this.getElementByLocalId("item-"+r.id);if(i){var o=this.getItems(),s=o.indexOf(r),l=this.createOffScreenGroup(),c=this.drawItem(r,s,this.getItemHeight(),l);this.updateElements(c,i),this.clearUpdateStatus(i)}},t.prototype.hasState=function(r,n){return!!r[n]},t.prototype.getItemStates=function(r){var n=this.get("itemStates"),a=[];return wr(n,function(i,o){r[o]&&a.push(o)}),a},t.prototype.clearItemsState=function(r){var n=this,a=this.getItemsByState(r);wr(a,function(i){n.setItemState(i,r,!1)})},t.prototype.getItemsByState=function(r){var n=this,a=this.getItems();return Gy(a,function(i){return n.hasState(i,r)})},t.prototype.drawLegendContent=function(r){this.processItems(),this.drawItems(r)},t.prototype.processItems=function(){var r=this.get("items");wr(r,function(n){n.id||(n.id=n.name)})},t.prototype.drawItems=function(r){var n=this,a=this.addGroup(r,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(a,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),s=this.get("itemWidth"),l=this.get("itemSpacing"),c=this.get("itemMarginBottom"),A=this.get("currentPoint"),u=A.x,d=A.y,f=this.get("layout"),h=this.get("items"),g=!1,p=0,m=this.get("maxWidth"),y=this.get("maxHeight");wr(h,function(C,w){var B=n.drawItem(C,w,o,i),x=B.getBBox(),M=s||x.width;M>p&&(p=M),f==="horizontal"?(m&&m<A.x+M-u&&(g=!0,A.x=u,A.y+=o+c),n.moveElementTo(B,A),A.x+=M+l):(y&&y<A.y+o+c-d&&(g=!0,A.x+=p+l,A.y=d,p=0),n.moveElementTo(B,A),A.y+=o+c)}),g&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=d,this.adjustNavigation(r,i))},t.prototype.getItemHeight=function(){var r=this.get("itemHeight");if(!r){var n=(this.get("itemName")||{}).style;if(Sa(n)){var a=this.getItems();a.forEach(function(i,o){var s=nr(nr({},Cb),n(i,o,a)).fontSize;r<s&&(r=s)})}else n&&(r=n.fontSize)}return r},t.prototype.drawMarker=function(r,n,a,i){var o=nr(nr(nr({x:0,y:i/2},n.style),{symbol:qn(a.marker,"symbol","circle")}),qn(a.marker,"style",{})),s=this.addShape(r,{type:"marker",id:this.getElementId("item-"+a.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var c=s.attr(),A=c.stroke,u=c.fill;return A&&s.set("isStroke",!0),u&&s.set("isFill",!0),s},t.prototype.drawItemText=function(r,n,a,i,o,s,l){var c=a.formatter,A=a.style,u=nr(nr({x:s,y:o/2,text:c?c(i[n],i,l):i[n]},Cb),Sa(A)?A(i,l,this.getItems()):A);return this.addShape(r,{type:"text",id:this.getElementId("item-"+i.id+"-"+n),name:"legend-item-"+n,attrs:u})},t.prototype.drawRadio=function(r,n,a,i,o){var s,l,c=n.style||{},A=(s=c.r)!==null&&s!==void 0?s:i/2,u=A*3.6/8,d=[o+A,i/2-A],f=d[0],h=d[1],g=[f+A,h+A],p=g[0],m=g[1],y=[f,m+A],C=y[0],w=y[1],B=[o,h+A],x=B[0],M=B[1],S=a.showRadio,R=nr(nr({path:[["M",f,h],["A",A,A,0,0,1,p,m],["L",p-u,m],["L",p,m],["A",A,A,0,0,1,C,w],["L",C,w-u],["L",C,w],["A",A,A,0,0,1,x,M],["L",x+u,M],["L",x,M],["A",A,A,0,0,1,f,h],["L",f,h+u]],stroke:"#000000",fill:"#ffffff"},c),{opacity:S?(l=c?.opacity)!==null&&l!==void 0?l:.45:0}),b=this.addShape(r,{type:"path",id:this.getElementId("item-"+a.id+"-radio"),name:"legend-item-radio",attrs:R});return b.set("tip",n.tip),b},t.prototype.drawItem=function(r,n,a,i){var o="item-"+r.id,s=this.addGroup(i,{name:"legend-item-container",id:this.getElementId("item-container-"+o),delegateObject:{item:r,index:n}}),l=this.addGroup(s,{name:"legend-item",id:this.getElementId(o),delegateObject:{item:r,index:n}}),c=this.get("marker"),A=this.get("itemName"),u=this.get("itemValue"),d=this.get("itemBackground"),f=this.get("radio"),h=this.getLimitItemWidth(),g=0;if(c){var p=this.drawMarker(l,c,r,a),m=c.spacing,y=qn(r,["marker","spacing"]);ti(y)&&(m=y),g=p.getBBox().maxX+m}if(A){var C=this.drawItemText(l,"name",A,r,a,g,n);h&&qw(!0,C,Ts(h-g,0,h)),g=C.getBBox().maxX+A.spacing}if(u){var w=this.drawItemText(l,"value",u,r,a,g,n);h&&(u.alignRight?(w.attr({textAlign:"right",x:h}),qw(!0,w,Ts(h-g,0,h),"head")):qw(!0,w,Ts(h-g,0,h))),g=w.getBBox().maxX+u.spacing}if(f&&this.drawRadio(l,f,r,a,g),d){var B=l.getBBox(),x=this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(o+"-background"),attrs:nr({x:0,y:0,width:B.width,height:a},d.style)});x.toBack()}return this.applyItemStates(r,l),l},t.prototype.adjustNavigation=function(r,n){var a=this,i=this.startX,o=this.startY,s=this.get("layout"),l=n.findAll(function(D){return D.get("name")==="legend-item"}),c=this.get("maxWidth"),A=this.get("maxHeight"),u=this.get("itemWidth"),d=this.get("itemSpacing"),f=this.getItemHeight(),h=Wf({},XO,this.get("pageNavigator")),g=this.drawNavigation(r,s,"00/00",h),p=g.getBBox(),m={x:i,y:o},y=1,C=0,w=0,B=0,x=this.get("itemMarginBottom");function M(D,F){var N=D.getBBox(),_=u||N.width,P=F.x+_+d+p.width;return P>c}if(s==="horizontal"){var S=this.get("maxRow")||1,R=f+(S===1?0:x),b=c-d-p.width-p.minX;this.pageHeight=R*S,this.pageWidth=b,wr(l,function(D){var F=D.getBBox(),N=u||F.width;(C&&C<m.x+N+d||M(D,m))&&(y===1&&(C=m.x+d,a.moveElementTo(g,{x:b,y:m.y+f/2-p.height/2-p.minY})),y+=1,m.x=i,m.y+=R),a.moveElementTo(D,m),D.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:N+d,height:f}}),m.x+=N+d})}else{wr(l,function(D){var F=D.getBBox();F.width>w&&(w=F.width)}),B=w,w+=d,c&&(w=Math.min(c,w),B=Math.min(c,B)),this.pageWidth=w,this.pageHeight=A-Math.max(p.height,f+x);var T=Math.floor(this.pageHeight/(f+x));wr(l,function(D,F){F!==0&&F%T===0&&(y+=1,m.x+=w,m.y=o),a.moveElementTo(D,m),D.getParent().setClip({type:"rect",attrs:{x:m.x,y:m.y,width:w,height:f}}),m.y+=f+x}),this.totalPagesCnt=y,this.moveElementTo(g,{x:i+B/2-p.width/2-p.minX,y:A-p.height-p.minY})}this.pageHeight&&this.pageWidth&&n.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),s==="horizontal"&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(y/this.get("maxRow")):this.totalPagesCnt=y,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),n.attr("matrix",this.getCurrentNavigationMatrix())},t.prototype.drawNavigation=function(r,n,a,i){var o={x:0,y:0},s=this.addGroup(r,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=qn(i.marker,"style",{}),c=l.size,A=c===void 0?12:c,u=Hy(l,["size"]),d=this.drawArrow(s,o,ZO,n==="horizontal"?"up":"left",A,u);d.on("click",this.onNavigationBack);var f=d.getBBox();o.x+=f.width+2;var h=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:nr({x:o.x,y:o.y+A/2,text:a,textBaseline:"middle"},qn(i.text,"style"))}),g=h.getBBox();o.x+=g.width+2;var p=this.drawArrow(s,o,qO,n==="horizontal"?"down":"right",A,u);return p.on("click",this.onNavigationAfter),s},t.prototype.updateNavigation=function(r){var n=Wf({},XO,this.get("pageNavigator")),a=n.marker.style,i=a.fill,o=a.opacity,s=a.inactiveFill,l=a.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,A=r?r.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=r?r.findById(this.getElementId(ZO)):this.getElementByLocalId(ZO),d=r?r.findById(this.getElementId(qO)):this.getElementByLocalId(qO);A.attr("text",c),u.attr("opacity",this.currentPageIndex===1?l:o),u.attr("fill",this.currentPageIndex===1?s:i),u.attr("cursor",this.currentPageIndex===1?"not-allowed":"pointer"),d.attr("opacity",this.currentPageIndex===this.totalPagesCnt?l:o),d.attr("fill",this.currentPageIndex===this.totalPagesCnt?s:i),d.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=u.getBBox().maxX+2;A.attr("x",f),f+=A.getBBox().width+2,this.updateArrowPath(d,{x:f,y:0})},t.prototype.drawArrow=function(r,n,a,i,o,s){var l=n.x,c=n.y,A=this.addShape(r,{type:"path",id:this.getElementId(a),name:a,attrs:nr({size:o,direction:i,path:[["M",l+o/2,c],["L",l,c+o],["L",l+o,c+o],["Z"]],cursor:"pointer"},s)});return A.attr("matrix",qv({x:l+o/2,y:c+o/2},oce[i])),A},t.prototype.updateArrowPath=function(r,n){var a=n.x,i=n.y,o=r.attr(),s=o.size,l=o.direction,c=qv({x:a+s/2,y:i+s/2},oce[l]);r.attr("path",[["M",a+s/2,i],["L",a,i+s],["L",a+s,i+s],["Z"]]),r.attr("matrix",c)},t.prototype.getCurrentNavigationMatrix=function(){var r=this,n=r.currentPageIndex,a=r.pageWidth,i=r.pageHeight,o=this.get("layout"),s=o==="horizontal"?{x:0,y:i*(1-n)}:{x:a*(1-n),y:0};return N9(s)},t.prototype.applyItemStates=function(r,n){var a=this.getItemStates(r),i=a.length>0;if(i){var o=n.getChildren(),s=this.get("itemStates");wr(o,function(l){var c=l.get("name"),A=c.split("-")[2],u=Bw(r,A,s);u&&(l.attr(u),A==="marker"&&!(l.get("isStroke")&&l.get("isFill"))&&(l.get("isStroke")&&l.attr("fill",null),l.get("isFill")&&l.attr("stroke",null)))})}},t.prototype.getLimitItemWidth=function(){var r=this.get("itemWidth"),n=this.get("maxItemWidth");return n?r&&(n=r<=n?r:n):r&&(n=r),n},t})(Y9),JSt=1.4,sce=.4,WSt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:On.textColor,textBaseline:"middle",fontFamily:On.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:On.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},t.prototype.isSlider=function(){return!0},t.prototype.getValue=function(){return this.getCurrentValue()},t.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},t.prototype.setRange=function(r,n){this.update({min:r,max:n})},t.prototype.setValue=function(r){var n=this.getValue();this.set("value",r);var a=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(a),this.delegateEmit("valuechanged",{originValue:n,value:r})},t.prototype.initEvent=function(){var r=this.get("group");this.bindSliderEvent(r),this.bindRailEvent(r),this.bindTrackEvent(r)},t.prototype.drawLegendContent=function(r){this.drawRail(r),this.drawLabels(r),this.fixedElements(r),this.resetTrack(r),this.resetTrackClip(r),this.get("slidable")&&this.resetHandlers(r)},t.prototype.bindSliderEvent=function(r){this.bindHandlersEvent(r)},t.prototype.bindHandlersEvent=function(r){var n=this;r.on("legend-handler-min:drag",function(a){var i=n.getValueByCanvasPoint(a.x,a.y),o=n.getCurrentValue(),s=o[1];s<i&&(s=i),n.setValue([i,s])}),r.on("legend-handler-max:drag",function(a){var i=n.getValueByCanvasPoint(a.x,a.y),o=n.getCurrentValue(),s=o[0];s>i&&(s=i),n.setValue([s,i])})},t.prototype.bindRailEvent=function(r){},t.prototype.bindTrackEvent=function(r){var n=this,a=null;r.on("legend-track:dragstart",function(i){a={x:i.x,y:i.y}}),r.on("legend-track:drag",function(i){if(a){var o=n.getValueByCanvasPoint(a.x,a.y),s=n.getValueByCanvasPoint(i.x,i.y),l=n.getCurrentValue(),c=l[1]-l[0],A=n.getRange(),u=s-o;u<0?l[0]+u>A.min?n.setValue([l[0]+u,l[1]+u]):n.setValue([A.min,A.min+c]):u>0&&(u>0&&l[1]+u<A.max?n.setValue([l[0]+u,l[1]+u]):n.setValue([A.max-c,A.max])),a={x:i.x,y:i.y}}}),r.on("legend-track:dragend",function(i){a=null})},t.prototype.drawLabels=function(r){this.drawLabel("min",r),this.drawLabel("max",r)},t.prototype.drawLabel=function(r,n){var a=this.get("label"),i=a.style,o=a.align,s=a.formatter,l=this.get(r),c=this.getLabelAlignAttrs(r,o),A="label-"+r;this.addShape(n,{type:"text",id:this.getElementId(A),name:"legend-label-"+r,attrs:nr(nr({x:0,y:0,text:Sa(s)?s(l):l},i),c)})},t.prototype.getLabelAlignAttrs=function(r,n){var a=this.isVertical(),i="center",o="middle";return a?(i="start",n!=="rail"?r==="min"?o="top":o="bottom":o="top"):n!=="rail"?(o="top",r==="min"?i="start":i="end"):(i="start",o="middle"),{textAlign:i,textBaseline:o}},t.prototype.getRailPath=function(r,n,a,i){var o=this.get("rail"),s=o.size,l=o.defaultLength,c=o.type,A=this.isVertical(),u=l,d=a,f=i;d||(d=A?s:u),f||(f=A?u:s);var h=[];return c==="color"?(h.push(["M",r,n]),h.push(["L",r+d,n]),h.push(["L",r+d,n+f]),h.push(["L",r,n+f]),h.push(["Z"])):(h.push(["M",r+d,n]),h.push(["L",r+d,n+f]),h.push(["L",r,n+f]),h.push(["Z"])),h},t.prototype.drawRail=function(r){var n=this.get("rail"),a=n.style;this.addShape(r,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:nr({path:this.getRailPath(0,0)},a)})},t.prototype.getTrackColor=function(r){var n=r.length;if(!n)return null;if(n===1)return r[0];var a;this.isVertical()?a="l(90)":a="l(0)";for(var i=0;i<n;i++){var o=i/(n-1);a+=" "+o+":"+r[i]}return a},t.prototype.getTrackPath=function(r){var n=this.getRailShape(r),a=n.attr("path");return Wv(a)},t.prototype.getClipTrackAttrs=function(r){var n=this.getCurrentValue(),a=n[0],i=n[1],o=this.getRailBBox(r),s=this.getPointByValue(a,r),l=this.getPointByValue(i,r),c=this.isVertical(),A,u,d,f;return c?(A=o.minX,u=s.y,d=o.width,f=l.y-s.y):(A=s.x,u=o.minY,d=l.x-s.x,f=o.height),{x:A,y:u,width:d,height:f}},t.prototype.getTrackAttrs=function(r){var n=this.get("track"),a=this.get("colors"),i=this.getTrackPath(r);return xi({path:i,fill:this.getTrackColor(a)},n.style)},t.prototype.resetTrackClip=function(r){var n=r||this.get("group"),a=this.getElementId("track"),i=n.findById(a),o=i.getClip(),s=this.getClipTrackAttrs(r);o?o.attr(s):i.setClip({type:"rect",attrs:s})},t.prototype.resetTrack=function(r){var n=this.getElementId("track"),a=r.findById(n),i=this.getTrackAttrs(r);a?a.attr(i):this.addShape(r,{type:"path",id:n,draggable:this.get("slidable"),name:"legend-track",attrs:i})},t.prototype.getPointByValue=function(r,n){var a=this.getRange(),i=a.min,o=a.max,s=(r-i)/(o-i),l=this.getRailBBox(n),c=this.isVertical(),A={x:0,y:0};return c?(A.x=l.minX+l.width/2,A.y=Dv(l.minY,l.maxY,s)):(A.x=Dv(l.minX,l.maxX,s),A.y=l.minY+l.height/2),A},t.prototype.getRailShape=function(r){var n=r||this.get("group");return n.findById(this.getElementId("rail"))},t.prototype.getRailBBox=function(r){var n=this.getRailShape(r),a=n.getBBox();return a},t.prototype.getRailCanvasBBox=function(){var r=this.get("group"),n=r.findById(this.getElementId("rail")),a=n.getCanvasBBox();return a},t.prototype.isVertical=function(){return this.get("layout")==="vertical"},t.prototype.getValueByCanvasPoint=function(r,n){var a=this.getRange(),i=a.min,o=a.max,s=this.getRailCanvasBBox(),l=this.isVertical(),c=this.get("step"),A;l?A=(n-s.minY)/s.height:A=(r-s.minX)/s.width;var u=Dv(i,o,A);if(c){var d=Math.round((u-i)/c);u=i+d*c}return u>o&&(u=o),u<i&&(u=i),u},t.prototype.getCurrentValue=function(){var r=this.get("value");if(!r){var n=this.get("values");return n?[Math.max(Math.min.apply(Math,Jv(n,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,Jv(n,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return r},t.prototype.resetHandlers=function(r){var n=this.getCurrentValue(),a=n[0],i=n[1];this.resetHandler(r,"min",a),this.resetHandler(r,"max",i)},t.prototype.getHandlerPath=function(r,n){var a=this.isVertical(),i=[],o=r.size,s=n.x,l=n.y,c=o*JSt,A=o/2,u=o/6;if(a){var d=s+c*sce;i.push(["M",s,l]),i.push(["L",d,l+A]),i.push(["L",s+c,l+A]),i.push(["L",s+c,l-A]),i.push(["L",d,l-A]),i.push(["Z"]),i.push(["M",d,l+u]),i.push(["L",s+c-2,l+u]),i.push(["M",d,l-u]),i.push(["L",s+c-2,l-u])}else{var f=l+c*sce;i.push(["M",s,l]),i.push(["L",s-A,f]),i.push(["L",s-A,l+c]),i.push(["L",s+A,l+c]),i.push(["L",s+A,f]),i.push(["Z"]),i.push(["M",s-u,f]),i.push(["L",s-u,l+c-2]),i.push(["M",s+u,f]),i.push(["L",s+u,l+c-2])}return i},t.prototype.resetHandler=function(r,n,a){var i=this.getPointByValue(a,r),o=this.get("handler"),s=this.getHandlerPath(o,i),l=this.getElementId("handler-"+n),c=r.findById(l),A=this.isVertical();c?c.attr("path",s):this.addShape(r,{type:"path",name:"legend-handler-"+n,draggable:!0,id:l,attrs:nr(nr({path:s},o.style),{cursor:A?"ns-resize":"ew-resize"})})},t.prototype.fixedElements=function(r){var n=r.findById(this.getElementId("rail")),a=r.findById(this.getElementId("label-min")),i=r.findById(this.getElementId("label-max")),o=this.getDrawPoint();this.isVertical()?this.fixedVertail(a,i,n,o):this.fixedHorizontal(a,i,n,o)},t.prototype.fitRailLength=function(r,n,a,i){var o=this.isVertical(),s=o?"height":"width",l=this.get("label"),c=l.align,A=l.spacing,u=this.get("max"+eD(s));if(u){var d=c==="rail"?a[s]+r[s]+n[s]+A*2:a[s],f=d-u;f>0&&this.changeRailLength(i,s,a[s]-f)}},t.prototype.changeRailLength=function(r,n,a){var i=r.getBBox(),o;n==="height"?o=this.getRailPath(i.x,i.y,i.width,a):o=this.getRailPath(i.x,i.y,a,i.height),r.attr("path",o)},t.prototype.changeRailPosition=function(r,n,a){var i=r.getBBox(),o=this.getRailPath(n,a,i.width,i.height);r.attr("path",o)},t.prototype.fixedHorizontal=function(r,n,a,i){var o=this.get("label"),s=o.align,l=o.spacing,c=a.getBBox(),A=r.getBBox(),u=n.getBBox(),d=c.height;this.fitRailLength(A,u,c,a),c=a.getBBox(),s==="rail"?(r.attr({x:i.x,y:i.y+d/2}),this.changeRailPosition(a,i.x+A.width+l,i.y),n.attr({x:i.x+A.width+c.width+l*2,y:i.y+d/2})):s==="top"?(r.attr({x:i.x,y:i.y}),n.attr({x:i.x+c.width,y:i.y}),this.changeRailPosition(a,i.x,i.y+A.height+l)):(this.changeRailPosition(a,i.x,i.y),r.attr({x:i.x,y:i.y+c.height+l}),n.attr({x:i.x+c.width,y:i.y+c.height+l}))},t.prototype.fixedVertail=function(r,n,a,i){var o=this.get("label"),s=o.align,l=o.spacing,c=a.getBBox(),A=r.getBBox(),u=n.getBBox();if(this.fitRailLength(A,u,c,a),c=a.getBBox(),s==="rail")r.attr({x:i.x,y:i.y}),this.changeRailPosition(a,i.x,i.y+A.height+l),n.attr({x:i.x,y:i.y+A.height+c.height+l*2});else if(s==="right")r.attr({x:i.x+c.width+l,y:i.y}),this.changeRailPosition(a,i.x,i.y),n.attr({x:i.x+c.width+l,y:i.y+c.height});else{var d=Math.max(A.width,u.width);r.attr({x:i.x,y:i.y}),this.changeRailPosition(a,i.x+d+l,i.y),n.attr({x:i.x,y:i.y+c.height})}},t})(Y9);const XSt=Object.freeze(Object.defineProperty({__proto__:null,Base:Y9,Category:VSt,Continuous:WSt},Symbol.toStringTag,{value:"Module"}));var sQ="g2-tooltip",lQ="g2-tooltip-title",cQ="g2-tooltip-list",U9="g2-tooltip-list-item",H9="g2-tooltip-marker",G9="g2-tooltip-value",eTe="g2-tooltip-name",K9="g2-tooltip-crosshair-x",V9="g2-tooltip-crosshair-y";const tTe=Object.freeze(Object.defineProperty({__proto__:null,CONTAINER_CLASS:sQ,CROSSHAIR_X:K9,CROSSHAIR_Y:V9,LIST_CLASS:cQ,LIST_ITEM_CLASS:U9,MARKER_CLASS:H9,NAME_CLASS:eTe,TITLE_CLASS:lQ,VALUE_CLASS:G9},Symbol.toStringTag,{value:"Module"}));var Zu;const qSt=(Zu={},Zu[""+sQ]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:On.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},Zu[""+lQ]={marginBottom:"4px"},Zu[""+cQ]={margin:"0px",listStyleType:"none",padding:"0px"},Zu[""+U9]={listStyleType:"none",marginBottom:"4px"},Zu[""+H9]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},Zu[""+G9]={display:"inline-block",float:"right",marginLeft:"30px"},Zu[""+K9]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Zu[""+V9]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},Zu);function ZSt(e,t,r,n,a){var i={left:e<a.x,right:e+r>a.x+a.width,top:t<a.y,bottom:t+n>a.y+a.height};return i}function $St(e,t,r,n,a,i){var o=e,s=t;switch(i){case"left":o=e-n-r,s=t-a/2;break;case"right":o=e+r,s=t-a/2;break;case"top":o=e-n/2,s=t-a-r;break;case"bottom":o=e-n/2,s=t+r;break;default:o=e+r,s=t-a-r;break}return{x:o,y:s}}function eRt(e,t,r,n,a,i,o){var s=$St(e,t,r,n,a,i);if(o){var l=ZSt(s.x,s.y,n,a,o);i==="auto"?(l.right&&(s.x=Math.max(0,e-n-r)),l.top&&(s.y=Math.max(0,t-a-r))):i==="top"||i==="bottom"?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-n),i==="top"&&l.top&&(s.y=t+r),i==="bottom"&&l.bottom&&(s.y=t-a-r)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-a),i==="left"&&l.left&&(s.x=e+r),i==="right"&&l.right&&(s.x=e-n-r))}return s}function tRt(e,t){var r=!1;return wr(t,function(n){if(Dg(e,n))return r=!0,!1}),r}var rRt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+sQ+'"><div class="'+lQ+'"></div><ul class="'+cQ+'"></ul></div>',itemTpl:'<li class="'+U9+`" data-index={index}>
          <span class="`+H9+`" style="background:{color}"></span>
          <span class="`+eTe+`">{name}</span>:
          <span class="`+G9+`">{value}</span>
        </li>`,xCrosshairTpl:'<div class="'+K9+'"></div>',yCrosshairTpl:'<div class="'+V9+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:sQ,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:qSt})},t.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},t.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},t.prototype.show=function(){var r=this.getContainer();!r||this.destroyed||(this.set("visible",!0),Qs(r,{visibility:"visible"}),this.setCrossHairsVisible(!0))},t.prototype.hide=function(){var r=this.getContainer();!r||this.destroyed||(this.set("visible",!1),Qs(r,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},t.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},t.prototype.setLocation=function(r){this.set("x",r.x),this.set("y",r.y),this.resetPosition()},t.prototype.setCrossHairsVisible=function(r){var n=r?"":"none",a=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");a&&Qs(a,{display:n}),i&&Qs(i,{display:n})},t.prototype.initContainer=function(){if(e.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var r=this.getHtmlContentNode();this.get("parent").appendChild(r),this.set("container",r),this.resetStyles(),this.applyStyles()}},t.prototype.updateInner=function(r){this.get("customContent")?this.renderCustomContent():(tRt(r,["title","showTitle"])&&this.resetTitle(),Dg(r,"items")&&this.renderItems()),e.prototype.updateInner.call(this,r)},t.prototype.initDom=function(){this.cacheDoms()},t.prototype.removeDom=function(){e.prototype.removeDom.call(this),this.clearCrosshairs()},t.prototype.resetPosition=function(){var r=this.get("x"),n=this.get("y"),a=this.get("offset"),i=this.getOffset(),o=i.offsetX,s=i.offsetY,l=this.get("position"),c=this.get("region"),A=this.getContainer(),u=this.getBBox(),d=u.width,f=u.height,h;c&&(h=PB(c));var g=eRt(r,n,a,d,f,l,h);Qs(A,{left:Tl(g.x+o),top:Tl(g.y+s)}),this.resetCrosshairs()},t.prototype.renderCustomContent=function(){var r=this.getHtmlContentNode(),n=this.get("parent"),a=this.get("container");a&&a.parentNode===n?n.replaceChild(r,a):n.appendChild(r),this.set("container",r),this.resetStyles(),this.applyStyles()},t.prototype.getHtmlContentNode=function(){var r,n=this.get("customContent");if(n){var a=n(this.get("title"),this.get("items"));o9(a)?r=a:r=Eg(a)}return r},t.prototype.cacheDoms=function(){var r=this.getContainer(),n=r.getElementsByClassName(lQ)[0],a=r.getElementsByClassName(cQ)[0];this.set("titleDom",n),this.set("listDom",a)},t.prototype.resetTitle=function(){var r=this.get("title"),n=this.get("showTitle");n&&r?this.setTitle(r):this.setTitle("")},t.prototype.setTitle=function(r){var n=this.get("titleDom");n&&(n.innerText=r)},t.prototype.resetCrosshairs=function(){var r=this.get("crosshairsRegion"),n=this.get("crosshairs");if(!r||!n)this.clearCrosshairs();else{var a=PB(r),i=this.get("xCrosshairDom"),o=this.get("yCrosshairDom");n==="x"?(this.resetCrosshair("x",a),o&&(o.remove(),this.set("yCrosshairDom",null))):n==="y"?(this.resetCrosshair("y",a),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",a),this.resetCrosshair("y",a)),this.setCrossHairsVisible(this.get("visible"))}},t.prototype.resetCrosshair=function(r,n){var a=this.checkCrosshair(r),i=this.get(r);r==="x"?Qs(a,{left:Tl(i),top:Tl(n.y),height:Tl(n.height)}):Qs(a,{top:Tl(i),left:Tl(n.x),width:Tl(n.width)})},t.prototype.checkCrosshair=function(r){var n=r+"CrosshairDom",a=r+"CrosshairTpl",i="CROSSHAIR_"+r.toUpperCase(),o=tTe[i],s=this.get(n),l=this.get("parent");return s||(s=Eg(this.get(a)),this.applyStyle(o,s),l.appendChild(s),this.set(n,s)),s},t.prototype.renderItems=function(){this.clearItemDoms();var r=this.get("items"),n=this.get("itemTpl"),a=this.get("listDom");a&&(wr(r,function(i){var o=nRe.toCSSGradient(i.color),s=nr(nr({},i),{color:o}),l=a9(n,s),c=Eg(l);a.appendChild(c)}),this.applyChildrenStyles(a,this.get("domStyles")))},t.prototype.clearItemDoms=function(){this.get("listDom")&&k9(this.get("listDom"))},t.prototype.clearCrosshairs=function(){var r=this.get("xCrosshairDom"),n=this.get("yCrosshairDom");r&&r.remove(),n&&n.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},t})(pD);const nRt=Object.freeze(Object.defineProperty({__proto__:null,Html:rRt},Symbol.toStringTag,{value:"Module"}));var aRt={opacity:0},iRt={stroke:"#C5C5C5",strokeOpacity:.85},oRt={fill:"#CACED4",opacity:.85};function sRt(e){return gd(e,function(t,r){var n=r===0?"M":"L",a=t[0],i=t[1];return[n,a,i]})}function rTe(e){return sRt(e)}function lRt(e){if(e.length<=2)return rTe(e);var t=[];wr(e,function(o){Fg(o,t.slice(t.length-2))||t.push(o[0],o[1])});var r=GSe(t,!1),n=yd(e),a=n[0],i=n[1];return r.unshift(["M",a,i]),r}function cRt(e,t,r,n){n===void 0&&(n=!0);var a=new qx({values:e}),i=new Xx({values:gd(e,function(s,l){return l})}),o=gd(e,function(s,l){return[i.scale(l)*t,r-a.scale(s)*r]});return n?lRt(o):rTe(o)}function ARt(e,t){var r=new qx({values:e}),n=r.max<0?r.max:Math.max(0,r.min);return t-r.scale(n)*t}function uRt(e,t,r,n){var a=Jv(e),i=ARt(n,r);return a.push(["L",t,i]),a.push(["L",0,i]),a.push(["Z"]),a}var dRt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:aRt,lineStyle:iRt,areaStyle:oRt})},t.prototype.renderInner=function(r){var n=this.cfg,a=n.width,i=n.height,o=n.data,s=n.smooth,l=n.isArea,c=n.backgroundStyle,A=n.lineStyle,u=n.areaStyle;this.addShape(r,{id:this.getElementId("background"),type:"rect",attrs:nr({x:0,y:0,width:a,height:i},c)});var d=cRt(o,a,i,s);if(this.addShape(r,{id:this.getElementId("line"),type:"path",attrs:nr({path:d},A)}),l){var f=uRt(d,a,i,o);this.addShape(r,{id:this.getElementId("area"),type:"path",attrs:nr({path:f},u)})}},t.prototype.applyOffset=function(){var r=this.cfg,n=r.x,a=r.y;this.moveElementTo(this.get("group"),{x:n,y:a})},t})(Xo),nTe={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},lce=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"handler",x:0,y:0,width:10,height:24,style:nTe})},t.prototype.renderInner=function(r){var n=this.cfg,a=n.width,i=n.height,o=n.style,s=o.fill,l=o.stroke,c=o.radius,A=o.opacity,u=o.cursor;this.addShape(r,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:a,height:i,fill:s,stroke:l,radius:c,opacity:A,cursor:u}});var d=1/3*a,f=2/3*a,h=1/4*i,g=3/4*i;this.addShape(r,{id:this.getElementId("line-left"),type:"line",attrs:{x1:d,y1:h,x2:d,y2:g,stroke:l,cursor:u}}),this.addShape(r,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:g,stroke:l,cursor:u}})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.bindEvents=function(){var r=this;this.get("group").on("mouseenter",function(){var n=r.get("style").highLightFill;r.getElementByLocalId("background").attr("fill",n),r.draw()}),this.get("group").on("mouseleave",function(){var n=r.get("style").fill;r.getElementByLocalId("background").attr("fill",n),r.draw()})},t.prototype.draw=function(){var r=this.get("container").get("canvas");r&&r.draw()},t})(Xo),fRt={fill:"#416180",opacity:.05},hRt={fill:"#5B8FF9",opacity:.15,cursor:"move"},mR=10,gRt={width:mR,height:24},pRt={textBaseline:"middle",fill:"#000",opacity:.45},vRt="sliderchange",mRt=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.onMouseDown=function(n){return function(a){r.currentTarget=n;var i=a.originalEvent;i.stopPropagation(),i.preventDefault(),r.prevX=qn(i,"touches.0.pageX",i.pageX),r.prevY=qn(i,"touches.0.pageY",i.pageY);var o=r.getContainerDOM();o.addEventListener("mousemove",r.onMouseMove),o.addEventListener("mouseup",r.onMouseUp),o.addEventListener("mouseleave",r.onMouseUp),o.addEventListener("touchmove",r.onMouseMove),o.addEventListener("touchend",r.onMouseUp),o.addEventListener("touchcancel",r.onMouseUp)}},r.onMouseMove=function(n){var a=r.cfg.width,i=[r.get("start"),r.get("end")];n.stopPropagation(),n.preventDefault();var o=qn(n,"touches.0.pageX",n.pageX),s=qn(n,"touches.0.pageY",n.pageY),l=o-r.prevX,c=r.adjustOffsetRange(l/a);r.updateStartEnd(c),r.updateUI(r.getElementByLocalId("foreground"),r.getElementByLocalId("minText"),r.getElementByLocalId("maxText")),r.prevX=o,r.prevY=s,r.draw(),r.emit(vRt,[r.get("start"),r.get("end")].sort()),r.delegateEmit("valuechanged",{originValue:i,value:[r.get("start"),r.get("end")]})},r.onMouseUp=function(){r.currentTarget&&(r.currentTarget=void 0);var n=r.getContainerDOM();n&&(n.removeEventListener("mousemove",r.onMouseMove),n.removeEventListener("mouseup",r.onMouseUp),n.removeEventListener("mouseleave",r.onMouseUp),n.removeEventListener("touchmove",r.onMouseMove),n.removeEventListener("touchend",r.onMouseUp),n.removeEventListener("touchcancel",r.onMouseUp))},r}return t.prototype.setRange=function(r,n){this.set("minLimit",r),this.set("maxLimit",n);var a=this.get("start"),i=this.get("end"),o=Ts(a,r,n),s=Ts(i,r,n);!this.get("isInit")&&(a!==o||i!==s)&&this.setValue([o,s])},t.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},t.prototype.setValue=function(r){var n=this.getRange();if(sa(r)&&r.length===2){var a=[this.get("start"),this.get("end")];this.update({start:Ts(r[0],n.min,n.max),end:Ts(r[1],n.min,n.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:a,value:r})}},t.prototype.getValue=function(){return[this.get("start"),this.get("end")]},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:fRt,foregroundStyle:hRt,handlerStyle:gRt,textStyle:pRt}})},t.prototype.update=function(r){var n=r.start,a=r.end,i=nr({},r);zr(n)||(i.start=Ts(n,0,1)),zr(a)||(i.end=Ts(a,0,1)),e.prototype.update.call(this,i),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},t.prototype.init=function(){this.set("start",Ts(this.get("start"),0,1)),this.set("end",Ts(this.get("end"),0,1)),e.prototype.init.call(this)},t.prototype.render=function(){e.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},t.prototype.renderInner=function(r){var n=this.cfg;n.start,n.end;var a=n.width,i=n.height,o=n.trendCfg,s=o===void 0?{}:o,l=n.minText,c=n.maxText,A=n.backgroundStyle,u=A===void 0?{}:A,d=n.foregroundStyle,f=d===void 0?{}:d,h=n.textStyle,g=h===void 0?{}:h,p=Wf({},nTe,this.cfg.handlerStyle);Ux(qn(s,"data"))&&(this.trend=this.addComponent(r,nr({component:dRt,id:this.getElementId("trend"),x:0,y:0,width:a,height:i},s))),this.addShape(r,{id:this.getElementId("background"),type:"rect",attrs:nr({x:0,y:0,width:a,height:i},u)}),this.addShape(r,{id:this.getElementId("minText"),type:"text",attrs:nr({y:i/2,textAlign:"right",text:l,silent:!1},g)}),this.addShape(r,{id:this.getElementId("maxText"),type:"text",attrs:nr({y:i/2,textAlign:"left",text:c,silent:!1},g)}),this.addShape(r,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:nr({y:0,height:i},f)});var m=qn(p,"width",mR),y=qn(p,"height",24);this.minHandler=this.addComponent(r,{component:lce,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(i-y)/2,width:m,height:y,cursor:"ew-resize",style:p}),this.maxHandler=this.addComponent(r,{component:lce,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(i-y)/2,width:m,height:y,cursor:"ew-resize",style:p})},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.updateUI=function(r,n,a){var i=this.cfg,o=i.start,s=i.end,l=i.width,c=i.minText,A=i.maxText,u=i.handlerStyle,d=i.height,f=o*l,h=s*l;this.trend&&(this.trend.update({width:l,height:d}),this.get("updateAutoRender")||this.trend.render()),r.attr("x",f),r.attr("width",h-f);var g=qn(u,"width",mR);n.attr("text",c),a.attr("text",A);var p=this._dodgeText([f,h],n,a),m=p[0],y=p[1];this.minHandler&&(this.minHandler.update({x:f-g/2}),this.get("updateAutoRender")||this.minHandler.render()),wr(m,function(C,w){return n.attr(w,C)}),this.maxHandler&&(this.maxHandler.update({x:h-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),wr(y,function(C,w){return a.attr(w,C)})},t.prototype.bindEvents=function(){var r=this.get("group");r.on("handler-min:mousedown",this.onMouseDown("minHandler")),r.on("handler-min:touchstart",this.onMouseDown("minHandler")),r.on("handler-max:mousedown",this.onMouseDown("maxHandler")),r.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var n=r.findById(this.getElementId("foreground"));n.on("mousedown",this.onMouseDown("foreground")),n.on("touchstart",this.onMouseDown("foreground"))},t.prototype.adjustOffsetRange=function(r){var n=this.cfg,a=n.start,i=n.end;switch(this.currentTarget){case"minHandler":{var o=0-a,s=1-a;return Math.min(s,Math.max(o,r))}case"maxHandler":{var o=0-i,s=1-i;return Math.min(s,Math.max(o,r))}case"foreground":{var o=0-a,s=1-i;return Math.min(s,Math.max(o,r))}}},t.prototype.updateStartEnd=function(r){var n=this.cfg,a=n.start,i=n.end;switch(this.currentTarget){case"minHandler":a+=r;break;case"maxHandler":i+=r;break;case"foreground":a+=r,i+=r;break}this.set("start",a),this.set("end",i)},t.prototype._dodgeText=function(r,n,a){var i,o,s=this.cfg,l=s.handlerStyle,c=s.width,A=2,u=qn(l,"width",mR),d=r[0],f=r[1],h=!1;d>f&&(i=[f,d],d=i[0],f=i[1],o=[a,n],n=o[0],a=o[1],h=!0);var g=n.getBBox(),p=a.getBBox(),m=g.width>d-A?{x:d+u/2+A,textAlign:"left"}:{x:d-u/2-A,textAlign:"right"},y=p.width>c-f-A?{x:f-u/2-A,textAlign:"right"}:{x:f+u/2+A,textAlign:"left"};return h?[y,m]:[m,y]},t.prototype.draw=function(){var r=this.get("container"),n=r&&r.get("canvas");n&&n.draw()},t.prototype.getContainerDOM=function(){var r=this.get("container"),n=r&&r.get("canvas");return n&&n.get("container")},t})(Xo),ERt={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},$O={default:ERt,hover:{thumbColor:"rgba(0,0,0,0.2)"}},yRt=(function(e){en(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.clearEvents=vv,r.onStartEvent=function(n){return function(a){r.isMobile=n,a.originalEvent.preventDefault();var i=n?qn(a.originalEvent,"touches.0.clientX"):a.clientX,o=n?qn(a.originalEvent,"touches.0.clientY"):a.clientY;r.startPos=r.cfg.isHorizontal?i:o,r.bindLaterEvent()}},r.bindLaterEvent=function(){var n=r.getContainerDOM(),a=[];r.isMobile?a=[rv(n,"touchmove",r.onMouseMove),rv(n,"touchend",r.onMouseUp),rv(n,"touchcancel",r.onMouseUp)]:a=[rv(n,"mousemove",r.onMouseMove),rv(n,"mouseup",r.onMouseUp),rv(n,"mouseleave",r.onMouseUp)],r.clearEvents=function(){a.forEach(function(i){i.remove()})}},r.onMouseMove=function(n){var a=r.cfg,i=a.isHorizontal,o=a.thumbOffset;n.preventDefault();var s=r.isMobile?qn(n,"touches.0.clientX"):n.clientX,l=r.isMobile?qn(n,"touches.0.clientY"):n.clientY,c=i?s:l,A=c-r.startPos;r.startPos=c,r.updateThumbOffset(o+A)},r.onMouseUp=function(n){n.preventDefault(),r.clearEvents()},r.onTrackClick=function(n){var a=r.cfg,i=a.isHorizontal,o=a.x,s=a.y,l=a.thumbLen,c=r.getContainerDOM(),A=c.getBoundingClientRect(),u=n.clientX,d=n.clientY,f=i?u-A.left-o-l/2:d-A.top-s-l/2,h=r.validateRange(f);r.updateThumbOffset(h)},r.onThumbMouseOver=function(){var n=r.cfg.theme.hover.thumbColor;r.getElementByLocalId("thumb").attr("stroke",n),r.draw()},r.onThumbMouseOut=function(){var n=r.cfg.theme.default.thumbColor;r.getElementByLocalId("thumb").attr("stroke",n),r.draw()},r}return t.prototype.setRange=function(r,n){this.set("minLimit",r),this.set("maxLimit",n);var a=this.getValue(),i=Ts(a,r,n);a!==i&&!this.get("isInit")&&this.setValue(i)},t.prototype.getRange=function(){var r=this.get("minLimit")||0,n=this.get("maxLimit")||1;return{min:r,max:n}},t.prototype.setValue=function(r){var n=this.getRange(),a=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Ts(r,n.min,n.max)}),this.delegateEmit("valuechange",{originalValue:a,value:this.getValue()})},t.prototype.getValue=function(){return Ts(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return nr(nr({},r),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:$O})},t.prototype.renderInner=function(r){this.renderTrackShape(r),this.renderThumbShape(r)},t.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},t.prototype.initEvent=function(){this.bindEvents()},t.prototype.renderTrackShape=function(r){var n=this.cfg,a=n.trackLen,i=n.theme,o=i===void 0?{default:{}}:i,s=Wf({},$O,o).default,l=s.lineCap,c=s.trackColor,A=s.size,u=qn(this.cfg,"size",A),d=this.get("isHorizontal")?{x1:0+u/2,y1:u/2,x2:a-u/2,y2:u/2,lineWidth:u,stroke:c,lineCap:l}:{x1:u/2,y1:0+u/2,x2:u/2,y2:a-u/2,lineWidth:u,stroke:c,lineCap:l};return this.addShape(r,{id:this.getElementId("track"),name:"track",type:"line",attrs:d})},t.prototype.renderThumbShape=function(r){var n=this.cfg,a=n.thumbOffset,i=n.thumbLen,o=n.theme,s=Wf({},$O,o).default,l=s.size,c=s.lineCap,A=s.thumbColor,u=qn(this.cfg,"size",l),d=this.get("isHorizontal")?{x1:a+u/2,y1:u/2,x2:a+i-u/2,y2:u/2,lineWidth:u,stroke:A,lineCap:c,cursor:"default"}:{x1:u/2,y1:a+u/2,x2:u/2,y2:a+i-u/2,lineWidth:u,stroke:A,lineCap:c,cursor:"default"};return this.addShape(r,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:d})},t.prototype.bindEvents=function(){var r=this.get("group");r.on("mousedown",this.onStartEvent(!1)),r.on("mouseup",this.onMouseUp),r.on("touchstart",this.onStartEvent(!0)),r.on("touchend",this.onMouseUp);var n=r.findById(this.getElementId("track"));n.on("click",this.onTrackClick);var a=r.findById(this.getElementId("thumb"));a.on("mouseover",this.onThumbMouseOver),a.on("mouseout",this.onThumbMouseOut)},t.prototype.getContainerDOM=function(){var r=this.get("container"),n=r&&r.get("canvas");return n&&n.get("container")},t.prototype.validateRange=function(r){var n=this.cfg,a=n.thumbLen,i=n.trackLen,o=r;return r+a>i?o=i-a:r+a<a&&(o=0),o},t.prototype.draw=function(){var r=this.get("container"),n=r&&r.get("canvas");n&&n.draw()},t.prototype.updateThumbOffset=function(r){var n=this.cfg,a=n.thumbOffset,i=n.isHorizontal,o=n.thumbLen,s=n.size,l=this.validateRange(r);if(l!==a){var c=this.getElementByLocalId("thumb");i?c.attr({x1:l+s/2,x2:l+o-s/2}):c.attr({y1:l+s/2,y2:l+o-s/2}),this.emitOffsetChange(l)}},t.prototype.emitOffsetChange=function(r){var n=this.cfg,a=n.thumbOffset,i=n.trackLen,o=n.thumbLen;this.cfg.thumbOffset=r,this.emit("scrollchange",{thumbOffset:r,ratio:Ts(r/(i-o),0,1)}),this.delegateEmit("valuechange",{originalValue:a,value:r})},t})(Xo);const CRt=Object.freeze(Object.defineProperty({__proto__:null,Annotation:ESt,Axis:PSt,Component:P9,Crosshair:YSt,Grid:KSt,GroupComponent:Xo,HtmlComponent:pD,Legend:XSt,Scrollbar:yRt,Slider:mRt,TOOLTIP_CSS_CONST:tTe,Tooltip:nRt,propagationDelegate:PRe},Symbol.toStringTag,{value:"Module"})),vD=Ya(CRt);var cce;function Wg(){return cce||(cce=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=e.Scale=e.registerScale=e.getScale=e.Coordinate=e.registerCoordinate=e.getCoordinate=e.Color=e.Attribute=e.getAttribute=e.Adjust=e.getAdjust=e.registerAdjust=e.AbstractShape=e.AbstractGroup=e.Event=void 0;var t=Al;Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return t.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return t.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return t.AbstractShape}});var r=$Se;Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return r.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return r.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return r.Adjust}});var n=nY;Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return n.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return n.Attribute}});var a=nY;Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return a.Color}});var i=Y2t;Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return i.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return i.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return i.Coordinate}});var o=F9;Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return o.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return o.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return o.Scale}});var s=vD;Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return s.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return s.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return s.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return s.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return s.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return s.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return s.Scrollbar}});var l=s.Axis.Line,c=s.Axis.Circle;e.LineAxis=l,e.CircleAxis=c;var A=s.Grid.Line,u=s.Grid.Circle;e.LineGrid=A,e.CircleGrid=u;var d=s.Legend.Category,f=s.Legend.Continuous;e.CategoryLegend=d,e.ContinuousLegend=f;var h=s.Tooltip.Html;e.HtmlTooltip=h})(NO)),NO}var ej={},_p={},Ace;function aTe(){if(Ace)return _p;Ace=1,Object.defineProperty(_p,"__esModule",{value:!0}),_p.registerAnimation=_p.getAnimation=void 0;var e={};function t(n){return e[n.toLowerCase()]}_p.getAnimation=t;function r(n,a){e[n.toLowerCase()]=a}return _p.registerAnimation=r,_p}var uce;function Bm(){return uce||(uce=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.doGroupAppearAnimate=e.doAnimate=e.getDefaultAnimateCfg=e.DEFAULT_ANIMATE_CFG=void 0;var t=Mr,r=Br,n=Wi(),a=aTe();e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var i={interval:function(u){return{enter:{animation:u.isRect?u.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:u.isPolar&&u.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},o={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(u){var d;return u.isRect?d=u.isTransposed?"grow-in-x":"grow-in-y":(d="grow-in-xy",u.isPolar&&u.isTransposed&&(d="wave-in")),{animation:d}},schema:function(u){var d;return u.isRect?d=u.isTransposed?"grow-in-x":"grow-in-y":d="grow-in-xy",{animation:d}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function s(u,d){return{delay:(0,r.isFunction)(u.delay)?u.delay(d):u.delay,easing:(0,r.isFunction)(u.easing)?u.easing(d):u.easing,duration:(0,r.isFunction)(u.duration)?u.duration(d):u.duration,callback:u.callback,repeat:u.repeat}}function l(u,d,f){var h=i[u];return h&&((0,r.isFunction)(h)&&(h=h(d)),h=(0,r.deepMix)({},e.DEFAULT_ANIMATE_CFG,h),f)?h[f]:h}e.getDefaultAnimateCfg=l;function c(u,d,f){var h=(0,r.get)(u.get("origin"),"data",n.FIELD_ORIGIN),g=d.animation,p=s(d,h);if(g){var m=(0,a.getAnimation)(g);m&&m(u,p,f)}else u.animate(f.toAttrs,p)}e.doAnimate=c;function A(u,d,f,h,g){if(o[f]){var p=o[f](h),m=(0,a.getAnimation)((0,r.get)(p,"animation",""));if(m){var y=(0,t.__assign)((0,t.__assign)((0,t.__assign)({},e.DEFAULT_ANIMATE_CFG.appear),p),d);u.stopAnimate(),m(u,y,{coordinate:h,minYPoint:g,toAttrs:null})}}}e.doGroupAppearAnimate=A})(ej)),ej}var Ka={},ac={},as={},$s={},dce;function Bc(){if(dce)return $s;dce=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.getReplaceAttrs=$s.getPolygonCentroid=$s.getAngle=$s.getArcPath=$s.getSectorPath=$s.polarToCartesian=void 0;var e=Br;function t(A){if((0,e.isEmpty)(A))return null;var u=A[0].x,d=A[0].x,f=A[0].y,h=A[0].y;return(0,e.each)(A,function(g){u=u>g.x?g.x:u,d=d<g.x?g.x:d,f=f>g.y?g.y:f,h=h<g.y?g.y:h}),{minX:u,maxX:d,minY:f,maxY:h,centerX:(u+d)/2,centerY:(f+h)/2}}function r(A){return Array.from(new Set(A)).length===1}function n(A){return((0,e.min)(A)+(0,e.max)(A))/2}function a(A,u,d,f){return{x:A+d*Math.cos(f),y:u+d*Math.sin(f)}}$s.polarToCartesian=a;function i(A,u,d,f,h,g){g===void 0&&(g=0);var p=a(A,u,d,f),m=a(A,u,d,h),y=a(A,u,g,f),C=a(A,u,g,h);if(h-f===Math.PI*2){var w=a(A,u,d,f+Math.PI),B=a(A,u,g,f+Math.PI),x=[["M",p.x,p.y],["A",d,d,0,1,1,w.x,w.y],["A",d,d,0,1,1,m.x,m.y],["M",y.x,y.y]];return g&&(x.push(["A",g,g,0,1,0,B.x,B.y]),x.push(["A",g,g,0,1,0,C.x,C.y])),x.push(["M",p.x,p.y]),x.push(["Z"]),x}var M=h-f<=Math.PI?0:1,S=[["M",p.x,p.y],["A",d,d,0,M,1,m.x,m.y],["L",C.x,C.y]];return g&&S.push(["A",g,g,0,M,0,y.x,y.y]),S.push(["L",p.x,p.y]),S.push(["Z"]),S}$s.getSectorPath=i;function o(A,u,d,f,h){var g=a(A,u,d,f),p=a(A,u,d,h);if((0,e.isNumberEqual)(h-f,Math.PI*2)){var m=a(A,u,d,f+Math.PI);return[["M",g.x,g.y],["A",d,d,0,1,1,m.x,m.y],["A",d,d,0,1,1,g.x,g.y],["A",d,d,0,1,0,m.x,m.y],["A",d,d,0,1,0,g.x,g.y],["Z"]]}var y=h-f<=Math.PI?0:1;return[["M",g.x,g.y],["A",d,d,0,y,1,p.x,p.y]]}$s.getArcPath=o;function s(A,u){var d=A.points,f=t(d),h,g,p=u.startAngle,m=u.endAngle,y=m-p;return u.isTransposed?(h=f.maxY*y,g=f.minY*y):(h=f.maxX*y,g=f.minX*y),h+=p,g+=p,{startAngle:g,endAngle:h}}$s.getAngle=s;function l(A,u){if((0,e.isNumber)(A)&&(0,e.isNumber)(u))return[A,u];if(A=A,u=u,r(A)||r(u))return[n(A),n(u)];for(var d=-1,f=0,h=0,g,p=A.length-1,m,y=0;++d<A.length;)g=p,p=d,y+=m=A[g]*u[p]-A[p]*u[g],f+=(A[g]+A[p])*m,h+=(u[g]+u[p])*m;return y*=3,[f/y,h/y]}$s.getPolygonCentroid=l;function c(A,u){var d=A.attr(),f=u.attr();return(0,e.each)(d,function(h,g){f[g]===void 0&&(f[g]=void 0)}),f}return $s.getReplaceAttrs=c,$s}var DA={},fce;function xm(){if(fce)return DA;fce=1,Object.defineProperty(DA,"__esModule",{value:!0}),DA.uniq=DA.omit=DA.padEnd=DA.isBetween=void 0;var e=Br;function t(i,o,s){var l=Math.min(o,s),c=Math.max(o,s);return i>=l&&i<=c}DA.isBetween=t;function r(i,o,s){if((0,e.isString)(i))return i.padEnd(o,s);if((0,e.isArray)(i)){var l=i.length;if(l<o)for(var c=o-l,A=0;A<c;A++)i.push(s)}return i}DA.padEnd=r;function n(i,o){return typeof i=="object"&&o.forEach(function(s){delete i[s]}),i}DA.omit=n;function a(i,o,s){o===void 0&&(o=[]),s===void 0&&(s=new Map);for(var l=0,c=i;l<c.length;l++){var A=c[l];s.has(A)||(o.push(A),s.set(A,!0))}return o}return DA.uniq=a,DA}var pf={},hce;function Xy(){if(hce)return pf;hce=1,Object.defineProperty(pf,"__esModule",{value:!0}),pf.toPoints=pf.getRegionBBox=pf.BBox=void 0;var e=Br,t=Wi(),r=(function(){function i(o,s,l,c){o===void 0&&(o=0),s===void 0&&(s=0),l===void 0&&(l=0),c===void 0&&(c=0),this.x=o,this.y=s,this.height=c,this.width=l}return i.fromRange=function(o,s,l,c){return new i(o,s,l-o,c-s)},i.fromObject=function(o){return new i(o.minX,o.minY,o.width,o.height)},Object.defineProperty(i.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),i.prototype.isEqual=function(o){return this.x===o.x&&this.y===o.y&&this.width===o.width&&this.height===o.height},i.prototype.contains=function(o){return o.minX>=this.minX&&o.maxX<=this.maxX&&o.minY>=this.minY&&o.maxY<=this.maxY},i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height)},i.prototype.add=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var l=this.clone();return(0,e.each)(o,function(c){l.x=Math.min(c.x,l.x),l.y=Math.min(c.y,l.y),l.width=Math.max(c.maxX,l.maxX)-l.x,l.height=Math.max(c.maxY,l.maxY)-l.y}),l},i.prototype.merge=function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var l=this.clone();return(0,e.each)(o,function(c){l.x=Math.max(c.x,l.x),l.y=Math.max(c.y,l.y),l.width=Math.min(c.maxX,l.maxX)-l.x,l.height=Math.min(c.maxY,l.maxY)-l.y}),l},i.prototype.cut=function(o,s){var l=o.width,c=o.height;switch(s){case t.DIRECTION.TOP:case t.DIRECTION.TOP_LEFT:case t.DIRECTION.TOP_RIGHT:return i.fromRange(this.minX,this.minY+c,this.maxX,this.maxY);case t.DIRECTION.RIGHT:case t.DIRECTION.RIGHT_TOP:case t.DIRECTION.RIGHT_BOTTOM:return i.fromRange(this.minX,this.minY,this.maxX-l,this.maxY);case t.DIRECTION.BOTTOM:case t.DIRECTION.BOTTOM_LEFT:case t.DIRECTION.BOTTOM_RIGHT:return i.fromRange(this.minX,this.minY,this.maxX,this.maxY-c);case t.DIRECTION.LEFT:case t.DIRECTION.LEFT_TOP:case t.DIRECTION.LEFT_BOTTOM:return i.fromRange(this.minX+l,this.minY,this.maxX,this.maxY);default:return this}},i.prototype.shrink=function(o){var s=o[0],l=o[1],c=o[2],A=o[3];return new i(this.x+A,this.y+s,this.width-A-l,this.height-s-c)},i.prototype.expand=function(o){var s=o[0],l=o[1],c=o[2],A=o[3];return new i(this.x-A,this.y-s,this.width+A+l,this.height+s+c)},i.prototype.exceed=function(o){return[Math.max(-this.minY+o.minY,0),Math.max(this.maxX-o.maxX,0),Math.max(this.maxY-o.maxY,0),Math.max(-this.minX+o.minX,0)]},i.prototype.collide=function(o){return this.minX<o.maxX&&this.maxX>o.minX&&this.minY<o.maxY&&this.maxY>o.minY},i.prototype.size=function(){return this.width*this.height},i.prototype.isPointIn=function(o){return o.x>=this.minX&&o.x<=this.maxX&&o.y>=this.minY&&o.y<=this.maxY},i})();pf.BBox=r;var n=function(i,o){var s=o.start,l=o.end;return new r(i.x+i.width*s.x,i.y+i.height*s.y,i.width*Math.abs(l.x-s.x),i.height*Math.abs(l.y-s.y))};pf.getRegionBBox=n;function a(i){return[[i.minX,i.minY],[i.maxX,i.minY],[i.maxX,i.maxY],[i.minX,i.maxY]]}return pf.toPoints=a,pf}var gce;function uu(){if(gce)return as;gce=1,Object.defineProperty(as,"__esModule",{value:!0}),as.getCoordinateBBox=as.getCoordinateClipCfg=as.getAngleByPoint=as.isPointInCoordinate=as.getDistanceToCenter=as.isFullCircle=as.getXDimensionLength=void 0;var e=Bc(),t=xm(),r=Xy();function n(A){if(A.isPolar&&!A.isTransposed)return(A.endAngle-A.startAngle)*A.getRadius();var u=A.convert({x:0,y:0}),d=A.convert({x:1,y:0});return Math.sqrt(Math.pow(d.x-u.x,2)+Math.pow(d.y-u.y,2))}as.getXDimensionLength=n;function a(A){if(A.isPolar){var u=A.startAngle,d=A.endAngle;return d-u===Math.PI*2}return!1}as.isFullCircle=a;function i(A,u){var d=A.getCenter();return Math.sqrt(Math.pow(u.x-d.x,2)+Math.pow(u.y-d.y,2))}as.getDistanceToCenter=i;function o(A,u){var d=!1;if(A)if(A.type==="theta"){var f=A.start,h=A.end;d=(0,t.isBetween)(u.x,f.x,h.x)&&(0,t.isBetween)(u.y,f.y,h.y)}else{var g=A.invert(u);d=(0,t.isBetween)(g.x,0,1)&&(0,t.isBetween)(g.y,0,1)}return d}as.isPointInCoordinate=o;function s(A,u){var d=A.getCenter();return Math.atan2(u.y-d.y,u.x-d.x)}as.getAngleByPoint=s;function l(A,u){u===void 0&&(u=0);var d=A.start,f=A.end,h=A.getWidth(),g=A.getHeight();if(A.isPolar){var p=A.startAngle,m=A.endAngle,y=A.getCenter(),C=A.getRadius();return{type:"path",startState:{path:(0,e.getSectorPath)(y.x,y.y,C+u,p,p)},endState:function(B){var x=(m-p)*B+p,M=(0,e.getSectorPath)(y.x,y.y,C+u,p,x);return{path:M}},attrs:{path:(0,e.getSectorPath)(y.x,y.y,C+u,p,m)}}}var w;return A.isTransposed?w={height:g+u*2}:w={width:h+u*2},{type:"rect",startState:{x:d.x-u,y:f.y-u,width:A.isTransposed?h+u*2:0,height:A.isTransposed?0:g+u*2},endState:w,attrs:{x:d.x-u,y:f.y-u,width:h+u*2,height:g+u*2}}}as.getCoordinateClipCfg=l;function c(A,u){u===void 0&&(u=0);var d=A.start,f=A.end,h=A.getWidth(),g=A.getHeight(),p=Math.min(d.x,f.x),m=Math.min(d.y,f.y);return r.BBox.fromRange(p-u,m-u,p+h+u,m+g+u)}return as.getCoordinateBBox=c,as}var pce;function qy(){if(pce)return ac;pce=1,Object.defineProperty(ac,"__esModule",{value:!0}),ac.getMaxScale=ac.getDefaultCategoryScaleRange=ac.getName=ac.syncScale=ac.createScaleByField=void 0;var e=Mr,t=Br,r=Wg(),n=uu(),a=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function i(u){var d="linear";return a.test(u)?d="timeCat":(0,t.isString)(u)&&(d="cat"),d}function o(u,d,f){var h=d||[];if((0,t.isNumber)(u)||(0,t.isNil)((0,t.firstValue)(h,u))&&(0,t.isEmpty)(f)){var g=(0,r.getScale)("identity");return new g({field:u.toString(),values:[u]})}var p=(0,t.valuesOfKey)(h,u),m=(0,t.get)(f,"type",i(p[0])),y=(0,r.getScale)(m);return new y((0,e.__assign)({field:u,values:p},f))}ac.createScaleByField=o;function s(u,d){if(u.type!=="identity"&&d.type!=="identity"){var f={};for(var h in d)Object.prototype.hasOwnProperty.call(d,h)&&(f[h]=d[h]);u.change(f)}}ac.syncScale=s;function l(u){return u.alias||u.field}ac.getName=l;function c(u,d,f){var h=u.values,g=h.length,p;if(g===1)p=[.5,1];else{var m=1,y=0;(0,n.isFullCircle)(d)?d.isTransposed?(m=(0,t.get)(f,"widthRatio.multiplePie",1/1.3),y=1/g*m,p=[y/2,1-y/2]):p=[0,1-1/g]:(y=1/g/2,p=[y,1-y])}return p}ac.getDefaultCategoryScaleRange=c;function A(u){var d=u.values.filter(function(f){return!(0,t.isNil)(f)&&!isNaN(f)});return Math.max.apply(Math,(0,e.__spreadArray)((0,e.__spreadArray)([],d,!1),[(0,t.isNil)(u.max)?-1/0:u.max],!1))}return ac.getMaxScale=A,ac}const Xg=Ya(cMt);var vce;function cY(){if(vce)return Ka;vce=1,Object.defineProperty(Ka,"__esModule",{value:!0}),Ka.getAxisTitleText=Ka.getAxisDirection=Ka.getAxisOption=Ka.getCircleAxisCenterRadius=Ka.getAxisTitleOptions=Ka.getAxisThemeCfg=Ka.getAxisFactorByRegion=Ka.isVertical=Ka.getAxisFactor=Ka.getAxisRegion=Ka.getCircleAxisRelativeRegion=Ka.getLineAxisRelativeRegion=void 0;var e=Br,t=Wi(),r=qy(),n=Xg;function a(p){var m,y;switch(p){case t.DIRECTION.TOP:m={x:0,y:1},y={x:1,y:1};break;case t.DIRECTION.RIGHT:m={x:1,y:0},y={x:1,y:1};break;case t.DIRECTION.BOTTOM:m={x:0,y:0},y={x:1,y:0};break;case t.DIRECTION.LEFT:m={x:0,y:0},y={x:0,y:1};break;default:m=y={x:0,y:0}}return{start:m,end:y}}Ka.getLineAxisRelativeRegion=a;function i(p){var m,y;return p.isTransposed?(m={x:0,y:0},y={x:1,y:0}):(m={x:0,y:0},y={x:0,y:1}),{start:m,end:y}}Ka.getCircleAxisRelativeRegion=i;function o(p,m){var y={start:{x:0,y:0},end:{x:0,y:0}};p.isRect?y=a(m):p.isPolar&&(y=i(p));var C=y.start,w=y.end;return{start:p.convert(C),end:p.convert(w)}}Ka.getAxisRegion=o;function s(p,m){if(p.isRect)return p.isTransposed?[t.DIRECTION.RIGHT,t.DIRECTION.BOTTOM].includes(m)?1:-1:[t.DIRECTION.BOTTOM,t.DIRECTION.RIGHT].includes(m)?-1:1;if(p.isPolar){var y=p.x.start;return y<0?-1:1}return 1}Ka.getAxisFactor=s;function l(p){var m=p.start,y=p.end;return m.x===y.x}Ka.isVertical=l;function c(p,m){var y=p.start,C=p.end,w=l(p);return w?(y.y-C.y)*(m.x-y.x)>0?1:-1:(C.x-y.x)*(y.y-m.y)>0?-1:1}Ka.getAxisFactorByRegion=c;function A(p,m){var y=(0,e.get)(p,["components","axis"],{});return(0,e.deepMix)({},(0,e.get)(y,["common"],{}),(0,e.deepMix)({},(0,e.get)(y,[m],{})))}Ka.getAxisThemeCfg=A;function u(p,m,y){var C=(0,e.get)(p,["components","axis"],{});return(0,e.deepMix)({},(0,e.get)(C,["common","title"],{}),(0,e.deepMix)({},(0,e.get)(C,[m,"title"],{})),y)}Ka.getAxisTitleOptions=u;function d(p){var m=p.x,y=p.y,C=p.circleCenter,w=y.start>y.end,B=p.isTransposed?p.convert({x:w?0:1,y:0}):p.convert({x:0,y:w?0:1}),x=[B.x-C.x,B.y-C.y],M=[1,0],S=B.y>C.y?n.vec2.angle(x,M):n.vec2.angle(x,M)*-1,R=S+(m.end-m.start),b=Math.sqrt(Math.pow(B.x-C.x,2)+Math.pow(B.y-C.y,2));return{center:C,radius:b,startAngle:S,endAngle:R}}Ka.getCircleAxisCenterRadius=d;function f(p,m){return(0,e.isBoolean)(p)?p===!1?!1:{}:(0,e.get)(p,[m])}Ka.getAxisOption=f;function h(p,m){return(0,e.get)(p,"position",m)}Ka.getAxisDirection=h;function g(p,m){return(0,e.get)(m,["title","text"],(0,r.getName)(p))}return Ka.getAxisTitleText=g,Ka}var FA={},mce;function wRt(){if(mce)return FA;mce=1,Object.defineProperty(FA,"__esModule",{value:!0}),FA.showGrid=FA.getCircleGridItems=FA.getLineGridItems=FA.getGridThemeCfg=void 0;var e=Br;function t(i,o){var s=(0,e.deepMix)({},(0,e.get)(i,["components","axis","common"]),(0,e.get)(i,["components","axis",o]));return(0,e.get)(s,["grid"],{})}FA.getGridThemeCfg=t;function r(i,o,s,l){var c=[],A=o.getTicks();return i.isPolar&&A.push({value:1,text:"",tickValue:""}),A.reduce(function(u,d,f){var h=d.value;if(l)c.push({points:[i.convert(s==="y"?{x:0,y:h}:{x:h,y:0}),i.convert(s==="y"?{x:1,y:h}:{x:h,y:1})]});else if(f){var g=u.value,p=(g+h)/2;c.push({points:[i.convert(s==="y"?{x:0,y:p}:{x:p,y:0}),i.convert(s==="y"?{x:1,y:p}:{x:p,y:1})]})}return d},A[0]),c}FA.getLineGridItems=r;function n(i,o,s,l,c){var A=o.values.length,u=[],d=s.getTicks();return d.reduce(function(f,h){var g=f?f.value:h.value,p=h.value,m=(g+p)/2;return c==="x"?u.push({points:[i.convert({x:l?p:m,y:0}),i.convert({x:l?p:m,y:1})]}):u.push({points:(0,e.map)(Array(A+1),function(y,C){return i.convert({x:C/A,y:l?p:m})})}),h},d[0]),u}FA.getCircleGridItems=n;function a(i,o){var s=(0,e.get)(o,"grid");if(s===null)return!1;var l=(0,e.get)(i,"grid");return!(s===void 0&&l===null)}return FA.showGrid=a,FA}var yC={},Ece;function mD(){if(Ece)return yC;Ece=1,Object.defineProperty(yC,"__esModule",{value:!0}),yC.Controller=void 0;var e=Br,t=(function(){function r(n){this.visible=!0,this.components=[],this.view=n}return r.prototype.clear=function(n){(0,e.each)(this.components,function(a){a.component.destroy()}),this.components=[]},r.prototype.destroy=function(){this.clear()},r.prototype.getComponents=function(){return this.components},r.prototype.changeVisible=function(n){this.visible!==n&&(this.components.forEach(function(a){n?a.component.show():a.component.hide()}),this.visible=n)},r})();return yC.Controller=t,yC}var yce;function BRt(){if(yce)return sb;yce=1,Object.defineProperty(sb,"__esModule",{value:!0});var e=Mr,t=Br,r=Wi(),n=Wg(),a=Bm(),i=cY(),o=cY(),s=wRt(),l=xm(),c=mD(),A=["container"],u=(0,e.__assign)((0,e.__assign)({},a.DEFAULT_ANIMATE_CFG),{appear:null}),d=(function(f){(0,e.__extends)(h,f);function h(g){var p=f.call(this,g)||this;return p.cache=new Map,p.gridContainer=p.view.getLayer(r.LAYER.BG).addGroup(),p.gridForeContainer=p.view.getLayer(r.LAYER.FORE).addGroup(),p.axisContainer=p.view.getLayer(r.LAYER.BG).addGroup(),p.axisForeContainer=p.view.getLayer(r.LAYER.FORE).addGroup(),p}return Object.defineProperty(h.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),h.prototype.init=function(){},h.prototype.render=function(){this.update()},h.prototype.layout=function(){var g=this,p=this.view.getCoordinate();(0,t.each)(this.getComponents(),function(m){var y=m.component,C=m.direction,w=m.type,B=m.extra,x=B.dim,M=B.scale,S=B.alignTick,R;if(w===r.COMPONENT_TYPE.AXIS)p.isPolar?x==="x"?R=p.isTransposed?(0,i.getAxisRegion)(p,C):(0,i.getCircleAxisCenterRadius)(p):x==="y"&&(R=p.isTransposed?(0,i.getCircleAxisCenterRadius)(p):(0,i.getAxisRegion)(p,C)):R=(0,i.getAxisRegion)(p,C);else if(w===r.COMPONENT_TYPE.GRID)if(p.isPolar){var b=void 0;p.isTransposed?b=x==="x"?(0,s.getCircleGridItems)(p,g.view.getYScales()[0],M,S,x):(0,s.getLineGridItems)(p,M,x,S):b=x==="x"?(0,s.getLineGridItems)(p,M,x,S):(0,s.getCircleGridItems)(p,g.view.getXScale(),M,S,x),R={items:b,center:g.view.getCoordinate().getCenter()}}else R={items:(0,s.getLineGridItems)(p,M,x,S)};y.update(R)})},h.prototype.update=function(){this.option=this.view.getOptions().axes;var g=new Map;this.updateXAxes(g),this.updateYAxes(g);var p=new Map;this.cache.forEach(function(m,y){g.has(y)?p.set(y,m):m.component.destroy()}),this.cache=p},h.prototype.clear=function(){f.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},h.prototype.destroy=function(){f.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},h.prototype.getComponents=function(){var g=[];return this.cache.forEach(function(p){g.push(p)}),g},h.prototype.updateXAxes=function(g){var p=this.view.getXScale();if(!(!p||p.isIdentity)){var m=(0,o.getAxisOption)(this.option,p.field);if(m!==!1){var y=(0,i.getAxisDirection)(m,r.DIRECTION.BOTTOM),C=r.LAYER.BG,w="x",B=this.view.getCoordinate(),x=this.getId("axis",p.field),M=this.getId("grid",p.field);if(B.isRect){var S=this.cache.get(x);if(S){var R=this.getLineAxisCfg(p,m,y);(0,l.omit)(R,A),S.component.update(R),g.set(x,S)}else S=this.createLineAxis(p,m,C,y,w),this.cache.set(x,S),g.set(x,S);var b=this.cache.get(M);if(b){var R=this.getLineGridCfg(p,m,y,w);(0,l.omit)(R,A),b.component.update(R),g.set(M,b)}else b=this.createLineGrid(p,m,C,y,w),b&&(this.cache.set(M,b),g.set(M,b))}else if(B.isPolar){var S=this.cache.get(x);if(S){var R=B.isTransposed?this.getLineAxisCfg(p,m,r.DIRECTION.RADIUS):this.getCircleAxisCfg(p,m,y);(0,l.omit)(R,A),S.component.update(R),g.set(x,S)}else{if(B.isTransposed){if((0,t.isUndefined)(m))return;S=this.createLineAxis(p,m,C,r.DIRECTION.RADIUS,w)}else S=this.createCircleAxis(p,m,C,y,w);this.cache.set(x,S),g.set(x,S)}var b=this.cache.get(M);if(b){var R=B.isTransposed?this.getCircleGridCfg(p,m,r.DIRECTION.RADIUS,w):this.getLineGridCfg(p,m,r.DIRECTION.CIRCLE,w);(0,l.omit)(R,A),b.component.update(R),g.set(M,b)}else{if(B.isTransposed){if((0,t.isUndefined)(m))return;b=this.createCircleGrid(p,m,C,r.DIRECTION.RADIUS,w)}else b=this.createLineGrid(p,m,C,r.DIRECTION.CIRCLE,w);b&&(this.cache.set(M,b),g.set(M,b))}}}}},h.prototype.updateYAxes=function(g){var p=this,m=this.view.getYScales();(0,t.each)(m,function(y,C){if(!(!y||y.isIdentity)){var w=y.field,B=(0,o.getAxisOption)(p.option,w);if(B!==!1){var x=r.LAYER.BG,M="y",S=p.getId("axis",w),R=p.getId("grid",w),b=p.view.getCoordinate();if(b.isRect){var T=(0,i.getAxisDirection)(B,C===0?r.DIRECTION.LEFT:r.DIRECTION.RIGHT),D=p.cache.get(S);if(D){var F=p.getLineAxisCfg(y,B,T);(0,l.omit)(F,A),D.component.update(F),g.set(S,D)}else D=p.createLineAxis(y,B,x,T,M),p.cache.set(S,D),g.set(S,D);var N=p.cache.get(R);if(N){var F=p.getLineGridCfg(y,B,T,M);(0,l.omit)(F,A),N.component.update(F),g.set(R,N)}else N=p.createLineGrid(y,B,x,T,M),N&&(p.cache.set(R,N),g.set(R,N))}else if(b.isPolar){var D=p.cache.get(S);if(D){var F=b.isTransposed?p.getCircleAxisCfg(y,B,r.DIRECTION.CIRCLE):p.getLineAxisCfg(y,B,r.DIRECTION.RADIUS);(0,l.omit)(F,A),D.component.update(F),g.set(S,D)}else{if(b.isTransposed){if((0,t.isUndefined)(B))return;D=p.createCircleAxis(y,B,x,r.DIRECTION.CIRCLE,M)}else D=p.createLineAxis(y,B,x,r.DIRECTION.RADIUS,M);p.cache.set(S,D),g.set(S,D)}var N=p.cache.get(R);if(N){var F=b.isTransposed?p.getLineGridCfg(y,B,r.DIRECTION.CIRCLE,M):p.getCircleGridCfg(y,B,r.DIRECTION.RADIUS,M);(0,l.omit)(F,A),N.component.update(F),g.set(R,N)}else{if(b.isTransposed){if((0,t.isUndefined)(B))return;N=p.createLineGrid(y,B,x,r.DIRECTION.CIRCLE,M)}else N=p.createCircleGrid(y,B,x,r.DIRECTION.RADIUS,M);N&&(p.cache.set(R,N),g.set(R,N))}}}}})},h.prototype.createLineAxis=function(g,p,m,y,C){var w={component:new n.LineAxis(this.getLineAxisCfg(g,p,y)),layer:m,direction:y===r.DIRECTION.RADIUS?r.DIRECTION.NONE:y,type:r.COMPONENT_TYPE.AXIS,extra:{dim:C,scale:g}};return w.component.set("field",g.field),w.component.init(),w},h.prototype.createLineGrid=function(g,p,m,y,C){var w=this.getLineGridCfg(g,p,y,C);if(w){var B={component:new n.LineGrid(w),layer:m,direction:r.DIRECTION.NONE,type:r.COMPONENT_TYPE.GRID,extra:{dim:C,scale:g,alignTick:(0,t.get)(w,"alignTick",!0)}};return B.component.init(),B}},h.prototype.createCircleAxis=function(g,p,m,y,C){var w={component:new n.CircleAxis(this.getCircleAxisCfg(g,p,y)),layer:m,direction:y,type:r.COMPONENT_TYPE.AXIS,extra:{dim:C,scale:g}};return w.component.set("field",g.field),w.component.init(),w},h.prototype.createCircleGrid=function(g,p,m,y,C){var w=this.getCircleGridCfg(g,p,y,C);if(w){var B={component:new n.CircleGrid(w),layer:m,direction:r.DIRECTION.NONE,type:r.COMPONENT_TYPE.GRID,extra:{dim:C,scale:g,alignTick:(0,t.get)(w,"alignTick",!0)}};return B.component.init(),B}},h.prototype.getLineAxisCfg=function(g,p,m){var y=(0,t.get)(p,["top"])?this.axisForeContainer:this.axisContainer,C=this.view.getCoordinate(),w=(0,i.getAxisRegion)(C,m),B=(0,i.getAxisTitleText)(g,p),x=(0,i.getAxisThemeCfg)(this.view.getTheme(),m),M=(0,t.get)(p,["title"])?(0,t.deepMix)({title:{style:{text:B}}},{title:(0,i.getAxisTitleOptions)(this.view.getTheme(),m,p.title)},p):p,S=(0,t.deepMix)((0,e.__assign)((0,e.__assign)({container:y},w),{ticks:g.getTicks().map(function(P){return{id:""+P.tickValue,name:P.text,value:P.value}}),verticalFactor:C.isPolar?(0,i.getAxisFactorByRegion)(w,C.getCenter())*-1:(0,i.getAxisFactorByRegion)(w,C.getCenter()),theme:x}),x,M),R=this.getAnimateCfg(S),b=R.animate,T=R.animateOption;S.animateOption=T,S.animate=b;var D=(0,i.isVertical)(w),F=(0,t.get)(S,"verticalLimitLength",D?1/3:1/2);if(F<=1){var N=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");S.verticalLimitLength=F*(D?N:_)}return S},h.prototype.getLineGridCfg=function(g,p,m,y){if((0,s.showGrid)((0,i.getAxisThemeCfg)(this.view.getTheme(),m),p)){var C=(0,s.getGridThemeCfg)(this.view.getTheme(),m),w=(0,t.deepMix)({container:(0,t.get)(p,["top"])?this.gridForeContainer:this.gridContainer},C,(0,t.get)(p,"grid"),this.getAnimateCfg(p));return w.items=(0,s.getLineGridItems)(this.view.getCoordinate(),g,y,(0,t.get)(w,"alignTick",!0)),w}},h.prototype.getCircleAxisCfg=function(g,p,m){var y=(0,t.get)(p,["top"])?this.axisForeContainer:this.axisContainer,C=this.view.getCoordinate(),w=g.getTicks().map(function(D){return{id:""+D.tickValue,name:D.text,value:D.value}});!g.isCategory&&Math.abs(C.endAngle-C.startAngle)===Math.PI*2&&w.pop();var B=(0,i.getAxisTitleText)(g,p),x=(0,i.getAxisThemeCfg)(this.view.getTheme(),r.DIRECTION.CIRCLE),M=(0,t.get)(p,["title"])?(0,t.deepMix)({title:{style:{text:B}}},{title:(0,i.getAxisTitleOptions)(this.view.getTheme(),m,p.title)},p):p,S=(0,t.deepMix)((0,e.__assign)((0,e.__assign)({container:y},(0,i.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:w,verticalFactor:1,theme:x}),x,M),R=this.getAnimateCfg(S),b=R.animate,T=R.animateOption;return S.animate=b,S.animateOption=T,S},h.prototype.getCircleGridCfg=function(g,p,m,y){if((0,s.showGrid)((0,i.getAxisThemeCfg)(this.view.getTheme(),m),p)){var C=(0,s.getGridThemeCfg)(this.view.getTheme(),r.DIRECTION.RADIUS),w=(0,t.deepMix)({container:(0,t.get)(p,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},C,(0,t.get)(p,"grid"),this.getAnimateCfg(p)),B=(0,t.get)(w,"alignTick",!0),x=y==="x"?this.view.getYScales()[0]:this.view.getXScale();return w.items=(0,s.getCircleGridItems)(this.view.getCoordinate(),x,g,B,y),w}},h.prototype.getId=function(g,p){var m=this.view.getCoordinate();return g+"-"+p+"-"+m.type},h.prototype.getAnimateCfg=function(g){return{animate:this.view.getOptions().animate&&(0,t.get)(g,"animate"),animateOption:g&&g.animateOption?(0,t.deepMix)({},u,g.animateOption):u}},h})(c.Controller);return sb.default=d,sb}var x0={},$u={},Cce;function $x(){if(Cce)return $u;Cce=1;var e=$u&&$u.__assign||function(){return e=Object.assign||function(o){for(var s,l=1,c=arguments.length;l<c;l++){s=arguments[l];for(var A in s)Object.prototype.hasOwnProperty.call(s,A)&&(o[A]=s[A])}return o},e.apply(this,arguments)},t=$u&&$u.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty($u,"__esModule",{value:!0}),$u.withView=void 0;var r=t(Ur()),n=r.default.createContext(null);n.displayName="ChartViewContext";var a=n.Consumer;function i(o){return function(s){return r.default.createElement(a,null,function(l){return r.default.createElement(o,e({chartView:l},s))})}}return $u.withView=i,$u.default=n,$u}var wce;function ED(){if(wce)return x0;wce=1;var e=x0&&x0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(x0,"__esModule",{value:!0});var t=e(Ur()),r=e($x());function n(){return t.default.useContext(r.default)}return x0.default=n,x0}var M0={},wb={},Bb={},xb={},Bce;function yD(){if(Bce)return xb;Bce=1,Object.defineProperty(xb,"__esModule",{value:!0});var e={}.toString,t=function(r,n){return e.call(r)==="[object "+n+"]"};return xb.default=t,xb}var xce;function oh(){if(xce)return Bb;xce=1,Object.defineProperty(Bb,"__esModule",{value:!0});var e=yD();return Bb.default=(function(t){return Array.isArray?Array.isArray(t):e.default(t,"Array")}),Bb}var Mce;function xRt(){if(Mce)return wb;Mce=1,Object.defineProperty(wb,"__esModule",{value:!0});var e=oh(),t=function(r){if(typeof r!="object"||r===null)return r;var n;if(e.default(r)){n=[];for(var a=0,i=r.length;a<i;a++)typeof r[a]=="object"&&r[a]!=null?n[a]=t(r[a]):n[a]=r[a]}else{n={};for(var o in r)typeof r[o]=="object"&&r[o]!=null?n[o]=t(r[o]):n[o]=r[o]}return n};return wb.default=t,wb}var Ice;function MRt(){if(Ice)return M0;Ice=1;var e=M0&&M0.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(M0,"__esModule",{value:!0});var t=e(xRt());return M0.default=(function(r,n){var a=(0,t.default)(r);return n.forEach(function(i){a[i]===!0?a[i]={}:a[i]===!1&&(a[i]=null)}),a}),M0}var NA={},tj={},rj={},Mb={},nj={},bce;function Gl(){return bce||(bce=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0;function t(){return window?window.devicePixelRatio:1}e.getPixelRatio=t;function r(l,c,A,u){var d=l-A,f=c-u;return Math.sqrt(d*d+f*f)}e.distance=r;function n(l,c,A,u,d,f){return d>=l&&d<=l+A&&f>=c&&f<=c+u}e.inBox=n;function a(l,c){return!(c.minX>l.maxX||c.maxX<l.minX||c.minY>l.maxY||c.maxY<l.minY)}e.intersectRect=a;function i(l,c){return!l||!c?l||c:{minX:Math.min(l.minX,c.minX),minY:Math.min(l.minY,c.minY),maxX:Math.max(l.maxX,c.maxX),maxY:Math.max(l.maxY,c.maxY)}}e.mergeRegion=i;function o(l,c){return l[0]===c[0]&&l[1]===c[1]}e.isSamePoint=o;var s=Br;Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return s.isNil}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return s.isString}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return s.isFunction}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return s.isArray}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return s.each}}),Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return s.toRadian}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return s.mod}}),Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return s.isNumberEqual}}),Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return s.requestAnimationFrame}}),Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return s.clearAnimationFrame}})})(nj)),nj}var Fi={},ic={},Sce;function iTe(){if(Sce)return ic;Sce=1,Object.defineProperty(ic,"__esModule",{value:!0}),ic.parseRadius=ic.parseStyle=ic.parsePattern=ic.parseRadialGradient=ic.parseLineGradient=void 0;var e=Gl(),t=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,r=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,n=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function i(u,d){var f=u.match(a);e.each(f,function(h){var g=h.split(":");d.addColorStop(g[0],g[1])})}function o(u,d,f){var h=t.exec(f),g=parseFloat(h[1])%360*(Math.PI/180),p=h[2],m=d.getBBox(),y,C;g>=0&&g<1/2*Math.PI?(y={x:m.minX,y:m.minY},C={x:m.maxX,y:m.maxY}):1/2*Math.PI<=g&&g<Math.PI?(y={x:m.maxX,y:m.minY},C={x:m.minX,y:m.maxY}):Math.PI<=g&&g<3/2*Math.PI?(y={x:m.maxX,y:m.maxY},C={x:m.minX,y:m.minY}):(y={x:m.minX,y:m.maxY},C={x:m.maxX,y:m.minY});var w=Math.tan(g),B=w*w,x=(C.x-y.x+w*(C.y-y.y))/(B+1)+y.x,M=w*(C.x-y.x+w*(C.y-y.y))/(B+1)+y.y,S=u.createLinearGradient(y.x,y.y,x,M);return i(p,S),S}ic.parseLineGradient=o;function s(u,d,f){var h=r.exec(f),g=parseFloat(h[1]),p=parseFloat(h[2]),m=parseFloat(h[3]),y=h[4];if(m===0){var C=y.match(a);return C[C.length-1].split(":")[1]}var w=d.getBBox(),B=w.maxX-w.minX,x=w.maxY-w.minY,M=Math.sqrt(B*B+x*x)/2,S=u.createRadialGradient(w.minX+B*g,w.minY+x*p,0,w.minX+B/2,w.minY+x/2,m*M);return i(y,S),S}ic.parseRadialGradient=s;function l(u,d,f){if(d.get("patternSource")&&d.get("patternSource")===f)return d.get("pattern");var h,g,p=n.exec(f),m=p[1],y=p[2];function C(){h=u.createPattern(g,m),d.set("pattern",h),d.set("patternSource",f)}switch(m){case"a":m="repeat";break;case"x":m="repeat-x";break;case"y":m="repeat-y";break;case"n":m="no-repeat";break;default:m="no-repeat"}return g=new Image,y.match(/^data:/i)||(g.crossOrigin="Anonymous"),g.src=y,g.complete?C():(g.onload=C,g.src=g.src),h}ic.parsePattern=l;function c(u,d,f){var h=d.getBBox();if(isNaN(h.x)||isNaN(h.y)||isNaN(h.width)||isNaN(h.height))return f;if(e.isString(f)){if(f[1]==="("||f[2]==="("){if(f[0]==="l")return o(u,d,f);if(f[0]==="r")return s(u,d,f);if(f[0]==="p")return l(u,d,f)}return f}if(f instanceof CanvasPattern)return f}ic.parseStyle=c;function A(u){var d=0,f=0,h=0,g=0;return e.isArray(u)?u.length===1?d=f=h=g=u[0]:u.length===2?(d=h=u[0],f=g=u[1]):u.length===3?(d=u[0],f=g=u[1],h=u[2]):(d=u[0],f=u[1],h=u[2],g=u[3]):d=f=h=g=u,[d,f,h,g]}return ic.parseRadius=A,ic}var Ib={},Rce;function oTe(){if(Rce)return Ib;Rce=1,Object.defineProperty(Ib,"__esModule",{value:!0});var e=Gl();function t(i){return Math.sqrt(i[0]*i[0]+i[1]*i[1])}function r(i,o){return t(i)*t(o)?(i[0]*o[0]+i[1]*o[1])/(t(i)*t(o)):1}function n(i,o){return(i[0]*o[1]<i[1]*o[0]?-1:1)*Math.acos(r(i,o))}function a(i,o){var s=o[1],l=o[2],c=e.mod(e.toRadian(o[3]),Math.PI*2),A=o[4],u=o[5],d=i[0],f=i[1],h=o[6],g=o[7],p=Math.cos(c)*(d-h)/2+Math.sin(c)*(f-g)/2,m=-1*Math.sin(c)*(d-h)/2+Math.cos(c)*(f-g)/2,y=p*p/(s*s)+m*m/(l*l);y>1&&(s*=Math.sqrt(y),l*=Math.sqrt(y));var C=s*s*(m*m)+l*l*(p*p),w=C?Math.sqrt((s*s*(l*l)-C)/C):1;A===u&&(w*=-1),isNaN(w)&&(w=0);var B=l?w*s*m/l:0,x=s?w*-l*p/s:0,M=(d+h)/2+Math.cos(c)*B-Math.sin(c)*x,S=(f+g)/2+Math.sin(c)*B+Math.cos(c)*x,R=[(p-B)/s,(m-x)/l],b=[(-1*p-B)/s,(-1*m-x)/l],T=n([1,0],R),D=n(R,b);return r(R,b)<=-1&&(D=Math.PI),r(R,b)>=1&&(D=0),u===0&&D>0&&(D=D-2*Math.PI),u===1&&D<0&&(D=D+2*Math.PI),{cx:M,cy:S,rx:e.isSamePoint(i,[h,g])?0:s,ry:e.isSamePoint(i,[h,g])?0:l,startAngle:T,endAngle:T+D,xRotation:c,arcFlag:A,sweepFlag:u}}return Ib.default=a,Ib}var vf={},Tce;function CD(){if(Tce)return vf;Tce=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.addEndArrow=vf.addStartArrow=vf.getShortenOffset=void 0;var e=Mr,t=tM(),r=Math.sin,n=Math.cos,a=Math.atan2,i=Math.PI;function o(u,d,f,h,g,p,m){var y=d.stroke,C=d.lineWidth,w=f-g,B=h-p,x=a(B,w),M=new t.Path({type:"path",canvas:u.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*n(i/6)+","+10*r(i/6)+" L0,0 L"+10*n(i/6)+",-"+10*r(i/6),stroke:y,lineWidth:C}});M.translate(g,p),M.rotateAtPoint(g,p,x),u.set(m?"startArrowShape":"endArrowShape",M)}function s(u,d,f,h,g,p,m){var y=d.startArrow,C=d.endArrow,w=d.stroke,B=d.lineWidth,x=m?y:C,M=x.d,S=x.fill,R=x.stroke,b=x.lineWidth,T=e.__rest(x,["d","fill","stroke","lineWidth"]),D=f-g,F=h-p,N=a(F,D);M&&(g=g-n(N)*M,p=p-r(N)*M);var _=new t.Path({type:"path",canvas:u.get("canvas"),isArrowShape:!0,attrs:e.__assign(e.__assign({},T),{stroke:R||w,lineWidth:b||B,fill:S})});_.translate(g,p),_.rotateAtPoint(g,p,N),u.set(m?"startArrowShape":"endArrowShape",_)}function l(u,d,f,h,g){var p=a(h-d,f-u);return{dx:n(p)*g,dy:r(p)*g}}vf.getShortenOffset=l;function c(u,d,f,h,g,p){typeof d.startArrow=="object"?s(u,d,f,h,g,p,!0):d.startArrow?o(u,d,f,h,g,p,!0):u.set("startArrowShape",null)}vf.addStartArrow=c;function A(u,d,f,h,g,p){typeof d.endArrow=="object"?s(u,d,f,h,g,p,!1):d.endArrow?o(u,d,f,h,g,p,!1):u.set("startArrowShape",null)}return vf.addEndArrow=A,vf}var Qce;function eM(){if(Qce)return Fi;Qce=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.mergeView=Fi.getMergedRegion=Fi.getRefreshRegion=Fi.refreshElement=Fi.drawPath=Fi.clearChanged=Fi.checkChildrenRefresh=Fi.checkRefresh=Fi.drawChildren=Fi.applyAttrsToContext=void 0;var e=Br,t=iTe(),r=oTe(),n=Gl(),a=CD(),i={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function o(y,C){var w=C.attr();for(var B in w){var x=w[B],M=i[B]?i[B]:B;M==="matrix"&&x?y.transform(x[0],x[1],x[3],x[4],x[6],x[7]):M==="lineDash"&&y.setLineDash?e.isArray(x)&&y.setLineDash(x):(M==="strokeStyle"||M==="fillStyle"?x=t.parseStyle(y,C,x):M==="globalAlpha"&&(x=x*y.globalAlpha),y[M]=x)}}Fi.applyAttrsToContext=o;function s(y,C,w){for(var B=0;B<C.length;B++){var x=C[B];x.cfg.visible?x.draw(y,w):x.skipDraw()}}Fi.drawChildren=s;function l(y,C,w){var B=y.get("refreshElements");e.each(B,function(x){if(x!==y)for(var M=x.cfg.parent;M&&M!==y&&!M.cfg.refresh;)M.cfg.refresh=!0,M=M.cfg.parent}),B[0]===y?u(C):c(C,w)}Fi.checkRefresh=l;function c(y,C){for(var w=0;w<y.length;w++){var B=y[w];if(B.cfg.visible)if(B.cfg.hasChanged)B.cfg.refresh=!0,B.isGroup()&&u(B.cfg.children);else if(B.cfg.refresh)B.isGroup()&&c(B.cfg.children,C);else{var x=d(B,C);B.cfg.refresh=x,x&&B.isGroup()&&c(B.cfg.children,C)}}}Fi.checkChildrenRefresh=c;function A(y){for(var C=0;C<y.length;C++){var w=y[C];w.cfg.hasChanged=!1,w.isGroup()&&!w.destroyed&&A(w.cfg.children)}}Fi.clearChanged=A;function u(y,C){for(var w=0;w<y.length;w++){var B=y[w];B.cfg.visible&&(B.cfg.refresh=!0,B.isGroup()&&u(B.get("children")))}}function d(y,C){var w=y.cfg.cacheCanvasBBox,B=y.cfg.isInView&&w&&n.intersectRect(w,C);return B}function f(y,C,w,B){var x=w.path,M=w.startArrow,S=w.endArrow;if(x){var R=[0,0],b=[0,0],T={dx:0,dy:0};C.beginPath();for(var D=0;D<x.length;D++){var F=x[D],N=F[0];if(D===0&&M&&M.d){var _=y.getStartTangent();T=a.getShortenOffset(_[0][0],_[0][1],_[1][0],_[1][1],M.d)}else if(D===x.length-2&&x[D+1][0]==="Z"&&S&&S.d){var P=x[D+1];if(P[0]==="Z"){var _=y.getEndTangent();T=a.getShortenOffset(_[0][0],_[0][1],_[1][0],_[1][1],S.d)}}else if(D===x.length-1&&S&&S.d&&x[0]!=="Z"){var _=y.getEndTangent();T=a.getShortenOffset(_[0][0],_[0][1],_[1][0],_[1][1],S.d)}var k=T.dx,j=T.dy;switch(N){case"M":C.moveTo(F[1]-k,F[2]-j),b=[F[1],F[2]];break;case"L":C.lineTo(F[1]-k,F[2]-j);break;case"Q":C.quadraticCurveTo(F[1],F[2],F[3]-k,F[4]-j);break;case"C":C.bezierCurveTo(F[1],F[2],F[3],F[4],F[5]-k,F[6]-j);break;case"A":{var Y=void 0;B?(Y=B[D],Y||(Y=r.default(R,F),B[D]=Y)):Y=r.default(R,F);var X=Y.cx,K=Y.cy,U=Y.rx,H=Y.ry,L=Y.startAngle,V=Y.endAngle,J=Y.xRotation,ee=Y.sweepFlag;if(C.ellipse)C.ellipse(X,K,U,H,J,L,V,1-ee);else{var ae=U>H?U:H,ne=U>H?1:U/H,fe=U>H?H/U:1;C.translate(X,K),C.rotate(J),C.scale(ne,fe),C.arc(0,0,ae,L,V,1-ee),C.scale(1/ne,1/fe),C.rotate(-J),C.translate(-X,-K)}break}case"Z":C.closePath();break}if(N==="Z")R=b;else{var he=F.length;R=[F[he-2],F[he-1]]}}}}Fi.drawPath=f;function h(y,C){var w=y.get("canvas");w&&(C==="remove"&&(y._cacheCanvasBBox=y.get("cacheCanvasBBox")),y.get("hasChanged")||(y.set("hasChanged",!0),y.cfg.parent&&y.cfg.parent.get("hasChanged")||(w.refreshElement(y,C,w),w.get("autoDraw")&&w.draw())))}Fi.refreshElement=h;function g(y){var C;if(y.destroyed)C=y._cacheCanvasBBox;else{var w=y.get("cacheCanvasBBox"),B=w&&!!(w.width&&w.height),x=y.getCanvasBBox(),M=x&&!!(x.width&&x.height);B&&M?C=n.mergeRegion(w,x):B?C=w:M&&(C=x)}return C}Fi.getRefreshRegion=g;function p(y){if(!y.length)return null;var C=[],w=[],B=[],x=[];return e.each(y,function(M){var S=g(M);S&&(C.push(S.minX),w.push(S.minY),B.push(S.maxX),x.push(S.maxY))}),{minX:e.min(C),minY:e.min(w),maxX:e.max(B),maxY:e.max(x)}}Fi.getMergedRegion=p;function m(y,C){return!y||!C||!n.intersectRect(y,C)?null:{minX:Math.max(y.minX,C.minX),minY:Math.max(y.minY,C.minY),maxX:Math.min(y.maxX,C.maxX),maxY:Math.min(y.maxY,C.maxY)}}return Fi.mergeView=m,Fi}var bb={},Dce;function J9(){if(Dce)return bb;Dce=1,Object.defineProperty(bb,"__esModule",{value:!0});var e=Mr,t=Al,r=tM(),n=eM(),a=Br,i=Gl(),o=(function(s){e.__extends(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.prototype.onCanvasChange=function(c){n.refreshElement(this,c)},l.prototype.getShapeBase=function(){return r},l.prototype.getGroupBase=function(){return l},l.prototype._applyClip=function(c,A){A&&(c.save(),n.applyAttrsToContext(c,A),A.createPath(c),c.restore(),c.clip(),A._afterDraw())},l.prototype.cacheCanvasBBox=function(){var c=this.cfg.children,A=[],u=[];a.each(c,function(C){var w=C.cfg.cacheCanvasBBox;w&&C.cfg.isInView&&(A.push(w.minX,w.maxX),u.push(w.minY,w.maxY))});var d=null;if(A.length){var f=a.min(A),h=a.max(A),g=a.min(u),p=a.max(u);d={minX:f,minY:g,x:f,y:g,maxX:h,maxY:p,width:h-f,height:p-g};var m=this.cfg.canvas;if(m){var y=m.getViewRange();this.set("isInView",i.intersectRect(d,y))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",d)},l.prototype.draw=function(c,A){var u=this.cfg.children,d=A?this.cfg.refresh:!0;u.length&&d&&(c.save(),n.applyAttrsToContext(c,this),this._applyClip(c,this.getClip()),n.drawChildren(c,u,A),c.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},l.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},l})(t.AbstractGroup);return bb.default=o,bb}var Fce;function Bu(){if(Fce)return Mb;Fce=1,Object.defineProperty(Mb,"__esModule",{value:!0});var e=Mr,t=Al,r=Gl(),n=eM(),a=Al,i=tM(),o=J9(),s=(function(l){e.__extends(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var A=l.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},A),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},c.prototype.getShapeBase=function(){return i},c.prototype.getGroupBase=function(){return o.default},c.prototype.onCanvasChange=function(A){n.refreshElement(this,A)},c.prototype.calculateBBox=function(){var A=this.get("type"),u=this.getHitLineWidth(),d=a.getBBoxMethod(A),f=d(this),h=u/2,g=f.x-h,p=f.y-h,m=f.x+f.width+h,y=f.y+f.height+h;return{x:g,minX:g,y:p,minY:p,width:f.width+u,height:f.height+u,maxX:m,maxY:y}},c.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},c.prototype.isStroke=function(){return!!this.attrs.stroke},c.prototype._applyClip=function(A,u){u&&(A.save(),n.applyAttrsToContext(A,u),u.createPath(A),A.restore(),A.clip(),u._afterDraw())},c.prototype.draw=function(A,u){var d=this.cfg.clipShape;if(u){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var f=this.getCanvasBBox();if(!r.intersectRect(u,f)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}A.save(),n.applyAttrsToContext(A,this),this._applyClip(A,d),this.drawPath(A),A.restore(),this._afterDraw()},c.prototype.getCanvasViewBox=function(){var A=this.cfg.canvas;return A?A.getViewRange():null},c.prototype.cacheCanvasBBox=function(){var A=this.getCanvasViewBox();if(A){var u=this.getCanvasBBox(),d=r.intersectRect(u,A);this.set("isInView",d),d?this.set("cacheCanvasBBox",u):this.set("cacheCanvasBBox",null)}},c.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},c.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},c.prototype.drawPath=function(A){this.createPath(A),this.strokeAndFill(A),this.afterDrawPath(A)},c.prototype.fill=function(A){A.fill()},c.prototype.stroke=function(A){A.stroke()},c.prototype.strokeAndFill=function(A){var u=this.attrs,d=u.lineWidth,f=u.opacity,h=u.strokeOpacity,g=u.fillOpacity;this.isFill()&&(!r.isNil(g)&&g!==1?(A.globalAlpha=g,this.fill(A),A.globalAlpha=f):this.fill(A)),this.isStroke()&&d>0&&(!r.isNil(h)&&h!==1&&(A.globalAlpha=h),this.stroke(A)),this.afterDrawPath(A)},c.prototype.createPath=function(A){},c.prototype.afterDrawPath=function(A){},c.prototype.isInShape=function(A,u){var d=this.isStroke(),f=this.isFill(),h=this.getHitLineWidth();return this.isInStrokeOrPath(A,u,d,f,h)},c.prototype.isInStrokeOrPath=function(A,u,d,f,h){return!1},c.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var A=this.attrs;return A.lineWidth+A.lineAppendWidth},c})(t.AbstractShape);return Mb.default=s,Mb}var Sb={},Nce;function IRt(){if(Nce)return Sb;Nce=1,Object.defineProperty(Sb,"__esModule",{value:!0});var e=Mr,t=Bu(),r=Gl(),n=(function(a){e.__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var o=a.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},o),{x:0,y:0,r:0})},i.prototype.isInStrokeOrPath=function(o,s,l,c,A){var u=this.attr(),d=u.x,f=u.y,h=u.r,g=A/2,p=r.distance(d,f,o,s);return c&&l?p<=h+g:c?p<=h:l?p>=h-g&&p<=h+g:!1},i.prototype.createPath=function(o){var s=this.attr(),l=s.x,c=s.y,A=s.r;o.beginPath(),o.arc(l,c,A,0,Math.PI*2,!1),o.closePath()},i})(t.default);return Sb.default=n,Sb}var Rb={},_ce;function bRt(){if(_ce)return Rb;_ce=1,Object.defineProperty(Rb,"__esModule",{value:!0});var e=Mr,t=Bu();function r(a,i,o,s){return a/(o*o)+i/(s*s)}var n=(function(a){e.__extends(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.getDefaultAttrs=function(){var o=a.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},o),{x:0,y:0,rx:0,ry:0})},i.prototype.isInStrokeOrPath=function(o,s,l,c,A){var u=this.attr(),d=A/2,f=u.x,h=u.y,g=u.rx,p=u.ry,m=(o-f)*(o-f),y=(s-h)*(s-h);return c&&l?r(m,y,g+d,p+d)<=1:c?r(m,y,g,p)<=1:l?r(m,y,g-d,p-d)>=1&&r(m,y,g+d,p+d)<=1:!1},i.prototype.createPath=function(o){var s=this.attr(),l=s.x,c=s.y,A=s.rx,u=s.ry;if(o.beginPath(),o.ellipse)o.ellipse(l,c,A,u,0,0,Math.PI*2,!1);else{var d=A>u?A:u,f=A>u?1:A/u,h=A>u?u/A:1;o.save(),o.translate(l,c),o.scale(f,h),o.arc(0,0,d,0,Math.PI*2),o.restore(),o.closePath()}},i})(t.default);return Rb.default=n,Rb}var Tb={},kce;function SRt(){if(kce)return Tb;kce=1,Object.defineProperty(Tb,"__esModule",{value:!0});var e=Mr,t=Bu(),r=Gl();function n(i){return i instanceof HTMLElement&&r.isString(i.nodeName)&&i.nodeName.toUpperCase()==="CANVAS"}var a=(function(i){e.__extends(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,width:0,height:0})},o.prototype.initAttrs=function(s){this._setImage(s.img)},o.prototype.isStroke=function(){return!1},o.prototype.isOnlyHitBox=function(){return!0},o.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var s=this.get("canvas");s?s.draw():this.createPath(this.get("context"))}},o.prototype._setImage=function(s){var l=this,c=this.attrs;if(r.isString(s)){var A=new Image;A.onload=function(){if(l.destroyed)return!1;l.attr("img",A),l.set("loading",!1),l._afterLoading();var u=l.get("callback");u&&u.call(l)},A.crossOrigin="Anonymous",A.src=s,this.set("loading",!0)}else s instanceof Image?(c.width||(c.width=s.width),c.height||(c.height=s.height)):n(s)&&(c.width||(c.width=Number(s.getAttribute("width"))),c.height||(c.height,Number(s.getAttribute("height"))))},o.prototype.onAttrChange=function(s,l,c){i.prototype.onAttrChange.call(this,s,l,c),s==="img"&&this._setImage(l)},o.prototype.createPath=function(s){if(this.get("loading")){this.set("toDraw",!0),this.set("context",s);return}var l=this.attr(),c=l.x,A=l.y,u=l.width,d=l.height,f=l.sx,h=l.sy,g=l.swidth,p=l.sheight,m=l.img;(m instanceof Image||n(m))&&(!r.isNil(f)&&!r.isNil(h)&&!r.isNil(g)&&!r.isNil(p)?s.drawImage(m,f,h,g,p,c,A,u,d):s.drawImage(m,c,A,u,d))},o})(t.default);return Tb.default=a,Tb}var Qb={};const bd=Ya(zIt);var Db={},Pce;function wD(){if(Pce)return Db;Pce=1,Object.defineProperty(Db,"__esModule",{value:!0});var e=bd;function t(r,n,a,i,o,s,l){var c=Math.min(r,a),A=Math.max(r,a),u=Math.min(n,i),d=Math.max(n,i),f=o/2;return s>=c-f&&s<=A+f&&l>=u-f&&l<=d+f?e.Line.pointToLine(r,n,a,i,s,l)<=o/2:!1}return Db.default=t,Db}var Oce;function RRt(){if(Oce)return Qb;Oce=1,Object.defineProperty(Qb,"__esModule",{value:!0});var e=Mr,t=bd,r=Bu(),n=wD(),a=CD(),i=(function(o){e.__extends(s,o);function s(){return o!==null&&o.apply(this,arguments)||this}return s.prototype.getDefaultAttrs=function(){var l=o.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},l),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},s.prototype.initAttrs=function(l){this.setArrow()},s.prototype.onAttrChange=function(l,c,A){o.prototype.onAttrChange.call(this,l,c,A),this.setArrow()},s.prototype.setArrow=function(){var l=this.attr(),c=l.x1,A=l.y1,u=l.x2,d=l.y2,f=l.startArrow,h=l.endArrow;f&&a.addStartArrow(this,l,u,d,c,A),h&&a.addEndArrow(this,l,c,A,u,d)},s.prototype.isInStrokeOrPath=function(l,c,A,u,d){if(!A||!d)return!1;var f=this.attr(),h=f.x1,g=f.y1,p=f.x2,m=f.y2;return n.default(h,g,p,m,d,l,c)},s.prototype.createPath=function(l){var c=this.attr(),A=c.x1,u=c.y1,d=c.x2,f=c.y2,h=c.startArrow,g=c.endArrow,p={dx:0,dy:0},m={dx:0,dy:0};h&&h.d&&(p=a.getShortenOffset(A,u,d,f,c.startArrow.d)),g&&g.d&&(m=a.getShortenOffset(A,u,d,f,c.endArrow.d)),l.beginPath(),l.moveTo(A+p.dx,u+p.dy),l.lineTo(d-m.dx,f-m.dy)},s.prototype.afterDrawPath=function(l){var c=this.get("startArrowShape"),A=this.get("endArrowShape");c&&c.draw(l),A&&A.draw(l)},s.prototype.getTotalLength=function(){var l=this.attr(),c=l.x1,A=l.y1,u=l.x2,d=l.y2;return t.Line.length(c,A,u,d)},s.prototype.getPoint=function(l){var c=this.attr(),A=c.x1,u=c.y1,d=c.x2,f=c.y2;return t.Line.pointAt(A,u,d,f,l)},s})(r.default);return Qb.default=i,Qb}var Fb={};const BD=Ya(Ibt);var jce;function TRt(){if(jce)return Fb;jce=1,Object.defineProperty(Fb,"__esModule",{value:!0});var e=Mr,t=Br,r=BD,n=Bu(),a=Gl(),i=eM(),o={circle:function(l,c,A){return[["M",l-A,c],["A",A,A,0,1,0,l+A,c],["A",A,A,0,1,0,l-A,c]]},square:function(l,c,A){return[["M",l-A,c-A],["L",l+A,c-A],["L",l+A,c+A],["L",l-A,c+A],["Z"]]},diamond:function(l,c,A){return[["M",l-A,c],["L",l,c-A],["L",l+A,c],["L",l,c+A],["Z"]]},triangle:function(l,c,A){var u=A*Math.sin(.3333333333333333*Math.PI);return[["M",l-A,c+u],["L",l,c-u],["L",l+A,c+u],["Z"]]},"triangle-down":function(l,c,A){var u=A*Math.sin(.3333333333333333*Math.PI);return[["M",l-A,c-u],["L",l+A,c-u],["L",l,c+u],["Z"]]}},s=(function(l){e.__extends(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.initAttrs=function(A){this._resetParamsCache()},c.prototype._resetParamsCache=function(){this.set("paramsCache",{})},c.prototype.onAttrChange=function(A,u,d){l.prototype.onAttrChange.call(this,A,u,d),["symbol","x","y","r","radius"].indexOf(A)!==-1&&this._resetParamsCache()},c.prototype.isOnlyHitBox=function(){return!0},c.prototype._getR=function(A){return t.isNil(A.r)?A.radius:A.r},c.prototype._getPath=function(){var A=this.attr(),u=A.x,d=A.y,f=A.symbol||"circle",h=this._getR(A),g,p;if(a.isFunction(f))g=f,p=g(u,d,h),p=r.path2Absolute(p);else{if(g=c.Symbols[f],!g)return console.warn(f+" marker is not supported."),null;p=g(u,d,h)}return p},c.prototype.createPath=function(A){var u=this._getPath(),d=this.get("paramsCache");i.drawPath(this,A,{path:u},d)},c.Symbols=o,c})(n.default);return Fb.default=s,Fb}var Nb={},_b={},zce;function sTe(){if(zce)return _b;zce=1,Object.defineProperty(_b,"__esModule",{value:!0});var e=Al;function t(r,n,a){var i=e.getOffScreenContext();return r.createPath(i),i.isPointInPath(n,a)}return _b.default=t,_b}var kb={},Lce;function lTe(){if(Lce)return kb;Lce=1,Object.defineProperty(kb,"__esModule",{value:!0});var e=1e-6;function t(a){return Math.abs(a)<e?0:a<0?-1:1}function r(a,i,o){return(o[0]-a[0])*(i[1]-a[1])===(i[0]-a[0])*(o[1]-a[1])&&Math.min(a[0],i[0])<=o[0]&&o[0]<=Math.max(a[0],i[0])&&Math.min(a[1],i[1])<=o[1]&&o[1]<=Math.max(a[1],i[1])}function n(a,i,o){var s=!1,l=a.length;if(l<=2)return!1;for(var c=0;c<l;c++){var A=a[c],u=a[(c+1)%l];if(r(A,u,[i,o]))return!0;t(A[1]-o)>0!=t(u[1]-o)>0&&t(i-(o-A[1])*(A[0]-u[0])/(A[1]-u[1])-A[0])<0&&(s=!s)}return s}return kb.default=n,kb}var Pb={};const QRt=Ya(nSe);var Ob={},Yce;function cTe(){if(Yce)return Ob;Yce=1,Object.defineProperty(Ob,"__esModule",{value:!0});var e=Gl();function t(r,n,a,i,o,s,l,c){var A=(Math.atan2(c-n,l-r)+Math.PI*2)%(Math.PI*2);if(A<i||A>o)return!1;var u={x:r+a*Math.cos(A),y:n+a*Math.sin(A)};return e.distance(u.x,u.y,l,c)<=s/2}return Ob.default=t,Ob}var Uce;function DRt(){if(Uce)return Pb;Uce=1,Object.defineProperty(Pb,"__esModule",{value:!0});var e=Mr,t=Al,r=bd,n=bd,a=Xg,i=QRt,o=Gl(),s=wD(),l=cTe(),c=a.ext.transform;function A(f){for(var h=!1,g=f.length,p=0;p<g;p++){var m=f[p],y=m[0];if(y==="C"||y==="A"||y==="Q"){h=!0;break}}return h}function u(f,h,g,p,m){for(var y=!1,C=h/2,w=0;w<f.length;w++){var B=f[w],x=B.currentPoint,M=B.params,S=B.prePoint,R=B.box;if(!(R&&!o.inBox(R.x-C,R.y-C,R.width+h,R.height+h,g,p))){switch(B.command){case"L":case"Z":y=s.default(S[0],S[1],x[0],x[1],h,g,p);break;case"Q":var b=r.Quad.pointDistance(S[0],S[1],M[1],M[2],M[3],M[4],g,p);y=b<=h/2;break;case"C":var T=n.Cubic.pointDistance(S[0],S[1],M[1],M[2],M[3],M[4],M[5],M[6],g,p,m);y=T<=h/2;break;case"A":var D=B.arcParams,F=D.cx,N=D.cy,_=D.rx,P=D.ry,k=D.startAngle,j=D.endAngle,Y=D.xRotation,X=[g,p,1],K=_>P?_:P,U=_>P?1:_/P,H=_>P?P/_:1,L=c(null,[["t",-F,-N],["r",-Y],["s",1/U,1/H]]);i.transformMat3(X,X,L),y=l.default(0,0,K,k,j,h,X[0],X[1]);break}if(y)break}}return y}function d(f){for(var h=f.length,g=[],p=[],m=[],y=0;y<h;y++){var C=f[y],w=C[0];w==="M"?(m.length&&(p.push(m),m=[]),m.push([C[1],C[2]])):w==="Z"?m.length&&(g.push(m),m=[]):m.push([C[1],C[2]])}return m.length>0&&p.push(m),{polygons:g,polylines:p}}return Pb.default=e.__assign({hasArc:A,extractPolygons:d,isPointInStroke:u},t.PathUtil),Pb}var Hce;function FRt(){if(Hce)return Nb;Hce=1,Object.defineProperty(Nb,"__esModule",{value:!0});var e=Mr,t=bd,r=Br,n=Bu(),a=BD,i=eM(),o=sTe(),s=lTe(),l=DRt(),c=CD();function A(d,f,h){for(var g=!1,p=0;p<d.length;p++){var m=d[p];if(g=s.default(m,f,h),g)break}return g}var u=(function(d){e.__extends(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.prototype.getDefaultAttrs=function(){var h=d.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},h),{startArrow:!1,endArrow:!1})},f.prototype.initAttrs=function(h){this._setPathArr(h.path),this.setArrow()},f.prototype.onAttrChange=function(h,g,p){d.prototype.onAttrChange.call(this,h,g,p),h==="path"&&this._setPathArr(g),this.setArrow()},f.prototype._setPathArr=function(h){this.attrs.path=a.path2Absolute(h);var g=l.default.hasArc(h);this.set("hasArc",g),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},f.prototype.getSegments=function(){var h=this.get("segements");return h||(h=a.path2Segments(this.attr("path")),this.set("segments",h)),h},f.prototype.setArrow=function(){var h=this.attr(),g=h.startArrow,p=h.endArrow;if(g){var m=this.getStartTangent();c.addStartArrow(this,h,m[0][0],m[0][1],m[1][0],m[1][1])}if(p){var m=this.getEndTangent();c.addEndArrow(this,h,m[0][0],m[0][1],m[1][0],m[1][1])}},f.prototype.isInStrokeOrPath=function(h,g,p,m,y){var C=this.getSegments(),w=this.get("hasArc"),B=!1;if(p){var x=this.getTotalLength();B=l.default.isPointInStroke(C,y,h,g,x)}if(!B&&m)if(w)B=o.default(this,h,g);else{var M=this.attr("path"),S=l.default.extractPolygons(M);B=A(S.polygons,h,g)||A(S.polylines,h,g)}return B},f.prototype.createPath=function(h){var g=this.attr(),p=this.get("paramsCache");i.drawPath(this,h,g,p)},f.prototype.afterDrawPath=function(h){var g=this.get("startArrowShape"),p=this.get("endArrowShape");g&&g.draw(h),p&&p.draw(h)},f.prototype.getTotalLength=function(){var h=this.get("totalLength");return r.isNil(h)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):h},f.prototype.getPoint=function(h){var g=this.get("tCache");g||(this._calculateCurve(),this._setTcache(),g=this.get("tCache"));var p,m,y=this.get("curve");if(!g||g.length===0)return y?{x:y[0][1],y:y[0][2]}:null;r.each(g,function(x,M){h>=x[0]&&h<=x[1]&&(p=(h-x[0])/(x[1]-x[0]),m=M)});var C=y[m];if(r.isNil(C)||r.isNil(m))return null;var w=C.length,B=y[m+1];return t.Cubic.pointAt(C[w-2],C[w-1],B[1],B[2],B[3],B[4],B[5],B[6],p)},f.prototype._calculateCurve=function(){var h=this.attr().path;this.set("curve",l.default.pathToCurve(h))},f.prototype._setTcache=function(){var h=0,g=0,p=[],m,y,C,w,B=this.get("curve");if(B){if(r.each(B,function(x,M){C=B[M+1],w=x.length,C&&(h+=t.Cubic.length(x[w-2],x[w-1],C[1],C[2],C[3],C[4],C[5],C[6])||0)}),this.set("totalLength",h),h===0){this.set("tCache",[]);return}r.each(B,function(x,M){C=B[M+1],w=x.length,C&&(m=[],m[0]=g/h,y=t.Cubic.length(x[w-2],x[w-1],C[1],C[2],C[3],C[4],C[5],C[6]),g+=y||0,m[1]=g/h,p.push(m))}),this.set("tCache",p)}},f.prototype.getStartTangent=function(){var h=this.getSegments(),g;if(h.length>1){var p=h[0].currentPoint,m=h[1].currentPoint,y=h[1].startTangent;g=[],y?(g.push([p[0]-y[0],p[1]-y[1]]),g.push([p[0],p[1]])):(g.push([m[0],m[1]]),g.push([p[0],p[1]]))}return g},f.prototype.getEndTangent=function(){var h=this.getSegments(),g=h.length,p;if(g>1){var m=h[g-2].currentPoint,y=h[g-1].currentPoint,C=h[g-1].endTangent;p=[],C?(p.push([y[0]-C[0],y[1]-C[1]]),p.push([y[0],y[1]])):(p.push([m[0],m[1]]),p.push([y[0],y[1]]))}return p},f})(n.default);return Nb.default=u,Nb}var jb={},zb={},Gce;function ATe(){if(Gce)return zb;Gce=1,Object.defineProperty(zb,"__esModule",{value:!0});var e=wD();function t(r,n,a,i,o){var s=r.length;if(s<2)return!1;for(var l=0;l<s-1;l++){var c=r[l][0],A=r[l][1],u=r[l+1][0],d=r[l+1][1];if(e.default(c,A,u,d,n,a,i))return!0}if(o){var f=r[0],h=r[s-1];if(e.default(f[0],f[1],h[0],h[1],n,a,i))return!0}return!1}return zb.default=t,zb}var Kce;function NRt(){if(Kce)return jb;Kce=1,Object.defineProperty(jb,"__esModule",{value:!0});var e=Mr,t=Bu(),r=ATe(),n=lTe(),a=(function(i){e.__extends(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.isInStrokeOrPath=function(s,l,c,A,u){var d=this.attr().points,f=!1;return c&&(f=r.default(d,u,s,l,!0)),!f&&A&&(f=n.default(d,s,l)),f},o.prototype.createPath=function(s){var l=this.attr(),c=l.points;if(!(c.length<2)){s.beginPath();for(var A=0;A<c.length;A++){var u=c[A];A===0?s.moveTo(u[0],u[1]):s.lineTo(u[0],u[1])}s.closePath()}},o})(t.default);return jb.default=a,jb}var Lb={},Vce;function _Rt(){if(Vce)return Lb;Vce=1,Object.defineProperty(Lb,"__esModule",{value:!0});var e=Mr,t=bd,r=bd,n=Br,a=Bu(),i=ATe(),o=CD(),s=(function(l){e.__extends(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var A=l.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},A),{startArrow:!1,endArrow:!1})},c.prototype.initAttrs=function(A){this.setArrow()},c.prototype.onAttrChange=function(A,u,d){l.prototype.onAttrChange.call(this,A,u,d),this.setArrow(),["points"].indexOf(A)!==-1&&this._resetCache()},c.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},c.prototype.setArrow=function(){var A=this.attr(),u=this.attrs,d=u.points,f=u.startArrow,h=u.endArrow,g=d.length,p=d[0][0],m=d[0][1],y=d[g-1][0],C=d[g-1][1];f&&o.addStartArrow(this,A,d[1][0],d[1][1],p,m),h&&o.addEndArrow(this,A,d[g-2][0],d[g-2][1],y,C)},c.prototype.isFill=function(){return!1},c.prototype.isInStrokeOrPath=function(A,u,d,f,h){if(!d||!h)return!1;var g=this.attr().points;return i.default(g,h,A,u,!1)},c.prototype.isStroke=function(){return!0},c.prototype.createPath=function(A){var u=this.attr(),d=u.points,f=u.startArrow,h=u.endArrow,g=d.length;if(!(d.length<2)){var p=d[0][0],m=d[0][1],y=d[g-1][0],C=d[g-1][1];if(f&&f.d){var w=o.getShortenOffset(p,m,d[1][0],d[1][1],f.d);p+=w.dx,m+=w.dy}if(h&&h.d){var w=o.getShortenOffset(d[g-2][0],d[g-2][1],y,C,h.d);y-=w.dx,C-=w.dy}A.beginPath(),A.moveTo(p,m);for(var B=0;B<g-1;B++){var x=d[B];A.lineTo(x[0],x[1])}A.lineTo(y,C)}},c.prototype.afterDrawPath=function(A){var u=this.get("startArrowShape"),d=this.get("endArrowShape");u&&u.draw(A),d&&d.draw(A)},c.prototype.getTotalLength=function(){var A=this.attr().points,u=this.get("totalLength");return n.isNil(u)?(this.set("totalLength",r.Polyline.length(A)),this.get("totalLength")):u},c.prototype.getPoint=function(A){var u=this.attr().points,d=this.get("tCache");d||(this._setTcache(),d=this.get("tCache"));var f,h;return n.each(d,function(g,p){A>=g[0]&&A<=g[1]&&(f=(A-g[0])/(g[1]-g[0]),h=p)}),t.Line.pointAt(u[h][0],u[h][1],u[h+1][0],u[h+1][1],f)},c.prototype._setTcache=function(){var A=this.attr().points;if(!(!A||A.length===0)){var u=this.getTotalLength();if(!(u<=0)){var d=0,f=[],h,g;n.each(A,function(p,m){A[m+1]&&(h=[],h[0]=d/u,g=t.Line.length(p[0],p[1],A[m+1][0],A[m+1][1]),d+=g,h[1]=d/u,f.push(h))}),this.set("tCache",f)}}},c.prototype.getStartTangent=function(){var A=this.attr().points,u=[];return u.push([A[1][0],A[1][1]]),u.push([A[0][0],A[0][1]]),u},c.prototype.getEndTangent=function(){var A=this.attr().points,u=A.length-1,d=[];return d.push([A[u-1][0],A[u-1][1]]),d.push([A[u][0],A[u][1]]),d},c})(a.default);return Lb.default=s,Lb}var Yb={},Ub={},Jce;function kRt(){if(Jce)return Ub;Jce=1,Object.defineProperty(Ub,"__esModule",{value:!0});var e=Gl();function t(r,n,a,i,o,s,l){var c=o/2;return e.inBox(r-c,n-c,a,o,s,l)||e.inBox(r+a-c,n-c,o,i,s,l)||e.inBox(r+c,n+i-c,a,o,s,l)||e.inBox(r-c,n+c,o,i,s,l)}return Ub.default=t,Ub}var Hb={},Wce;function PRt(){if(Wce)return Hb;Wce=1,Object.defineProperty(Hb,"__esModule",{value:!0});var e=wD(),t=cTe();function r(n,a,i,o,s,l,c,A){return e.default(n+s,a,n+i-s,a,l,c,A)||e.default(n+i,a+s,n+i,a+o-s,l,c,A)||e.default(n+i-s,a+o,n+s,a+o,l,c,A)||e.default(n,a+o-s,n,a+s,l,c,A)||t.default(n+i-s,a+s,s,1.5*Math.PI,2*Math.PI,l,c,A)||t.default(n+i-s,a+o-s,s,0,.5*Math.PI,l,c,A)||t.default(n+s,a+o-s,s,.5*Math.PI,Math.PI,l,c,A)||t.default(n+s,a+s,s,Math.PI,1.5*Math.PI,l,c,A)}return Hb.default=r,Hb}var Xce;function ORt(){if(Xce)return Yb;Xce=1,Object.defineProperty(Yb,"__esModule",{value:!0});var e=Mr,t=Bu(),r=iTe(),n=Gl(),a=kRt(),i=PRt(),o=sTe(),s=(function(l){e.__extends(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.getDefaultAttrs=function(){var A=l.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},A),{x:0,y:0,width:0,height:0,radius:0})},c.prototype.isInStrokeOrPath=function(A,u,d,f,h){var g=this.attr(),p=g.x,m=g.y,y=g.width,C=g.height,w=g.radius;if(w){var x=!1;return d&&(x=i.default(p,m,y,C,w,h,A,u)),!x&&f&&(x=o.default(this,A,u)),x}else{var B=h/2;if(f&&d)return n.inBox(p-B,m-B,y+B,C+B,A,u);if(f)return n.inBox(p,m,y,C,A,u);if(d)return a.default(p,m,y,C,h,A,u)}},c.prototype.createPath=function(A){var u=this.attr(),d=u.x,f=u.y,h=u.width,g=u.height,p=u.radius;if(A.beginPath(),p===0)A.rect(d,f,h,g);else{var m=r.parseRadius(p),y=m[0],C=m[1],w=m[2],B=m[3];A.moveTo(d+y,f),A.lineTo(d+h-C,f),C!==0&&A.arc(d+h-C,f+C,C,-Math.PI/2,0),A.lineTo(d+h,f+g-w),w!==0&&A.arc(d+h-w,f+g-w,w,0,Math.PI/2),A.lineTo(d+B,f+g),B!==0&&A.arc(d+B,f+g-B,B,Math.PI/2,Math.PI),A.lineTo(d,f+y),y!==0&&A.arc(d+y,f+y,y,Math.PI,Math.PI*1.5),A.closePath()}},c})(t.default);return Yb.default=s,Yb}var Gb={},qce;function jRt(){if(qce)return Gb;qce=1,Object.defineProperty(Gb,"__esModule",{value:!0});var e=Mr,t=Bu(),r=Gl(),n=Al,a=(function(i){e.__extends(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},o.prototype.isOnlyHitBox=function(){return!0},o.prototype.initAttrs=function(s){this._assembleFont(),s.text&&this._setText(s.text)},o.prototype._assembleFont=function(){var s=this.attrs;s.font=n.assembleFont(s)},o.prototype._setText=function(s){var l=null;r.isString(s)&&s.indexOf(`
`)!==-1&&(l=s.split(`
`)),this.set("textArr",l)},o.prototype.onAttrChange=function(s,l,c){i.prototype.onAttrChange.call(this,s,l,c),s.startsWith("font")&&this._assembleFont(),s==="text"&&this._setText(l)},o.prototype._getSpaceingY=function(){var s=this.attrs,l=s.lineHeight,c=s.fontSize*1;return l?l-c:c*.14},o.prototype._drawTextArr=function(s,l,c){var A=this.attrs,u=A.textBaseline,d=A.x,f=A.y,h=A.fontSize*1,g=this._getSpaceingY(),p=n.getTextHeight(A.text,A.fontSize,A.lineHeight),m;r.each(l,function(y,C){m=f+C*(g+h)-p+h,u==="middle"&&(m+=p-h-(p-h)/2),u==="top"&&(m+=p-h),r.isNil(y)||(c?s.fillText(y,d,m):s.strokeText(y,d,m))})},o.prototype._drawText=function(s,l){var c=this.attr(),A=c.x,u=c.y,d=this.get("textArr");if(d)this._drawTextArr(s,d,l);else{var f=c.text;r.isNil(f)||(l?s.fillText(f,A,u):s.strokeText(f,A,u))}},o.prototype.strokeAndFill=function(s){var l=this.attrs,c=l.lineWidth,A=l.opacity,u=l.strokeOpacity,d=l.fillOpacity;this.isStroke()&&c>0&&(!r.isNil(u)&&u!==1&&(s.globalAlpha=A),this.stroke(s)),this.isFill()&&(!r.isNil(d)&&d!==1?(s.globalAlpha=d,this.fill(s),s.globalAlpha=A):this.fill(s)),this.afterDrawPath(s)},o.prototype.fill=function(s){this._drawText(s,!0)},o.prototype.stroke=function(s){this._drawText(s,!1)},o})(t.default);return Gb.default=a,Gb}var Zce;function tM(){return Zce||(Zce=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Bu();Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return t.default}});var r=IRt();Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r.default}});var n=bRt();Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return n.default}});var a=SRt();Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return a.default}});var i=RRt();Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return i.default}});var o=TRt();Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return o.default}});var s=FRt();Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return s.default}});var l=NRt();Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return l.default}});var c=_Rt();Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return c.default}});var A=ORt();Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return A.default}});var u=jRt();Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return u.default}})})(rj)),rj}var Kb={},CC={},$ce;function zRt(){if($ce)return CC;$ce=1,Object.defineProperty(CC,"__esModule",{value:!0}),CC.getShape=void 0;var e=Al;function t(i,o){if(o){var s=e.invert(o);return e.multiplyVec2(s,i)}return i}function r(i,o,s){var l=i.getTotalMatrix();if(l){var c=t([o,s,1],l),A=c[0],u=c[1];return[A,u]}return[o,s]}function n(i,o,s){if(i.isCanvas&&i.isCanvas())return!0;if(!e.isAllowCapture(i)||i.cfg.isInView===!1)return!1;if(i.cfg.clipShape){var l=r(i,o,s),c=l[0],A=l[1];if(i.isClipped(c,A))return!1}var u=i.cfg.cacheCanvasBBox||i.getCanvasBBox();return o>=u.minX&&o<=u.maxX&&s>=u.minY&&s<=u.maxY}function a(i,o,s){if(!n(i,o,s))return null;for(var l=null,c=i.getChildren(),A=c.length,u=A-1;u>=0;u--){var d=c[u];if(d.isGroup())l=a(d,o,s);else if(n(d,o,s)){var f=d,h=r(d,o,s),g=h[0],p=h[1];f.isInShape(g,p)&&(l=d)}if(l)break}return l}return CC.getShape=a,CC}var eAe;function LRt(){if(eAe)return Kb;eAe=1,Object.defineProperty(Kb,"__esModule",{value:!0});var e=Mr,t=Al,r=zRt(),n=tM(),a=J9(),i=Gl(),o=eM(),s=(function(l){e.__extends(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.getDefaultCfg=function(){var A=l.prototype.getDefaultCfg.call(this);return A.renderer="canvas",A.autoDraw=!0,A.localRefresh=!0,A.refreshElements=[],A.clipView=!0,A.quickHit=!1,A},c.prototype.onCanvasChange=function(A){(A==="attr"||A==="sort"||A==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},c.prototype.getShapeBase=function(){return n},c.prototype.getGroupBase=function(){return a.default},c.prototype.getPixelRatio=function(){var A=this.get("pixelRatio")||i.getPixelRatio();return A>=1?Math.ceil(A):1},c.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},c.prototype.createDom=function(){var A=document.createElement("canvas"),u=A.getContext("2d");return this.set("context",u),A},c.prototype.setDOMSize=function(A,u){l.prototype.setDOMSize.call(this,A,u);var d=this.get("context"),f=this.get("el"),h=this.getPixelRatio();f.width=h*A,f.height=h*u,h>1&&d.scale(h,h)},c.prototype.clear=function(){l.prototype.clear.call(this),this._clearFrame();var A=this.get("context"),u=this.get("el");A.clearRect(0,0,u.width,u.height)},c.prototype.getShape=function(A,u){var d;return this.get("quickHit")?d=r.getShape(this,A,u):d=l.prototype.getShape.call(this,A,u,null),d},c.prototype._getRefreshRegion=function(){var A=this.get("refreshElements"),u=this.getViewRange(),d;if(A.length&&A[0]===this)d=u;else if(d=o.getMergedRegion(A),d){d.minX=Math.floor(d.minX),d.minY=Math.floor(d.minY),d.maxX=Math.ceil(d.maxX),d.maxY=Math.ceil(d.maxY),d.maxY+=1;var f=this.get("clipView");f&&(d=o.mergeView(d,u))}return d},c.prototype.refreshElement=function(A){var u=this.get("refreshElements");u.push(A)},c.prototype._clearFrame=function(){var A=this.get("drawFrame");A&&(i.clearAnimationFrame(A),this.set("drawFrame",null),this.set("refreshElements",[]))},c.prototype.draw=function(){var A=this.get("drawFrame");this.get("autoDraw")&&A||this._startDraw()},c.prototype._drawAll=function(){var A=this.get("context"),u=this.get("el"),d=this.getChildren();A.clearRect(0,0,u.width,u.height),o.applyAttrsToContext(A,this),o.drawChildren(A,d),this.set("refreshElements",[])},c.prototype._drawRegion=function(){var A=this.get("context"),u=this.get("refreshElements"),d=this.getChildren(),f=this._getRefreshRegion();f?(A.clearRect(f.minX,f.minY,f.maxX-f.minX,f.maxY-f.minY),A.save(),A.beginPath(),A.rect(f.minX,f.minY,f.maxX-f.minX,f.maxY-f.minY),A.clip(),o.applyAttrsToContext(A,this),o.checkRefresh(this,d,f),o.drawChildren(A,d,f),A.restore()):u.length&&o.clearChanged(u),i.each(u,function(h){h.get("hasChanged")&&h.set("hasChanged",!1)}),this.set("refreshElements",[])},c.prototype._startDraw=function(){var A=this,u=this.get("drawFrame"),d=this.get("drawFrameCallback");u||(u=i.requestAnimationFrame(function(){A.get("localRefresh")?A._drawRegion():A._drawAll(),A.set("drawFrame",null),d&&d()}),this.set("drawFrame",u))},c.prototype.skipDraw=function(){},c.prototype.removeDom=function(){var A=this.get("el");A.width=0,A.height=0,A.parentNode.removeChild(A)},c})(t.AbstractCanvas);return Kb.default=s,Kb}var tAe;function YRt(){return tAe||(tAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var t=Mr,r=tM();e.Shape=r,t.__exportStar(Al,e);var n=LRt();Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return n.default}});var a=J9();Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return a.default}});var i=oTe();Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return i.default}}),e.version="0.5.12"})(tj)),tj}var aj={},ij={},Vb={},mf={},_A={},Ef={},rAe;function Kl(){return rAe||(rAe=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.EVENTS=Ef.SVG_ATTR_MAP=Ef.SHAPE_TO_TAGS=void 0,Ef.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Ef.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},Ef.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]),Ef}var nAe;function xu(){if(nAe)return _A;nAe=1,Object.defineProperty(_A,"__esModule",{value:!0}),_A.moveTo=_A.sortDom=_A.createDom=_A.createSVGElement=void 0;var e=Br,t=Kl();function r(o){return document.createElementNS("http://www.w3.org/2000/svg",o)}_A.createSVGElement=r;function n(o){var s=t.SHAPE_TO_TAGS[o.type],l=o.getParent();if(!s)throw new Error("the type "+o.type+" is not supported by svg");var c=r(s);if(o.get("id")&&(c.id=o.get("id")),o.set("el",c),o.set("attrs",{}),l){var A=l.get("el");A||(A=l.createDom(),l.set("el",A)),A.appendChild(c)}return c}_A.createDom=n;function a(o,s){var l=o.get("el"),c=e.toArray(l.children).sort(s),A=document.createDocumentFragment();c.forEach(function(u){A.appendChild(u)}),l.appendChild(A)}_A.sortDom=a;function i(o,s){var l=o.parentNode,c=Array.from(l.childNodes).filter(function(f){return f.nodeType===1&&f.nodeName.toLowerCase()!=="defs"}),A=c[s],u=c.indexOf(o);if(A){if(u>s)l.insertBefore(o,A);else if(u<s){var d=c[s+1];d?l.insertBefore(o,d):l.appendChild(o)}}else l.appendChild(o)}return _A.moveTo=i,_A}var aAe;function rM(){if(aAe)return mf;aAe=1,Object.defineProperty(mf,"__esModule",{value:!0}),mf.setClip=mf.setTransform=mf.setShadow=void 0;var e=xu();function t(a,i){var o=a.cfg.el,s=a.attr(),l={dx:s.shadowOffsetX,dy:s.shadowOffsetY,blur:s.shadowBlur,color:s.shadowColor};if(!l.dx&&!l.dy&&!l.blur&&!l.color)o.removeAttribute("filter");else{var c=i.find("filter",l);c||(c=i.addShadow(l)),o.setAttribute("filter","url(#"+c+")")}}mf.setShadow=t;function r(a){var i=a.attr().matrix;if(i){for(var o=a.cfg.el,s=[],l=0;l<9;l+=3)s.push(i[l]+","+i[l+1]);s=s.join(","),s.indexOf("NaN")===-1?o.setAttribute("transform","matrix("+s+")"):console.warn("invalid matrix:",i)}}mf.setTransform=r;function n(a,i){var o=a.getClip(),s=a.get("el");if(!o)s.removeAttribute("clip-path");else if(o&&!s.hasAttribute("clip-path")){e.createDom(o),o.createPath(i);var l=i.addClip(o);s.setAttribute("clip-path","url(#"+l+")")}}return mf.setClip=n,mf}var kp={},iAe;function W9(){if(iAe)return kp;iAe=1,Object.defineProperty(kp,"__esModule",{value:!0}),kp.refreshElement=kp.drawChildren=void 0;var e=rM(),t=xu();function r(a,i){i.forEach(function(o){o.draw(a)})}kp.drawChildren=r;function n(a,i){var o=a.get("canvas");if(o&&o.get("autoDraw")){var s=o.get("context"),l=a.getParent(),c=l?l.getChildren():[o],A=a.get("el");if(i==="remove"){var u=a.get("isClipShape");if(u){var d=A&&A.parentNode,f=d&&d.parentNode;d&&f&&f.removeChild(d)}else A&&A.parentNode&&A.parentNode.removeChild(A)}else if(i==="show")A.setAttribute("visibility","visible");else if(i==="hide")A.setAttribute("visibility","hidden");else if(i==="zIndex")t.moveTo(A,c.indexOf(a));else if(i==="sort"){var h=a.get("children");h&&h.length&&t.sortDom(a,function(g,p){return h.indexOf(g)-h.indexOf(p)?1:0})}else i==="clear"?A&&(A.innerHTML=""):i==="matrix"?e.setTransform(a):i==="clip"?e.setClip(a,s):i==="attr"||i==="add"&&a.draw(s)}}return kp.refreshElement=n,kp}var Jb={},oAe;function X9(){if(oAe)return Jb;oAe=1,Object.defineProperty(Jb,"__esModule",{value:!0});var e=Mr,t=Al,r=Br,n=xD(),a=W9(),i=rM(),o=Kl(),s=xu(),l=(function(c){e.__extends(A,c);function A(){return c!==null&&c.apply(this,arguments)||this}return A.prototype.isEntityGroup=function(){return!0},A.prototype.createDom=function(){var u=s.createSVGElement("g");this.set("el",u);var d=this.getParent();if(d){var f=d.get("el");f||(f=d.createDom(),d.set("el",f)),f.appendChild(u)}return u},A.prototype.afterAttrsChange=function(u){c.prototype.afterAttrsChange.call(this,u);var d=this.get("canvas");if(d&&d.get("autoDraw")){var f=d.get("context");this.createPath(f,u)}},A.prototype.onCanvasChange=function(u){a.refreshElement(this,u)},A.prototype.getShapeBase=function(){return n},A.prototype.getGroupBase=function(){return A},A.prototype.draw=function(u){var d=this.getChildren(),f=this.get("el");this.get("destroyed")?f&&f.parentNode.removeChild(f):(f||this.createDom(),i.setClip(this,u),this.createPath(u),d.length&&a.drawChildren(u,d))},A.prototype.createPath=function(u,d){var f=this.attr(),h=this.get("el");r.each(d||f,function(g,p){o.SVG_ATTR_MAP[p]&&h.setAttribute(o.SVG_ATTR_MAP[p],g)}),i.setTransform(this)},A})(t.AbstractGroup);return Jb.default=l,Jb}var sAe;function hA(){if(sAe)return Vb;sAe=1,Object.defineProperty(Vb,"__esModule",{value:!0});var e=Mr,t=Al,r=rM(),n=xu(),a=W9(),i=Kl(),o=xD(),s=X9(),l=Al,c=(function(A){e.__extends(u,A);function u(){var d=A!==null&&A.apply(this,arguments)||this;return d.type="svg",d.canFill=!1,d.canStroke=!1,d}return u.prototype.getDefaultAttrs=function(){var d=A.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},d),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},u.prototype.afterAttrsChange=function(d){A.prototype.afterAttrsChange.call(this,d);var f=this.get("canvas");if(f&&f.get("autoDraw")){var h=f.get("context");this.draw(h,d)}},u.prototype.getShapeBase=function(){return o},u.prototype.getGroupBase=function(){return s.default},u.prototype.onCanvasChange=function(d){a.refreshElement(this,d)},u.prototype.calculateBBox=function(){var d=this.get("el"),f=null;if(d)f=d.getBBox();else{var h=l.getBBoxMethod(this.get("type"));h&&(f=h(this))}if(f){var g=f.x,p=f.y,m=f.width,y=f.height,C=this.getHitLineWidth(),w=C/2,B=g-w,x=p-w,M=g+m+w,S=p+y+w;return{x:B,y:x,minX:B,minY:x,maxX:M,maxY:S,width:m+C,height:y+C}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},u.prototype.isFill=function(){var d=this.attr(),f=d.fill,h=d.fillStyle;return(f||h||this.isClipShape())&&this.canFill},u.prototype.isStroke=function(){var d=this.attr(),f=d.stroke,h=d.strokeStyle;return(f||h)&&this.canStroke},u.prototype.draw=function(d,f){var h=this.get("el");this.get("destroyed")?h&&h.parentNode.removeChild(h):(h||n.createDom(this),r.setClip(this,d),this.createPath(d,f),this.shadow(d,f),this.strokeAndFill(d,f),this.transform(f))},u.prototype.createPath=function(d,f){},u.prototype.strokeAndFill=function(d,f){var h=f||this.attr(),g=h.fill,p=h.fillStyle,m=h.stroke,y=h.strokeStyle,C=h.fillOpacity,w=h.strokeOpacity,B=h.lineWidth,x=this.get("el");this.canFill&&(f?"fill"in h?this._setColor(d,"fill",g):"fillStyle"in h&&this._setColor(d,"fill",p):this._setColor(d,"fill",g||p),C&&x.setAttribute(i.SVG_ATTR_MAP.fillOpacity,C)),this.canStroke&&B>0&&(f?"stroke"in h?this._setColor(d,"stroke",m):"strokeStyle"in h&&this._setColor(d,"stroke",y):this._setColor(d,"stroke",m||y),w&&x.setAttribute(i.SVG_ATTR_MAP.strokeOpacity,w),B&&x.setAttribute(i.SVG_ATTR_MAP.lineWidth,B))},u.prototype._setColor=function(d,f,h){var g=this.get("el");if(!h){g.setAttribute(i.SVG_ATTR_MAP[f],"none");return}if(h=h.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(h)){var p=d.find("gradient",h);p||(p=d.addGradient(h)),g.setAttribute(i.SVG_ATTR_MAP[f],"url(#"+p+")")}else if(/^[p,P]{1}[\s]*\(/.test(h)){var p=d.find("pattern",h);p||(p=d.addPattern(h)),g.setAttribute(i.SVG_ATTR_MAP[f],"url(#"+p+")")}else g.setAttribute(i.SVG_ATTR_MAP[f],h)},u.prototype.shadow=function(d,f){var h=this.attr(),g=f||h,p=g.shadowOffsetX,m=g.shadowOffsetY,y=g.shadowBlur,C=g.shadowColor;(p||m||y||C)&&r.setShadow(this,d)},u.prototype.transform=function(d){var f=this.attr(),h=(d||f).matrix;h&&r.setTransform(this)},u.prototype.isInShape=function(d,f){return this.isPointInPath(d,f)},u.prototype.isPointInPath=function(d,f){var h=this.get("el"),g=this.get("canvas"),p=g.get("el").getBoundingClientRect(),m=d+p.left,y=f+p.top,C=document.elementFromPoint(m,y);return!!(C&&C.isEqualNode(h))},u.prototype.getHitLineWidth=function(){var d=this.attrs,f=d.lineWidth,h=d.lineAppendWidth;return this.isStroke()?f+h:0},u})(t.AbstractShape);return Vb.default=c,Vb}var Wb={},lAe;function URt(){if(lAe)return Wb;lAe=1,Object.defineProperty(Wb,"__esModule",{value:!0});var e=Mr,t=Br,r=Kl(),n=hA(),a=(function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="circle",s.canFill=!0,s.canStroke=!0,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,r:0})},o.prototype.createPath=function(s,l){var c=this.attr(),A=this.get("el");t.each(l||c,function(u,d){d==="x"||d==="y"?A.setAttribute("c"+d,u):r.SVG_ATTR_MAP[d]&&A.setAttribute(r.SVG_ATTR_MAP[d],u)})},o})(n.default);return Wb.default=a,Wb}var Xb={},cAe;function HRt(){if(cAe)return Xb;cAe=1,Object.defineProperty(Xb,"__esModule",{value:!0});var e=Mr,t=Br,r=Kl(),n=hA(),a=(function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="dom",s.canFill=!1,s.canStroke=!1,s}return o.prototype.createPath=function(s,l){var c=this.attr(),A=this.get("el");if(t.each(l||c,function(h,g){r.SVG_ATTR_MAP[g]&&A.setAttribute(r.SVG_ATTR_MAP[g],h)}),typeof c.html=="function"){var u=c.html.call(this,c);if(u instanceof Element||u instanceof HTMLDocument){for(var d=A.childNodes,f=d.length-1;f>=0;f--)A.removeChild(d[f]);A.appendChild(u)}else A.innerHTML=u}else A.innerHTML=c.html},o})(n.default);return Xb.default=a,Xb}var qb={},AAe;function GRt(){if(AAe)return qb;AAe=1,Object.defineProperty(qb,"__esModule",{value:!0});var e=Mr,t=Br,r=Kl(),n=hA(),a=(function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="ellipse",s.canFill=!0,s.canStroke=!0,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,rx:0,ry:0})},o.prototype.createPath=function(s,l){var c=this.attr(),A=this.get("el");t.each(l||c,function(u,d){d==="x"||d==="y"?A.setAttribute("c"+d,u):r.SVG_ATTR_MAP[d]&&A.setAttribute(r.SVG_ATTR_MAP[d],u)})},o})(n.default);return qb.default=a,qb}var Zb={},uAe;function KRt(){if(uAe)return Zb;uAe=1,Object.defineProperty(Zb,"__esModule",{value:!0});var e=Mr,t=Br,r=Kl(),n=hA(),a=(function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="image",s.canFill=!1,s.canStroke=!1,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{x:0,y:0,width:0,height:0})},o.prototype.createPath=function(s,l){var c=this,A=this.attr(),u=this.get("el");t.each(l||A,function(d,f){f==="img"?c._setImage(A.img):r.SVG_ATTR_MAP[f]&&u.setAttribute(r.SVG_ATTR_MAP[f],d)})},o.prototype.setAttr=function(s,l){this.attrs[s]=l,s==="img"&&this._setImage(l)},o.prototype._setImage=function(s){var l=this.attr(),c=this.get("el");if(t.isString(s))c.setAttribute("href",s);else if(s instanceof window.Image)l.width||(c.setAttribute("width",s.width),this.attr("width",s.width)),l.height||(c.setAttribute("height",s.height),this.attr("height",s.height)),c.setAttribute("href",s.src);else if(s instanceof HTMLElement&&t.isString(s.nodeName)&&s.nodeName.toUpperCase()==="CANVAS")c.setAttribute("href",s.toDataURL());else if(s instanceof ImageData){var A=document.createElement("canvas");A.setAttribute("width",""+s.width),A.setAttribute("height",""+s.height),A.getContext("2d").putImageData(s,0,0),l.width||(c.setAttribute("width",""+s.width),this.attr("width",s.width)),l.height||(c.setAttribute("height",""+s.height),this.attr("height",s.height)),c.setAttribute("href",A.toDataURL())}},o})(n.default);return Zb.default=a,Zb}var $b={},dAe;function VRt(){if(dAe)return $b;dAe=1,Object.defineProperty($b,"__esModule",{value:!0});var e=Mr,t=bd,r=Br,n=Kl(),a=hA(),i=(function(o){e.__extends(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.type="line",l.canFill=!1,l.canStroke=!0,l}return s.prototype.getDefaultAttrs=function(){var l=o.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},l),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},s.prototype.createPath=function(l,c){var A=this.attr(),u=this.get("el");r.each(c||A,function(d,f){if(f==="startArrow"||f==="endArrow")if(d){var h=r.isObject(d)?l.addArrow(A,n.SVG_ATTR_MAP[f]):l.getDefaultArrow(A,n.SVG_ATTR_MAP[f]);u.setAttribute(n.SVG_ATTR_MAP[f],"url(#"+h+")")}else u.removeAttribute(n.SVG_ATTR_MAP[f]);else n.SVG_ATTR_MAP[f]&&u.setAttribute(n.SVG_ATTR_MAP[f],d)})},s.prototype.getTotalLength=function(){var l=this.attr(),c=l.x1,A=l.y1,u=l.x2,d=l.y2;return t.Line.length(c,A,u,d)},s.prototype.getPoint=function(l){var c=this.attr(),A=c.x1,u=c.y1,d=c.x2,f=c.y2;return t.Line.pointAt(A,u,d,f,l)},s})(a.default);return $b.default=i,$b}var e2={},t2={},fAe;function JRt(){if(fAe)return t2;fAe=1,Object.defineProperty(t2,"__esModule",{value:!0});var e={circle:function(t,r,n){return[["M",t,r],["m",-n,0],["a",n,n,0,1,0,n*2,0],["a",n,n,0,1,0,-n*2,0]]},square:function(t,r,n){return[["M",t-n,r-n],["L",t+n,r-n],["L",t+n,r+n],["L",t-n,r+n],["Z"]]},diamond:function(t,r,n){return[["M",t-n,r],["L",t,r-n],["L",t+n,r],["L",t,r+n],["Z"]]},triangle:function(t,r,n){var a=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,r+a],["L",t,r-a],["L",t+n,r+a],["z"]]},triangleDown:function(t,r,n){var a=n*Math.sin(.3333333333333333*Math.PI);return[["M",t-n,r-a],["L",t+n,r-a],["L",t,r+a],["Z"]]}};return t2.default={get:function(t){return e[t]},register:function(t,r){e[t]=r},remove:function(t){delete e[t]},getAll:function(){return e}},t2}var hAe;function WRt(){if(hAe)return e2;hAe=1,Object.defineProperty(e2,"__esModule",{value:!0});var e=Mr,t=Br,r=hA(),n=JRt(),a=(function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="marker",s.canFill=!0,s.canStroke=!0,s}return o.prototype.createPath=function(s){var l=this.get("el");l.setAttribute("d",this._assembleMarker())},o.prototype._assembleMarker=function(){var s=this._getPath();return t.isArray(s)?s.map(function(l){return l.join(" ")}).join(""):s},o.prototype._getPath=function(){var s=this.attr(),l=s.x,c=s.y,A=s.r||s.radius,u=s.symbol||"circle",d;return t.isFunction(u)?d=u:d=n.default.get(u),d?d(l,c,A):(console.warn(d+" symbol is not exist."),null)},o.symbolsFactory=n.default,o})(r.default);return e2.default=a,e2}var r2={},gAe;function XRt(){if(gAe)return r2;gAe=1,Object.defineProperty(r2,"__esModule",{value:!0});var e=Mr,t=Br,r=Kl(),n=hA(),a=(function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="path",s.canFill=!0,s.canStroke=!0,s}return o.prototype.getDefaultAttrs=function(){var s=i.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},s),{startArrow:!1,endArrow:!1})},o.prototype.createPath=function(s,l){var c=this,A=this.attr(),u=this.get("el");t.each(l||A,function(d,f){if(f==="path"&&t.isArray(d))u.setAttribute("d",c._formatPath(d));else if(f==="startArrow"||f==="endArrow")if(d){var h=t.isObject(d)?s.addArrow(A,r.SVG_ATTR_MAP[f]):s.getDefaultArrow(A,r.SVG_ATTR_MAP[f]);u.setAttribute(r.SVG_ATTR_MAP[f],"url(#"+h+")")}else u.removeAttribute(r.SVG_ATTR_MAP[f]);else r.SVG_ATTR_MAP[f]&&u.setAttribute(r.SVG_ATTR_MAP[f],d)})},o.prototype._formatPath=function(s){var l=s.map(function(c){return c.join(" ")}).join("");return~l.indexOf("NaN")?"":l},o.prototype.getTotalLength=function(){var s=this.get("el");return s?s.getTotalLength():null},o.prototype.getPoint=function(s){var l=this.get("el"),c=this.getTotalLength();if(c===0)return null;var A=l?l.getPointAtLength(s*c):null;return A?{x:A.x,y:A.y}:null},o})(n.default);return r2.default=a,r2}var n2={},pAe;function qRt(){if(pAe)return n2;pAe=1,Object.defineProperty(n2,"__esModule",{value:!0});var e=Mr,t=Br,r=Kl(),n=hA(),a=(function(i){e.__extends(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.type="polygon",s.canFill=!0,s.canStroke=!0,s}return o.prototype.createPath=function(s,l){var c=this.attr(),A=this.get("el");t.each(l||c,function(u,d){d==="points"&&t.isArray(u)&&u.length>=2?A.setAttribute("points",u.map(function(f){return f[0]+","+f[1]}).join(" ")):r.SVG_ATTR_MAP[d]&&A.setAttribute(r.SVG_ATTR_MAP[d],u)})},o})(n.default);return n2.default=a,n2}var a2={},vAe;function ZRt(){if(vAe)return a2;vAe=1,Object.defineProperty(a2,"__esModule",{value:!0});var e=Mr,t=bd,r=bd,n=Br,a=Kl(),i=hA(),o=(function(s){e.__extends(l,s);function l(){var c=s!==null&&s.apply(this,arguments)||this;return c.type="polyline",c.canFill=!0,c.canStroke=!0,c}return l.prototype.getDefaultAttrs=function(){var c=s.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},c),{startArrow:!1,endArrow:!1})},l.prototype.onAttrChange=function(c,A,u){s.prototype.onAttrChange.call(this,c,A,u),["points"].indexOf(c)!==-1&&this._resetCache()},l.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},l.prototype.createPath=function(c,A){var u=this.attr(),d=this.get("el");n.each(A||u,function(f,h){h==="points"&&n.isArray(f)&&f.length>=2?d.setAttribute("points",f.map(function(g){return g[0]+","+g[1]}).join(" ")):a.SVG_ATTR_MAP[h]&&d.setAttribute(a.SVG_ATTR_MAP[h],f)})},l.prototype.getTotalLength=function(){var c=this.attr().points,A=this.get("totalLength");return n.isNil(A)?(this.set("totalLength",t.Polyline.length(c)),this.get("totalLength")):A},l.prototype.getPoint=function(c){var A=this.attr().points,u=this.get("tCache");u||(this._setTcache(),u=this.get("tCache"));var d,f;return n.each(u,function(h,g){c>=h[0]&&c<=h[1]&&(d=(c-h[0])/(h[1]-h[0]),f=g)}),r.Line.pointAt(A[f][0],A[f][1],A[f+1][0],A[f+1][1],d)},l.prototype._setTcache=function(){var c=this.attr().points;if(!(!c||c.length===0)){var A=this.getTotalLength();if(!(A<=0)){var u=0,d=[],f,h;n.each(c,function(g,p){c[p+1]&&(f=[],f[0]=u/A,h=r.Line.length(g[0],g[1],c[p+1][0],c[p+1][1]),u+=h,f[1]=u/A,d.push(f))}),this.set("tCache",d)}}},l.prototype.getStartTangent=function(){var c=this.attr().points,A=[];return A.push([c[1][0],c[1][1]]),A.push([c[0][0],c[0][1]]),A},l.prototype.getEndTangent=function(){var c=this.attr().points,A=c.length-1,u=[];return u.push([c[A-1][0],c[A-1][1]]),u.push([c[A][0],c[A][1]]),u},l})(i.default);return a2.default=o,a2}var i2={},Pp={},mAe;function $Rt(){if(mAe)return Pp;mAe=1,Object.defineProperty(Pp,"__esModule",{value:!0}),Pp.parsePath=Pp.parseRadius=void 0;var e=Br,t=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,r=/[^\s,]+/gi;function n(i){var o=0,s=0,l=0,c=0;return e.isArray(i)?i.length===1?o=s=l=c=i[0]:i.length===2?(o=l=i[0],s=c=i[1]):i.length===3?(o=i[0],s=c=i[1],l=i[2]):(o=i[0],s=i[1],l=i[2],c=i[3]):o=s=l=c=i,{r1:o,r2:s,r3:l,r4:c}}Pp.parseRadius=n;function a(i){if(i=i||[],e.isArray(i))return i;if(e.isString(i))return i=i.match(t),e.each(i,function(o,s){if(o=o.match(r),o[0].length>1){var l=o[0].charAt(0);o.splice(1,0,o[0].substr(1)),o[0]=l}e.each(o,function(c,A){isNaN(c)||(o[A]=+c)}),i[s]=o}),i}return Pp.parsePath=a,Pp}var EAe;function eTt(){if(EAe)return i2;EAe=1,Object.defineProperty(i2,"__esModule",{value:!0});var e=Mr,t=Br,r=hA(),n=Kl(),a=$Rt(),i=(function(o){e.__extends(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.type="rect",l.canFill=!0,l.canStroke=!0,l}return s.prototype.getDefaultAttrs=function(){var l=o.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},l),{x:0,y:0,width:0,height:0,radius:0})},s.prototype.createPath=function(l,c){var A=this,u=this.attr(),d=this.get("el"),f=!1,h=["x","y","width","height","radius"];t.each(c||u,function(g,p){h.indexOf(p)!==-1&&!f?(d.setAttribute("d",A._assembleRect(u)),f=!0):h.indexOf(p)===-1&&n.SVG_ATTR_MAP[p]&&d.setAttribute(n.SVG_ATTR_MAP[p],g)})},s.prototype._assembleRect=function(l){var c=l.x,A=l.y,u=l.width,d=l.height,f=l.radius;if(!f)return"M "+c+","+A+" l "+u+",0 l 0,"+d+" l"+-u+" 0 z";var h=a.parseRadius(f);t.isArray(f)?f.length===1?h.r1=h.r2=h.r3=h.r4=f[0]:f.length===2?(h.r1=h.r3=f[0],h.r2=h.r4=f[1]):f.length===3?(h.r1=f[0],h.r2=h.r4=f[1],h.r3=f[2]):(h.r1=f[0],h.r2=f[1],h.r3=f[2],h.r4=f[3]):h.r1=h.r2=h.r3=h.r4=f;var g=[["M "+(c+h.r1)+","+A],["l "+(u-h.r1-h.r2)+",0"],["a "+h.r2+","+h.r2+",0,0,1,"+h.r2+","+h.r2],["l 0,"+(d-h.r2-h.r3)],["a "+h.r3+","+h.r3+",0,0,1,"+-h.r3+","+h.r3],["l "+(h.r3+h.r4-u)+",0"],["a "+h.r4+","+h.r4+",0,0,1,"+-h.r4+","+-h.r4],["l 0,"+(h.r4+h.r1-d)],["a "+h.r1+","+h.r1+",0,0,1,"+h.r1+","+-h.r1],["z"]];return g.join(" ")},s})(r.default);return i2.default=i,i2}var o2={};const tTt=Ya(mBt);var yAe;function rTt(){if(yAe)return o2;yAe=1,Object.defineProperty(o2,"__esModule",{value:!0});var e=Mr,t=Br,r=tTt,n=rM(),a=Kl(),i=hA(),o=.3,s={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},l={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},c={left:"left",start:"left",center:"middle",right:"end",end:"end"},A=(function(u){e.__extends(d,u);function d(){var f=u!==null&&u.apply(this,arguments)||this;return f.type="text",f.canFill=!0,f.canStroke=!0,f}return d.prototype.getDefaultAttrs=function(){var f=u.prototype.getDefaultAttrs.call(this);return e.__assign(e.__assign({},f),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},d.prototype.createPath=function(f,h){var g=this,p=this.attr(),m=this.get("el");this._setFont(),t.each(h||p,function(y,C){C==="text"?g._setText(""+y):C==="matrix"&&y?n.setTransform(g):a.SVG_ATTR_MAP[C]&&m.setAttribute(a.SVG_ATTR_MAP[C],y)}),m.setAttribute("paint-order","stroke"),m.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},d.prototype._setFont=function(){var f=this.get("el"),h=this.attr(),g=h.textBaseline,p=h.textAlign,m=r.detect();m&&m.name==="firefox"?f.setAttribute("dominant-baseline",l[g]||"alphabetic"):f.setAttribute("alignment-baseline",s[g]||"baseline"),f.setAttribute("text-anchor",c[p]||"left")},d.prototype._setText=function(f){var h=this.get("el"),g=this.attr(),p=g.x,m=g.textBaseline,y=m===void 0?"bottom":m;if(!f)h.innerHTML="";else if(~f.indexOf(`
`)){var C=f.split(`
`),w=C.length-1,B="";t.each(C,function(x,M){M===0?y==="alphabetic"?B+='<tspan x="'+p+'" dy="'+-w+'em">'+x+"</tspan>":y==="top"?B+='<tspan x="'+p+'" dy="0.9em">'+x+"</tspan>":y==="middle"?B+='<tspan x="'+p+'" dy="'+-(w-1)/2+'em">'+x+"</tspan>":y==="bottom"?B+='<tspan x="'+p+'" dy="-'+(w+o)+'em">'+x+"</tspan>":y==="hanging"&&(B+='<tspan x="'+p+'" dy="'+(-(w-1)-o)+'em">'+x+"</tspan>"):B+='<tspan x="'+p+'" dy="1em">'+x+"</tspan>"}),h.innerHTML=B}else h.innerHTML=f},d})(i.default);return o2.default=A,o2}var CAe;function xD(){return CAe||(CAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=hA();Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return t.default}});var r=URt();Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r.default}});var n=HRt();Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return n.default}});var a=GRt();Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return a.default}});var i=KRt();Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return i.default}});var o=VRt();Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return o.default}});var s=WRt();Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return s.default}});var l=XRt();Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return l.default}});var c=qRt();Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return c.default}});var A=ZRt();Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return A.default}});var u=eTt();Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return u.default}});var d=rTt();Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return d.default}})})(ij)),ij}var s2={},l2={},c2={},wAe;function nTt(){if(wAe)return c2;wAe=1,Object.defineProperty(c2,"__esModule",{value:!0});var e=Br,t=xu(),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,n=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function i(c){var A=c.match(a);if(!A)return"";var u="";return A.sort(function(d,f){return d=d.split(":"),f=f.split(":"),Number(d[0])-Number(f[0])}),e.each(A,function(d){d=d.split(":"),u+='<stop offset="'+d[0]+'" stop-color="'+d[1]+'"></stop>'}),u}function o(c,A){var u=r.exec(c),d=e.mod(e.toRadian(parseFloat(u[1])),Math.PI*2),f=u[2],h,g;d>=0&&d<.5*Math.PI?(h={x:0,y:0},g={x:1,y:1}):.5*Math.PI<=d&&d<Math.PI?(h={x:1,y:0},g={x:0,y:1}):Math.PI<=d&&d<1.5*Math.PI?(h={x:1,y:1},g={x:0,y:0}):(h={x:0,y:1},g={x:1,y:0});var p=Math.tan(d),m=p*p,y=(g.x-h.x+p*(g.y-h.y))/(m+1)+h.x,C=p*(g.x-h.x+p*(g.y-h.y))/(m+1)+h.y;A.setAttribute("x1",h.x),A.setAttribute("y1",h.y),A.setAttribute("x2",y),A.setAttribute("y2",C),A.innerHTML=i(f)}function s(c,A){var u=n.exec(c),d=parseFloat(u[1]),f=parseFloat(u[2]),h=parseFloat(u[3]),g=u[4];A.setAttribute("cx",d),A.setAttribute("cy",f),A.setAttribute("r",h),A.innerHTML=i(g)}var l=(function(){function c(A){this.cfg={};var u=null,d=e.uniqueId("gradient_");return A.toLowerCase()[0]==="l"?(u=t.createSVGElement("linearGradient"),o(A,u)):(u=t.createSVGElement("radialGradient"),s(A,u)),u.setAttribute("id",d),this.el=u,this.id=d,this.cfg=A,this}return c.prototype.match=function(A,u){return this.cfg===u},c})();return c2.default=l,c2}var A2={},BAe;function aTt(){if(BAe)return A2;BAe=1,Object.defineProperty(A2,"__esModule",{value:!0});var e=Br,t=xu(),r={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},n={x:"-40%",y:"-40%",width:"200%",height:"200%"},a=(function(){function i(o){this.type="filter",this.cfg={},this.type="filter";var s=t.createSVGElement("filter");return e.each(n,function(l,c){s.setAttribute(c,l)}),this.el=s,this.id=e.uniqueId("filter_"),this.el.id=this.id,this.cfg=o,this._parseShadow(o,s),this}return i.prototype.match=function(o,s){if(this.type!==o)return!1;var l=!0,c=this.cfg;return e.each(Object.keys(c),function(A){if(c[A]!==s[A])return l=!1,!1}),l},i.prototype.update=function(o,s){var l=this.cfg;return l[r[o]]=s,this._parseShadow(l,this.el),this},i.prototype._parseShadow=function(o,s){var l=`<feDropShadow
      dx="`+(o.dx||0)+`"
      dy="`+(o.dy||0)+`"
      stdDeviation="`+(o.blur?o.blur/10:0)+`"
      flood-color="`+(o.color?o.color:"#000")+`"
      flood-opacity="`+(o.opacity?o.opacity:1)+`"
      />`;s.innerHTML=l},i})();return A2.default=a,A2}var u2={},xAe;function iTt(){if(xAe)return u2;xAe=1,Object.defineProperty(u2,"__esModule",{value:!0});var e=Br,t=xu(),r=(function(){function n(a,i){this.cfg={};var o=t.createSVGElement("marker"),s=e.uniqueId("marker_");o.setAttribute("id",s);var l=t.createSVGElement("path");l.setAttribute("stroke",a.stroke||"none"),l.setAttribute("fill",a.fill||"none"),o.appendChild(l),o.setAttribute("overflow","visible"),o.setAttribute("orient","auto-start-reverse"),this.el=o,this.child=l,this.id=s;var c=a[i==="marker-start"?"startArrow":"endArrow"];return this.stroke=a.stroke||"#000",c===!0?this._setDefaultPath(i,l):(this.cfg=c,this._setMarker(a.lineWidth,l)),this}return n.prototype.match=function(){return!1},n.prototype._setDefaultPath=function(a,i){var o=this.el;i.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),o.setAttribute("refX",""+10*Math.cos(Math.PI/6)),o.setAttribute("refY","5")},n.prototype._setMarker=function(a,i){var o=this.el,s=this.cfg.path,l=this.cfg.d;e.isArray(s)&&(s=s.map(function(c){return c.join(" ")}).join("")),i.setAttribute("d",s),o.appendChild(i),l&&o.setAttribute("refX",""+l/a)},n.prototype.update=function(a){var i=this.child;i.attr?i.attr("fill",a):i.setAttribute("fill",a)},n})();return u2.default=r,u2}var d2={},MAe;function oTt(){if(MAe)return d2;MAe=1,Object.defineProperty(d2,"__esModule",{value:!0});var e=Br,t=xu(),r=(function(){function n(a){this.type="clip",this.cfg={};var i=t.createSVGElement("clipPath");this.el=i,this.id=e.uniqueId("clip_"),i.id=this.id;var o=a.cfg.el;return i.appendChild(o),this.cfg=a,this}return n.prototype.match=function(){return!1},n.prototype.remove=function(){var a=this.el;a.parentNode.removeChild(a)},n})();return d2.default=r,d2}var f2={},IAe;function sTt(){if(IAe)return f2;IAe=1,Object.defineProperty(f2,"__esModule",{value:!0});var e=Br,t=xu(),r=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,n=(function(){function a(i){this.cfg={};var o=t.createSVGElement("pattern");o.setAttribute("patternUnits","userSpaceOnUse");var s=t.createSVGElement("image");o.appendChild(s);var l=e.uniqueId("pattern_");o.id=l,this.el=o,this.id=l,this.cfg=i;var c=r.exec(i),A=c[2];s.setAttribute("href",A);var u=new Image;A.match(/^data:/i)||(u.crossOrigin="Anonymous"),u.src=A;function d(){o.setAttribute("width",""+u.width),o.setAttribute("height",""+u.height)}return u.complete?d():(u.onload=d,u.src=u.src),this}return a.prototype.match=function(i,o){return this.cfg===o},a})();return f2.default=n,f2}var bAe;function lTt(){if(bAe)return l2;bAe=1,Object.defineProperty(l2,"__esModule",{value:!0});var e=Br,t=nTt(),r=aTt(),n=iTt(),a=oTt(),i=sTt(),o=xu(),s=(function(){function l(c){var A=o.createSVGElement("defs"),u=e.uniqueId("defs_");A.id=u,c.appendChild(A),this.children=[],this.defaultArrow={},this.el=A,this.canvas=c}return l.prototype.find=function(c,A){for(var u=this.children,d=null,f=0;f<u.length;f++)if(u[f].match(c,A)){d=u[f].id;break}return d},l.prototype.findById=function(c){for(var A=this.children,u=null,d=0;d<A.length;d++)if(A[d].id===c){u=A[d];break}return u},l.prototype.add=function(c){this.children.push(c),c.canvas=this.canvas,c.parent=this},l.prototype.getDefaultArrow=function(c,A){var u=c.stroke||c.strokeStyle;if(this.defaultArrow[u])return this.defaultArrow[u].id;var d=new n.default(c,A);return this.defaultArrow[u]=d,this.el.appendChild(d.el),this.add(d),d.id},l.prototype.addGradient=function(c){var A=new t.default(c);return this.el.appendChild(A.el),this.add(A),A.id},l.prototype.addArrow=function(c,A){var u=new n.default(c,A);return this.el.appendChild(u.el),this.add(u),u.id},l.prototype.addShadow=function(c){var A=new r.default(c);return this.el.appendChild(A.el),this.add(A),A.id},l.prototype.addPattern=function(c){var A=new i.default(c);return this.el.appendChild(A.el),this.add(A),A.id},l.prototype.addClip=function(c){var A=new a.default(c);return this.el.appendChild(A.el),this.add(A),A.id},l})();return l2.default=s,l2}var SAe;function cTt(){if(SAe)return s2;SAe=1,Object.defineProperty(s2,"__esModule",{value:!0});var e=Mr,t=Al,r=Kl(),n=W9(),a=rM(),i=xu(),o=xD(),s=X9(),l=lTt(),c=(function(A){e.__extends(u,A);function u(d){return A.call(this,e.__assign(e.__assign({},d),{autoDraw:!0,renderer:"svg"}))||this}return u.prototype.getShapeBase=function(){return o},u.prototype.getGroupBase=function(){return s.default},u.prototype.getShape=function(d,f,h){var g=h.target||h.srcElement;if(!r.SHAPE_TO_TAGS[g.tagName]){for(var p=g.parentNode;p&&!r.SHAPE_TO_TAGS[p.tagName];)p=p.parentNode;g=p}return this.find(function(m){return m.get("el")===g})},u.prototype.createDom=function(){var d=i.createSVGElement("svg"),f=new l.default(d);return d.setAttribute("width",""+this.get("width")),d.setAttribute("height",""+this.get("height")),this.set("context",f),d},u.prototype.onCanvasChange=function(d){var f=this.get("context"),h=this.get("el");if(d==="sort"){var g=this.get("children");g&&g.length&&i.sortDom(this,function(m,y){return g.indexOf(m)-g.indexOf(y)?1:0})}else if(d==="clear"){if(h){h.innerHTML="";var p=f.el;p.innerHTML="",h.appendChild(p)}}else d==="matrix"?a.setTransform(this):d==="clip"?a.setClip(this,f):d==="changeSize"&&(h.setAttribute("width",""+this.get("width")),h.setAttribute("height",""+this.get("height")))},u.prototype.draw=function(){var d=this.get("context"),f=this.getChildren();a.setClip(this,d),f.length&&n.drawChildren(d,f)},u})(t.AbstractCanvas);return s2.default=c,s2}var RAe;function ATt(){return RAe||(RAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=void 0;var t=Mr,r=xD();e.Shape=r,t.__exportStar(Al,e);var n=cTt();Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return n.default}});var a=X9();Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return a.default}}),e.version="0.5.6"})(aj)),aj}var oj={},wC={},h2={},Op={},TAe;function uTe(){if(TAe)return Op;TAe=1,Object.defineProperty(Op,"__esModule",{value:!0}),Op.registerEngine=Op.getEngine=void 0;var e={};function t(n){var a=e[n];if(!a)throw new Error("G engine '"+n+"' is not exist, please register it at first.");return a}Op.getEngine=t;function r(n,a){e[n]=a}return Op.registerEngine=r,Op}var sj={};const uTt=Ya(vSt);var QAe;function dTe(){return QAe||(QAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDom=e.removeDom=e.getChartSize=void 0;var t=Wi();function r(s){var l=getComputedStyle(s);return{width:(s.clientWidth||parseInt(l.width,10))-parseInt(l.paddingLeft,10)-parseInt(l.paddingRight,10),height:(s.clientHeight||parseInt(l.height,10))-parseInt(l.paddingTop,10)-parseInt(l.paddingBottom,10)}}function n(s){return typeof s=="number"&&!isNaN(s)}function a(s,l,c,A){var u=c,d=A;if(l){var f=r(s);u=f.width?f.width:u,d=f.height?f.height:d}return{width:Math.max(n(u)?u:t.MIN_CHART_WIDTH,t.MIN_CHART_WIDTH),height:Math.max(n(d)?d:t.MIN_CHART_HEIGHT,t.MIN_CHART_HEIGHT)}}e.getChartSize=a;function i(s){var l=s.parentNode;l&&l.removeChild(s)}e.removeDom=i;var o=uTt;Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return o.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return o.modifyCSS}})})(sj)),sj}var jh={},g2={};const fTe=Ya(dBt);var DAe;function q9(){if(DAe)return g2;DAe=1,Object.defineProperty(g2,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(fTe),r=(function(n){(0,e.__extends)(a,n);function a(i){var o=n.call(this)||this;o.destroyed=!1;var s=i.visible,l=s===void 0?!0:s;return o.visible=l,o}return a.prototype.show=function(){var i=this.visible;i||this.changeVisible(!0)},a.prototype.hide=function(){var i=this.visible;i&&this.changeVisible(!1)},a.prototype.destroy=function(){this.off(),this.destroyed=!0},a.prototype.changeVisible=function(i){this.visible!==i&&(this.visible=i)},a})(t.default);return g2.default=r,g2}var lj={},BC={},FAe;function dTt(){if(FAe)return BC;FAe=1,Object.defineProperty(BC,"__esModule",{value:!0}),BC.Facet=void 0;var e=Br,t=Wi(),r=cY(),n=(function(){function a(i,o){this.destroyed=!1,this.facets=[],this.view=i,this.cfg=(0,e.deepMix)({},this.getDefaultCfg(),o)}return a.prototype.init=function(){this.container||(this.container=this.createContainer());var i=this.view.getData();this.facets=this.generateFacets(i)},a.prototype.render=function(){this.renderViews()},a.prototype.update=function(){},a.prototype.clear=function(){this.clearFacetViews()},a.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},a.prototype.facetToView=function(i){var o=i.region,s=i.data,l=i.padding,c=l===void 0?this.cfg.padding:l,A=this.view.createView({region:o,padding:c});A.data(s||[]),i.view=A,this.beforeEachView(A,i);var u=this.cfg.eachView;return u&&u(A,i),this.afterEachView(A,i),A},a.prototype.createContainer=function(){var i=this.view.getLayer(t.LAYER.FORE);return i.addGroup()},a.prototype.renderViews=function(){this.createFacetViews()},a.prototype.createFacetViews=function(){var i=this;return this.facets.map(function(o){return i.facetToView(o)})},a.prototype.clearFacetViews=function(){var i=this;(0,e.each)(this.facets,function(o){o.view&&(i.view.removeView(o.view),o.view=void 0)})},a.prototype.parseSpacing=function(){var i=this.view.viewBBox,o=i.width,s=i.height,l=this.cfg.spacing;return l.map(function(c,A){return(0,e.isNumber)(c)?c/(A===0?o:s):parseFloat(c)/100})},a.prototype.getFieldValues=function(i,o){var s=[],l={};return(0,e.each)(i,function(c){var A=c[o];!(0,e.isNil)(A)&&!l[A]&&(s.push(A),l[A]=!0)}),s},a.prototype.getRegion=function(i,o,s,l){var c=this.parseSpacing(),A=c[0],u=c[1],d=(1+A)/(o===0?1:o)-A,f=(1+u)/(i===0?1:i)-u,h={x:(d+A)*s,y:(f+u)*l},g={x:h.x+d,y:h.y+f};return{start:h,end:g}},a.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},a.prototype.getDefaultTitleCfg=function(){var i=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:i}}},a.prototype.processAxis=function(i,o){var s=i.getOptions(),l=s.coordinate,c=i.geometries,A=(0,e.get)(l,"type","rect");if(A==="rect"&&c.length){(0,e.isNil)(s.axes)&&(s.axes={});var u=s.axes,d=c[0].getXYFields(),f=d[0],h=d[1],g=(0,r.getAxisOption)(u,f),p=(0,r.getAxisOption)(u,h);g!==!1&&(s.axes[f]=this.getXAxisOption(f,u,g,o)),p!==!1&&(s.axes[h]=this.getYAxisOption(h,u,p,o))}},a.prototype.getFacetDataFilter=function(i){return function(o){return(0,e.every)(i,function(s){var l=s.field,c=s.value;return!(0,e.isNil)(c)&&l?o[l]===c:!0})}},a})();return BC.Facet=n,BC}var NAe;function AY(){return NAe||(NAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var t=Br,r=dTt();Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return r.Facet}});var n={},a=function(o){return n[(0,t.lowerCase)(o)]};e.getFacet=a;var i=function(o,s){n[(0,t.lowerCase)(o)]=s};e.registerFacet=i})(lj)),lj}var cj={},I0={},oc={},p2={},v2={},_Ae;function Mu(){if(_Ae)return v2;_Ae=1,Object.defineProperty(v2,"__esModule",{value:!0});var e=Br,t=(function(){function r(n,a){this.context=n,this.cfg=a,n.addAction(this)}return r.prototype.applyCfg=function(n){(0,e.assign)(this,n)},r.prototype.init=function(){this.applyCfg(this.cfg)},r.prototype.destroy=function(){this.context.removeAction(this),this.context=null},r})();return v2.default=t,v2}var kAe;function fTt(){if(kAe)return p2;kAe=1,Object.defineProperty(p2,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(Mu()),r=(function(n){(0,e.__extends)(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.execute=function(){this.callback&&this.callback(this.context)},a.prototype.destroy=function(){n.prototype.destroy.call(this),this.callback=null},a})(t.default);return p2.default=r,p2}var PAe;function Z9(){if(PAe)return oc;PAe=1,Object.defineProperty(oc,"__esModule",{value:!0}),oc.createCallbackAction=oc.unregisterAction=oc.registerAction=oc.getActionClass=oc.createAction=void 0;var e=Mr,t=(0,e.__importDefault)(fTt()),r=Br,n={};function a(c,A){var u=n[c],d=null;if(u){var f=u.ActionClass,h=u.cfg;d=new f(A,h),d.name=c,d.init()}return d}oc.createAction=a;function i(c){var A=n[c];return(0,r.get)(A,"ActionClass")}oc.getActionClass=i;function o(c,A,u){n[c]={ActionClass:A,cfg:u}}oc.registerAction=o;function s(c){delete n[c]}oc.unregisterAction=s;function l(c,A){var u=new t.default(A);return u.callback=c,u.name="callback",u}return oc.createCallbackAction=l,oc}var m2={},Rn={},Aj={},OAe;function MD(){return OAe||(OAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var t=Xg,r=Br,n=uu();function a(g,p){var m=[];if(g.length){m.push(["M",g[0].x,g[0].y]);for(var y=1,C=g.length;y<C;y+=1){var w=g[y];m.push(["L",w.x,w.y])}p&&m.push(["Z"])}return m}function i(g,p){for(var m=[g[0]],y=1,C=g.length;y<C;y=y+2){var w=p.convert({x:g[y],y:g[y+1]});m.push(w.x,w.y)}return m}function o(g,p){var m=p.isTransposed,y=g[1],C=g[6],w=g[7],B=p.convert({x:C,y:w}),x=m?0:1;return["A",y,y,0,0,x,B.x,B.y]}function s(g,p,m){var y=m.isTransposed,C=m.startAngle,w=m.endAngle,B=g[0].toLowerCase()==="a"?{x:g[6],y:g[7]}:{x:g[1],y:g[2]},x={x:p[1],y:p[2]},M=[],S=y?"y":"x",R=Math.abs(x[S]-B[S])*(w-C),b=x[S]>=B[S]?1:0,T=R>Math.PI?1:0,D=m.convert(x),F=(0,n.getDistanceToCenter)(m,D);if(F>=.5)if(R===Math.PI*2){var N={x:(x.x+B.x)/2,y:(x.y+B.y)/2},_=m.convert(N);M.push(["A",F,F,0,T,b,_.x,_.y]),M.push(["A",F,F,0,T,b,D.x,D.y])}else M.push(["A",F,F,0,T,b,D.x,D.y]);return M}function l(g){(0,r.each)(g,function(p,m){var y=p;if(y[0].toLowerCase()==="a"){var C=g[m-1],w=g[m+1];w&&w[0].toLowerCase()==="a"?C&&C[0].toLowerCase()==="l"&&(C[0]="M"):C&&C[0].toLowerCase()==="a"&&w&&w[0].toLowerCase()==="l"&&(w[0]="M")}})}var c=function(g,p,m,y){var C=[],w=!!y,B,x,M,S,R,b,T;if(w){M=y[0],S=y[1];for(var D=0,F=g.length;D<F;D++){var N=g[D];M=t.vec2.min([0,0],M,N),S=t.vec2.max([0,0],S,N)}}for(var D=0,_=g.length;D<_;D++){var N=g[D];if(D===0&&!m)T=N;else if(D===_-1&&!m)b=N,C.push(T),C.push(b);else{B=g[m?D?D-1:_-1:D-1],x=g[m?(D+1)%_:D+1];var P=[0,0];P=t.vec2.sub(P,x,B),P=t.vec2.scale(P,P,p);var k=t.vec2.distance(N,B),j=t.vec2.distance(N,x),Y=k+j;Y!==0&&(k/=Y,j/=Y);var X=t.vec2.scale([0,0],P,-k),K=t.vec2.scale([0,0],P,j);b=t.vec2.add([0,0],N,X),R=t.vec2.add([0,0],N,K),R=t.vec2.min([0,0],R,t.vec2.max([0,0],x,N)),R=t.vec2.max([0,0],R,t.vec2.min([0,0],x,N)),X=t.vec2.sub([0,0],R,N),X=t.vec2.scale([0,0],X,-k/j),b=t.vec2.add([0,0],N,X),b=t.vec2.min([0,0],b,t.vec2.max([0,0],B,N)),b=t.vec2.max([0,0],b,t.vec2.min([0,0],B,N)),K=t.vec2.sub([0,0],N,b),K=t.vec2.scale([0,0],K,j/k),R=t.vec2.add([0,0],N,K),w&&(b=t.vec2.max([0,0],b,M),b=t.vec2.min([0,0],b,S),R=t.vec2.max([0,0],R,M),R=t.vec2.min([0,0],R,S)),C.push(T),C.push(b),T=R}}return m&&C.push(C.shift()),C};e.smoothBezier=c;function A(g,p,m){for(var y=!!p,C=[],w=0,B=g.length;w<B;w+=2)C.push([g[w],g[w+1]]);for(var x=(0,e.smoothBezier)(C,.4,y,m),M=C.length,S=[],R,b,T,w=0;w<M-1;w++)R=x[w*2],b=x[w*2+1],T=C[w+1],S.push(["C",R[0],R[1],b[0],b[1],T[0],T[1]]);return y&&(R=x[M],b=x[M+1],T=C[0],S.push(["C",R[0],R[1],b[0],b[1],T[0],T[1]])),S}e.catmullRom2bezier=A;function u(g,p){return a(g,p)}e.getLinePath=u;function d(g,p,m){var y=[],C=g[0],w=null;if(g.length<=2)return u(g,p);for(var B=0,x=g.length;B<x;B++){var M=g[B];(!w||!(w.x===M.x&&w.y===M.y))&&(y.push(M.x),y.push(M.y),w=M)}var S=m||[[0,0],[1,1]],R=A(y,p,S);return R.unshift(["M",C.x,C.y]),R}e.getSplinePath=d;function f(g,p){var m=[];return(0,r.each)(p,function(y){var C=y[0];switch(C.toLowerCase()){case"m":case"l":case"c":m.push(i(y,g));break;case"a":m.push(o(y,g));break;case"z":default:m.push(y);break}}),m}e.convertNormalPath=f;function h(g,p){var m=[],y,C,w,B;return(0,r.each)(p,function(x,M){var S=x[0];switch(S.toLowerCase()){case"m":case"c":case"q":m.push(i(x,g));break;case"l":y=p[M-1],C=x,w=g.isTransposed,B=w?y[y.length-2]===C[1]:y[y.length-1]===C[2],B?m=m.concat(s(y,C,g)):m.push(i(x,g));break;case"a":m.push(o(x,g));break;case"z":default:m.push(x);break}}),l(m),m}e.convertPolarPath=h})(Aj)),Aj}var jAe;function ks(){if(jAe)return Rn;jAe=1,Object.defineProperty(Rn,"__esModule",{value:!0}),Rn.getScaleByField=Rn.isInRecords=Rn.getSiblingPoint=Rn.getSilbings=Rn.isInBox=Rn.getSpline=Rn.distance=Rn.getComponents=Rn.getElementsByPath=Rn.getIntersectElements=Rn.intersectRect=Rn.getElementValue=Rn.getElementsByState=Rn.getElementsByField=Rn.getElements=Rn.getSiblingMaskElements=Rn.getMaskedElements=Rn.isMask=Rn.isSlider=Rn.isList=Rn.isElementChange=Rn.getDelegationObject=Rn.getCurrentElement=void 0;var e=Br,t=MD(),r=Xy(),n=BD;function a(_,P){var k=_.event,j=k.target,Y=j.getCanvasBBox();return Y.width>=P||Y.height>=P?Y:null}function i(_,P){var k=_.event,j=k.target,Y=j.getCanvasBBox();return Y.width>=P||Y.height>=P?j.attr("path"):null}function o(_){var P=_.event,k,j=P.target;return j&&(k=j.get("element")),k}Rn.getCurrentElement=o;function s(_){var P=_.event,k=P.target,j;return k&&(j=k.get("delegateObject")),j}Rn.getDelegationObject=s;function l(_){var P=_.event.gEvent;return!(P&&P.fromShape&&P.toShape&&P.fromShape.get("element")===P.toShape.get("element"))}Rn.isElementChange=l;function c(_){return _&&_.component&&_.component.isList()}Rn.isList=c;function A(_){return _&&_.component&&_.component.isSlider()}Rn.isSlider=A;function u(_){var P=_.event,k=P.target;return k&&k.get("name")==="mask"}Rn.isMask=u;function d(_,P){var k=_.event.target;if(k.get("type")==="path"){var j=i(_,P);return j?B(_.view,j):void 0}var Y=a(_,P);return Y?C(_.view,Y):null}Rn.getMaskedElements=d;function f(_,P,k){var j=a(_,k);if(!j)return null;var Y=_.view,X=D(Y,P,{x:j.x,y:j.y}),K=D(Y,P,{x:j.maxX,y:j.maxY}),U={minX:X.x,minY:X.y,maxX:K.x,maxY:K.y};return C(P,U)}Rn.getSiblingMaskElements=f;function h(_){var P=_.geometries,k=[];return(0,e.each)(P,function(j){var Y=j.elements;k=k.concat(Y)}),_.views&&_.views.length&&(0,e.each)(_.views,function(j){k=k.concat(h(j))}),k}Rn.getElements=h;function g(_,P,k){var j=h(_);return j.filter(function(Y){return m(Y,P)===k})}Rn.getElementsByField=g;function p(_,P){var k=_.geometries,j=[];return(0,e.each)(k,function(Y){var X=Y.getElementsBy(function(K){return K.hasState(P)});j=j.concat(X)}),j}Rn.getElementsByState=p;function m(_,P){var k=_.getModel(),j=k.data,Y;return(0,e.isArray)(j)?Y=j[0][P]:Y=j[P],Y}Rn.getElementValue=m;function y(_,P){return!(P.minX>_.maxX||P.maxX<_.minX||P.minY>_.maxY||P.maxY<_.minY)}Rn.intersectRect=y;function C(_,P){var k=h(_),j=[];return(0,e.each)(k,function(Y){var X=Y.shape,K=X.getCanvasBBox();y(P,K)&&j.push(Y)}),j}Rn.getIntersectElements=C;function w(_){var P=[];return(0,e.each)(_,function(k){var j=k[0];if(j!=="A")for(var Y=1;Y<k.length;Y=Y+2)P.push([k[Y],k[Y+1]]);else{var X=k.length;P.push([k[X-2],k[X-1]])}}),P}function B(_,P){var k=h(_),j=w(P),Y=k.filter(function(X){var K=X.shape,U;if(K.get("type")==="path")U=w(K.attr("path"));else{var H=K.getCanvasBBox();U=(0,r.toPoints)(H)}return(0,n.isPolygonsIntersect)(j,U)});return Y}Rn.getElementsByPath=B;function x(_){return _.getComponents().map(function(P){return P.component})}Rn.getComponents=x;function M(_,P){var k=P.x-_.x,j=P.y-_.y;return Math.sqrt(k*k+j*j)}Rn.distance=M;function S(_,P){if(_.length<=2)return(0,t.getLinePath)(_,!1);var k=_[0],j=[];(0,e.each)(_,function(X){j.push(X.x),j.push(X.y)});var Y=(0,t.catmullRom2bezier)(j,P,null);return Y.unshift(["M",k.x,k.y]),Y}Rn.getSpline=S;function R(_,P){return _.x<=P.x&&_.maxX>=P.x&&_.y<=P.y&&_.maxY>P.y}Rn.isInBox=R;function b(_){var P=_.parent,k=null;return P&&(k=P.views.filter(function(j){return j!==_})),k}Rn.getSilbings=b;function T(_,P){var k=_.getCoordinate();return k.invert(P)}function D(_,P,k){var j=T(_,k);return P.getCoordinate().convert(j)}Rn.getSiblingPoint=D;function F(_,P,k,j){var Y=!1;return(0,e.each)(_,function(X){if(X[k]===P[k]&&X[j]===P[j])return Y=!0,!1}),Y}Rn.isInRecords=F;function N(_,P){var k=_.getScaleByField(P);return!k&&_.views&&(0,e.each)(_.views,function(j){if(k=N(j,P),k)return!1}),k}return Rn.getScaleByField=N,Rn}var zAe;function hTt(){if(zAe)return m2;zAe=1,Object.defineProperty(m2,"__esModule",{value:!0});var e=Br,t=ks(),r=(function(){function n(a){this.actions=[],this.event=null,this.cacheMap={},this.view=a}return n.prototype.cache=function(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];if(a.length===1)return this.cacheMap[a[0]];a.length===2&&(this.cacheMap[a[0]]=a[1])},n.prototype.getAction=function(a){return this.actions.find(function(i){return i.name===a})},n.prototype.addAction=function(a){this.actions.push(a)},n.prototype.removeAction=function(a){var i=this.actions,o=this.actions.indexOf(a);o>=0&&i.splice(o,1)},n.prototype.getCurrentPoint=function(){var a=this.event;if(a)if(a.target instanceof HTMLElement){var i=this.view.getCanvas(),o=i.getPointByClient(a.clientX,a.clientY);return o}else return{x:a.x,y:a.y};return null},n.prototype.getCurrentShape=function(){return(0,e.get)(this.event,["gEvent","shape"])},n.prototype.isInPlot=function(){var a=this.getCurrentPoint();return a?this.view.isPointInPlot(a):!1},n.prototype.isInShape=function(a){var i=this.getCurrentShape();return i?i.get("name")===a:!1},n.prototype.isInComponent=function(a){var i=(0,t.getComponents)(this.view),o=this.getCurrentPoint();return o?!!i.find(function(s){var l=s.getBBox();return a?s.get("name")===a&&(0,t.isInBox)(l,o):(0,t.isInBox)(l,o)}):!1},n.prototype.destroy=function(){(0,e.each)(this.actions.slice(),function(a){a.destroy()}),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},n})();return m2.default=r,m2}var E2={},LAe;function hTe(){if(LAe)return E2;LAe=1,Object.defineProperty(E2,"__esModule",{value:!0});var e=(function(){function t(r,n){this.view=r,this.cfg=n}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t})();return E2.default=e,E2}var YAe;function gTt(){if(YAe)return I0;YAe=1,Object.defineProperty(I0,"__esModule",{value:!0}),I0.parseAction=void 0;var e=Mr,t=Br,r=Z9(),n=(0,e.__importDefault)(hTt()),a=(0,e.__importDefault)(hTe());function i(c,A,u){var d=c.split(":"),f=d[0],h=A.getAction(f)||(0,r.createAction)(f,A);if(!h)throw new Error("There is no action named "+f);var g=d[1];return{action:h,methodName:g,arg:u}}I0.parseAction=i;function o(c){var A=c.action,u=c.methodName,d=c.arg;if(A[u])A[u](d);else throw new Error("Action("+A.name+") doesn't have a method called "+u)}var s={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},l=(function(c){(0,e.__extends)(A,c);function A(u,d){var f=c.call(this,u,d)||this;return f.callbackCaches={},f.emitCaches={},f.steps=d,f}return A.prototype.init=function(){this.initContext(),c.prototype.init.call(this)},A.prototype.destroy=function(){c.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},A.prototype.initEvents=function(){var u=this;(0,t.each)(this.steps,function(d,f){(0,t.each)(d,function(h){var g=u.getActionCallback(f,h);g&&u.bindEvent(h.trigger,g)})})},A.prototype.clearEvents=function(){var u=this;(0,t.each)(this.steps,function(d,f){(0,t.each)(d,function(h){var g=u.getActionCallback(f,h);g&&u.offEvent(h.trigger,g)})})},A.prototype.initContext=function(){var u=this.view,d=new n.default(u);this.context=d;var f=this.steps;(0,t.each)(f,function(h){(0,t.each)(h,function(g){if((0,t.isFunction)(g.action))g.actionObject={action:(0,r.createCallbackAction)(g.action,d),methodName:"execute"};else if((0,t.isString)(g.action))g.actionObject=i(g.action,d,g.arg);else if((0,t.isArray)(g.action)){var p=g.action,m=(0,t.isArray)(g.arg)?g.arg:[g.arg];g.actionObject=[],(0,t.each)(p,function(y,C){g.actionObject.push(i(y,d,m[C]))})}})})},A.prototype.isAllowStep=function(u){var d=this.currentStepName,f=this.steps;if(d===u||u===s.SHOW_ENABLE)return!0;if(u===s.PROCESSING)return d===s.START;if(u===s.START)return d!==s.PROCESSING;if(u===s.END)return d===s.PROCESSING||d===s.START;if(u===s.ROLLBACK){if(f[s.END])return d===s.END;if(d===s.START)return!0}return!1},A.prototype.isAllowExecute=function(u,d){if(this.isAllowStep(u)){var f=this.getKey(u,d);return d.once&&this.emitCaches[f]?!1:d.isEnable?d.isEnable(this.context):!0}return!1},A.prototype.enterStep=function(u){this.currentStepName=u,this.emitCaches={}},A.prototype.afterExecute=function(u,d){u!==s.SHOW_ENABLE&&this.currentStepName!==u&&this.enterStep(u);var f=this.getKey(u,d);this.emitCaches[f]=!0},A.prototype.getKey=function(u,d){return u+d.trigger+d.action},A.prototype.getActionCallback=function(u,d){var f=this,h=this.context,g=this.callbackCaches,p=d.actionObject;if(d.action&&p){var m=this.getKey(u,d);if(!g[m]){var y=function(C){h.event=C,f.isAllowExecute(u,d)?((0,t.isArray)(p)?(0,t.each)(p,function(w){h.event=C,o(w)}):(h.event=C,o(p)),f.afterExecute(u,d),d.callback&&(h.event=C,d.callback(h))):h.event=null};d.debounce?g[m]=(0,t.debounce)(y,d.debounce.wait,d.debounce.immediate):d.throttle?g[m]=(0,t.throttle)(y,d.throttle.wait,{leading:d.throttle.leading,trailing:d.throttle.trailing}):g[m]=y}return g[m]}return null},A.prototype.bindEvent=function(u,d){var f=u.split(":");f[0]==="window"?window.addEventListener(f[1],d):f[0]==="document"?document.addEventListener(f[1],d):this.view.on(u,d)},A.prototype.offEvent=function(u,d){var f=u.split(":");f[0]==="window"?window.removeEventListener(f[1],d):f[0]==="document"?document.removeEventListener(f[1],d):this.view.off(u,d)},A})(a.default);return I0.default=l,I0}var xC={},UAe;function pTt(){return UAe||(UAe=1,(function(e){var t=xC&&xC.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var r=Mu();Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return t(r).default}});var n=Z9();Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return n.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return n.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return n.getActionClass}})})(xC)),xC}var HAe;function uY(){return HAe||(HAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var t=Mr,r=Br,n=(0,t.__importDefault)(gTt()),a={};function i(A){return a[(0,r.lowerCase)(A)]}e.getInteraction=i;function o(A,u){a[(0,r.lowerCase)(A)]=u}e.registerInteraction=o;function s(A,u,d){var f=i(A);if(!f)return null;if((0,r.isPlainObject)(f)){var h=(0,r.mix)((0,r.clone)(f),d);return new n.default(u,h)}else{var g=f;return new g(u,d)}}e.createInteraction=s;var l=hTe();Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return(0,t.__importDefault)(l).default}});var c=pTt();Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return c.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return c.getActionClass}})})(cj)),cj}var jp={},uj={},MC={},IC={},GAe;function gTe(){if(GAe)return IC;GAe=1,Object.defineProperty(IC,"__esModule",{value:!0}),IC.createThemeByStyleSheet=void 0;var e=Mr,t=vD,r=Xg,n=Br,a=Bc();function i(l){return{title:{autoRotate:!0,position:"center",spacing:l.axisTitleSpacing,style:{fill:l.axisTitleTextFillColor,fontSize:l.axisTitleTextFontSize,lineHeight:l.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:l.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:l.axisLabelOffset,style:{fill:l.axisLabelFillColor,fontSize:l.axisLabelFontSize,lineHeight:l.axisLabelLineHeight,fontFamily:l.fontFamily}},line:{style:{lineWidth:l.axisLineBorder,stroke:l.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:l.axisGridBorderColor,lineWidth:l.axisGridBorder,lineDash:l.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:l.axisTickLineBorder,stroke:l.axisTickLineBorderColor},alignTick:!0,length:l.axisTickLineLength},subTickLine:null,animate:!0}}function o(l){return{title:null,marker:{symbol:"circle",spacing:l.legendMarkerSpacing,style:{r:l.legendCircleMarkerSize,fill:l.legendMarkerColor}},itemName:{spacing:5,style:{fill:l.legendItemNameFillColor,fontFamily:l.fontFamily,fontSize:l.legendItemNameFontSize,lineHeight:l.legendItemNameLineHeight,fontWeight:l.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:l.legendPageNavigatorMarkerSize,inactiveFill:l.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:l.legendPageNavigatorMarkerInactiveFillOpacity,fill:l.legendPageNavigatorMarkerFillColor,opacity:l.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:l.legendPageNavigatorTextFillColor,fontSize:l.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:l.legendItemSpacing,itemMarginBottom:l.legendItemMarginBottom,padding:l.legendPadding}}function s(l){var c,A={point:{default:{fill:l.pointFillColor,r:l.pointSize,stroke:l.pointBorderColor,lineWidth:l.pointBorder,fillOpacity:l.pointFillOpacity},active:{stroke:l.pointActiveBorderColor,lineWidth:l.pointActiveBorder},selected:{stroke:l.pointSelectedBorderColor,lineWidth:l.pointSelectedBorder},inactive:{fillOpacity:l.pointInactiveFillOpacity,strokeOpacity:l.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:l.hollowPointFillColor,lineWidth:l.hollowPointBorder,stroke:l.hollowPointBorderColor,strokeOpacity:l.hollowPointBorderOpacity,r:l.hollowPointSize},active:{stroke:l.hollowPointActiveBorderColor,strokeOpacity:l.hollowPointActiveBorderOpacity},selected:{lineWidth:l.hollowPointSelectedBorder,stroke:l.hollowPointSelectedBorderColor,strokeOpacity:l.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:l.hollowPointInactiveBorderOpacity}},area:{default:{fill:l.areaFillColor,fillOpacity:l.areaFillOpacity,stroke:null},active:{fillOpacity:l.areaActiveFillOpacity},selected:{fillOpacity:l.areaSelectedFillOpacity},inactive:{fillOpacity:l.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:l.hollowAreaBorderColor,lineWidth:l.hollowAreaBorder,strokeOpacity:l.hollowAreaBorderOpacity},active:{fill:null,lineWidth:l.hollowAreaActiveBorder},selected:{fill:null,lineWidth:l.hollowAreaSelectedBorder},inactive:{strokeOpacity:l.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:l.intervalFillColor,fillOpacity:l.intervalFillOpacity},active:{stroke:l.intervalActiveBorderColor,lineWidth:l.intervalActiveBorder},selected:{stroke:l.intervalSelectedBorderColor,lineWidth:l.intervalSelectedBorder},inactive:{fillOpacity:l.intervalInactiveFillOpacity,strokeOpacity:l.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:l.hollowIntervalFillColor,stroke:l.hollowIntervalBorderColor,lineWidth:l.hollowIntervalBorder,strokeOpacity:l.hollowIntervalBorderOpacity},active:{stroke:l.hollowIntervalActiveBorderColor,lineWidth:l.hollowIntervalActiveBorder,strokeOpacity:l.hollowIntervalActiveBorderOpacity},selected:{stroke:l.hollowIntervalSelectedBorderColor,lineWidth:l.hollowIntervalSelectedBorder,strokeOpacity:l.hollowIntervalSelectedBorderOpacity},inactive:{stroke:l.hollowIntervalInactiveBorderColor,lineWidth:l.hollowIntervalInactiveBorder,strokeOpacity:l.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:l.lineBorderColor,lineWidth:l.lineBorder,strokeOpacity:l.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:l.lineActiveBorder},selected:{lineWidth:l.lineSelectedBorder},inactive:{strokeOpacity:l.lineInactiveBorderOpacity}}},u=i(l),d=o(l);return{background:l.backgroundColor,defaultColor:l.brandColor,subColor:l.subColor,semanticRed:l.paletteSemanticRed,semanticGreen:l.paletteSemanticGreen,padding:"auto",fontFamily:l.fontFamily,columnWidthRatio:1/2,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:l.paletteQualitative10,colors20:l.paletteQualitative20,sequenceColors:l.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:A.interval.default},active:{style:A.interval.active},inactive:{style:A.interval.inactive},selected:{style:function(f){var h=f.geometry.coordinate;if(h.isPolar&&h.isTransposed){var g=(0,a.getAngle)(f.getModel(),h),p=g.startAngle,m=g.endAngle,y=(p+m)/2,C=7.5,w=C*Math.cos(y),B=C*Math.sin(y);return{matrix:r.ext.transform(null,[["t",w,B]])}}return A.interval.selected}}},"hollow-rect":{default:{style:A.hollowInterval.default},active:{style:A.hollowInterval.active},inactive:{style:A.hollowInterval.inactive},selected:{style:A.hollowInterval.selected}},line:{default:{style:A.hollowInterval.default},active:{style:A.hollowInterval.active},inactive:{style:A.hollowInterval.inactive},selected:{style:A.hollowInterval.selected}},tick:{default:{style:A.hollowInterval.default},active:{style:A.hollowInterval.active},inactive:{style:A.hollowInterval.inactive},selected:{style:A.hollowInterval.selected}},funnel:{default:{style:A.interval.default},active:{style:A.interval.active},inactive:{style:A.interval.inactive},selected:{style:A.interval.selected}},pyramid:{default:{style:A.interval.default},active:{style:A.interval.active},inactive:{style:A.interval.inactive},selected:{style:A.interval.selected}}},line:{line:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},dot:{default:{style:(0,e.__assign)((0,e.__assign)({},A.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:(0,e.__assign)((0,e.__assign)({},A.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:(0,e.__assign)((0,e.__assign)({},A.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:(0,e.__assign)((0,e.__assign)({},A.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:(0,e.__assign)((0,e.__assign)({},A.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:(0,e.__assign)((0,e.__assign)({},A.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:(0,e.__assign)((0,e.__assign)({},A.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:(0,e.__assign)((0,e.__assign)({},A.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},hv:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},vh:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},hvh:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},vhv:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}}},polygon:{polygon:{default:{style:A.interval.default},active:{style:A.interval.active},inactive:{style:A.interval.inactive},selected:{style:A.interval.selected}}},point:{circle:{default:{style:A.point.default},active:{style:A.point.active},inactive:{style:A.point.inactive},selected:{style:A.point.selected}},square:{default:{style:A.point.default},active:{style:A.point.active},inactive:{style:A.point.inactive},selected:{style:A.point.selected}},bowtie:{default:{style:A.point.default},active:{style:A.point.active},inactive:{style:A.point.inactive},selected:{style:A.point.selected}},diamond:{default:{style:A.point.default},active:{style:A.point.active},inactive:{style:A.point.inactive},selected:{style:A.point.selected}},hexagon:{default:{style:A.point.default},active:{style:A.point.active},inactive:{style:A.point.inactive},selected:{style:A.point.selected}},triangle:{default:{style:A.point.default},active:{style:A.point.active},inactive:{style:A.point.inactive},selected:{style:A.point.selected}},"triangle-down":{default:{style:A.point.default},active:{style:A.point.active},inactive:{style:A.point.inactive},selected:{style:A.point.selected}},"hollow-circle":{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},"hollow-square":{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},"hollow-bowtie":{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},"hollow-diamond":{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},"hollow-hexagon":{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},"hollow-triangle":{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},"hollow-triangle-down":{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},cross:{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},tick:{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},plus:{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},hyphen:{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}},line:{default:{style:A.hollowPoint.default},active:{style:A.hollowPoint.active},inactive:{style:A.hollowPoint.inactive},selected:{style:A.hollowPoint.selected}}},area:{area:{default:{style:A.area.default},active:{style:A.area.active},inactive:{style:A.area.inactive},selected:{style:A.area.selected}},smooth:{default:{style:A.area.default},active:{style:A.area.active},inactive:{style:A.area.inactive},selected:{style:A.area.selected}},line:{default:{style:A.hollowArea.default},active:{style:A.hollowArea.active},inactive:{style:A.hollowArea.inactive},selected:{style:A.hollowArea.selected}},"smooth-line":{default:{style:A.hollowArea.default},active:{style:A.hollowArea.active},inactive:{style:A.hollowArea.inactive},selected:{style:A.hollowArea.selected}}},schema:{candle:{default:{style:A.hollowInterval.default},active:{style:A.hollowInterval.active},inactive:{style:A.hollowInterval.inactive},selected:{style:A.hollowInterval.selected}},box:{default:{style:A.hollowInterval.default},active:{style:A.hollowInterval.active},inactive:{style:A.hollowInterval.inactive},selected:{style:A.hollowInterval.selected}}},edge:{line:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},vhv:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},smooth:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},arc:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}}},violin:{violin:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},smooth:{default:{style:A.line.default},active:{style:A.line.active},inactive:{style:A.line.inactive},selected:{style:A.line.selected}},hollow:{default:{style:A.hollowArea.default},active:{style:A.hollowArea.active},inactive:{style:A.hollowArea.inactive},selected:{style:A.hollowArea.selected}},"hollow-smooth":{default:{style:A.hollowArea.default},active:{style:A.hollowArea.active},inactive:{style:A.hollowArea.inactive},selected:{style:A.hollowArea.selected}}}},components:{axis:{common:u,top:{position:"top",grid:null,title:null,verticalLimitLength:1/2},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:1/2},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,n.deepMix)({},u.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,n.deepMix)({},u.grid,{line:{type:"circle"}})}},legend:{common:d,right:{layout:"vertical",padding:l.legendVerticalPadding},left:{layout:"vertical",padding:l.legendVerticalPadding},top:{layout:"horizontal",padding:l.legendHorizontalPadding},bottom:{layout:"horizontal",padding:l.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:l.sliderRailHeight,defaultLength:l.sliderRailWidth,style:{fill:l.sliderRailFillColor,stroke:l.sliderRailBorderColor,lineWidth:l.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:l.sliderLabelTextFillColor,fontSize:l.sliderLabelTextFontSize,lineHeight:l.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:l.fontFamily}},handler:{size:l.sliderHandlerWidth,style:{fill:l.sliderHandlerFillColor,stroke:l.sliderHandlerBorderColor}},slidable:!0,padding:d.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:l.tooltipCrosshairsBorderColor,lineWidth:l.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(c={},c[""+t.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:l.tooltipContainerFillColor,opacity:l.tooltipContainerFillOpacity,boxShadow:l.tooltipContainerShadow,borderRadius:l.tooltipContainerBorderRadius+"px",color:l.tooltipTextFillColor,fontSize:l.tooltipTextFontSize+"px",fontFamily:l.fontFamily,lineHeight:l.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},c[""+t.TOOLTIP_CSS_CONST.TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},c[""+t.TOOLTIP_CSS_CONST.LIST_CLASS]={margin:0,listStyleType:"none",padding:0},c[""+t.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},c[""+t.TOOLTIP_CSS_CONST.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},c[""+t.TOOLTIP_CSS_CONST.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},c)},annotation:{arc:{style:{stroke:l.annotationArcBorderColor,lineWidth:l.annotationArcBorder},animate:!0},line:{style:{stroke:l.annotationLineBorderColor,lineDash:l.annotationLineDash,lineWidth:l.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,textAlign:"start",fontFamily:l.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:l.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:l.annotationRegionBorder,stroke:l.annotationRegionBorderColor,fill:l.annotationRegionFillColor,fillOpacity:l.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:l.brandColor,lineWidth:2}},line:{style:{stroke:l.annotationLineBorderColor,lineWidth:l.annotationLineBorder},length:l.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,fontFamily:l.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:l.annotationRegionFillColor,fillOpacity:l.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:l.annotationTextFillColor,stroke:l.annotationTextBorderColor,lineWidth:l.annotationTextBorder,fontSize:l.annotationTextFontSize,fontFamily:l.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:l.cSliderBackgroundFillColor,opacity:l.cSliderBackgroundFillOpacity},foregroundStyle:{fill:l.cSliderForegroundFillColor,opacity:l.cSliderForegroundFillOpacity},handlerStyle:{width:l.cSliderHandlerWidth,height:l.cSliderHandlerHeight,fill:l.cSliderHandlerFillColor,opacity:l.cSliderHandlerFillOpacity,stroke:l.cSliderHandlerBorderColor,lineWidth:l.cSliderHandlerBorder,radius:l.cSliderHandlerBorderRadius,highLightFill:l.cSliderHandlerHighlightFillColor},textStyle:{fill:l.cSliderTextFillColor,opacity:l.cSliderTextFillOpacity,fontSize:l.cSliderTextFontSize,lineHeight:l.cSliderTextLineHeight,fontWeight:l.cSliderTextFontWeight,stroke:l.cSliderTextBorderColor,lineWidth:l.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:l.scrollbarTrackFillColor,thumbColor:l.scrollbarThumbFillColor}},hover:{style:{thumbColor:l.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:l.labelFillColor,fontSize:l.labelFontSize,fontFamily:l.fontFamily,stroke:l.labelBorderColor,lineWidth:l.labelBorder},fillColorDark:l.labelFillColorDark,fillColorLight:l.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:l.innerLabelFillColor,fontSize:l.innerLabelFontSize,fontFamily:l.fontFamily,stroke:l.innerLabelBorderColor,lineWidth:l.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:l.overflowLabelFillColor,fontSize:l.overflowLabelFontSize,fontFamily:l.fontFamily,stroke:l.overflowLabelBorderColor,lineWidth:l.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:l.labelLineBorder}},autoRotate:!0}}}return IC.createThemeByStyleSheet=s,IC}var dj={},KAe;function pTe(){return KAe||(KAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var t={100:"#000",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},r={100:"#FFFFFF"},n=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],a=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],i=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],o=function(s){s===void 0&&(s={});var l=s.backgroundColor,c=l===void 0?"transparent":l,A=s.subColor,u=A===void 0?"rgba(0,0,0,0.05)":A,d=s.paletteQualitative10,f=d===void 0?n:d,h=s.paletteQualitative20,g=h===void 0?a:h,p=s.paletteSemanticRed,m=p===void 0?"#F4664A":p,y=s.paletteSemanticGreen,C=y===void 0?"#30BF78":y,w=s.paletteSemanticYellow,B=w===void 0?"#FAAD14":w,x=s.paletteSequence,M=x===void 0?i:x,S=s.fontFamily,R=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji"`:S,b=s.brandColor,T=b===void 0?f[0]:b;return{backgroundColor:c,brandColor:T,subColor:u,paletteQualitative10:f,paletteQualitative20:g,paletteSemanticRed:m,paletteSemanticGreen:C,paletteSemanticYellow:B,paletteSequence:M,fontFamily:R,axisLineBorderColor:t[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:t[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:t[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:t[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:t[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:t[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:t[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:T,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:t[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:t[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:t[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:t[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:t[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:t[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:t[15],annotationArcBorder:1,annotationLineBorderColor:t[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:t[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:t[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:t[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:t[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:t[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:r[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:t[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:r[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:t[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:T,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:r[100],pointBorderOpacity:1,pointActiveBorderColor:t[100],pointSelectedBorder:2,pointSelectedBorderColor:t[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:T,hollowPointBorderOpacity:.95,hollowPointFillColor:r[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:t[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:t[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:T,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:T,areaFillOpacity:.25,areaActiveFillColor:T,areaActiveFillOpacity:.5,areaSelectedFillColor:T,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:T,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:t[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:t[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:T,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:t[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:t[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:T,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:r[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:t[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:t[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};e.createLightStyleSheet=o,e.antvLight=(0,e.createLightStyleSheet)()})(dj)),dj}var VAe;function vTt(){if(VAe)return MC;VAe=1,Object.defineProperty(MC,"__esModule",{value:!0}),MC.createTheme=void 0;var e=Mr,t=Br,r=gTe(),n=pTe();function a(i){var o=i.styleSheet,s=o===void 0?{}:o,l=(0,e.__rest)(i,["styleSheet"]),c=(0,n.createLightStyleSheet)(s);return(0,t.deepMix)({},(0,r.createThemeByStyleSheet)(c),l)}return MC.createTheme=a,MC}var JAe;function vTe(){return JAe||(JAe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var t=vTt();Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return t.createTheme}})})(uj)),uj}var WAe;function $9(){if(WAe)return jp;WAe=1,Object.defineProperty(jp,"__esModule",{value:!0}),jp.registerTheme=jp.getTheme=void 0;var e=Br,t=vTe(),r=(0,t.createTheme)({}),n={default:r};function a(o){return(0,e.get)(n,(0,e.lowerCase)(o),n.default)}jp.getTheme=a;function i(o,s){n[(0,e.lowerCase)(o)]=(0,t.createTheme)(s)}return jp.registerTheme=i,jp}var kA={},XAe;function ID(){if(XAe)return kA;XAe=1,Object.defineProperty(kA,"__esModule",{value:!0}),kA.findItemsFromViewRecurisive=kA.findItemsFromView=kA.getTooltipItems=kA.findDataByPoint=void 0;var e=Mr,t=Br,r=Wi(),n=qy();function a(C,w,B){var x=B.translate(C),M=B.translate(w);return(0,t.isNumberEqual)(x,M)}function i(C,w){var B=w.coordinate,x=w.getXScale(),M=x.range,S=M[M.length-1],R=M[0],b=B.invert(C),T=b.x;return B.isPolar&&T>(1+S)/2&&(T=R),x.translate(x.invert(T))}function o(C,w,B){var x=B.coordinate,M=B.getYScale(),S=M.field,R=x.invert(w),b=M.invert(R.y),T=(0,t.find)(C,function(D){var F=D[r.FIELD_ORIGIN];return F[S][0]<=b&&F[S][1]>=b});return T||C[C.length-1]}var s=(0,t.memoize)(function(C){if(C.isCategory)return 1;for(var w=C.values,B=w.length,x=C.translate(w[0]),M=x,S=0;S<B;S++){var R=w[S],b=C.translate(R);b<x&&(x=b),b>M&&(M=b)}return(M-x)/(B-1)});function l(C,w,B){var x=w.getAttribute("position"),M=x.getFields(),S=w.scales,R=(0,t.isFunction)(B)||!B?M[0]:B,b=S[R],T=b?b.getText(C[R]):C[R]||R;return(0,t.isFunction)(B)?B(T,C):T}function c(C){var w=(0,t.values)(C.attributes);return(0,t.filter)(w,function(B){return(0,t.contains)(r.GROUP_ATTRS,B.type)})}function A(C){for(var w=c(C),B,x=0,M=w;x<M.length;x++){var S=M[x],R=S.getScale(S.type);if(R&&R.isLinear){B=R;break}}var b=C.getXScale(),T=C.getYScale();return B||T||b}function u(C,w){var B=w.field,x=C[B];if((0,t.isArray)(x)){var M=x.map(function(S){return w.getText(S)});return M.join("-")}return w.getText(x)}function d(C,w){var B,x=w.getGroupScales();if(x.length&&(B=x[0]),B){var M=B.field;return B.getText(C[M])}var S=A(w);return(0,n.getName)(S)}function f(C,w,B){if(w.length===0)return null;var x=B.type,M=B.getXScale(),S=B.getYScale(),R=M.field,b=S.field,T=null;if(x==="heatmap"||x==="point"){for(var D=B.coordinate,F=D.invert(C),N=M.invert(F.x),_=S.invert(F.y),P=1/0,k=0;k<w.length;k++){var j=w[k],Y=j[r.FIELD_ORIGIN],X=Math.pow(Y[R]-N,2)+Math.pow(Y[b]-_,2);X<P&&(P=X,T=j)}return T}var K=w[0],U=w[w.length-1],H=i(C,B),L=K[r.FIELD_ORIGIN][R],V=K[r.FIELD_ORIGIN][b],J=U[r.FIELD_ORIGIN][R],ee=S.isLinear&&(0,t.isArray)(V);if((0,t.isArray)(L)){for(var k=0;k<w.length;k++){var ae=w[k],Y=ae[r.FIELD_ORIGIN];if(M.translate(Y[R][0])<=H&&M.translate(Y[R][1])>=H)if(ee)(0,t.isArray)(T)||(T=[]),T.push(ae);else{T=ae;break}}(0,t.isArray)(T)&&(T=o(T,C,B))}else{var ne=void 0;if(!M.isLinear&&M.type!=="timeCat"){for(var k=0;k<w.length;k++){var ae=w[k],Y=ae[r.FIELD_ORIGIN];if(a(Y[R],H,M))if(ee)(0,t.isArray)(T)||(T=[]),T.push(ae);else{T=ae;break}else M.translate(Y[R])<=H&&(U=ae,ne=w[k+1])}(0,t.isArray)(T)&&(T=o(T,C,B))}else{if((H>M.translate(J)||H<M.translate(L))&&(H>M.max||H<M.min))return null;for(var fe=0,he=w.length-1,ye=void 0;fe<=he;){ye=Math.floor((fe+he)/2);var be=w[ye][r.FIELD_ORIGIN][R];if(a(be,H,M))return w[ye];M.translate(be)<=M.translate(H)?(fe=ye+1,U=w[ye],ne=w[ye+1]):(he===0&&(U=w[0]),he=ye-1)}}U&&ne&&Math.abs(M.translate(U[r.FIELD_ORIGIN][R])-H)>Math.abs(M.translate(ne[r.FIELD_ORIGIN][R])-H)&&(U=ne)}var Se=s(B.getXScale());return!T&&Math.abs(M.translate(U[r.FIELD_ORIGIN][R])-H)<=Se/2&&(T=U),T}kA.findDataByPoint=f;function h(C,w,B,x){B===void 0&&(B=""),x===void 0&&(x=!1);var M=C[r.FIELD_ORIGIN],S=l(M,w,B),R=w.tooltipOption,b=w.theme.defaultColor,T=[],D,F;function N(J,ee){if(x||!(0,t.isNil)(ee)&&ee!==""){var ae={title:S,data:M,mappingData:C,name:J,value:ee,color:C.color||b,marker:!0};T.push(ae)}}if((0,t.isObject)(R)){var _=R.fields,P=R.callback;if(P){var k=_.map(function(J){return C[r.FIELD_ORIGIN][J]}),j=P.apply(void 0,k),Y=(0,e.__assign)({data:C[r.FIELD_ORIGIN],mappingData:C,title:S,color:C.color||b,marker:!0},j);T.push(Y)}else for(var X=w.scales,K=0,U=_;K<U.length;K++){var H=U[K];if(!(0,t.isNil)(M[H])){var L=X[H];D=(0,n.getName)(L),F=L.getText(M[H]),N(D,F)}}}else{var V=A(w);F=u(M,V),D=d(M,w),N(D,F)}return T}kA.getTooltipItems=h;function g(C,w,B,x){var M=x.showNil,S=[],R=C.dataArray;if(!(0,t.isEmpty)(R)){C.sort(R);for(var b=0,T=R;b<T.length;b++){var D=T[b],F=f(w,D,C);if(F){var N=C.getElementId(F),_=C.elementsMap[N];if(C.type==="heatmap"||_.visible){var P=h(F,C,B,M);P.length&&S.push(P)}}}}return S}function p(C,w,B,x){var M=x.showNil,S=[],R=C.container,b=R.getShape(w.x,w.y);if(b&&b.get("visible")&&b.get("origin")){var T=b.get("origin").mappingData,D=h(T,C,B,M);D.length&&S.push(D)}return S}function m(C,w,B){for(var x=[],M=C.geometries,S=B.shared,R=B.title,b=B.reversed,T=0,D=M;T<D.length;T++){var F=D[T];if(F.visible&&F.tooltipOption!==!1){var N=F.type,_=void 0;["point","edge","polygon"].includes(N)?_=p(F,w,R,B):["area","line","path","heatmap"].includes(N)||S!==!1?_=g(F,w,R,B):_=p(F,w,R,B),_.length&&(b&&_.reverse(),x.push(_))}}return x}kA.findItemsFromView=m;function y(C,w,B){for(var x=m(C,w,B),M=0,S=C.views;M<S.length;M++){var R=S[M];x=x.concat(m(R,w,B))}return x}return kA.findItemsFromViewRecurisive=y,kA}var zp={},qAe;function mTe(){if(qAe)return zp;qAe=1,Object.defineProperty(zp,"__esModule",{value:!0}),zp.parsePadding=zp.isAutoPadding=void 0;var e=Mr,t=Br;function r(a){return!(0,t.isNumber)(a)&&!(0,t.isArray)(a)}zp.isAutoPadding=r;function n(a){a===void 0&&(a=0);var i=(0,t.isArray)(a)?a:[a];switch(i.length){case 0:i=[0,0,0,0];break;case 1:i=new Array(4).fill(i[0]);break;case 2:i=(0,e.__spreadArray)((0,e.__spreadArray)([],i,!0),i,!0);break;case 3:i=(0,e.__spreadArray)((0,e.__spreadArray)([],i,!0),[i[1]],!1);break;default:i=i.slice(0,4);break}return i}return zp.parsePadding=n,zp}var PA={},ZAe;function ETe(){if(ZAe)return PA;ZAe=1,Object.defineProperty(PA,"__esModule",{value:!0}),PA.getComponentController=PA.getComponentControllerNames=PA.unregisterComponentController=PA.registerComponentController=void 0;var e={};function t(i,o){e[i]=o}PA.registerComponentController=t;function r(i){delete e[i]}PA.unregisterComponentController=r;function n(){return Object.keys(e)}PA.getComponentControllerNames=n;function a(i){return e[i]}return PA.getComponentController=a,PA}var y2={},$Ae;function mTt(){if($Ae)return y2;$Ae=1,Object.defineProperty(y2,"__esModule",{value:!0});var e=Mr,t=Br,r=Wg(),n=(function(){function a(i){this.option=this.wrapperOption(i)}return a.prototype.update=function(i){return this.option=this.wrapperOption(i),this},a.prototype.hasAction=function(i){var o=this.option.actions;return(0,t.some)(o,function(s){return s[0]===i})},a.prototype.create=function(i,o){var s=this.option,l=s.type,c=s.cfg,A=l==="theta",u=(0,e.__assign)({start:i,end:o},c),d=(0,r.getCoordinate)(A?"polar":l);return this.coordinate=new d(u),this.coordinate.type=l,A&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},a.prototype.adjust=function(i,o){return this.coordinate.update({start:i,end:o}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},a.prototype.rotate=function(i){return this.option.actions.push(["rotate",i]),this},a.prototype.reflect=function(i){return this.option.actions.push(["reflect",i]),this},a.prototype.scale=function(i,o){return this.option.actions.push(["scale",i,o]),this},a.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},a.prototype.getOption=function(){return this.option},a.prototype.getCoordinate=function(){return this.coordinate},a.prototype.wrapperOption=function(i){return(0,e.__assign)({type:"rect",actions:[],cfg:{}},i)},a.prototype.execActions=function(i){var o=this,s=this.option.actions;(0,t.each)(s,function(l){var c,A=l[0],u=l.slice(1),d=(0,t.isNil)(i)?!0:i.includes(A);d&&(c=o.coordinate)[A].apply(c,u)})},a})();return y2.default=n,y2}var C2={},eue;function eG(){if(eue)return C2;eue=1,Object.defineProperty(C2,"__esModule",{value:!0});var e=Wg(),t=(function(){function r(n,a,i){this.view=n,this.gEvent=a,this.data=i,this.type=a.type}return r.fromData=function(n,a,i){return new r(n,new e.Event(a,{}),i)},Object.defineProperty(r.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),r.prototype.toString=function(){return"[Event (type="+this.type+")]"},r.prototype.clone=function(){return new r(this.view,this.gEvent,this.data)},r})();return C2.default=t,C2}var w2={},tue;function ETt(){if(tue)return w2;tue=1,Object.defineProperty(w2,"__esModule",{value:!0});function e(t){var r=t.getController("axis"),n=t.getController("legend"),a=t.getController("annotation"),i=t.getController("slider"),o=t.getController("scrollbar");[r,i,o,n,a].forEach(function(s){s&&s.layout()})}return w2.default=e,w2}var bC={},rue;function yTt(){if(rue)return bC;rue=1,Object.defineProperty(bC,"__esModule",{value:!0}),bC.ScalePool=void 0;var e=Br,t=qy(),r=(function(){function n(){this.scales=new Map,this.syncScales=new Map}return n.prototype.createScale=function(a,i,o,s){var l=o,c=this.getScaleMeta(s);if(i.length===0&&c){var A=c.scale,u={type:A.type};A.isCategory&&(u.values=A.values),l=(0,e.deepMix)(u,c.scaleDef,o)}var d=(0,t.createScaleByField)(a,i,l);return this.cacheScale(d,o,s),d},n.prototype.sync=function(a,i){var o=this;this.syncScales.forEach(function(s,l){var c=Number.MAX_SAFE_INTEGER,A=Number.MIN_SAFE_INTEGER,u=[];(0,e.each)(s,function(d){var f=o.getScale(d);A=(0,e.isNumber)(f.max)?Math.max(A,f.max):A,c=(0,e.isNumber)(f.min)?Math.min(c,f.min):c,(0,e.each)(f.values,function(h){u.includes(h)||u.push(h)})}),(0,e.each)(s,function(d){var f=o.getScale(d);if(f.isContinuous)f.change({min:c,max:A,values:u});else if(f.isCategory){var h=f.range,g=o.getScaleMeta(d);u&&!(0,e.get)(g,["scaleDef","range"])&&(h=(0,t.getDefaultCategoryScaleRange)((0,e.deepMix)({},f,{values:u}),a,i)),f.change({values:u,range:h})}})})},n.prototype.cacheScale=function(a,i,o){var s=this.getScaleMeta(o);s&&s.scale.type===a.type?((0,t.syncScale)(s.scale,a),s.scaleDef=i):(s={key:o,scale:a,scaleDef:i},this.scales.set(o,s));var l=this.getSyncKey(s);if(s.syncKey=l,this.removeFromSyncScales(o),l){var c=this.syncScales.get(l);c||(c=[],this.syncScales.set(l,c)),c.push(o)}},n.prototype.getScale=function(a){var i=this.getScaleMeta(a);if(!i){var o=(0,e.last)(a.split("-")),s=this.syncScales.get(o);s&&s.length&&(i=this.getScaleMeta(s[0]))}return i&&i.scale},n.prototype.deleteScale=function(a){var i=this.getScaleMeta(a);if(i){var o=i.syncKey,s=this.syncScales.get(o);if(s&&s.length){var l=s.indexOf(a);l!==-1&&s.splice(l,1)}}this.scales.delete(a)},n.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},n.prototype.removeFromSyncScales=function(a){var i=this;this.syncScales.forEach(function(o,s){var l=o.indexOf(a);if(l!==-1)return o.splice(l,1),o.length===0&&i.syncScales.delete(s),!1})},n.prototype.getSyncKey=function(a){var i=a.scale,o=a.scaleDef,s=i.field,l=(0,e.get)(o,["sync"]);return l===!0?s:l===!1?void 0:l},n.prototype.getScaleMeta=function(a){return this.scales.get(a)},n})();return bC.ScalePool=r,bC}var SC={},nue;function yTe(){if(nue)return SC;nue=1,Object.defineProperty(SC,"__esModule",{value:!0}),SC.PaddingCal=void 0;var e=Mr,t=Wi(),r=(function(){function n(a,i,o,s){a===void 0&&(a=0),i===void 0&&(i=0),o===void 0&&(o=0),s===void 0&&(s=0),this.top=a,this.right=i,this.bottom=o,this.left=s}return n.instance=function(a,i,o,s){return a===void 0&&(a=0),i===void 0&&(i=0),o===void 0&&(o=0),s===void 0&&(s=0),new n(a,i,o,s)},n.prototype.max=function(a){var i=a[0],o=a[1],s=a[2],l=a[3];return this.top=Math.max(this.top,i),this.right=Math.max(this.right,o),this.bottom=Math.max(this.bottom,s),this.left=Math.max(this.left,l),this},n.prototype.shrink=function(a){var i=a[0],o=a[1],s=a[2],l=a[3];return this.top+=i,this.right+=o,this.bottom+=s,this.left+=l,this},n.prototype.inc=function(a,i){var o=a.width,s=a.height;switch(i){case t.DIRECTION.TOP:case t.DIRECTION.TOP_LEFT:case t.DIRECTION.TOP_RIGHT:this.top+=s;break;case t.DIRECTION.RIGHT:case t.DIRECTION.RIGHT_TOP:case t.DIRECTION.RIGHT_BOTTOM:this.right+=o;break;case t.DIRECTION.BOTTOM:case t.DIRECTION.BOTTOM_LEFT:case t.DIRECTION.BOTTOM_RIGHT:this.bottom+=s;break;case t.DIRECTION.LEFT:case t.DIRECTION.LEFT_TOP:case t.DIRECTION.LEFT_BOTTOM:this.left+=o;break}return this},n.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},n.prototype.clone=function(){return new(n.bind.apply(n,(0,e.__spreadArray)([void 0],this.getPadding(),!1)))},n})();return SC.PaddingCal=r,SC}var RC={},aue;function CTt(){if(aue)return RC;aue=1,Object.defineProperty(RC,"__esModule",{value:!0}),RC.calculatePadding=void 0;var e=Mr,t=Br,r=Wi(),n=Xy(),a=mTe(),i=yTe();function o(s){var l=s.padding;if(!(0,a.isAutoPadding)(l))return new(i.PaddingCal.bind.apply(i.PaddingCal,(0,e.__spreadArray)([void 0],(0,a.parsePadding)(l),!1)));var c=s.viewBBox,A=new i.PaddingCal,u=[],d=[],f=[];return(0,t.each)(s.getComponents(),function(h){var g=h.type;g===r.COMPONENT_TYPE.AXIS?u.push(h):[r.COMPONENT_TYPE.LEGEND,r.COMPONENT_TYPE.SLIDER,r.COMPONENT_TYPE.SCROLLBAR].includes(g)?d.push(h):g!==r.COMPONENT_TYPE.GRID&&g!==r.COMPONENT_TYPE.TOOLTIP&&f.push(h)}),(0,t.each)(u,function(h){var g=h.component,p=g.getLayoutBBox(),m=new n.BBox(p.x,p.y,p.width,p.height),y=m.exceed(c);A.max(y)}),(0,t.each)(d,function(h){var g=h.component,p=h.direction,m=g.getLayoutBBox(),y=g.get("padding"),C=new n.BBox(m.x,m.y,m.width,m.height).expand(y);A.inc(C,p)}),(0,t.each)(f,function(h){var g=h.component,p=h.direction,m=g.getLayoutBBox(),y=new n.BBox(m.x,m.y,m.width,m.height);A.inc(y,p)}),A}return RC.calculatePadding=o,RC}var TC={},iue;function wTt(){if(iue)return TC;iue=1,Object.defineProperty(TC,"__esModule",{value:!0}),TC.defaultSyncViewPadding=void 0;function e(t,r,n){var a=n.instance();r.forEach(function(i){i.autoPadding=a.max(i.autoPadding.getPadding())})}return TC.defaultSyncViewPadding=e,TC}var oue;function CTe(){if(oue)return jh;oue=1,Object.defineProperty(jh,"__esModule",{value:!0}),jh.registerGeometry=jh.View=void 0;var e=Mr,t=Br,r=Wi(),n=(0,e.__importDefault)(q9()),a=AY(),i=uY(),o=$9(),s=Xy(),l=uu(),c=xm(),A=ID(),u=mTe(),d=qy(),f=vTe(),h=ETe(),g=(0,e.__importDefault)(mTt()),p=(0,e.__importDefault)(eG()),m=(0,e.__importDefault)(ETt()),y=yTt(),C=yTe(),w=CTt(),B=wTt(),x=(function(S){(0,e.__extends)(R,S);function R(b){var T=S.call(this,{visible:b.visible})||this;T.views=[],T.geometries=[],T.controllers=[],T.interactions={},T.limitInPlot=!1,T.options={data:[],animate:!0},T.usedControllers=(0,h.getComponentControllerNames)(),T.scalePool=new y.ScalePool,T.layoutFunc=m.default,T.isPreMouseInPlot=!1,T.isDataChanged=!1,T.isCoordinateChanged=!1,T.createdScaleKeys=new Map,T.onCanvasEvent=function(ee){var ae=ee.name;if(!ae.includes(":")){var ne=T.createViewEvent(ee);T.doPlotEvent(ne),T.emit(ae,ne)}},T.onDelegateEvents=function(ee){var ae=ee.name;if(ae.includes(":")){var ne=T.createViewEvent(ee);T.emit(ae,ne)}};var D=b.id,F=D===void 0?(0,t.uniqueId)("view"):D,N=b.parent,_=b.canvas,P=b.backgroundGroup,k=b.middleGroup,j=b.foregroundGroup,Y=b.region,X=Y===void 0?{start:{x:0,y:0},end:{x:1,y:1}}:Y,K=b.padding,U=b.appendPadding,H=b.theme,L=b.options,V=b.limitInPlot,J=b.syncViewPadding;return T.parent=N,T.canvas=_,T.backgroundGroup=P,T.middleGroup=k,T.foregroundGroup=j,T.region=X,T.padding=K,T.appendPadding=U,T.options=(0,e.__assign)((0,e.__assign)({},T.options),L),T.limitInPlot=V,T.id=F,T.syncViewPadding=J,T.themeObject=(0,t.isObject)(H)?(0,t.deepMix)({},(0,o.getTheme)("default"),(0,f.createTheme)(H)):(0,o.getTheme)(H),T.init(),T}return R.prototype.setLayout=function(b){this.layoutFunc=b},R.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},R.prototype.render=function(b,T){b===void 0&&(b=!1),this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_RENDER,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.BEFORE_RENDER,T)),this.paint(b),this.emit(r.VIEW_LIFE_CIRCLE.AFTER_RENDER,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.AFTER_RENDER,T)),this.visible===!1&&this.changeVisible(!1)},R.prototype.clear=function(){var b=this;this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var T=this.geometries,D=0;D<T.length;D++)T[D].clear(),T[D].container.remove(!0),T[D].labelsContainer.remove(!0);this.geometries=[];for(var F=this.controllers,D=0;D<F.length;D++)F[D].name==="annotation"?F[D].clear(!0):F[D].clear();this.createdScaleKeys.forEach(function(_,P){b.getRootView().scalePool.deleteScale(P)}),this.createdScaleKeys.clear();for(var N=this.views,D=0;D<N.length;D++)N[D].clear();this.emit(r.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},R.prototype.destroy=function(){this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var b=this.interactions;(0,t.each)(b,function(_){_&&_.destroy()}),this.clear();for(var T=this.controllers,D=0,F=T.length;D<F;D++){var N=T[D];N.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),S.prototype.destroy.call(this)},R.prototype.changeVisible=function(b){S.prototype.changeVisible.call(this,b);for(var T=this.geometries,D=0,F=T.length;D<F;D++){var N=T[D];N.changeVisible(b)}for(var _=this.controllers,D=0,F=_.length;D<F;D++){var P=_[D];P.changeVisible(b)}return this.foregroundGroup.set("visible",b),this.middleGroup.set("visible",b),this.backgroundGroup.set("visible",b),this.getCanvas().draw(),this},R.prototype.data=function(b){return(0,t.set)(this.options,"data",b),this.isDataChanged=!0,this},R.prototype.source=function(b){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(b)},R.prototype.filter=function(b,T){return(0,t.isFunction)(T)?((0,t.set)(this.options,["filters",b],T),this):(!T&&(0,t.get)(this.options,["filters",b])&&delete this.options.filters[b],this)},R.prototype.axis=function(b,T){return(0,t.isBoolean)(b)?(0,t.set)(this.options,["axes"],b):(0,t.set)(this.options,["axes",b],T),this},R.prototype.legend=function(b,T){return(0,t.isBoolean)(b)?(0,t.set)(this.options,["legends"],b):(0,t.isString)(b)?((0,t.set)(this.options,["legends",b],T),(0,t.isPlainObject)(T)&&T?.selected&&(0,t.set)(this.options,["filters",b],function(D){var F;return(F=T?.selected[D])!==null&&F!==void 0?F:!0})):(0,t.set)(this.options,["legends"],b),this},R.prototype.scale=function(b,T){var D=this;return(0,t.isString)(b)?(0,t.set)(this.options,["scales",b],T):(0,t.isObject)(b)&&(0,t.each)(b,function(F,N){(0,t.set)(D.options,["scales",N],F)}),this},R.prototype.tooltip=function(b){return(0,t.set)(this.options,"tooltip",b),this},R.prototype.annotation=function(){return this.getController("annotation")},R.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},R.prototype.coordinate=function(b,T){return(0,t.isString)(b)?(0,t.set)(this.options,"coordinate",{type:b,cfg:T}):(0,t.set)(this.options,"coordinate",b),this.coordinateController.update(this.options.coordinate),this.coordinateController},R.prototype.coord=function(b,T){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(b,T)},R.prototype.facet=function(b,T){this.facetInstance&&this.facetInstance.destroy();var D=(0,a.getFacet)(b);if(!D)throw new Error("facet '"+b+"' is not exist!");return this.facetInstance=new D(this,(0,e.__assign)((0,e.__assign)({},T),{type:b})),this},R.prototype.animate=function(b){return(0,t.set)(this.options,"animate",b),this},R.prototype.updateOptions=function(b){return this.clear(),(0,t.mix)(this.options,b),this.views.forEach(function(T){return T.destroy()}),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},R.prototype.option=function(b,T){if(R.prototype[b])throw new Error(`Can't use built in variable name "`+b+'", please change another one.');return(0,t.set)(this.options,b,T),this},R.prototype.theme=function(b){return this.themeObject=(0,t.isObject)(b)?(0,t.deepMix)({},this.themeObject,(0,f.createTheme)(b)):(0,o.getTheme)(b),this},R.prototype.interaction=function(b,T){var D=this.interactions[b];D&&D.destroy();var F=(0,i.createInteraction)(b,this,T);return F&&(F.init(),this.interactions[b]=F),this},R.prototype.removeInteraction=function(b){var T=this.interactions[b];T&&(T.destroy(),this.interactions[b]=void 0)},R.prototype.changeData=function(b){this.isDataChanged=!0,this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(b),this.paint(!0);for(var T=this.views,D=0,F=T.length;D<F;D++){var N=T[D];N.changeData(b)}this.emit(r.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,p.default.fromData(this,r.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},R.prototype.createView=function(b){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var T={data:this.options.data,scales:(0,t.clone)(this.options.scales),axes:(0,t.clone)(this.options.axes),coordinate:(0,t.clone)(this.coordinateController.getOption()),tooltip:(0,t.clone)(this.options.tooltip),legends:(0,t.clone)(this.options.legends),animate:this.options.animate,visible:this.visible},D=new R((0,e.__assign)((0,e.__assign)({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:r.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:r.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:r.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},b),{options:(0,e.__assign)((0,e.__assign)({},T),(0,t.get)(b,"options",{}))}));return this.views.push(D),D},R.prototype.view=function(b){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(b)},R.prototype.removeView=function(b){var T=(0,t.remove)(this.views,function(D){return D===b})[0];return T&&T.destroy(),T},R.prototype.getCoordinate=function(){return this.coordinateInstance},R.prototype.getTheme=function(){return this.themeObject},R.prototype.getXScale=function(){var b=this.geometries[0];return b?b.getXScale():null},R.prototype.getYScales=function(){var b={},T=[];return this.geometries.forEach(function(D){var F=D.getYScale(),N=F.field;b[N]||(b[N]=!0,T.push(F))}),T},R.prototype.getScalesByDim=function(b){for(var T=this.geometries,D={},F=0,N=T.length;F<N;F++){var _=T[F],P=b==="x"?_.getXScale():_.getYScale();P&&!D[P.field]&&(D[P.field]=P)}return D},R.prototype.getScale=function(b,T){var D=T||this.getScaleKey(b);return this.getRootView().scalePool.getScale(D)},R.prototype.getScaleByField=function(b,T){return this.getScale(b,T)},R.prototype.getOptions=function(){return this.options},R.prototype.getData=function(){return this.filteredData},R.prototype.getOriginalData=function(){return this.options.data},R.prototype.getPadding=function(){return this.autoPadding.getPadding()},R.prototype.getGeometries=function(){return this.geometries},R.prototype.getElements=function(){return(0,t.reduce)(this.geometries,function(b,T){return b.concat(T.getElements())},[])},R.prototype.getElementsBy=function(b){return this.getElements().filter(function(T){return b(T)})},R.prototype.getLayer=function(b){return b===r.LAYER.BG?this.backgroundGroup:b===r.LAYER.MID?this.middleGroup:b===r.LAYER.FORE?this.foregroundGroup:this.foregroundGroup},R.prototype.isPointInPlot=function(b){return(0,l.isPointInCoordinate)(this.getCoordinate(),b)},R.prototype.getLegendAttributes=function(){return(0,t.flatten)(this.geometries.map(function(b){return b.getGroupAttributes()}))},R.prototype.getGroupScales=function(){var b=this.geometries.map(function(T){return T.getGroupScales()});return(0,c.uniq)((0,t.flatten)(b))},R.prototype.getCanvas=function(){return this.getRootView().canvas},R.prototype.getRootView=function(){for(var b=this;;){if(b.parent){b=b.parent;continue}break}return b},R.prototype.getXY=function(b){var T=this.getCoordinate(),D=this.getScalesByDim("x"),F=this.getScalesByDim("y"),N,_;if((0,t.each)(b,function(P,k){D[k]&&(N=D[k].scale(P)),F[k]&&(_=F[k].scale(P))}),!(0,t.isNil)(N)&&!(0,t.isNil)(_))return T.convert({x:N,y:_})},R.prototype.getController=function(b){return(0,t.find)(this.controllers,function(T){return T.name===b})},R.prototype.showTooltip=function(b){var T=this.getController("tooltip");return T&&T.showTooltip(b),this},R.prototype.hideTooltip=function(){var b=this.getController("tooltip");return b&&b.hideTooltip(),this},R.prototype.lockTooltip=function(){var b=this.getController("tooltip");return b&&b.lockTooltip(),this},R.prototype.unlockTooltip=function(){var b=this.getController("tooltip");return b&&b.unlockTooltip(),this},R.prototype.isTooltipLocked=function(){var b=this.getController("tooltip");return b&&b.isTooltipLocked()},R.prototype.getTooltipItems=function(b){var T=this.getController("tooltip");return T?T.getTooltipItems(b):[]},R.prototype.getSnapRecords=function(b){for(var T=this.geometries,D=[],F=0,N=T.length;F<N;F++){var _=T[F],P=_.dataArray;_.sort(P);for(var k=void 0,j=0,Y=P.length;j<Y;j++){var X=P[j];k=(0,A.findDataByPoint)(b,X,_),k&&D.push(k)}}for(var K=this.views,F=0,N=K.length;F<N;F++){var U=K[F],H=U.getSnapRecords(b);D=D.concat(H)}return D},R.prototype.getComponents=function(){for(var b=[],T=this.controllers,D=0,F=T.length;D<F;D++){var N=T[D];b=b.concat(N.getComponents())}return b},R.prototype.filterData=function(b){var T=this.options.filters;return(0,t.size)(T)===0?b:(0,t.filter)(b,function(D,F){var N=Object.keys(T);return N.every(function(_){var P=T[_];return P(D[_],D,F)})})},R.prototype.filterFieldData=function(b,T){var D=this.options.filters,F=(0,t.get)(D,b);return(0,t.isUndefined)(F)?T:T.filter(function(N,_){return F(N[b],N,_)})},R.prototype.adjustCoordinate=function(){var b=this.getCoordinate(),T=b.start,D=b.end,F=this.coordinateBBox.bl,N=this.coordinateBBox.tr;if((0,t.isEqual)(T,F)&&(0,t.isEqual)(D,N)){this.isCoordinateChanged=!1;return}this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(F,N)},R.prototype.paint=function(b){this.renderDataRecursive(b),this.syncScale(),this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(b),this.renderLayoutRecursive(b),this.renderBackgroundStyleShape(),this.renderPaintRecursive(b),this.emit(r.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},R.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var b=(0,t.get)(this.themeObject,"background");if(b){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var T=this.viewBBox,D=T.x,F=T.y,N=T.width,_=T.height;this.backgroundStyleRectShape.attr({fill:b,x:D,y:F,width:N,height:_})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},R.prototype.renderPaddingRecursive=function(b){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(b),this.autoPadding=(0,w.calculatePadding)(this).shrink((0,u.parsePadding)(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var T=this.views,D=0,F=T.length;D<F;D++){var N=T[D];N.renderPaddingRecursive(b)}},R.prototype.renderLayoutRecursive=function(b){var T=this.syncViewPadding===!0?B.defaultSyncViewPadding:(0,t.isFunction)(this.syncViewPadding)?this.syncViewPadding:void 0;T&&(T(this,this.views,C.PaddingCal),this.views.forEach(function(P){P.coordinateBBox=P.viewBBox.shrink(P.autoPadding.getPadding()),P.adjustCoordinate()})),this.doLayout();for(var D=this.views,F=0,N=D.length;F<N;F++){var _=D[F];_.renderLayoutRecursive(b)}},R.prototype.renderPaintRecursive=function(b){var T=this.middleGroup;if(this.limitInPlot){var D=(0,l.getCoordinateClipCfg)(this.coordinateInstance),F=D.type,N=D.attrs;T.setClip({type:F,attrs:N})}else T.setClip(void 0);this.paintGeometries(b),this.renderComponents(b);for(var _=this.views,P=0,k=_.length;P<k;P++){var j=_[P];j.renderPaintRecursive(b)}},R.prototype.createScale=function(b,T,D,F){var N=(0,t.get)(this.options.scales,[b]),_=(0,e.__assign)((0,e.__assign)({},N),D);return this.parent?this.parent.createScale(b,T,_,F):this.scalePool.createScale(b,T,_,F)},R.prototype.renderDataRecursive=function(b){this.doFilterData(),this.createCoordinate(),this.initGeometries(b),this.renderFacet(b);for(var T=this.views,D=0,F=T.length;D<F;D++){var N=T[D];N.renderDataRecursive(b)}},R.prototype.calculateViewBBox=function(){var b,T,D,F;if(this.parent){var N=this.parent.coordinateBBox;b=N.x,T=N.y,D=N.width,F=N.height}else b=0,T=0,D=this.canvas.get("width"),F=this.canvas.get("height");var _=this.region,P=_.start,k=_.end,j=new s.BBox(b+D*P.x,T+F*P.y,D*(k.x-P.x),F*(k.y-P.y));(!this.viewBBox||!this.viewBBox.isEqual(j))&&(this.viewBBox=new s.BBox(b+D*P.x,T+F*P.y,D*(k.x-P.x),F*(k.y-P.y))),this.coordinateBBox=this.viewBBox},R.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},R.prototype.initComponentController=function(){for(var b=this.usedControllers,T=0,D=b.length;T<D;T++){var F=b[T],N=(0,h.getComponentController)(F);N&&this.controllers.push(new N(this))}},R.prototype.createViewEvent=function(b){var T=b.shape,D=b.name,F=T?T.get("origin"):null,N=new p.default(this,b,F);return N.type=D,N},R.prototype.doPlotEvent=function(b){var T=b.type,D=b.x,F=b.y,N={x:D,y:F},_=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(_.includes(T)){var P=this.isPointInPlot(N),k=b.clone();if(P){var j="plot:"+T;k.type=j,this.emit(j,k),(T==="mouseleave"||T==="touchend")&&(this.isPreMouseInPlot=!1)}T==="mousemove"||T==="touchmove"?(this.isPreMouseInPlot&&!P?(T==="mousemove"&&(k.type=r.PLOT_EVENTS.MOUSE_LEAVE,this.emit(r.PLOT_EVENTS.MOUSE_LEAVE,k)),k.type=r.PLOT_EVENTS.LEAVE,this.emit(r.PLOT_EVENTS.LEAVE,k)):!this.isPreMouseInPlot&&P&&(T==="mousemove"&&(k.type=r.PLOT_EVENTS.MOUSE_ENTER,this.emit(r.PLOT_EVENTS.MOUSE_ENTER,k)),k.type=r.PLOT_EVENTS.ENTER,this.emit(r.PLOT_EVENTS.ENTER,k)),this.isPreMouseInPlot=P):(T==="mouseleave"||T==="touchend")&&this.isPreMouseInPlot&&(T==="mouseleave"&&(k.type=r.PLOT_EVENTS.MOUSE_LEAVE,this.emit(r.PLOT_EVENTS.MOUSE_LEAVE,k)),k.type=r.PLOT_EVENTS.LEAVE,this.emit(r.PLOT_EVENTS.LEAVE,k),this.isPreMouseInPlot=!1)}},R.prototype.doFilterData=function(){var b=this.options.data;this.filteredData=this.filterData(b)},R.prototype.initGeometries=function(b){this.createOrUpdateScales();for(var T=this.getCoordinate(),D=(0,t.get)(this.options,"scales",{}),F=this.geometries,N=0,_=F.length;N<_;N++){var P=F[N];P.scales=this.getGeometryScales();var k={coordinate:T,scaleDefs:D,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};b?P.update(k):P.init(k)}this.adjustScales()},R.prototype.createOrUpdateScales=function(){for(var b=this.getScaleFields(),T=this.getGroupedFields(),D=this.getOptions(),F=D.data,N=D.scales,_=N===void 0?{}:N,P=this.filteredData,k=0,j=b.length;k<j;k++){var Y=b[k],X=_[Y],K=this.getScaleKey(Y);this.createScale(Y,T.includes(Y)?F:P,X,K),this.createdScaleKeys.set(K,!0)}},R.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},R.prototype.getGeometryScales=function(){for(var b=this.getScaleFields(),T={},D=0;D<b.length;D++){var F=b[D];T[F]=this.getScaleByField(F)}return T},R.prototype.getScaleFields=function(){for(var b=[],T=new Map,D=this.geometries,F=0;F<D.length;F++){var N=D[F],_=N.getScaleFields();(0,c.uniq)(_,b,T)}return b},R.prototype.getGroupedFields=function(){for(var b=[],T=new Map,D=this.geometries,F=0;F<D.length;F++){var N=D[F],_=N.getGroupFields();(0,c.uniq)(_,b,T)}return b},R.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},R.prototype.adjustCategoryScaleRange=function(){var b=this,T=(0,e.__spreadArray)([this.getXScale()],this.getYScales(),!0).filter(function(N){return!!N}),D=this.getCoordinate(),F=this.options.scales;(0,t.each)(T,function(N){var _=N.field,P=N.values,k=N.isCategory,j=N.isIdentity;(k||j)&&P&&!(0,t.get)(F,[_,"range"])&&(N.range=(0,d.getDefaultCategoryScaleRange)(N,D,b.theme))})},R.prototype.initComponents=function(b){for(var T=this.controllers,D=0;D<T.length;D++){var F=T[D];b?F.update():(F.clear(),F.render())}},R.prototype.doLayout=function(){this.layoutFunc(this)},R.prototype.createCoordinate=function(){var b=this.coordinateBBox.bl,T=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(b,T)},R.prototype.paintGeometries=function(b){for(var T=this.options.animate,D=this.getCoordinate(),F={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},N=this.geometries,_=0;_<N.length;_++){var P=N[_];P.coordinate=D,P.canvasRegion=F,T||P.animate(!1),P.paint(b)}},R.prototype.renderComponents=function(b){for(var T=0;T<this.getComponents().length;T++){var D=this.getComponents()[T];D.component.render()}},R.prototype.renderFacet=function(b){this.facetInstance&&(b?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},R.prototype.initOptions=function(){var b=this,T=this.options,D=T.geometries,F=D===void 0?[]:D,N=T.interactions,_=N===void 0?[]:N,P=T.views,k=P===void 0?[]:P,j=T.annotations,Y=j===void 0?[]:j,X=T.coordinate,K=T.events,U=T.facets;this.coordinateController?X&&this.coordinateController.update(X):this.coordinateController=new g.default(X);for(var H=0;H<F.length;H++){var L=F[H];this.createGeometry(L)}for(var V=0;V<_.length;V++){var J=_[V],ee=J.type,ae=J.cfg;this.interaction(ee,ae)}for(var ne=0;ne<k.length;ne++){var fe=k[ne];this.createView(fe)}for(var he=this.getController("annotation"),ye=0;ye<Y.length;ye++){var be=Y[ye];he.annotation(be)}K&&(0,t.each)(K,function(Se,ve){b.on(ve,Se)}),U&&(0,t.each)(U,function(Se){var ve=Se.type,de=(0,e.__rest)(Se,["type"]);b.facet(ve,de)})},R.prototype.createGeometry=function(b){var T=b.type,D=b.cfg,F=D===void 0?{}:D;if(this[T]){var N=this[T](F);(0,t.each)(b,function(_,P){(0,t.isFunction)(N[P])&&N[P](_)})}},R.prototype.getScaleKey=function(b){return this.id+"-"+b},R})(n.default);jh.View=x;function M(S,R){x.prototype[S.toLowerCase()]=function(b){b===void 0&&(b={});var T=(0,e.__assign)({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},b),D=new R(T);return this.geometries.push(D),D}}return jh.registerGeometry=M,jh.default=x,jh}var sue;function BTt(){if(sue)return h2;sue=1,Object.defineProperty(h2,"__esModule",{value:!0});var e=Mr,t=Br,r=Wi(),n=uTe(),a=dTe(),i=(0,e.__importDefault)(CTe()),o=(function(s){(0,e.__extends)(l,s);function l(c){var A=this,u=c.container,d=c.width,f=c.height,h=c.autoFit,g=h===void 0?!1:h,p=c.padding,m=c.appendPadding,y=c.renderer,C=y===void 0?"canvas":y,w=c.pixelRatio,B=c.localRefresh,x=B===void 0?!0:B,M=c.visible,S=M===void 0?!0:M,R=c.supportCSSTransform,b=R===void 0?!1:R,T=c.defaultInteractions,D=T===void 0?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:T,F=c.options,N=c.limitInPlot,_=c.theme,P=c.syncViewPadding,k=(0,t.isString)(u)?document.getElementById(u):u,j=(0,a.createDom)('<div style="position:relative;"></div>');k.appendChild(j);var Y=(0,a.getChartSize)(k,g,d,f),X=(0,n.getEngine)(C),K=new X.Canvas((0,e.__assign)({container:j,pixelRatio:w,localRefresh:x,supportCSSTransform:b},Y));return A=s.call(this,{parent:null,canvas:K,backgroundGroup:K.addGroup({zIndex:r.GROUP_Z_INDEX.BG}),middleGroup:K.addGroup({zIndex:r.GROUP_Z_INDEX.MID}),foregroundGroup:K.addGroup({zIndex:r.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:m,visible:S,options:F,limitInPlot:N,theme:_,syncViewPadding:P})||this,A.onResize=(0,t.debounce)(function(){A.forceFit()},300),A.ele=k,A.canvas=K,A.width=Y.width,A.height=Y.height,A.autoFit=g,A.localRefresh=x,A.renderer=C,A.wrapperElement=j,A.updateCanvasStyle(),A.bindAutoFit(),A.initDefaultInteractions(D),A}return l.prototype.initDefaultInteractions=function(c){var A=this;(0,t.each)(c,function(u){A.interaction(u)})},l.prototype.aria=function(c){var A="aria-label";c===!1?this.ele.removeAttribute(A):this.ele.setAttribute(A,c.label)},l.prototype.changeSize=function(c,A){return this.width===c&&this.height===A?this:(this.emit(r.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=c,this.height=A,this.canvas.changeSize(c,A),this.render(!0),this.emit(r.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE),this)},l.prototype.clear=function(){s.prototype.clear.call(this),this.aria(!1)},l.prototype.destroy=function(){s.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,a.removeDom)(this.wrapperElement),this.wrapperElement=null},l.prototype.changeVisible=function(c){return s.prototype.changeVisible.call(this,c),this.wrapperElement.style.display=c?"":"none",this},l.prototype.forceFit=function(){if(!this.destroyed){var c=(0,a.getChartSize)(this.ele,!0,this.width,this.height),A=c.width,u=c.height;this.changeSize(A,u)}},l.prototype.updateCanvasStyle=function(){(0,a.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},l.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},l.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},l})(i.default);return h2.default=o,h2}var lue;function ER(){return lue||(lue=1,(function(e){var t=wC&&wC.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(e,"__esModule",{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var r=BTt();Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return t(r).default}});var n=CTe();Object.defineProperty(e,"View",{enumerable:!0,get:function(){return t(n).default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return n.registerGeometry}});var a=eG();Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return t(a).default}});var i=ETe();Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return i.registerComponentController}})})(wC)),wC}var B2={},cue;function wTe(){if(cue)return B2;cue=1,Object.defineProperty(B2,"__esModule",{value:!0});var e=Mr,t=Br,r=Wg(),n=uu(),a=Bc(),i=ID(),o=Xy(),s=mD(),l=(0,e.__importDefault)(eG());function c(u){for(var d=[],f=function(g){var p=u[g],m=(0,t.find)(d,function(y){return y.color===p.color&&y.name===p.name&&y.value===p.value&&y.title===p.title});m||d.push(p)},h=0;h<u.length;h++)f(h);return d}var A=(function(u){(0,e.__extends)(d,u);function d(){var f=u!==null&&u.apply(this,arguments)||this;return f.isLocked=!1,f}return Object.defineProperty(d.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),d.prototype.init=function(){},d.prototype.isVisible=function(){var f=this.view.getOptions().tooltip;return f!==!1},d.prototype.render=function(){},d.prototype.showTooltip=function(f){if(this.point=f,!!this.isVisible()){var h=this.view,g=this.getTooltipItems(f);if(!g.length){this.hideTooltip();return}var p=this.getTitle(g),m={x:g[0].x,y:g[0].y};h.emit("tooltip:show",l.default.fromData(h,"tooltip:show",(0,e.__assign)({items:g,title:p},f)));var y=this.getTooltipCfg(),C=y.follow,w=y.showMarkers,B=y.showCrosshairs,x=y.showContent,M=y.marker,S=this.items,R=this.title;if(!(0,t.isEqual)(R,p)||!(0,t.isEqual)(S,g)?(h.emit("tooltip:change",l.default.fromData(h,"tooltip:change",(0,e.__assign)({items:g,title:p},f))),((0,t.isFunction)(x)?x(g):x)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,t.mix)({},y,{items:this.getItemsAfterProcess(g),title:p},C?f:{})),this.tooltip.show()),w&&this.renderTooltipMarkers(g,M)):(this.tooltip&&C&&(this.tooltip.update(f),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()),this.items=g,this.title=p,B){var b=(0,t.get)(y,["crosshairs","follow"],!1);this.renderCrosshairs(b?f:m,y)}}},d.prototype.hideTooltip=function(){var f=this.getTooltipCfg().follow;if(!f){this.point=null;return}var h=this.tooltipMarkersGroup;h&&h.hide();var g=this.xCrosshair,p=this.yCrosshair;g&&g.hide(),p&&p.hide();var m=this.tooltip;m&&m.hide(),this.view.emit("tooltip:hide",l.default.fromData(this.view,"tooltip:hide",{})),this.point=null},d.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},d.prototype.unlockTooltip=function(){this.isLocked=!1;var f=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(f.capture)},d.prototype.isTooltipLocked=function(){return this.isLocked},d.prototype.clear=function(){var f=this,h=f.tooltip,g=f.xCrosshair,p=f.yCrosshair,m=f.tooltipMarkersGroup;h&&(h.hide(),h.clear()),g&&g.clear(),p&&p.clear(),m&&m.clear(),h?.get("customContent")&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},d.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},d.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},d.prototype.changeVisible=function(f){if(this.visible!==f){var h=this,g=h.tooltip,p=h.tooltipMarkersGroup,m=h.xCrosshair,y=h.yCrosshair;f?(g&&g.show(),p&&p.show(),m&&m.show(),y&&y.show()):(g&&g.hide(),p&&p.hide(),m&&m.hide(),y&&y.hide()),this.visible=f}},d.prototype.getTooltipItems=function(f){var h=this.findItemsFromView(this.view,f);if(h.length){h=(0,t.flatten)(h);for(var g=0,p=h;g<p.length;g++)for(var m=p[g],y=0,C=m;y<C.length;y++){var w=C[y],B=w.mappingData,x=B.x,M=B.y;w.x=(0,t.isArray)(x)?x[x.length-1]:x,w.y=(0,t.isArray)(M)?M[M.length-1]:M}var S=this.getTooltipCfg().shared;if(S===!1&&h.length>1){for(var R=h[0],b=Math.abs(f.y-R[0].y),T=0,D=h;T<D.length;T++){var F=D[T],N=Math.abs(f.y-F[0].y);N<=b&&(R=F,b=N)}h=[R]}return c((0,t.flatten)(h))}return[]},d.prototype.layout=function(){},d.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var f=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:f.get("width"),y:f.get("height")}})}},d.prototype.isCursorEntered=function(f){if(this.tooltip){var h=this.tooltip.getContainer(),g=this.tooltip.get("capture");if(h&&g){var p=h.getBoundingClientRect(),m=p.x,y=p.y,C=p.width,w=p.height;return new o.BBox(m,y,C,w).isPointIn(f)}}return!1},d.prototype.getTooltipCfg=function(){var f=this.view,h=f.getOptions().tooltip,g=this.processCustomContent(h),p=f.getTheme(),m=(0,t.get)(p,["components","tooltip"],{}),y=(0,t.get)(g,"enterable",m.enterable);return(0,t.deepMix)({},m,g,{capture:!!(y||this.isLocked)})},d.prototype.processCustomContent=function(f){if((0,t.isBoolean)(f)||!(0,t.get)(f,"customContent"))return f;var h=f.customContent,g=function(p,m){var y=h(p,m)||"";return(0,t.isString)(y)?'<div class="g2-tooltip">'+y+"</div>":y};return(0,e.__assign)((0,e.__assign)({},f),{customContent:g})},d.prototype.getTitle=function(f){var h=f[0].title||f[0].name;return this.title=h,h},d.prototype.renderTooltip=function(){var f=this.view.getCanvas(),h={start:{x:0,y:0},end:{x:f.get("width"),y:f.get("height")}},g=this.getTooltipCfg(),p=new r.HtmlTooltip((0,e.__assign)((0,e.__assign)({parent:f.get("el").parentNode,region:h},g),{visible:!1,crosshairs:null}));p.init(),this.tooltip=p},d.prototype.renderTooltipMarkers=function(f,h){for(var g=this.getTooltipMarkersGroup(),p=0,m=f;p<m.length;p++){var y=m[p],C=y.x,w=y.y,B=(0,e.__assign)((0,e.__assign)({fill:y.color,symbol:"circle",shadowColor:y.color},h),{x:C,y:w});g.addShape("marker",{attrs:B})}},d.prototype.renderCrosshairs=function(f,h){var g=(0,t.get)(h,["crosshairs","type"],"x");g==="x"?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(f,h)):g==="y"?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(f,h)):g==="xy"&&(this.renderXCrosshairs(f,h),this.renderYCrosshairs(f,h))},d.prototype.renderXCrosshairs=function(f,h){var g=this.getViewWithGeometry(this.view).getCoordinate();if((0,n.isPointInCoordinate)(g,f)){var p,m;if(g.isRect)g.isTransposed?(p={x:g.start.x,y:f.y},m={x:g.end.x,y:f.y}):(p={x:f.x,y:g.end.y},m={x:f.x,y:g.start.y});else{var y=(0,n.getAngleByPoint)(g,f),C=g.getCenter(),w=g.getRadius();m=(0,a.polarToCartesian)(C.x,C.y,w,y),p=C}var B=(0,t.deepMix)({start:p,end:m,container:this.getTooltipCrosshairsGroup()},(0,t.get)(h,"crosshairs",{}),this.getCrosshairsText("x",f,h));delete B.type;var x=this.xCrosshair;x?x.update(B):(x=new r.Crosshair.Line(B),x.init()),x.render(),x.show(),this.xCrosshair=x}},d.prototype.renderYCrosshairs=function(f,h){var g=this.getViewWithGeometry(this.view).getCoordinate();if((0,n.isPointInCoordinate)(g,f)){var p,m;if(g.isRect){var y=void 0,C=void 0;g.isTransposed?(y={x:f.x,y:g.end.y},C={x:f.x,y:g.start.y}):(y={x:g.start.x,y:f.y},C={x:g.end.x,y:f.y}),p={start:y,end:C},m="Line"}else p={center:g.getCenter(),radius:(0,n.getDistanceToCenter)(g,f),startAngle:g.startAngle,endAngle:g.endAngle},m="Circle";p=(0,t.deepMix)({container:this.getTooltipCrosshairsGroup()},p,(0,t.get)(h,"crosshairs",{}),this.getCrosshairsText("y",f,h)),delete p.type;var w=this.yCrosshair;w?g.isRect&&w.get("type")==="circle"||!g.isRect&&w.get("type")==="line"?(w=new r.Crosshair[m](p),w.init()):w.update(p):(w=new r.Crosshair[m](p),w.init()),w.render(),w.show(),this.yCrosshair=w}},d.prototype.getCrosshairsText=function(f,h,g){var p=(0,t.get)(g,["crosshairs","text"]),m=(0,t.get)(g,["crosshairs","follow"]),y=this.items;if(p){var C=this.getViewWithGeometry(this.view),w=y[0],B=C.getXScale(),x=C.getYScales()[0],M=void 0,S=void 0;if(m){var R=this.view.getCoordinate().invert(h);M=B.invert(R.x),S=x.invert(R.y)}else M=w.data[B.field],S=w.data[x.field];var b=f==="x"?M:S;return(0,t.isFunction)(p)?p=p(f,b,y,h):p.content=b,{text:p}}},d.prototype.getGuideGroup=function(){if(!this.guideGroup){var f=this.view.foregroundGroup;this.guideGroup=f.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},d.prototype.getTooltipMarkersGroup=function(){var f=this.tooltipMarkersGroup;return f&&!f.destroyed?(f.clear(),f.show()):(f=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),f.toFront(),this.tooltipMarkersGroup=f),f},d.prototype.getTooltipCrosshairsGroup=function(){var f=this.tooltipCrosshairsGroup;return f||(f=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),f.toBack(),this.tooltipCrosshairsGroup=f),f},d.prototype.findItemsFromView=function(f,h){if(f.getOptions().tooltip===!1)return[];for(var g=this.getTooltipCfg(),p=(0,i.findItemsFromView)(f,h,g),m=0,y=f.views;m<y.length;m++){var C=y[m];p=p.concat(this.findItemsFromView(C,h))}return p},d.prototype.getViewWithGeometry=function(f){var h=this;return f.geometries.length?f:(0,t.find)(f.views,function(g){return h.getViewWithGeometry(g)})},d.prototype.getItemsAfterProcess=function(f){var h=this.getTooltipCfg().customItems,g=h||function(p){return p};return g(f)},d})(s.Controller);return B2.default=A,B2}var x2={},M2={},QC={},Aue;function tG(){return Aue||(Aue=1,Object.defineProperty(QC,"__esModule",{value:!0}),QC.BACKGROUND_SHAPE=void 0,QC.BACKGROUND_SHAPE="element-background"),QC}var uue;function rG(){if(uue)return M2;uue=1,Object.defineProperty(M2,"__esModule",{value:!0});var e=Mr,t=Br,r=vD,n=Bm(),a=(0,e.__importDefault)(q9()),i=Bc(),o=Wi(),s=tG(),l=(function(c){(0,e.__extends)(A,c);function A(u){var d=c.call(this,u)||this;d.states=[];var f=u.shapeFactory,h=u.container,g=u.offscreenGroup,p=u.elementIndex,m=u.visible,y=m===void 0?!0:m;return d.shapeFactory=f,d.container=h,d.offscreenGroup=g,d.visible=y,d.elementIndex=p,d}return A.prototype.draw=function(u,d){d===void 0&&(d=!1),this.model=u,this.data=u.data,this.shapeType=this.getShapeType(u),this.drawShape(u,d),this.visible===!1&&this.changeVisible(!1)},A.prototype.update=function(u){var d=this,f=d.shapeFactory,h=d.shape;if(h){this.model=u,this.data=u.data,this.shapeType=this.getShapeType(u),this.setShapeInfo(h,u);var g=this.getOffscreenGroup(),p=f.drawShape(this.shapeType,u,g);p.cfg.data=this.data,p.cfg.origin=u,p.cfg.element=this,this.syncShapeStyle(h,p,this.getStates(),this.getAnimateCfg("update"))}},A.prototype.destroy=function(){var u=this,d=u.shapeFactory,f=u.shape;if(f){var h=this.getAnimateCfg("leave");h?(0,n.doAnimate)(f,h,{coordinate:d.coordinate,toAttrs:(0,e.__assign)({},f.attr())}):f.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,c.prototype.destroy.call(this)},A.prototype.changeVisible=function(u){c.prototype.changeVisible.call(this,u),u?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach(function(d){d.show()})):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach(function(d){d.hide()}))},A.prototype.setState=function(u,d){var f=this,h=f.states,g=f.shapeFactory,p=f.model,m=f.shape,y=f.shapeType,C=h.indexOf(u);if(d){if(C>-1)return;h.push(u),(u==="active"||u==="selected")&&m?.toFront()}else{if(C===-1)return;h.splice(C,1),(u==="active"||u==="selected")&&(this.geometry.zIndexReversed?m.setZIndex(this.geometry.elements.length-this.elementIndex):m.setZIndex(this.elementIndex))}var w=g.drawShape(y,p,this.getOffscreenGroup());h.length?this.syncShapeStyle(m,w,h,null):this.syncShapeStyle(m,w,["reset"],null),w.remove(!0);var B={state:u,stateStatus:d,element:this,target:this.container};this.container.emit("statechange",B),(0,r.propagationDelegate)(this.shape,"statechange",B)},A.prototype.clearStates=function(){var u=this,d=this.states;(0,t.each)(d,function(f){u.setState(f,!1)}),this.states=[]},A.prototype.hasState=function(u){return this.states.includes(u)},A.prototype.getStates=function(){return this.states},A.prototype.getData=function(){return this.data},A.prototype.getModel=function(){return this.model},A.prototype.getBBox=function(){var u=this,d=u.shape,f=u.labelShape,h={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return d&&(h=d.getCanvasBBox()),f&&f.forEach(function(g){var p=g.getCanvasBBox();h.x=Math.min(p.x,h.x),h.y=Math.min(p.y,h.y),h.minX=Math.min(p.minX,h.minX),h.minY=Math.min(p.minY,h.minY),h.maxX=Math.max(p.maxX,h.maxX),h.maxY=Math.max(p.maxY,h.maxY)}),h.width=h.maxX-h.minX,h.height=h.maxY-h.minY,h},A.prototype.getStatesStyle=function(){if(!this.statesStyle){var u=this,d=u.shapeType,f=u.geometry,h=u.shapeFactory,g=f.stateOption,p=h.defaultShapeType,m=h.theme[d]||h.theme[p];this.statesStyle=(0,t.deepMix)({},m,g)}return this.statesStyle},A.prototype.getStateStyle=function(u,d){var f=this.getStatesStyle(),h=(0,t.get)(f,[u,"style"],{}),g=h[d]||h;return(0,t.isFunction)(g)?g(this):g},A.prototype.getAnimateCfg=function(u){var d=this,f=this.animate;if(f){var h=f[u];return h&&(0,e.__assign)((0,e.__assign)({},h),{callback:function(){var g;(0,t.isFunction)(h.callback)&&h.callback(),(g=d.geometry)===null||g===void 0||g.emit(o.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}})}return null},A.prototype.drawShape=function(u,d){var f;d===void 0&&(d=!1);var h=this,g=h.shapeFactory,p=h.container,m=h.shapeType;if(this.shape=g.drawShape(m,u,p),this.shape){this.setShapeInfo(this.shape,u);var y=this.shape.cfg.name;y?(0,t.isString)(y)&&(this.shape.cfg.name=["element",y]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var C=d?"enter":"appear",w=this.getAnimateCfg(C);w&&((f=this.geometry)===null||f===void 0||f.emit(o.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,n.doAnimate)(this.shape,w,{coordinate:g.coordinate,toAttrs:(0,e.__assign)({},this.shape.attr())}))}},A.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var u=this.container.getGroupBase();this.offscreenGroup=new u({})}return this.offscreenGroup},A.prototype.setShapeInfo=function(u,d){var f=this;if(u.cfg.origin=d,u.cfg.element=this,u.isGroup()){var h=u.get("children");h.forEach(function(g){f.setShapeInfo(g,d)})}},A.prototype.syncShapeStyle=function(u,d,f,h,g){var p=this,m;if(f===void 0&&(f=[]),g===void 0&&(g=0),!(!u||!d)){var y=u.get("clipShape"),C=d.get("clipShape");if(this.syncShapeStyle(y,C,f,h),u.isGroup())for(var w=u.get("children"),B=d.get("children"),x=0;x<w.length;x++)this.syncShapeStyle(w[x],B[x],f,h,g+x);else{if(!(0,t.isEmpty)(f)&&!(0,t.isEqual)(f,["reset"])){var M=u.get("name");(0,t.isArray)(M)&&(M=M[1]),(0,t.each)(f,function(R){if(d.get("name")!==s.BACKGROUND_SHAPE){var b=p.getStateStyle(R,M||g);d.attr(b)}})}var S=(0,i.getReplaceAttrs)(u,d);this.animate?h?((m=this.geometry)===null||m===void 0||m.emit(o.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,n.doAnimate)(u,h,{coordinate:this.shapeFactory.coordinate,toAttrs:S,shapeModel:this.model})):(0,t.isEmpty)(f)?u.attr(S):(u.stopAnimate(),u.animate(S,{duration:300})):u.attr(S)}}},A.prototype.getShapeType=function(u){var d=(0,t.get)(u,"shape");return(0,t.isArray)(d)?d[0]:d},A})(a.default);return M2.default=l,M2}var OA={},due;function nG(){if(due)return OA;due=1,Object.defineProperty(OA,"__esModule",{value:!0}),OA.registerGeometryLabelLayout=OA.getGeometryLabelLayout=OA.registerGeometryLabel=OA.getGeometryLabel=void 0;var e={},t={};function r(o){return e[o.toLowerCase()]}OA.getGeometryLabel=r;function n(o,s){e[o.toLowerCase()]=s}OA.registerGeometryLabel=n;function a(o){return t[o.toLowerCase()]}OA.getGeometryLabelLayout=a;function i(o,s){t[o.toLowerCase()]=s}return OA.registerGeometryLabelLayout=i,OA}var yf={},fue;function Vl(){if(fue)return yf;fue=1,Object.defineProperty(yf,"__esModule",{value:!0}),yf.getShapeFactory=yf.registerShape=yf.registerShapeFactory=void 0;var e=Mr,t=BD,r=Br,n=MD(),a={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(A,u){var d=this.getShape(A);return d.getPoints?d.getPoints(u):this.getDefaultPoints(u)},getShape:function(A){var u=this[A]||this[this.defaultShapeType];return u.coordinate=this.coordinate,u},getDefaultPoints:function(){return[]},getDefaultStyle:function(A){return(0,r.get)(A,[this.defaultShapeType,"default","style"],{})},getMarker:function(A,u){var d=this.getShape(A);if(!d.getMarker){var f=this.defaultShapeType;d=this.getShape(f)}var h=this.theme,g=(0,r.get)(h,[A,"default"],{}),p=d.getMarker(u);return(0,r.deepMix)({},g,p)},drawShape:function(A,u,d){var f=this.getShape(A);return f.draw(u,d)}},i={coordinate:null,parsePath:function(A){var u=this.coordinate,d=(0,t.parsePathString)(A);return u.isPolar?d=(0,n.convertPolarPath)(u,d):d=(0,n.convertNormalPath)(u,d),d},parsePoint:function(A){var u=this.coordinate;return u.convert(A)},parsePoints:function(A){var u=this.coordinate;return A.map(function(d){return u.convert(d)})},draw:function(A,u){}},o={};function s(A,u){var d=(0,r.upperFirst)(A),f=(0,e.__assign)((0,e.__assign)((0,e.__assign)({},a),u),{geometryType:A});return o[d]=f,f}yf.registerShapeFactory=s;function l(A,u,d){var f=(0,r.upperFirst)(A),h=o[f],g=(0,e.__assign)((0,e.__assign)({},i),d);return h[u]=g,g}yf.registerShape=l;function c(A){var u=(0,r.upperFirst)(A);return o[u]}return yf.getShapeFactory=c,yf}var DC={},hue;function xTt(){if(hue)return DC;hue=1,Object.defineProperty(DC,"__esModule",{value:!0}),DC.group=void 0;var e=Br;function t(r,n,a){if(a===void 0&&(a={}),!n)return[r];var i=(0,e.groupToMap)(r,n),o=[];if(n.length===1&&a[n[0]])for(var s=a[n[0]],l=0,c=s;l<c.length;l++){var A=c[l],u=i["_"+A];u&&o.push(u)}else for(var d in i)if(i.hasOwnProperty(d)){var f=i[d];o.push(f)}return o}return DC.group=t,DC}var FC={},gue;function BTe(){if(gue)return FC;gue=1,Object.defineProperty(FC,"__esModule",{value:!0}),FC.isModelChange=void 0;var e=Br;function t(r,n){return(0,e.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],function(a){return!(0,e.isEqual)(r[a],n[a])})}return FC.isModelChange=t,FC}var NC={},pue;function MTt(){if(pue)return NC;pue=1,Object.defineProperty(NC,"__esModule",{value:!0}),NC.parseFields=void 0;var e=Br;function t(r){return(0,e.isArray)(r)?r:r.split("*")}return NC.parseFields=t,NC}var _C={},vue;function xTe(){if(vue)return _C;vue=1,Object.defineProperty(_C,"__esModule",{value:!0}),_C.diff=void 0;function e(t,r){for(var n=[],a=[],i=[],o=new Map,s=0;s<r.length;s++){var l=r[s];t[l]?a.push(l):n.push(l),o.set(l,!0)}return Object.keys(t).forEach(function(c){o.has(c)||i.push(c)}),{added:n,updated:a,removed:i}}return _C.diff=e,_C}var mue;function bD(){if(mue)return x2;mue=1,Object.defineProperty(x2,"__esModule",{value:!0});var e=Mr,t=$Se,r=nY,n=Br,a=Bm(),i=(0,e.__importDefault)(q9()),o=Wi(),s=xm(),l=(0,e.__importDefault)(rG()),c=nG(),A=Vl(),u=xTt(),d=BTe(),f=MTt(),h=xTe(),g=uu();function p(y,C){var w=[];return(0,n.each)(C,function(B,x){var M=x.split(" ")[0];M===y&&w.push(B)}),w}var m=(function(y){(0,e.__extends)(C,y);function C(w){var B=y.call(this,w)||this;B.type="base",B.attributes={},B.elements=[],B.elementsMap={},B.animateOption=!0,B.attributeOption={},B.lastElementsMap={},B.generatePoints=!1,B.beforeMappingData=null,B.adjusts={},B.idFields=[],B.hasSorted=!1,B.isCoordinateChanged=!1;var x=w.container,M=w.labelsContainer,S=w.coordinate,R=w.data,b=w.sortable,T=b===void 0?!1:b,D=w.visible,F=D===void 0?!0:D,N=w.theme,_=w.scales,P=_===void 0?{}:_,k=w.scaleDefs,j=k===void 0?{}:k,Y=w.intervalPadding,X=w.dodgePadding,K=w.maxColumnWidth,U=w.minColumnWidth,H=w.columnWidthRatio,L=w.roseWidthRatio,V=w.multiplePieWidthRatio,J=w.zIndexReversed;return B.container=x,B.labelsContainer=M,B.coordinate=S,B.data=R,B.sortable=T,B.visible=F,B.userTheme=N,B.scales=P,B.scaleDefs=j,B.intervalPadding=Y,B.dodgePadding=X,B.maxColumnWidth=K,B.minColumnWidth=U,B.columnWidthRatio=H,B.roseWidthRatio=L,B.multiplePieWidthRatio=V,B.zIndexReversed=J,B}return C.prototype.position=function(w){var B=w;(0,n.isPlainObject)(w)||(B={fields:(0,f.parseFields)(w)});var x=(0,n.get)(B,"fields");return x.length===1&&(x.unshift("1"),(0,n.set)(B,"fields",x)),(0,n.set)(this.attributeOption,"position",B),this},C.prototype.color=function(w,B){return this.createAttrOption("color",w,B),this},C.prototype.shape=function(w,B){return this.createAttrOption("shape",w,B),this},C.prototype.size=function(w,B){return this.createAttrOption("size",w,B),this},C.prototype.adjust=function(w){var B=w;return((0,n.isString)(w)||(0,n.isPlainObject)(w))&&(B=[w]),(0,n.each)(B,function(x,M){(0,n.isObject)(x)||(B[M]={type:x})}),this.adjustOption=B,this},C.prototype.style=function(w,B){if((0,n.isString)(w)){var x=(0,f.parseFields)(w);this.styleOption={fields:x,callback:B}}else{var M=w,x=M.fields,S=M.callback,R=M.cfg;x||S||R?this.styleOption=w:this.styleOption={cfg:w}}return this},C.prototype.tooltip=function(w,B){if((0,n.isString)(w)){var x=(0,f.parseFields)(w);this.tooltipOption={fields:x,callback:B}}else this.tooltipOption=w;return this},C.prototype.animate=function(w){return this.animateOption=w,this},C.prototype.label=function(w,B,x){if((0,n.isString)(w)){var M={},S=(0,f.parseFields)(w);M.fields=S,(0,n.isFunction)(B)?M.callback=B:(0,n.isPlainObject)(B)&&(M.cfg=B),x&&(M.cfg=x),this.labelOption=M}else this.labelOption=w;return this},C.prototype.state=function(w){return this.stateOption=w,this},C.prototype.customInfo=function(w){return this.customOption=w,this},C.prototype.init=function(w){w===void 0&&(w={}),this.setCfg(w),this.initAttributes(),this.processData(this.data),this.adjustScale()},C.prototype.update=function(w){w===void 0&&(w={});var B=w.data,x=w.isDataChanged,M=w.isCoordinateChanged,S=this,R=S.attributeOption,b=S.lastAttributeOption;(0,n.isEqual)(R,b)?B&&(x||!(0,n.isEqual)(B,this.data))?(this.setCfg(w),this.initAttributes(),this.processData(B)):this.setCfg(w):this.init(w),this.adjustScale(),this.isCoordinateChanged=M},C.prototype.paint=function(w){w===void 0&&(w=!1),this.animateOption&&(this.animateOption=(0,n.deepMix)({},(0,a.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[];var B=this.getOffscreenGroup();B.clear();var x=this.beforeMappingData,M=this.beforeMapping(x);this.dataArray=new Array(M.length);for(var S=0;S<M.length;S++){var R=M[S];this.dataArray[S]=this.mapping(R)}if(this.updateElements(this.dataArray,w),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(w)){var b=this.container,T=this.type,D=this.coordinate,F=(0,n.get)(this.animateOption,"appear"),N=this.getYScale(),_=D.convert({x:0,y:N.scale(this.getYMinValue())});(0,a.doGroupAppearAnimate)(b,F,T,D,_)}this.labelOption&&this.renderLabels((0,n.flatten)(this.dataArray),w),this.lastAttributeOption=(0,e.__assign)({},this.attributeOption),this.visible===!1&&this.changeVisible(!1)},C.prototype.clear=function(){var w=this,B=w.container,x=w.geometryLabel,M=w.offscreenGroup;B&&B.clear(),x&&x.clear(),M&&M.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},C.prototype.destroy=function(){this.clear();var w=this.container;w.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,y.prototype.destroy.call(this)},C.prototype.getGroupScales=function(){return this.groupScales},C.prototype.getAttribute=function(w){return this.attributes[w]},C.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},C.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},C.prototype.getGroupAttributes=function(){var w=[];return(0,n.each)(this.attributes,function(B){o.GROUP_ATTRS.includes(B.type)&&w.push(B)}),w},C.prototype.getDefaultValue=function(w){var B,x=this.getAttribute(w);return x&&(0,n.isEmpty)(x.scales)&&(B=x.values[0]),B},C.prototype.getAttributeValues=function(w,B){for(var x=[],M=w.scales,S=0,R=M.length;S<R;S++){var b=M[S],T=b.field;b.isIdentity?x.push(b.values):x.push(B[T])}return w.mapping.apply(w,x)},C.prototype.getAdjust=function(w){return this.adjusts[w]},C.prototype.getCoordinate=function(){return this.coordinate},C.prototype.getData=function(){return this.data},C.prototype.getShapeMarker=function(w,B){var x=this.getShapeFactory();return x.getMarker(w,B)},C.prototype.getElementsBy=function(w){return this.elements.filter(function(B){return w(B)})},C.prototype.getElements=function(){return this.elements},C.prototype.getElementId=function(w){w=(0,n.isArray)(w)?w[0]:w;var B=w[o.FIELD_ORIGIN];if(this.idFields.length){for(var x=B[this.idFields[0]],M=1;M<this.idFields.length;M++)x+="-"+B[this.idFields[M]];return x}var S=this.type,R=this.getXScale(),b=this.getYScale(),T=R.field||"x",D=b.field||"y",F=B[D],N;R.type==="identity"?N=R.values[0]:N=B[T];var _;S==="interval"||S==="schema"?_=""+N:S==="line"||S==="area"||S==="path"?_=S:_=N+"-"+F;var P=this.groupScales;(0,n.isEmpty)(P)&&(P=(0,n.get)(this.getAttribute("color"),"scales",[]));for(var M=0,k=P.length;M<k;M++){var j=P[M],Y=j.field;_=_+"-"+B[Y]}var X=this.getAdjust("dodge");if(X){var K=X.dodgeBy;K&&(_=_+"-"+B[K])}return this.getAdjust("jitter")&&(_=_+"-"+w.x+"-"+w.y),_},C.prototype.getScaleFields=function(){var w=[],B=new Map,x=this,M=x.attributeOption,S=x.labelOption,R=x.tooltipOption;for(var b in M)if(M.hasOwnProperty(b)){var T=M[b];T.fields?(0,s.uniq)(T.fields,w,B):T.values&&(0,s.uniq)(T.values,w,B)}return S&&S.fields&&(0,s.uniq)(S.fields,w,B),(0,n.isObject)(R)&&R.fields&&(0,s.uniq)(R.fields,w,B),w},C.prototype.changeVisible=function(w){y.prototype.changeVisible.call(this,w);for(var B=this.elements,x=0,M=B.length;x<M;x++){var S=B[x];S.changeVisible(w)}w?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},C.prototype.getFields=function(){var w=new Map,B=[];return Object.values(this.attributeOption).forEach(function(x){var M=x?.fields||[];M.forEach(function(S){w.has(S)||B.push(S),w.set(S,!0)})},[]),B},C.prototype.getGroupFields=function(){for(var w=[],B=new Map,x=0,M=o.GROUP_ATTRS.length;x<M;x++){var S=o.GROUP_ATTRS[x],R=this.attributeOption[S];R&&R.fields&&(0,s.uniq)(R.fields,w,B)}return w},C.prototype.getXYFields=function(){var w=this.attributeOption.position.fields,B=w[0],x=w[1];return[B,x]},C.prototype.getXField=function(){return(0,n.get)(this.getXYFields(),[0])},C.prototype.getYField=function(){return(0,n.get)(this.getXYFields(),[1])},C.prototype.getShapes=function(){return this.elements.map(function(w){return w.shape})},C.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var w=this.container.getGroupBase();this.offscreenGroup=new w({})}return this.offscreenGroup},C.prototype.sort=function(w){if(!this.hasSorted)for(var B=this.getXScale(),x=B.field,M=0;M<w.length;M++){var S=w[M];S.sort(function(R,b){return B.translate(R[o.FIELD_ORIGIN][x])-B.translate(b[o.FIELD_ORIGIN][x])})}this.hasSorted=!0},C.prototype.adjustScale=function(){var w=this.getYScale();w&&this.getAdjust("stack")&&this.updateStackRange(w,this.beforeMappingData)},C.prototype.getShapeFactory=function(){var w=this.shapeType;if((0,A.getShapeFactory)(w))return this.shapeFactory||(this.shapeFactory=(0,n.clone)((0,A.getShapeFactory)(w))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[w]||{},this.shapeFactory},C.prototype.createShapePointsCfg=function(w){var B=this.getXScale(),x=this.getYScale(),M=this.normalizeValues(w[B.field],B),S;return x?S=this.normalizeValues(w[x.field],x):S=w.y?w.y:.1,{x:M,y:S,y0:x?x.scale(this.getYMinValue()):void 0}},C.prototype.createElement=function(w,B,x){x===void 0&&(x=!1);var M=this.container,S=this.getDrawCfg(w),R=this.getShapeFactory(),b=new l.default({shapeFactory:R,container:M,offscreenGroup:this.getOffscreenGroup(),elementIndex:B});return b.animate=this.animateOption,b.geometry=this,b.draw(S,x),b},C.prototype.getDrawCfg=function(w){var B=w[o.FIELD_ORIGIN],x={mappingData:w,data:B,x:w.x,y:w.y,color:w.color,size:w.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},M=w.shape;!M&&this.getShapeFactory()&&(M=this.getShapeFactory().defaultShapeType),x.shape=M;var S=this.theme.geometries[this.shapeType];x.defaultStyle=(0,n.get)(S,[M,"default"],{}).style,!x.defaultStyle&&this.getShapeFactory()&&(x.defaultStyle=this.getShapeFactory().getDefaultStyle(S));var R=this.styleOption;return R&&(x.style=this.getStyleCfg(R,B)),this.generatePoints&&(x.points=w.points,x.nextPoints=w.nextPoints),x},C.prototype.updateElements=function(w,B){B===void 0&&(B=!1);for(var x=new Map,M=[],S=new Map,R=0,b=0;b<w.length;b++)for(var T=w[b],D=0;D<T.length;D++){var F=T[D],N=this.getElementId(F),_=x.has(N)?N+"-"+b+"-"+D:N;M.push(_),x.set(_,F),S.set(_,R),R++}this.elements=new Array(R);for(var P=(0,h.diff)(this.lastElementsMap,M),k=P.added,j=P.updated,Y=P.removed,X=0,K=k;X<K.length;X++){var N=K[X],F=x.get(N),b=S.get(N),U=this.createElement(F,b,B);this.elements[b]=U,this.elementsMap[N]=U,U.shape&&U.shape.setZIndex(this.zIndexReversed?this.elements.length-b:b)}for(var H=0,L=j;H<L.length;H++){var N=L[H],U=this.lastElementsMap[N],F=x.get(N),V=this.getDrawCfg(F),J=U.getModel(),b=S.get(N);(this.isCoordinateChanged||(0,d.isModelChange)(V,J))&&(U.animate=this.animateOption,U.update(V)),this.elements[b]=U,this.elementsMap[N]=U,U.shape&&U.shape.setZIndex(this.zIndexReversed?this.elements.length-b:b)}for(var ee=0,ae=Y;ee<ae.length;ee++){var N=ae[ee],U=this.lastElementsMap[N];U.animate=this.animateOption,U.destroy()}},C.prototype.getLabelType=function(){var w=this,B=w.labelOption,x=w.coordinate,M=w.type,S=x.type,R=x.isTransposed,b=(0,n.get)(B,["cfg","type"]);return b||(S==="polar"?b=R?"pie":"polar":S==="theta"?b="pie":M==="interval"||M==="polygon"?b="interval":b="base"),b},C.prototype.getYMinValue=function(){var w=this.getYScale(),B=w.min,x=w.max,M;return B>=0?M=B:x<=0?M=x:M=0,M},C.prototype.createAttrOption=function(w,B,x){if((0,n.isNil)(B)||(0,n.isObject)(B))(0,n.isObject)(B)&&(0,n.isEqual)(Object.keys(B),["values"])?(0,n.set)(this.attributeOption,w,{fields:B.values}):(0,n.set)(this.attributeOption,w,B);else{var M={};(0,n.isNumber)(B)?M.values=[B]:M.fields=(0,f.parseFields)(B),x&&((0,n.isFunction)(x)?M.callback=x:M.values=x),(0,n.set)(this.attributeOption,w,M)}},C.prototype.initAttributes=function(){var w=this,B=this,x=B.attributes,M=B.attributeOption,S=B.theme,R=B.shapeType;this.groupScales=[];var b={},T=function(N){if(M.hasOwnProperty(N)){var _=M[N];if(!_)return{value:void 0};var P=(0,e.__assign)({},_),k=P.callback,j=P.values,Y=P.fields,X=Y===void 0?[]:Y,K=X.map(function(H){var L=w.scales[H];return L.isCategory&&!b[H]&&o.GROUP_ATTRS.includes(N)&&(w.groupScales.push(L),b[H]=!0),L});P.scales=K,N!=="position"&&K.length===1&&K[0].type==="identity"?P.values=K[0].values:!k&&!j&&(N==="size"?P.values=S.sizes:N==="shape"?P.values=S.shapes[R]||[]:N==="color"&&(K.length?P.values=K[0].values.length<=10?S.colors10:S.colors20:P.values=S.colors10));var U=(0,r.getAttribute)(N);x[N]=new U(P)}};for(var D in M){var F=T(D);if(typeof F=="object")return F.value}},C.prototype.processData=function(w){this.hasSorted=!1;for(var B=this.getAttribute("position").scales,x=B.filter(function(H){return H.isCategory}),M=this.groupData(w),S=[],R=0,b=M.length;R<b;R++){for(var T=M[R],D=[],F=0,N=T.length;F<N;F++){var _=T[F],P={};for(var k in _)P[k]=_[k];P[o.FIELD_ORIGIN]=_;for(var j=0,Y=x;j<Y.length;j++){var X=Y[j],K=X.field;P[K]=X.translate(P[K])}D.push(P)}S.push(D)}var U=this.adjustData(S);return this.beforeMappingData=U,U},C.prototype.adjustData=function(w){var B=this.adjustOption,x=this,M=x.intervalPadding,S=x.dodgePadding,R=x.theme,b=this.maxColumnWidth||R.maxColumnWidth,T=this.minColumnWidth||R.minColumnWidth,D=this.columnWidthRatio||R.columnWidthRatio,F=w;if(B){var N=this.getXScale(),_=this.getYScale(),P=N.field,k=_?_.field:null,j=(0,g.getXDimensionLength)(this.coordinate),Y=N.values.length,X=this.getAttribute("size"),K=void 0;X&&(K=X.values[0]);for(var U=0,H=B.length;U<H;U++){var L=B[U],V=(0,e.__assign)({xField:P,yField:k,intervalPadding:M,dodgePadding:S,xDimensionLength:j,groupNum:Y,defaultSize:K,maxColumnWidth:b,minColumnWidth:T,columnWidthRatio:D},L),J=L.type;if(J==="dodge"){var ee=[];if(N.isCategory||N.type==="identity")ee.push("x");else if(!_)ee.push("y");else throw new Error("dodge is not support linear attribute, please use category attribute!");V.adjustNames=ee,V.dodgeRatio=D}else if(J==="stack"){var ae=this.coordinate;if(!_){V.height=ae.getHeight();var ne=this.getDefaultValue("size")||3;V.size=ne}!ae.isTransposed&&(0,n.isNil)(V.reverseOrder)&&(V.reverseOrder=!0)}var fe=(0,t.getAdjust)(J),he=new fe(V);F=he.process(F),this.adjusts[J]=he}}return F},C.prototype.groupData=function(w){for(var B=this.getGroupScales(),x=this.scaleDefs,M={},S=[],R=0;R<B.length;R++){var b=B[R],T=b.field;S.push(T),(0,n.get)(x,[T,"values"])&&(M[T]=x[T].values)}return(0,u.group)(w,S,M)},C.prototype.updateStackRange=function(w,B){for(var x=(0,n.flatten)(B),M=w.field,S=w.min,R=w.max,b=0;b<x.length;b++){var T=x[b],D=Math.min.apply(null,T[M]),F=Math.max.apply(null,T[M]);D<S&&(S=D),F>R&&(R=F)}var N=this.scaleDefs,_={};S<w.min&&!(0,n.get)(N,[M,"min"])&&(_.min=S),R>w.max&&!(0,n.get)(N,[M,"max"])&&(_.max=R),w.change(_)},C.prototype.beforeMapping=function(w){var B=w;if(this.sortable&&this.sort(B),this.generatePoints)for(var x=0,M=B.length;x<M;x++){var S=B[x];this.generateShapePoints(S);var R=B[x+1];R&&(this.generateShapePoints(R),S[0].nextPoints=R[0].points)}return B},C.prototype.generateShapePoints=function(w){for(var B=this.getShapeFactory(),x=this.getAttribute("shape"),M=0;M<w.length;M++){var S=w[M],R=this.createShapePointsCfg(S),b=x?this.getAttributeValues(x,S):null,T=B.getShapePoints(b,R);S.points=T}},C.prototype.normalizeValues=function(w,B){var x=[];if((0,n.isArray)(w))for(var M=0;M<w.length;M++){var S=w[M];x.push(B.scale(S))}else x=B.scale(w);return x},C.prototype.mapping=function(w){for(var B=this.attributes,x=[],M=0;M<w.length;M++){var S=w[M],R={_origin:S[o.FIELD_ORIGIN],points:S.points,nextPoints:S.nextPoints};for(var b in B)if(B.hasOwnProperty(b)){var T=B[b],D=T.names,F=this.getAttributeValues(T,S);if(D.length>1)for(var N=0;N<F.length;N+=1){var _=F[N],P=D[N];R[P]=(0,n.isArray)(_)&&_.length===1?_[0]:_}else R[D[0]]=F.length===1?F[0]:F}this.convertPoint(R),x.push(R)}return x},C.prototype.convertPoint=function(w){var B=w.x,x=w.y,M,S,R,b=this.coordinate;if((0,n.isArray)(B)&&(0,n.isArray)(x)){M=[],S=[];for(var T=0,D=0,F=B.length,N=x.length;T<F&&D<N;T+=1,D+=1)R=b.convert({x:B[T],y:x[D]}),M.push(R.x),S.push(R.y)}else if((0,n.isArray)(x)){S=[];for(var _=0;_<x.length;_++){var P=x[_];R=b.convert({x:B,y:P}),M&&M!==R.x?((0,n.isArray)(M)||(M=[M]),M.push(R.x)):M=R.x,S.push(R.y)}}else if((0,n.isArray)(B)){M=[];for(var _=0;_<B.length;_++){var k=B[_];R=b.convert({x:k,y:x}),S&&S!==R.y?((0,n.isArray)(S)||(S=[S]),S.push(R.y)):S=R.y,M.push(R.x)}}else{var j=b.convert({x:B,y:x});M=j.x,S=j.y}w.x=M,w.y=S},C.prototype.getStyleCfg=function(w,B){var x=w.fields,M=x===void 0?[]:x,S=w.callback,R=w.cfg;if(R)return R;var b=M.map(function(T){return B[T]});return S.apply(void 0,b)},C.prototype.setCfg=function(w){var B=this,x=w.coordinate,M=w.data,S=w.theme,R=w.scaleDefs;x&&(this.coordinate=x),M&&(this.data=M),R&&(this.scaleDefs=R,this.idFields=[],(0,n.each)(R,function(b,T){b&&b.key&&B.idFields.push(T)})),S&&(this.theme=this.userTheme?(0,n.deepMix)({},S,this.userTheme):S)},C.prototype.renderLabels=function(w,B){B===void 0&&(B=!1);var x=this.geometryLabel;if(!x){var M=this.getLabelType(),S=(0,c.getGeometryLabel)(M);x=new S(this),this.geometryLabel=x}x.render(w,B);var R=x.labelsRenderer.shapesMap;(0,n.each)(this.elementsMap,function(b,T){var D=p(T,R);if(D.length){b.labelShape=D;for(var F=0;F<D.length;F++)for(var N=D[F],_=N.getChildren(),P=0;P<_.length;P++){var k=_[P];k.cfg.name=["element","label"],k.cfg.element=b}}})},C.prototype.canDoGroupAnimation=function(w){return!w&&this.animateOption&&((0,n.get)(this.animateOption,"appear")===void 0||(0,n.get)(this.animateOption,"appear")&&(0,n.get)(this.animateOption,["appear","animation"])===void 0)},C})(i.default);return x2.default=m,x2}var I2={},b2={},jA={},el={},Eue;function SD(){if(Eue)return el;Eue=1,Object.defineProperty(el,"__esModule",{value:!0}),el.zoom=el.getIdentityMatrix=el.rotate=el.getRotateMatrix=el.translate=el.transform=void 0;var e=Xg,t=e.ext.transform;el.transform=t;function r(s,l,c){var A=t(s.getMatrix(),[["t",l,c]]);s.setMatrix(A)}el.translate=r;function n(s,l){var c=s.attr(),A=c.x,u=c.y,d=t(s.getMatrix(),[["t",-A,-u],["r",l],["t",A,u]]);return d}el.getRotateMatrix=n;function a(s,l){var c=n(s,l);s.setMatrix(c)}el.rotate=a;function i(){return[1,0,0,0,1,0,0,0,1]}el.getIdentityMatrix=i;function o(s,l){var c=s.getBBox(),A=(c.minX+c.maxX)/2,u=(c.minY+c.maxY)/2;s.applyToMatrix([A,u,1]);var d=t(s.getMatrix(),[["t",-A,-u],["s",l,l],["t",A,u]]);s.setMatrix(d)}return el.zoom=o,el}var yue;function ITt(){if(yue)return jA;yue=1,Object.defineProperty(jA,"__esModule",{value:!0}),jA.checkShapeOverlap=jA.getOverlapArea=jA.getlLabelBackgroundInfo=jA.findLabelTextShape=void 0;var e=Br,t=SD();function r(o){return o.find(function(s){return s.get("type")==="text"})}jA.findLabelTextShape=r;function n(o,s,l){l===void 0&&(l=[0,0,0,0]);var c=o.getChildren()[0];if(c){var A=c.clone();s?.rotate&&(0,t.rotate)(A,-s.rotate);var u=A.getCanvasBBox(),d=u.x,f=u.y,h=u.width,g=u.height;A.destroy();var p=l;return(0,e.isNil)(p)?p=[2,2,2,2]:(0,e.isNumber)(p)&&(p=new Array(4).fill(p)),{x:d-p[3],y:f-p[0],width:h+p[1]+p[3],height:g+p[0]+p[2],rotation:s?.rotate||0}}}jA.getlLabelBackgroundInfo=n;function a(o,s,l){l===void 0&&(l=0);var c=Math.max(0,Math.min(o.x+o.width+l,s.x+s.width+l)-Math.max(o.x-l,s.x-l)),A=Math.max(0,Math.min(o.y+o.height+l,s.y+s.height+l)-Math.max(o.y-l,s.y-l));return c*A}jA.getOverlapArea=a;function i(o,s){var l=o.getBBox();return(0,e.some)(s,function(c){var A=c.getBBox();return a(l,A,2)>0})}return jA.checkShapeOverlap=i,jA}var kC={},Cue;function bTt(){if(Cue)return kC;Cue=1,Object.defineProperty(kC,"__esModule",{value:!0}),kC.updateLabel=void 0;var e=Br,t=Bm(),r=Bc();function n(a,i,o){var s=o.data,l=o.origin,c=o.animateCfg,A=o.coordinate,u=(0,e.get)(c,"update");a.set("data",s),a.set("origin",l),a.set("animateCfg",c),a.set("coordinate",A),a.set("visible",i.get("visible")),a.getChildren().forEach(function(d,f){var h=i.getChildByIndex(f);if(!h)a.removeChild(d),d.remove(!0);else{d.set("data",s),d.set("origin",l),d.set("animateCfg",c),d.set("coordinate",A);var g=(0,r.getReplaceAttrs)(d,h);u?(0,t.doAnimate)(d,u,{toAttrs:g,coordinate:A}):d.attr(g),h.isGroup()&&n(d,h,o)}}),(0,e.each)(i.getChildren(),function(d,f){f>=a.getCount()&&(d.destroyed||a.add(d))})}return kC.updateLabel=n,kC}var wue;function STt(){if(wue)return b2;wue=1,Object.defineProperty(b2,"__esModule",{value:!0});var e=Mr,t=Br,r=Bm(),n=nG(),a=ITt(),i=Bc(),o=SD(),s=Wi(),l=bTt(),c=(function(){function A(u){this.shapesMap={},this.lastShapesMap={};var d=u.layout,f=u.container;this.layout=d,this.container=f}return A.prototype.render=function(u,d,f){var h=this;f===void 0&&(f=!1),this.shapesMap={};var g=this.container,p=this.createOffscreenGroup();if(u.length){for(var m=0,y=u;m<y.length;m++){var C=y[m];C&&this.renderLabel(C,p)}this.doLayout(u,d),this.renderLabelLine(u),this.renderLabelBackground(u),this.adjustLabel(u)}var w=this.lastShapesMap,B=this.shapesMap;(0,t.each)(B,function(x,M){if(x.destroyed)delete B[M];else{if(w[M]){var S=x.get("data"),R=x.get("origin"),b=x.get("coordinate"),T=x.get("animateCfg"),D=w[M];(0,l.updateLabel)(D,B[M],{data:S,origin:R,animateCfg:T,coordinate:b}),h.shapesMap[M]=D}else{g.add(x);var F=(0,t.get)(x.get("animateCfg"),f?"enter":"appear");F&&(0,r.doAnimate)(x,F,{toAttrs:(0,e.__assign)({},x.attr()),coordinate:x.get("coordinate")})}delete w[M]}}),(0,t.each)(w,function(x){var M=(0,t.get)(x.get("animateCfg"),"leave");M?(0,r.doAnimate)(x,M,{toAttrs:null,coordinate:x.get("coordinate")}):x.remove(!0)}),this.lastShapesMap=B,p.destroy()},A.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},A.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},A.prototype.renderLabel=function(u,d){var f=u.id,h=u.elementId,g=u.data,p=u.mappingData,m=u.coordinate,y=u.animate,C=u.content,w={id:f,elementId:h,data:g,origin:(0,e.__assign)((0,e.__assign)({},p),{data:p[s.FIELD_ORIGIN]}),coordinate:m},B=d.addGroup((0,e.__assign)({name:"label",animateCfg:this.animate===!1||y===null||y===!1?!1:(0,t.deepMix)({},this.animate,y)},w)),x;if(C.isGroup&&C.isGroup()||C.isShape&&C.isShape()){var M=C.getCanvasBBox(),S=M.width,R=M.height,b=(0,t.get)(u,"textAlign","left"),T=u.x,D=u.y-R/2;b==="center"?T=T-S/2:(b==="right"||b==="end")&&(T=T-S),(0,o.translate)(C,T,D),x=C,B.add(C)}else{var F=(0,t.get)(u,["style","fill"]);x=B.addShape("text",(0,e.__assign)({attrs:(0,e.__assign)((0,e.__assign)({x:u.x,y:u.y,textAlign:u.textAlign,textBaseline:(0,t.get)(u,"textBaseline","middle"),text:u.content},u.style),{fill:(0,t.isNull)(F)?u.color:F})},w))}u.rotate&&(0,o.rotate)(x,u.rotate),this.shapesMap[f]=B},A.prototype.doLayout=function(u,d){var f=this;if(this.layout){var h=(0,t.isArray)(this.layout)?this.layout:[this.layout];(0,t.each)(h,function(g){var p=(0,n.getGeometryLabelLayout)((0,t.get)(g,"type",""));if(p){var m=[],y=[];(0,t.each)(f.shapesMap,function(C,w){m.push(C),y.push(d[C.get("elementId")])}),p(u,m,y,f.region,g.cfg)}})}},A.prototype.renderLabelLine=function(u){var d=this;(0,t.each)(u,function(f){var h=(0,t.get)(f,"coordinate");if(!(!f||!h)){var g=h.getCenter(),p=h.getRadius();if(f.labelLine){var m=(0,t.get)(f,"labelLine",{}),y=f.id,C=m.path;if(!C){var w=(0,i.polarToCartesian)(g.x,g.y,p,f.angle);C=[["M",w.x,w.y],["L",f.x,f.y]]}var B=d.shapesMap[y];B.destroyed||B.addShape("path",{capture:!1,attrs:(0,e.__assign)({path:C,stroke:f.color?f.color:(0,t.get)(f,["style","fill"],"#000"),fill:null},m.style),id:y,origin:f.mappingData,data:f.data,coordinate:f.coordinate})}}})},A.prototype.renderLabelBackground=function(u){var d=this;(0,t.each)(u,function(f){var h=(0,t.get)(f,"coordinate"),g=(0,t.get)(f,"background");if(!(!g||!h)){var p=f.id,m=d.shapesMap[p];if(!m.destroyed){var y=m.getChildren()[0];if(y){var C=(0,a.getlLabelBackgroundInfo)(m,f,g.padding),w=C.rotation,B=(0,e.__rest)(C,["rotation"]),x=m.addShape("rect",{attrs:(0,e.__assign)((0,e.__assign)({},B),g.style||{}),id:p,origin:f.mappingData,data:f.data,coordinate:f.coordinate});if(x.setZIndex(-1),w){var M=y.getMatrix();x.setMatrix(M)}}}}})},A.prototype.createOffscreenGroup=function(){var u=this.container,d=u.getGroupBase(),f=new d({});return f},A.prototype.adjustLabel=function(u){var d=this;(0,t.each)(u,function(f){if(f){var h=f.id,g=d.shapesMap[h];if(!g.destroyed){var p=g.findAll(function(m){return m.get("type")!=="path"});(0,t.each)(p,function(m){m&&(f.offsetX&&m.attr("x",m.attr("x")+f.offsetX),f.offsetY&&m.attr("y",m.attr("y")+f.offsetY))})}}})},A})();return b2.default=c,b2}var Bue;function nM(){if(Bue)return I2;Bue=1,Object.defineProperty(I2,"__esModule",{value:!0});var e=Mr,t=Br,r=Wi(),n=Bm(),a=Bc(),i=(0,e.__importDefault)(STt());function o(l){var c=0;return(0,t.each)(l,function(A){c+=A}),c/l.length}var s=(function(){function l(c){this.geometry=c}return l.prototype.getLabelItems=function(c){var A=this,u=[],d=this.getLabelCfgs(c);return(0,t.each)(c,function(f,h){var g=d[h];if(!g||(0,t.isNil)(f.x)||(0,t.isNil)(f.y)){u.push(null);return}var p=(0,t.isArray)(g.content)?g.content:[g.content];g.content=p;var m=p.length;(0,t.each)(p,function(y,C){if((0,t.isNil)(y)||y===""){u.push(null);return}var w=(0,e.__assign)((0,e.__assign)({},g),A.getLabelPoint(g,f,C));w.textAlign||(w.textAlign=A.getLabelAlign(w,C,m)),w.offset<=0&&(w.labelLine=null),u.push(w)})}),u},l.prototype.render=function(c,A){A===void 0&&(A=!1);var u=this.getLabelItems(c),d=this.getLabelsRenderer(),f=this.getGeometryShapes();d.render(u,f,A)},l.prototype.clear=function(){var c=this.labelsRenderer;c&&c.clear()},l.prototype.destroy=function(){var c=this.labelsRenderer;c&&c.destroy(),this.labelsRenderer=null},l.prototype.getCoordinate=function(){return this.geometry.coordinate},l.prototype.getDefaultLabelCfg=function(c,A){var u=this.geometry,d=u.type,f=u.theme;return d==="polygon"||d==="interval"&&A==="middle"||c<0&&!["line","point","path"].includes(d)?(0,t.get)(f,"innerLabels",{}):(0,t.get)(f,"labels",{})},l.prototype.getThemedLabelCfg=function(c){var A=this.geometry,u=this.getDefaultLabelCfg(),d=A.type,f=A.theme,h;return d==="polygon"||c.offset<0&&!["line","point","path"].includes(d)?h=(0,t.deepMix)({},u,f.innerLabels,c):h=(0,t.deepMix)({},u,f.labels,c),h},l.prototype.setLabelPosition=function(c,A,u,d){},l.prototype.getLabelOffset=function(c){var A=this.getCoordinate(),u=this.getOffsetVector(c);return A.isTransposed?u[0]:u[1]},l.prototype.getLabelOffsetPoint=function(c,A,u){var d=c.offset,f=this.getCoordinate(),h=f.isTransposed,g=h?"x":"y",p=h?1:-1,m={x:0,y:0};return A>0||u===1?m[g]=d*p:m[g]=d*p*-1,m},l.prototype.getLabelPoint=function(c,A,u){var d=this.getCoordinate(),f=c.content.length;function h(S,R,b){b===void 0&&(b=!1);var T=S;return(0,t.isArray)(T)&&(c.content.length===1?b?T=o(T):T.length<=2?T=T[S.length-1]:T=o(T):T=T[R]),T}var g={content:c.content[u],x:0,y:0,start:{x:0,y:0},color:"#fff"},p=(0,t.isArray)(A.shape)?A.shape[0]:A.shape,m=p==="funnel"||p==="pyramid";if(this.geometry.type==="polygon"){var y=(0,a.getPolygonCentroid)(A.x,A.y);g.x=y[0],g.y=y[1]}else this.geometry.type==="interval"&&!m?(g.x=h(A.x,u,!0),g.y=h(A.y,u)):(g.x=h(A.x,u),g.y=h(A.y,u));if(m){var C=(0,t.get)(A,"nextPoints"),w=(0,t.get)(A,"points");if(C){var B=d.convert(w[1]),x=d.convert(C[1]);g.x=(B.x+x.x)/2,g.y=(B.y+x.y)/2}else if(p==="pyramid"){var B=d.convert(w[1]),x=d.convert(w[2]);g.x=(B.x+x.x)/2,g.y=(B.y+x.y)/2}}c.position&&this.setLabelPosition(g,A,u,c.position);var M=this.getLabelOffsetPoint(c,u,f);return g.start={x:g.x,y:g.y},g.x+=M.x,g.y+=M.y,g.color=A.color,g},l.prototype.getLabelAlign=function(c,A,u){var d="center",f=this.getCoordinate();if(f.isTransposed){var h=c.offset;h<0?d="right":h===0?d="center":d="left",u>1&&A===0&&(d==="right"?d="left":d==="left"&&(d="right"))}return d},l.prototype.getLabelId=function(c){var A=this.geometry,u=A.type,d=A.getXScale(),f=A.getYScale(),h=c[r.FIELD_ORIGIN],g=A.getElementId(c);return u==="line"||u==="area"?g+=" "+h[d.field]:u==="path"&&(g+=" "+h[d.field]+"-"+h[f.field]),g},l.prototype.getLabelsRenderer=function(){var c=this.geometry,A=c.labelsContainer,u=c.labelOption,d=c.canvasRegion,f=c.animateOption,h=this.geometry.coordinate,g=this.labelsRenderer;return g||(g=new i.default({container:A,layout:(0,t.get)(u,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=g),g.region=d,g.animate=f?(0,n.getDefaultAnimateCfg)("label",h):!1,g},l.prototype.getLabelCfgs=function(c){var A=this,u=this.geometry,d=u.labelOption,f=u.scales,h=u.coordinate,g=d,p=g.fields,m=g.callback,y=g.cfg,C=p.map(function(B){return f[B]}),w=[];return(0,t.each)(c,function(B,x){var M=B[r.FIELD_ORIGIN],S=A.getLabelText(M,C),R;if(m){var b=p.map(function(_){return M[_]});if(R=m.apply(void 0,b),(0,t.isNil)(R)){w.push(null);return}}var T=(0,e.__assign)((0,e.__assign)({id:A.getLabelId(B),elementId:A.geometry.getElementId(B),data:M,mappingData:B,coordinate:h},y),R);(0,t.isFunction)(T.position)&&(T.position=T.position(M,B,x));var D=A.getLabelOffset(T.offset||0),F=A.getDefaultLabelCfg(D,T.position);T=(0,t.deepMix)({},F,T),T.offset=A.getLabelOffset(T.offset||0);var N=T.content;(0,t.isFunction)(N)?T.content=N(M,B,x):(0,t.isUndefined)(N)&&(T.content=S[0]),w.push(T)}),w},l.prototype.getLabelText=function(c,A){var u=[];return(0,t.each)(A,function(d){var f=c[d.field];(0,t.isArray)(f)?f=f.map(function(h){return d.getText(h)}):f=d.getText(f),(0,t.isNil)(f)||f===""?u.push(null):u.push(f)}),u},l.prototype.getOffsetVector=function(c){c===void 0&&(c=0);var A=this.getCoordinate(),u=0;return(0,t.isNumber)(c)&&(u=c),A.isTransposed?A.applyMatrix(u,0):A.applyMatrix(0,u)},l.prototype.getGeometryShapes=function(){var c=this.geometry,A={};return(0,t.each)(c.elementsMap,function(u,d){A[d]=u.shape}),(0,t.each)(c.getOffscreenGroup().getChildren(),function(u){var d=c.getElementId(u.get("origin").mappingData);A[d]=u}),A},l})();return I2.default=s,I2}var fj={},xue;function RTt(){return xue||(xue=1,Object.defineProperty(fj,"__esModule",{value:!0})),fj}var PC={},Mue;function MTe(){if(Mue)return PC;Mue=1,Object.defineProperty(PC,"__esModule",{value:!0}),PC.getMappingValue=void 0;var e=Mr;function t(r,n,a){if(!r)return a;var i;if(r.callback&&r.callback.length>1){var o=Array(r.callback.length-1).fill("");i=r.mapping.apply(r,(0,e.__spreadArray)([n],o,!1)).join("")}else i=r.mapping(n).join("");return i||a}return PC.getMappingValue=t,PC}var zA={},OC={},Iue;function aM(){return Iue||(Iue=1,Object.defineProperty(OC,"__esModule",{value:!0}),OC.MarkerSymbols=void 0,OC.MarkerSymbols={hexagon:function(e,t,r){var n=r/2*Math.sqrt(3);return[["M",e,t-r],["L",e+n,t-r/2],["L",e+n,t+r/2],["L",e,t+r],["L",e-n,t+r/2],["L",e-n,t-r/2],["Z"]]},bowtie:function(e,t,r){var n=r-1.5;return[["M",e-r,t-n],["L",e+r,t+n],["L",e+r,t-n],["L",e-r,t+n],["Z"]]},cross:function(e,t,r){return[["M",e-r,t-r],["L",e+r,t+r],["M",e+r,t-r],["L",e-r,t+r]]},tick:function(e,t,r){return[["M",e-r/2,t-r],["L",e+r/2,t-r],["M",e,t-r],["L",e,t+r],["M",e-r/2,t+r],["L",e+r/2,t+r]]},plus:function(e,t,r){return[["M",e-r,t],["L",e+r,t],["M",e,t-r],["L",e,t+r]]},hyphen:function(e,t,r){return[["M",e-r,t],["L",e+r,t]]},line:function(e,t,r){return[["M",e,t-r],["L",e,t+r]]}}),OC}var bue;function ITe(){if(bue)return zA;bue=1,Object.defineProperty(zA,"__esModule",{value:!0}),zA.getLegendThemeCfg=zA.getCustomLegendItems=zA.getLegendItems=zA.getLegendLayout=void 0;var e=Mr,t=Br,r=Wi(),n=MTe(),a=xm(),i=aM(),o=["line","cross","tick","plus","hyphen"];function s(h,g){return(0,t.isFunction)(g)?g(h):(0,t.deepMix)({},h,g)}function l(h,g){var p=h.symbol;if((0,t.isString)(p)&&o.indexOf(p)!==-1){var m=(0,t.get)(h,"style",{}),y=(0,t.get)(m,"lineWidth",1),C=m.stroke||m.fill||g;h.style=(0,t.deepMix)({},h.style,{lineWidth:y,stroke:C,fill:null})}}function c(h){var g=h.symbol;(0,t.isString)(g)&&i.MarkerSymbols[g]&&(h.symbol=i.MarkerSymbols[g])}function A(h){return h.startsWith(r.DIRECTION.LEFT)||h.startsWith(r.DIRECTION.RIGHT)?"vertical":"horizontal"}zA.getLegendLayout=A;function u(h,g,p,m,y){var C=p.getScale(p.type);if(C.isCategory){var w=C.field,B=g.getAttribute("color"),x=g.getAttribute("shape"),M=h.getTheme().defaultColor,S=g.coordinate.isPolar;return C.getTicks().map(function(R,b){var T,D=R.text,F=R.value,N=D,_=C.invert(F),P=h.filterFieldData(w,[(T={},T[w]=_,T)]).length===0;(0,t.each)(h.views,function(K){var U;K.filterFieldData(w,[(U={},U[w]=_,U)]).length||(P=!0)});var k=(0,n.getMappingValue)(B,_,M),j=(0,n.getMappingValue)(x,_,"point"),Y=g.getShapeMarker(j,{color:k,isInPolar:S}),X=y;return(0,t.isFunction)(X)&&(X=X(N,b,(0,e.__assign)({name:N,value:_},(0,t.deepMix)({},m,Y)))),Y=(0,t.deepMix)({},m,Y,(0,a.omit)((0,e.__assign)({},X),["style"])),l(Y,k),X&&X.style&&(Y.style=s(Y.style,X.style)),c(Y),{id:_,name:N,value:_,marker:Y,unchecked:P}})}return[]}zA.getLegendItems=u;function d(h,g,p){return p.map(function(m,y){var C=g;(0,t.isFunction)(C)&&(C=C(m.name,y,(0,t.deepMix)({},h,m)));var w=(0,t.isFunction)(m.marker)?m.marker(m.name,y,(0,t.deepMix)({},h,m)):m.marker,B=(0,t.deepMix)({},h,C,w);return c(B),m.marker=B,m})}zA.getCustomLegendItems=d;function f(h,g){var p=(0,t.get)(h,["components","legend"],{});return(0,t.deepMix)({},(0,t.get)(p,["common"],{}),(0,t.deepMix)({},(0,t.get)(p,[g],{})))}return zA.getLegendThemeCfg=f,zA}var Sue;function dY(){return Sue||(Sue=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Scale=e.Coordinate=e.DIRECTION=e.LAYER=e.getAnimation=e.registerAnimation=e.getEngine=e.registerEngine=e.registerTheme=e.getTheme=e.registerFacet=e.getFacet=e.getActionClass=e.registerAction=e.registerInteraction=e.getInteraction=e.getGeometryLabelLayout=e.getGeometryLabel=e.registerGeometryLabelLayout=e.registerGeometryLabel=e.getShapeFactory=e.registerShapeFactory=e.registerShape=e.registerGeometry=e.registerComponentController=e.InteractionAction=e.Facet=e.Action=e.Interaction=e.GeometryLabel=e.Element=e.Geometry=e.TooltipController=e.ComponentController=e.Event=e.View=e.Chart=e.VERSION=void 0;var t=Mr;e.VERSION="4.1.32";var r=ER();Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r.Chart}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r.View}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}});var n=mD();Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return n.Controller}});var a=wTe();Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return(0,t.__importDefault)(a).default}});var i=bD();Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return(0,t.__importDefault)(i).default}});var o=rG();Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return(0,t.__importDefault)(o).default}});var s=nM();Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return(0,t.__importDefault)(s).default}});var l=uY();Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return l.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return l.Action}});var c=AY();Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return c.Facet}});var A=Mu();Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return(0,t.__importDefault)(A).default}});var u=ER();Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return u.registerComponentController}});var d=ER();Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var f=Vl();Object.defineProperty(e,"registerShape",{enumerable:!0,get:function(){return f.registerShape}}),Object.defineProperty(e,"registerShapeFactory",{enumerable:!0,get:function(){return f.registerShapeFactory}}),Object.defineProperty(e,"getShapeFactory",{enumerable:!0,get:function(){return f.getShapeFactory}});var h=nG();Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return h.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return h.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return h.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return h.getGeometryLabelLayout}});var g=uY();Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return g.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return g.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return g.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return g.getActionClass}});var p=AY();Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return p.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return p.registerFacet}});var m=$9();Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return m.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return m.registerTheme}});var y=uTe();Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return y.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return y.getEngine}});var C=aTe();Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return C.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return C.getAnimation}});var w=Wi();Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return w.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return w.DIRECTION}}),(0,t.__importStar)(RTt());var B=Wg();Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return B.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return B.Scale}});var x=MTe(),M=ITe(),S=Bc(),R=SD(),b=ID(),T=ks();e.Util={getLegendItems:M.getLegendItems,translate:R.translate,rotate:R.rotate,zoom:R.zoom,transform:R.transform,getAngle:S.getAngle,getSectorPath:S.getSectorPath,polarToCartesian:S.polarToCartesian,getDelegationObject:T.getDelegationObject,getTooltipItems:b.getTooltipItems,getMappingValue:x.getMappingValue}})(oj)),oj}var hj={},Rue;function TTt(){return Rue||(Rue=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobal=e.GLOBAL=void 0;var t=Br;e.GLOBAL={locale:"en-US"};function r(n){t.each(n,function(a,i){return e.GLOBAL[i]=a})}e.setGlobal=r})(hj)),hj}var zh={},S2={},Tue;function QTt(){if(Tue)return S2;Tue=1,Object.defineProperty(S2,"__esModule",{value:!0});var e=[1,1.2,1.5,2,2.2,2.4,2.5,3,4,5,6,7.5,8,10],t=5;S2.default=(function(c){var A=c||{},u=A.tickCount,d=A.tickInterval,f=c||{},h=f.min,g=f.max;h=isNaN(h)?0:h,g=isNaN(g)?0:g;var p=u&&u>=2?u:t,m=d||a({tickCount:p,max:g,min:h}),y=Math.floor(h/m)*m;if(d){var C=Math.abs(Math.ceil((g-y)/d))+1;p=Math.max(p,C)}for(var w=[],B=0,x=s(m);B<p;)w.push(l(y+B*m,x)),B++;return w});var r=12;function n(c){c=Math.abs(c);var A=1;if(c===0)return A;if(c<1){for(var u=0;c<1;)A=A/10,c=c*10,u++;return A.toString().length>r&&(A=parseFloat(A.toFixed(u))),A}for(;c>10;)A=A*10,c=c/10;return A}function a(c){var A=c.tickCount,u=c.min,d=c.max;if(u===d)return 1*n(d);for(var f=(d-u)/(A-1),h=n(f),g=f/h,p=d/h,m=u/h,y=0,C=0;C<e.length;C++){var w=e[C];if(g<=w){y=C;break}}var B=i(y,A,m,p),x=s(B)+s(h);return l(B*h,x)}function i(c,A,u,d){for(var f=!1,h=e[c],g=c;g<e.length;g++)if(o({interval:e[g],tickCount:A,max:d,min:u})){h=e[g],f=!0;break}return f?h:10*i(0,A,u/10,d/10)}function o(c){var A=c.interval,u=c.tickCount,d=c.max,f=c.min,h=Math.floor(f/A)*A;return h+(u-1)*A>=d}function s(c){var A=c.toString(),u=A.indexOf("."),d=A.indexOf("e-"),f=d>=0?parseInt(A.substr(d+2),10):A.substr(u+1).length;return f>20&&(f=20),f}function l(c,A){return parseFloat(c.toFixed(A))}return S2}var Que;function DTt(){if(Que)return zh;Que=1;var e=zh&&zh.__extends||(function(){var i=function(o,s){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var A in c)Object.prototype.hasOwnProperty.call(c,A)&&(l[A]=c[A])},i(o,s)};return function(o,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");i(o,s);function l(){this.constructor=o}o.prototype=s===null?Object.create(s):(l.prototype=s.prototype,new l)}})(),t=zh&&zh.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(zh,"__esModule",{value:!0});var r=F9,n=t(QTt());(0,r.registerTickMethod)("linear-strict-tick-method",n.default);var a=(function(i){e(o,i);function o(s){var l=i.call(this,s)||this;return l.type="linear-strict",l}return o.prototype.initCfg=function(){i.prototype.initCfg.call(this),this.tickMethod="linear-strict-tick-method"},o.prototype.calculateTicks=function(){var s=this.nice;this.nice=!0;var l=i.prototype.calculateTicks.call(this);return this.nice=s,l.length&&(this.min=l[0],this.max=l[l.length-1]),l},o})(r.Linear);return zh.default=a,(0,r.getScale)("linear-strict")||(0,r.registerScale)("linear-strict",a),zh}var gj={},Lp={},Due;function FTt(){if(Due)return Lp;Due=1,Object.defineProperty(Lp,"__esModule",{value:!0}),Lp.fadeOut=Lp.fadeIn=void 0;var e=Br;function t(n,a,i){var o={fillOpacity:(0,e.isNil)(n.attr("fillOpacity"))?1:n.attr("fillOpacity"),strokeOpacity:(0,e.isNil)(n.attr("strokeOpacity"))?1:n.attr("strokeOpacity"),opacity:(0,e.isNil)(n.attr("opacity"))?1:n.attr("opacity")};n.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),n.animate(o,a)}Lp.fadeIn=t;function r(n,a,i){var o={fillOpacity:0,strokeOpacity:0,opacity:0},s=a.easing,l=a.duration,c=a.delay;n.animate(o,l,s,function(){n.remove(!0)},c)}return Lp.fadeOut=r,Lp}var Cf={},Yp={},Fue;function NTt(){if(Fue)return Yp;Fue=1,Object.defineProperty(Yp,"__esModule",{value:!0}),Yp.doScaleAnimate=Yp.transformShape=void 0;var e=Xg;function t(n,a,i){var o,s=a[0],l=a[1];return n.applyToMatrix([s,l,1]),i==="x"?(n.setMatrix(e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),o=e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):i==="y"?(n.setMatrix(e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),o=e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):i==="xy"&&(n.setMatrix(e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),o=e.ext.transform(n.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),o}Yp.transformShape=t;function r(n,a,i,o,s){var l=i.start,c=i.end,A=i.getWidth(),u=i.getHeight(),d,f;s==="y"?(d=l.x+A/2,f=o.y<l.y?o.y:l.y):s==="x"?(d=o.x>l.x?o.x:l.x,f=l.y+u/2):s==="xy"&&(i.isPolar?(d=i.getCenter().x,f=i.getCenter().y):(d=(l.x+c.x)/2,f=(l.y+c.y)/2));var h=t(n,[d,f],s);n.animate({matrix:h},a)}return Yp.doScaleAnimate=r,Yp}var Nue;function _Tt(){if(Nue)return Cf;Nue=1,Object.defineProperty(Cf,"__esModule",{value:!0}),Cf.growInXY=Cf.growInY=Cf.growInX=void 0;var e=NTt();function t(a,i,o){var s=o.coordinate,l=o.minYPoint;(0,e.doScaleAnimate)(a,i,s,l,"x")}Cf.growInX=t;function r(a,i,o){var s=o.coordinate,l=o.minYPoint;(0,e.doScaleAnimate)(a,i,s,l,"y")}Cf.growInY=r;function n(a,i,o){var s=o.coordinate,l=o.minYPoint;(0,e.doScaleAnimate)(a,i,s,l,"xy")}return Cf.growInXY=n,Cf}var jC={},_ue;function kTt(){if(_ue)return jC;_ue=1,Object.defineProperty(jC,"__esModule",{value:!0}),jC.pathIn=void 0;function e(t,r,n){var a=t.getTotalLength();t.attr("lineDash",[a]),t.animate(function(i){return{lineDashOffset:(1-i)*a}},r)}return jC.pathIn=e,jC}var zC={},kue;function PTt(){if(kue)return zC;kue=1,Object.defineProperty(zC,"__esModule",{value:!0}),zC.positionUpdate=void 0;function e(t,r,n){var a=n.toAttrs,i=a.x,o=a.y;delete a.x,delete a.y,t.attr(a),t.animate({x:i,y:o},r)}return zC.positionUpdate=e,zC}var Up={},Pue;function OTt(){if(Pue)return Up;Pue=1,Object.defineProperty(Up,"__esModule",{value:!0}),Up.scaleInY=Up.scaleInX=void 0;var e=Xg;function t(n,a,i){var o=n.getBBox(),s=n.get("origin").mappingData,l=s.points,c=l[0].y-l[1].y>0?o.maxX:o.minX,A=(o.minY+o.maxY)/2;n.applyToMatrix([c,A,1]);var u=e.ext.transform(n.getMatrix(),[["t",-c,-A],["s",.01,1],["t",c,A]]);n.setMatrix(u),n.animate({matrix:e.ext.transform(n.getMatrix(),[["t",-c,-A],["s",100,1],["t",c,A]])},a)}Up.scaleInX=t;function r(n,a,i){var o=n.getBBox(),s=n.get("origin").mappingData,l=(o.minX+o.maxX)/2,c=s.points,A=c[0].y-c[1].y<=0?o.maxY:o.minY;n.applyToMatrix([l,A,1]);var u=e.ext.transform(n.getMatrix(),[["t",-l,-A],["s",1,.01],["t",l,A]]);n.setMatrix(u),n.animate({matrix:e.ext.transform(n.getMatrix(),[["t",-l,-A],["s",1,100],["t",l,A]])},a)}return Up.scaleInY=r,Up}var LC={};function jTt(){return window?window.devicePixelRatio:1}function bTe(e,t,r,n){var a=e-r,i=t-n;return Math.sqrt(a*a+i*i)}function Ev(e,t,r,n,a,i){return a>=e&&a<=e+r&&i>=t&&i<=t+n}function zB(e,t){return!(t.minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)}function zTt(e,t){return!e||!t?e||t:{minX:Math.min(e.minX,t.minX),minY:Math.min(e.minY,t.minY),maxX:Math.max(e.maxX,t.maxX),maxY:Math.max(e.maxY,t.maxY)}}function Oue(e,t){return e[0]===t[0]&&e[1]===t[1]}var LTt=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,YTt=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,UTt=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,STe=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function RTe(e,t){var r=e.match(STe);wr(r,function(n){var a=n.split(":");t.addColorStop(a[0],a[1])})}function HTt(e,t,r){var n=LTt.exec(r),a=parseFloat(n[1])%360*(Math.PI/180),i=n[2],o=t.getBBox(),s,l;a>=0&&a<1/2*Math.PI?(s={x:o.minX,y:o.minY},l={x:o.maxX,y:o.maxY}):1/2*Math.PI<=a&&a<Math.PI?(s={x:o.maxX,y:o.minY},l={x:o.minX,y:o.maxY}):Math.PI<=a&&a<3/2*Math.PI?(s={x:o.maxX,y:o.maxY},l={x:o.minX,y:o.minY}):(s={x:o.minX,y:o.maxY},l={x:o.maxX,y:o.minY});var c=Math.tan(a),A=c*c,u=(l.x-s.x+c*(l.y-s.y))/(A+1)+s.x,d=c*(l.x-s.x+c*(l.y-s.y))/(A+1)+s.y,f=e.createLinearGradient(s.x,s.y,u,d);return RTe(i,f),f}function GTt(e,t,r){var n=YTt.exec(r),a=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),s=n[4];if(o===0){var l=s.match(STe);return l[l.length-1].split(":")[1]}var c=t.getBBox(),A=c.maxX-c.minX,u=c.maxY-c.minY,d=Math.sqrt(A*A+u*u)/2,f=e.createRadialGradient(c.minX+A*a,c.minY+u*i,0,c.minX+A/2,c.minY+u/2,o*d);return RTe(s,f),f}function KTt(e,t,r){if(t.get("patternSource")&&t.get("patternSource")===r)return t.get("pattern");var n,a,i=UTt.exec(r),o=i[1],s=i[2];function l(){n=e.createPattern(a,o),t.set("pattern",n),t.set("patternSource",r)}switch(o){case"a":o="repeat";break;case"x":o="repeat-x";break;case"y":o="repeat-y";break;case"n":o="no-repeat";break;default:o="no-repeat"}return a=new Image,s.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=s,a.complete?l():(a.onload=l,a.src=a.src),n}function VTt(e,t,r){var n=t.getBBox();if(isNaN(n.x)||isNaN(n.y)||isNaN(n.width)||isNaN(n.height))return r;if(Pa(r)){if(r[1]==="("||r[2]==="("){if(r[0]==="l")return HTt(e,t,r);if(r[0]==="r")return GTt(e,t,r);if(r[0]==="p")return KTt(e,t,r)}return r}if(r instanceof CanvasPattern)return r}function JTt(e){var t=0,r=0,n=0,a=0;return sa(e)?e.length===1?t=r=n=a=e[0]:e.length===2?(t=n=e[0],r=a=e[1]):e.length===3?(t=e[0],r=a=e[1],n=e[2]):(t=e[0],r=e[1],n=e[2],a=e[3]):t=r=n=a=e,[t,r,n,a]}function R2(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function fY(e,t){return R2(e)*R2(t)?(e[0]*t[0]+e[1]*t[1])/(R2(e)*R2(t)):1}function jue(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(fY(e,t))}function hY(e,t){var r=t[1],n=t[2],a=t9(r9(t[3]),Math.PI*2),i=t[4],o=t[5],s=e[0],l=e[1],c=t[6],A=t[7],u=Math.cos(a)*(s-c)/2+Math.sin(a)*(l-A)/2,d=-1*Math.sin(a)*(s-c)/2+Math.cos(a)*(l-A)/2,f=u*u/(r*r)+d*d/(n*n);f>1&&(r*=Math.sqrt(f),n*=Math.sqrt(f));var h=r*r*(d*d)+n*n*(u*u),g=h?Math.sqrt((r*r*(n*n)-h)/h):1;i===o&&(g*=-1),isNaN(g)&&(g=0);var p=n?g*r*d/n:0,m=r?g*-n*u/r:0,y=(s+c)/2+Math.cos(a)*p-Math.sin(a)*m,C=(l+A)/2+Math.sin(a)*p+Math.cos(a)*m,w=[(u-p)/r,(d-m)/n],B=[(-1*u-p)/r,(-1*d-m)/n],x=jue([1,0],w),M=jue(w,B);return fY(w,B)<=-1&&(M=Math.PI),fY(w,B)>=1&&(M=0),o===0&&M>0&&(M=M-2*Math.PI),o===1&&M<0&&(M=M+2*Math.PI),{cx:y,cy:C,rx:Oue(e,[c,A])?0:r,ry:Oue(e,[c,A])?0:n,startAngle:x,endAngle:x+M,xRotation:a,arcFlag:i,sweepFlag:o}}var AQ=Math.sin,uQ=Math.cos,aG=Math.atan2,T2=Math.PI;function TTe(e,t,r,n,a,i,o){var s=t.stroke,l=t.lineWidth,c=r-a,A=n-i,u=aG(A,c),d=new cG({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*uQ(T2/6)+","+10*AQ(T2/6)+" L0,0 L"+10*uQ(T2/6)+",-"+10*AQ(T2/6),stroke:s,lineWidth:l}});d.translate(a,i),d.rotateAtPoint(a,i,u),e.set(o?"startArrowShape":"endArrowShape",d)}function QTe(e,t,r,n,a,i,o){var s=t.startArrow,l=t.endArrow,c=t.stroke,A=t.lineWidth,u=o?s:l,d=u.d,f=u.fill,h=u.stroke,g=u.lineWidth,p=Hy(u,["d","fill","stroke","lineWidth"]),m=r-a,y=n-i,C=aG(y,m);d&&(a=a-uQ(C)*d,i=i-AQ(C)*d);var w=new cG({type:"path",canvas:e.get("canvas"),isArrowShape:!0,attrs:nr(nr({},p),{stroke:h||c,lineWidth:g||A,fill:f})});w.translate(a,i),w.rotateAtPoint(a,i,C),e.set(o?"startArrowShape":"endArrowShape",w)}function Fv(e,t,r,n,a){var i=aG(n-t,r-e);return{dx:uQ(i)*a,dy:AQ(i)*a}}function iG(e,t,r,n,a,i){typeof t.startArrow=="object"?QTe(e,t,r,n,a,i,!0):t.startArrow?TTe(e,t,r,n,a,i,!0):e.set("startArrowShape",null)}function oG(e,t,r,n,a,i){typeof t.endArrow=="object"?QTe(e,t,r,n,a,i,!1):t.endArrow?TTe(e,t,r,n,a,i,!1):e.set("startArrowShape",null)}var zue={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function gy(e,t){var r=t.attr();for(var n in r){var a=r[n],i=zue[n]?zue[n]:n;i==="matrix"&&a?e.transform(a[0],a[1],a[3],a[4],a[6],a[7]):i==="lineDash"&&e.setLineDash?sa(a)&&e.setLineDash(a):(i==="strokeStyle"||i==="fillStyle"?a=VTt(e,t,a):i==="globalAlpha"&&(a=a*e.globalAlpha),e[i]=a)}}function gY(e,t,r){for(var n=0;n<t.length;n++){var a=t[n];a.cfg.visible?a.draw(e,r):a.skipDraw()}}function WTt(e,t,r){var n=e.get("refreshElements");wr(n,function(a){if(a!==e)for(var i=a.cfg.parent;i&&i!==e&&!i.cfg.refresh;)i.cfg.refresh=!0,i=i.cfg.parent}),n[0]===e?sG(t):pY(t,r)}function pY(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.cfg.visible)if(n.cfg.hasChanged)n.cfg.refresh=!0,n.isGroup()&&sG(n.cfg.children);else if(n.cfg.refresh)n.isGroup()&&pY(n.cfg.children,t);else{var a=XTt(n,t);n.cfg.refresh=a,a&&n.isGroup()&&pY(n.cfg.children,t)}}}function DTe(e){for(var t=0;t<e.length;t++){var r=e[t];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&DTe(r.cfg.children)}}function sG(e,t){for(var r=0;r<e.length;r++){var n=e[r];n.cfg.visible&&(n.cfg.refresh=!0,n.isGroup()&&sG(n.get("children")))}}function XTt(e,t){var r=e.cfg.cacheCanvasBBox,n=e.cfg.isInView&&r&&zB(r,t);return n}function FTe(e,t,r,n){var a=r.path,i=r.startArrow,o=r.endArrow;if(a){var s=[0,0],l=[0,0],c={dx:0,dy:0};t.beginPath();for(var A=0;A<a.length;A++){var u=a[A],d=u[0];if(A===0&&i&&i.d){var f=e.getStartTangent();c=Fv(f[0][0],f[0][1],f[1][0],f[1][1],i.d)}else if(A===a.length-2&&a[A+1][0]==="Z"&&o&&o.d){var h=a[A+1];if(h[0]==="Z"){var f=e.getEndTangent();c=Fv(f[0][0],f[0][1],f[1][0],f[1][1],o.d)}}else if(A===a.length-1&&o&&o.d&&a[0]!=="Z"){var f=e.getEndTangent();c=Fv(f[0][0],f[0][1],f[1][0],f[1][1],o.d)}var g=c.dx,p=c.dy;switch(d){case"M":t.moveTo(u[1]-g,u[2]-p),l=[u[1],u[2]];break;case"L":t.lineTo(u[1]-g,u[2]-p);break;case"Q":t.quadraticCurveTo(u[1],u[2],u[3]-g,u[4]-p);break;case"C":t.bezierCurveTo(u[1],u[2],u[3],u[4],u[5]-g,u[6]-p);break;case"A":{var m=void 0;n?(m=n[A],m||(m=hY(s,u),n[A]=m)):m=hY(s,u);var y=m.cx,C=m.cy,w=m.rx,B=m.ry,x=m.startAngle,M=m.endAngle,S=m.xRotation,R=m.sweepFlag;if(t.ellipse)t.ellipse(y,C,w,B,S,x,M,1-R);else{var b=w>B?w:B,T=w>B?1:w/B,D=w>B?B/w:1;t.translate(y,C),t.rotate(S),t.scale(T,D),t.arc(0,0,b,x,M,1-R),t.scale(1/T,1/D),t.rotate(-S),t.translate(-y,-C)}break}case"Z":t.closePath();break}if(d==="Z")s=l;else{var F=u.length;s=[u[F-2],u[F-1]]}}}}function NTe(e,t){var r=e.get("canvas");r&&(t==="remove"&&(e._cacheCanvasBBox=e.get("cacheCanvasBBox")),e.get("hasChanged")||(e.set("hasChanged",!0),e.cfg.parent&&e.cfg.parent.get("hasChanged")||(r.refreshElement(e,t,r),r.get("autoDraw")&&r.draw())))}function qTt(e){var t;if(e.destroyed)t=e._cacheCanvasBBox;else{var r=e.get("cacheCanvasBBox"),n=r&&!!(r.width&&r.height),a=e.getCanvasBBox(),i=a&&!!(a.width&&a.height);n&&i?t=zTt(r,a):n?t=r:i&&(t=a)}return t}function ZTt(e){if(!e.length)return null;var t=[],r=[],n=[],a=[];return wr(e,function(i){var o=qTt(i);o&&(t.push(o.minX),r.push(o.minY),n.push(o.maxX),a.push(o.maxY))}),{minX:iA(t),minY:iA(r),maxX:aA(n),maxY:aA(a)}}function $Tt(e,t){return!e||!t||!zB(e,t)?null:{minX:Math.max(e.minX,t.minX),minY:Math.max(e.minY,t.minY),maxX:Math.min(e.maxX,t.maxX),maxY:Math.min(e.maxY,t.maxY)}}var lG=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onCanvasChange=function(r){NTe(this,r)},t.prototype.getShapeBase=function(){return dQ},t.prototype.getGroupBase=function(){return t},t.prototype._applyClip=function(r,n){n&&(r.save(),gy(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},t.prototype.cacheCanvasBBox=function(){var r=this.cfg.children,n=[],a=[];wr(r,function(d){var f=d.cfg.cacheCanvasBBox;f&&d.cfg.isInView&&(n.push(f.minX,f.maxX),a.push(f.minY,f.maxY))});var i=null;if(n.length){var o=iA(n),s=aA(n),l=iA(a),c=aA(a);i={minX:o,minY:l,x:o,y:l,maxX:s,maxY:c,width:s-o,height:c-l};var A=this.cfg.canvas;if(A){var u=A.getViewRange();this.set("isInView",zB(i,u))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},t.prototype.draw=function(r,n){var a=this.cfg.children,i=n?this.cfg.refresh:!0;a.length&&i&&(r.save(),gy(r,this),this._applyClip(r,this.getClip()),gY(r,a,n),r.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},t})(w9),Iu=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},t.prototype.getShapeBase=function(){return dQ},t.prototype.getGroupBase=function(){return lG},t.prototype.onCanvasChange=function(r){NTe(this,r)},t.prototype.calculateBBox=function(){var r=this.get("type"),n=this.getHitLineWidth(),a=x9(r),i=a(this),o=n/2,s=i.x-o,l=i.y-o,c=i.x+i.width+o,A=i.y+i.height+o;return{x:s,minX:s,y:l,minY:l,width:i.width+n,height:i.height+n,maxX:c,maxY:A}},t.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},t.prototype.isStroke=function(){return!!this.attrs.stroke},t.prototype._applyClip=function(r,n){n&&(r.save(),gy(r,n),n.createPath(r),r.restore(),r.clip(),n._afterDraw())},t.prototype.draw=function(r,n){var a=this.cfg.clipShape;if(n){if(this.cfg.refresh===!1){this.set("hasChanged",!1);return}var i=this.getCanvasBBox();if(!zB(n,i)){this.set("hasChanged",!1),this.cfg.isInView&&this._afterDraw();return}}r.save(),gy(r,this),this._applyClip(r,a),this.drawPath(r),r.restore(),this._afterDraw()},t.prototype.getCanvasViewBox=function(){var r=this.cfg.canvas;return r?r.getViewRange():null},t.prototype.cacheCanvasBBox=function(){var r=this.getCanvasViewBox();if(r){var n=this.getCanvasBBox(),a=zB(n,r);this.set("isInView",a),a?this.set("cacheCanvasBBox",n):this.set("cacheCanvasBBox",null)}},t.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},t.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},t.prototype.drawPath=function(r){this.createPath(r),this.strokeAndFill(r),this.afterDrawPath(r)},t.prototype.fill=function(r){r.fill()},t.prototype.stroke=function(r){r.stroke()},t.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isFill()&&(!zr(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.isStroke()&&a>0&&(!zr(o)&&o!==1&&(r.globalAlpha=o),this.stroke(r)),this.afterDrawPath(r)},t.prototype.createPath=function(r){},t.prototype.afterDrawPath=function(r){},t.prototype.isInShape=function(r,n){var a=this.isStroke(),i=this.isFill(),o=this.getHitLineWidth();return this.isInStrokeOrPath(r,n,a,i,o)},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){return!1},t.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var r=this.attrs;return r.lineWidth+r.lineAppendWidth},t})(B9),eQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{x:0,y:0,r:0})},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),l=s.x,c=s.y,A=s.r,u=o/2,d=bTe(l,c,r,n);return i&&a?d<=A+u:i?d<=A:a?d>=A-u&&d<=A+u:!1},t.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.r;r.beginPath(),r.arc(a,i,o,0,Math.PI*2,!1),r.closePath()},t})(Iu);function Q2(e,t,r,n){return e/(r*r)+t/(n*n)}var tQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{x:0,y:0,rx:0,ry:0})},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),l=o/2,c=s.x,A=s.y,u=s.rx,d=s.ry,f=(r-c)*(r-c),h=(n-A)*(n-A);return i&&a?Q2(f,h,u+l,d+l)<=1:i?Q2(f,h,u,d)<=1:a?Q2(f,h,u-l,d-l)>=1&&Q2(f,h,u+l,d+l)<=1:!1},t.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.rx,s=n.ry;if(r.beginPath(),r.ellipse)r.ellipse(a,i,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,c=o>s?1:o/s,A=o>s?s/o:1;r.save(),r.translate(a,i),r.scale(c,A),r.arc(0,0,l,0,Math.PI*2),r.restore(),r.closePath()}},t})(Iu);function Lue(e){return e instanceof HTMLElement&&Pa(e.nodeName)&&e.nodeName.toUpperCase()==="CANVAS"}var rQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{x:0,y:0,width:0,height:0})},t.prototype.initAttrs=function(r){this._setImage(r.img)},t.prototype.isStroke=function(){return!1},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._afterLoading=function(){if(this.get("toDraw")===!0){var r=this.get("canvas");r?r.draw():this.createPath(this.get("context"))}},t.prototype._setImage=function(r){var n=this,a=this.attrs;if(Pa(r)){var i=new Image;i.onload=function(){if(n.destroyed)return!1;n.attr("img",i),n.set("loading",!1),n._afterLoading();var o=n.get("callback");o&&o.call(n)},i.crossOrigin="Anonymous",i.src=r,this.set("loading",!0)}else r instanceof Image?(a.width||(a.width=r.width),a.height||(a.height=r.height)):Lue(r)&&(a.width||(a.width=Number(r.getAttribute("width"))),a.height||(a.height,Number(r.getAttribute("height"))))},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),r==="img"&&this._setImage(n)},t.prototype.createPath=function(r){if(this.get("loading")){this.set("toDraw",!0),this.set("context",r);return}var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,l=n.sx,c=n.sy,A=n.swidth,u=n.sheight,d=n.img;(d instanceof Image||Lue(d))&&(!zr(l)&&!zr(c)&&!zr(A)&&!zr(u)?r.drawImage(d,l,c,A,u,a,i,o,s):r.drawImage(d,a,i,o,s))},t})(Iu);function hg(e,t,r,n,a,i,o){var s=Math.min(e,r),l=Math.max(e,r),c=Math.min(t,n),A=Math.max(t,n),u=a/2;return i>=s-u&&i<=l+u&&o>=c-u&&o<=A+u?il.pointToLine(e,t,r,n,i,o)<=a/2:!1}var nQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(r){this.setArrow()},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),this.setArrow()},t.prototype.setArrow=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2,s=r.startArrow,l=r.endArrow;s&&iG(this,r,i,o,n,a),l&&oG(this,r,n,a,i,o)},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){if(!a||!o)return!1;var s=this.attr(),l=s.x1,c=s.y1,A=s.x2,u=s.y2;return hg(l,c,A,u,o,r,n)},t.prototype.createPath=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.startArrow,c=n.endArrow,A={dx:0,dy:0},u={dx:0,dy:0};l&&l.d&&(A=Fv(a,i,o,s,n.startArrow.d)),c&&c.d&&(u=Fv(a,i,o,s,n.endArrow.d)),r.beginPath(),r.moveTo(a+A.dx,i+A.dy),r.lineTo(o-u.dx,s-u.dy)},t.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},t.prototype.getTotalLength=function(){var r=this.attr(),n=r.x1,a=r.y1,i=r.x2,o=r.y2;return il.length(n,a,i,o)},t.prototype.getPoint=function(r){var n=this.attr(),a=n.x1,i=n.y1,o=n.x2,s=n.y2;return il.pointAt(a,i,o,s,r)},t})(Iu),aQt={circle:function(e,t,r){return[["M",e-r,t],["A",r,r,0,1,0,e+r,t],["A",r,r,0,1,0,e-r,t]]},square:function(e,t,r){return[["M",e-r,t-r],["L",e+r,t-r],["L",e+r,t+r],["L",e-r,t+r],["Z"]]},diamond:function(e,t,r){return[["M",e-r,t],["L",e,t-r],["L",e+r,t],["L",e,t+r],["Z"]]},triangle:function(e,t,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",e-r,t+n],["L",e,t-n],["L",e+r,t+n],["Z"]]},"triangle-down":function(e,t,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",e-r,t-n],["L",e+r,t-n],["L",e,t+n],["Z"]]}},iQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.initAttrs=function(r){this._resetParamsCache()},t.prototype._resetParamsCache=function(){this.set("paramsCache",{})},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),["symbol","x","y","r","radius"].indexOf(r)!==-1&&this._resetParamsCache()},t.prototype.isOnlyHitBox=function(){return!0},t.prototype._getR=function(r){return zr(r.r)?r.radius:r.r},t.prototype._getPath=function(){var r=this.attr(),n=r.x,a=r.y,i=r.symbol||"circle",o=this._getR(r),s,l;if(Sa(i))s=i,l=s(n,a,o),l=AD(l);else{if(s=t.Symbols[i],!s)return console.warn(i+" marker is not supported."),null;l=s(n,a,o)}return l},t.prototype.createPath=function(r){var n=this._getPath(),a=this.get("paramsCache");FTe(this,r,{path:n},a)},t.Symbols=aQt,t})(Iu);function _Te(e,t,r){var n=sD();return e.createPath(n),n.isPointInPath(t,r)}var oQt=1e-6;function pj(e){return Math.abs(e)<oQt?0:e<0?-1:1}function sQt(e,t,r){return(r[0]-e[0])*(t[1]-e[1])===(t[0]-e[0])*(r[1]-e[1])&&Math.min(e[0],t[0])<=r[0]&&r[0]<=Math.max(e[0],t[0])&&Math.min(e[1],t[1])<=r[1]&&r[1]<=Math.max(e[1],t[1])}function kTe(e,t,r){var n=!1,a=e.length;if(a<=2)return!1;for(var i=0;i<a;i++){var o=e[i],s=e[(i+1)%a];if(sQt(o,s,[t,r]))return!0;pj(o[1]-r)>0!=pj(s[1]-r)>0&&pj(t-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function xw(e,t,r,n,a,i,o,s){var l=(Math.atan2(s-t,o-e)+Math.PI*2)%(Math.PI*2);if(l<n||l>a)return!1;var c={x:e+r*Math.cos(l),y:t+r*Math.sin(l)};return bTe(c.x,c.y,o,s)<=i/2}var lQt=Hx;function cQt(e){for(var t=!1,r=e.length,n=0;n<r;n++){var a=e[n],i=a[0];if(i==="C"||i==="A"||i==="Q"){t=!0;break}}return t}function AQt(e,t,r,n,a){for(var i=!1,o=t/2,s=0;s<e.length;s++){var l=e[s],c=l.currentPoint,A=l.params,u=l.prePoint,d=l.box;if(!(d&&!Ev(d.x-o,d.y-o,d.width+t,d.height+t,r,n))){switch(l.command){case"L":case"Z":i=hg(u[0],u[1],c[0],c[1],t,r,n);break;case"Q":var f=M9.pointDistance(u[0],u[1],A[1],A[2],A[3],A[4],r,n);i=f<=t/2;break;case"C":var h=OE.pointDistance(u[0],u[1],A[1],A[2],A[3],A[4],A[5],A[6],r,n,a);i=h<=t/2;break;case"A":var g=l.arcParams,p=g.cx,m=g.cy,y=g.rx,C=g.ry,w=g.startAngle,B=g.endAngle,x=g.xRotation,M=[r,n,1],S=y>C?y:C,R=y>C?1:y/C,b=y>C?C/y:1,T=lQt(null,[["t",-p,-m],["r",-x],["s",1/R,1/b]]);dy(M,M,T),i=xw(0,0,S,w,B,t,M[0],M[1]);break}if(i)break}}return i}function uQt(e){for(var t=e.length,r=[],n=[],a=[],i=0;i<t;i++){var o=e[i],s=o[0];s==="M"?(a.length&&(n.push(a),a=[]),a.push([o[1],o[2]])):s==="Z"?a.length&&(r.push(a),a=[]):a.push([o[1],o[2]])}return a.length>0&&n.push(a),{polygons:r,polylines:n}}const D2=nr({hasArc:cQt,extractPolygons:uQt,isPointInStroke:AQt},A9);function Yue(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];if(n=kTe(i,t,r),n)break}return n}var cG=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(r){this._setPathArr(r.path),this.setArrow()},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),r==="path"&&this._setPathArr(n),this.setArrow()},t.prototype._setPathArr=function(r){this.attrs.path=AD(r);var n=D2.hasArc(r);this.set("hasArc",n),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},t.prototype.getSegments=function(){var r=this.get("segements");return r||(r=S9(this.attr("path")),this.set("segments",r)),r},t.prototype.setArrow=function(){var r=this.attr(),n=r.startArrow,a=r.endArrow;if(n){var i=this.getStartTangent();iG(this,r,i[0][0],i[0][1],i[1][0],i[1][1])}if(a){var i=this.getEndTangent();oG(this,r,i[0][0],i[0][1],i[1][0],i[1][1])}},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.getSegments(),l=this.get("hasArc"),c=!1;if(a){var A=this.getTotalLength();c=D2.isPointInStroke(s,o,r,n,A)}if(!c&&i)if(l)c=_Te(this,r,n);else{var u=this.attr("path"),d=D2.extractPolygons(u);c=Yue(d.polygons,r,n)||Yue(d.polylines,r,n)}return c},t.prototype.createPath=function(r){var n=this.attr(),a=this.get("paramsCache");FTe(this,r,n,a)},t.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},t.prototype.getTotalLength=function(){var r=this.get("totalLength");return zr(r)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):r},t.prototype.getPoint=function(r){var n=this.get("tCache");n||(this._calculateCurve(),this._setTcache(),n=this.get("tCache"));var a,i,o=this.get("curve");if(!n||n.length===0)return o?{x:o[0][1],y:o[0][2]}:null;wr(n,function(A,u){r>=A[0]&&r<=A[1]&&(a=(r-A[0])/(A[1]-A[0]),i=u)});var s=o[i];if(zr(s)||zr(i))return null;var l=s.length,c=o[i+1];return OE.pointAt(s[l-2],s[l-1],c[1],c[2],c[3],c[4],c[5],c[6],a)},t.prototype._calculateCurve=function(){var r=this.attr().path;this.set("curve",D2.pathToCurve(r))},t.prototype._setTcache=function(){var r=0,n=0,a=[],i,o,s,l,c=this.get("curve");if(c){if(wr(c,function(A,u){s=c[u+1],l=A.length,s&&(r+=OE.length(A[l-2],A[l-1],s[1],s[2],s[3],s[4],s[5],s[6])||0)}),this.set("totalLength",r),r===0){this.set("tCache",[]);return}wr(c,function(A,u){s=c[u+1],l=A.length,s&&(i=[],i[0]=n/r,o=OE.length(A[l-2],A[l-1],s[1],s[2],s[3],s[4],s[5],s[6]),n+=o||0,i[1]=n/r,a.push(i))}),this.set("tCache",a)}},t.prototype.getStartTangent=function(){var r=this.getSegments(),n;if(r.length>1){var a=r[0].currentPoint,i=r[1].currentPoint,o=r[1].startTangent;n=[],o?(n.push([a[0]-o[0],a[1]-o[1]]),n.push([a[0],a[1]])):(n.push([i[0],i[1]]),n.push([a[0],a[1]]))}return n},t.prototype.getEndTangent=function(){var r=this.getSegments(),n=r.length,a;if(n>1){var i=r[n-2].currentPoint,o=r[n-1].currentPoint,s=r[n-1].endTangent;a=[],s?(a.push([o[0]-s[0],o[1]-s[1]]),a.push([o[0],o[1]])):(a.push([i[0],i[1]]),a.push([o[0],o[1]]))}return a},t})(Iu);function PTe(e,t,r,n,a){var i=e.length;if(i<2)return!1;for(var o=0;o<i-1;o++){var s=e[o][0],l=e[o][1],c=e[o+1][0],A=e[o+1][1];if(hg(s,l,c,A,t,r,n))return!0}if(a){var u=e[0],d=e[i-1];if(hg(u[0],u[1],d[0],d[1],t,r,n))return!0}return!1}var dQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr().points,l=!1;return a&&(l=PTe(s,o,r,n,!0)),!l&&i&&(l=kTe(s,r,n)),l},t.prototype.createPath=function(r){var n=this.attr(),a=n.points;if(!(a.length<2)){r.beginPath();for(var i=0;i<a.length;i++){var o=a[i];i===0?r.moveTo(o[0],o[1]):r.lineTo(o[0],o[1])}r.closePath()}},t})(Iu),fQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{startArrow:!1,endArrow:!1})},t.prototype.initAttrs=function(r){this.setArrow()},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),this.setArrow(),["points"].indexOf(r)!==-1&&this._resetCache()},t.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},t.prototype.setArrow=function(){var r=this.attr(),n=this.attrs,a=n.points,i=n.startArrow,o=n.endArrow,s=a.length,l=a[0][0],c=a[0][1],A=a[s-1][0],u=a[s-1][1];i&&iG(this,r,a[1][0],a[1][1],l,c),o&&oG(this,r,a[s-2][0],a[s-2][1],A,u)},t.prototype.isFill=function(){return!1},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){if(!a||!o)return!1;var s=this.attr().points;return PTe(s,o,r,n,!1)},t.prototype.isStroke=function(){return!0},t.prototype.createPath=function(r){var n=this.attr(),a=n.points,i=n.startArrow,o=n.endArrow,s=a.length;if(!(a.length<2)){var l=a[0][0],c=a[0][1],A=a[s-1][0],u=a[s-1][1];if(i&&i.d){var d=Fv(l,c,a[1][0],a[1][1],i.d);l+=d.dx,c+=d.dy}if(o&&o.d){var d=Fv(a[s-2][0],a[s-2][1],A,u,o.d);A-=d.dx,u-=d.dy}r.beginPath(),r.moveTo(l,c);for(var f=0;f<s-1;f++){var h=a[f];r.lineTo(h[0],h[1])}r.lineTo(A,u)}},t.prototype.afterDrawPath=function(r){var n=this.get("startArrowShape"),a=this.get("endArrowShape");n&&n.draw(r),a&&a.draw(r)},t.prototype.getTotalLength=function(){var r=this.attr().points,n=this.get("totalLength");return zr(n)?(this.set("totalLength",I9.length(r)),this.get("totalLength")):n},t.prototype.getPoint=function(r){var n=this.attr().points,a=this.get("tCache");a||(this._setTcache(),a=this.get("tCache"));var i,o;return wr(a,function(s,l){r>=s[0]&&r<=s[1]&&(i=(r-s[0])/(s[1]-s[0]),o=l)}),il.pointAt(n[o][0],n[o][1],n[o+1][0],n[o+1][1],i)},t.prototype._setTcache=function(){var r=this.attr().points;if(!(!r||r.length===0)){var n=this.getTotalLength();if(!(n<=0)){var a=0,i=[],o,s;wr(r,function(l,c){r[c+1]&&(o=[],o[0]=a/n,s=il.length(l[0],l[1],r[c+1][0],r[c+1][1]),a+=s,o[1]=a/n,i.push(o))}),this.set("tCache",i)}}},t.prototype.getStartTangent=function(){var r=this.attr().points,n=[];return n.push([r[1][0],r[1][1]]),n.push([r[0][0],r[0][1]]),n},t.prototype.getEndTangent=function(){var r=this.attr().points,n=r.length-1,a=[];return a.push([r[n-1][0],r[n-1][1]]),a.push([r[n][0],r[n][1]]),a},t})(Iu);function hQt(e,t,r,n,a,i,o){var s=a/2;return Ev(e-s,t-s,r,a,i,o)||Ev(e+r-s,t-s,a,n,i,o)||Ev(e+s,t+n-s,r,a,i,o)||Ev(e-s,t+s,a,n,i,o)}function gQt(e,t,r,n,a,i,o,s){return hg(e+a,t,e+r-a,t,i,o,s)||hg(e+r,t+a,e+r,t+n-a,i,o,s)||hg(e+r-a,t+n,e+a,t+n,i,o,s)||hg(e,t+n-a,e,t+a,i,o,s)||xw(e+r-a,t+a,a,1.5*Math.PI,2*Math.PI,i,o,s)||xw(e+r-a,t+n-a,a,0,.5*Math.PI,i,o,s)||xw(e+a,t+n-a,a,.5*Math.PI,Math.PI,i,o,s)||xw(e+a,t+a,a,Math.PI,1.5*Math.PI,i,o,s)}var pQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{x:0,y:0,width:0,height:0,radius:0})},t.prototype.isInStrokeOrPath=function(r,n,a,i,o){var s=this.attr(),l=s.x,c=s.y,A=s.width,u=s.height,d=s.radius;if(d){var h=!1;return a&&(h=gQt(l,c,A,u,d,o,r,n)),!h&&i&&(h=_Te(this,r,n)),h}else{var f=o/2;if(i&&a)return Ev(l-f,c-f,A+f,u+f,r,n);if(i)return Ev(l,c,A,u,r,n);if(a)return hQt(l,c,A,u,o,r,n)}},t.prototype.createPath=function(r){var n=this.attr(),a=n.x,i=n.y,o=n.width,s=n.height,l=n.radius;if(r.beginPath(),l===0)r.rect(a,i,o,s);else{var c=JTt(l),A=c[0],u=c[1],d=c[2],f=c[3];r.moveTo(a+A,i),r.lineTo(a+o-u,i),u!==0&&r.arc(a+o-u,i+u,u,-Math.PI/2,0),r.lineTo(a+o,i+s-d),d!==0&&r.arc(a+o-d,i+s-d,d,0,Math.PI/2),r.lineTo(a+f,i+s),f!==0&&r.arc(a+f,i+s-f,f,Math.PI/2,Math.PI),r.lineTo(a,i+A),A!==0&&r.arc(a+A,i+A,A,Math.PI,Math.PI*1.5),r.closePath()}},t})(Iu),vQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultAttrs=function(){var r=e.prototype.getDefaultAttrs.call(this);return nr(nr({},r),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},t.prototype.isOnlyHitBox=function(){return!0},t.prototype.initAttrs=function(r){this._assembleFont(),r.text&&this._setText(r.text)},t.prototype._assembleFont=function(){var r=this.attrs;r.font=cD(r)},t.prototype._setText=function(r){var n=null;Pa(r)&&r.indexOf(`
`)!==-1&&(n=r.split(`
`)),this.set("textArr",n)},t.prototype.onAttrChange=function(r,n,a){e.prototype.onAttrChange.call(this,r,n,a),r.startsWith("font")&&this._assembleFont(),r==="text"&&this._setText(n)},t.prototype._getSpaceingY=function(){var r=this.attrs,n=r.lineHeight,a=r.fontSize*1;return n?n-a:a*.14},t.prototype._drawTextArr=function(r,n,a){var i=this.attrs,o=i.textBaseline,s=i.x,l=i.y,c=i.fontSize*1,A=this._getSpaceingY(),u=lD(i.text,i.fontSize,i.lineHeight),d;wr(n,function(f,h){d=l+h*(A+c)-u+c,o==="middle"&&(d+=u-c-(u-c)/2),o==="top"&&(d+=u-c),zr(f)||(a?r.fillText(f,s,d):r.strokeText(f,s,d))})},t.prototype._drawText=function(r,n){var a=this.attr(),i=a.x,o=a.y,s=this.get("textArr");if(s)this._drawTextArr(r,s,n);else{var l=a.text;zr(l)||(n?r.fillText(l,i,o):r.strokeText(l,i,o))}},t.prototype.strokeAndFill=function(r){var n=this.attrs,a=n.lineWidth,i=n.opacity,o=n.strokeOpacity,s=n.fillOpacity;this.isStroke()&&a>0&&(!zr(o)&&o!==1&&(r.globalAlpha=i),this.stroke(r)),this.isFill()&&(!zr(s)&&s!==1?(r.globalAlpha=s,this.fill(r),r.globalAlpha=i):this.fill(r)),this.afterDrawPath(r)},t.prototype.fill=function(r){this._drawText(r,!0)},t.prototype.stroke=function(r){this._drawText(r,!1)},t})(Iu);function mQt(e,t){if(t){var r=iD(t);return Pf(r,e)}return e}function OTe(e,t,r){var n=e.getTotalMatrix();if(n){var a=mQt([t,r,1],n),i=a[0],o=a[1];return[i,o]}return[t,r]}function Uue(e,t,r){if(e.isCanvas&&e.isCanvas())return!0;if(!QB(e)||e.cfg.isInView===!1)return!1;if(e.cfg.clipShape){var n=OTe(e,t,r),a=n[0],i=n[1];if(e.isClipped(a,i))return!1}var o=e.cfg.cacheCanvasBBox||e.getCanvasBBox();return t>=o.minX&&t<=o.maxX&&r>=o.minY&&r<=o.maxY}function jTe(e,t,r){if(!Uue(e,t,r))return null;for(var n=null,a=e.getChildren(),i=a.length,o=i-1;o>=0;o--){var s=a[o];if(s.isGroup())n=jTe(s,t,r);else if(Uue(s,t,r)){var l=s,c=OTe(s,t,r),A=c[0],u=c[1];l.isInShape(A,u)&&(n=s)}if(n)break}return n}var EQt=(function(e){en(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getDefaultCfg=function(){var r=e.prototype.getDefaultCfg.call(this);return r.renderer="canvas",r.autoDraw=!0,r.localRefresh=!0,r.refreshElements=[],r.clipView=!0,r.quickHit=!1,r},t.prototype.onCanvasChange=function(r){(r==="attr"||r==="sort"||r==="changeSize")&&(this.set("refreshElements",[this]),this.draw())},t.prototype.getShapeBase=function(){return dQ},t.prototype.getGroupBase=function(){return lG},t.prototype.getPixelRatio=function(){var r=this.get("pixelRatio")||jTt();return r>=1?Math.ceil(r):1},t.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},t.prototype.createDom=function(){var r=document.createElement("canvas"),n=r.getContext("2d");return this.set("context",n),r},t.prototype.setDOMSize=function(r,n){e.prototype.setDOMSize.call(this,r,n);var a=this.get("context"),i=this.get("el"),o=this.getPixelRatio();i.width=o*r,i.height=o*n,o>1&&a.scale(o,o)},t.prototype.clear=function(){e.prototype.clear.call(this),this._clearFrame();var r=this.get("context"),n=this.get("el");r.clearRect(0,0,n.width,n.height)},t.prototype.getShape=function(r,n){var a;return this.get("quickHit")?a=jTe(this,r,n):a=e.prototype.getShape.call(this,r,n,null),a},t.prototype._getRefreshRegion=function(){var r=this.get("refreshElements"),n=this.getViewRange(),a;if(r.length&&r[0]===this)a=n;else if(a=ZTt(r),a){a.minX=Math.floor(a.minX),a.minY=Math.floor(a.minY),a.maxX=Math.ceil(a.maxX),a.maxY=Math.ceil(a.maxY),a.maxY+=1;var i=this.get("clipView");i&&(a=$Tt(a,n))}return a},t.prototype.refreshElement=function(r){var n=this.get("refreshElements");n.push(r)},t.prototype._clearFrame=function(){var r=this.get("drawFrame");r&&(y2e(r),this.set("drawFrame",null),this.set("refreshElements",[]))},t.prototype.draw=function(){var r=this.get("drawFrame");this.get("autoDraw")&&r||this._startDraw()},t.prototype._drawAll=function(){var r=this.get("context"),n=this.get("el"),a=this.getChildren();r.clearRect(0,0,n.width,n.height),gy(r,this),gY(r,a),this.set("refreshElements",[])},t.prototype._drawRegion=function(){var r=this.get("context"),n=this.get("refreshElements"),a=this.getChildren(),i=this._getRefreshRegion();i?(r.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.save(),r.beginPath(),r.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),r.clip(),gy(r,this),WTt(this,a,i),gY(r,a,i),r.restore()):n.length&&DTe(n),wr(n,function(o){o.get("hasChanged")&&o.set("hasChanged",!1)}),this.set("refreshElements",[])},t.prototype._startDraw=function(){var r=this,n=this.get("drawFrame"),a=this.get("drawFrameCallback");n||(n=E2e(function(){r.get("localRefresh")?r._drawRegion():r._drawAll(),r.set("drawFrame",null),a&&a()}),this.set("drawFrame",n))},t.prototype.skipDraw=function(){},t.prototype.removeDom=function(){var r=this.get("el");r.width=0,r.height=0,r.parentNode.removeChild(r)},t})(C9),yQt="0.5.12";const CQt=Object.freeze(Object.defineProperty({__proto__:null,AbstractCanvas:C9,AbstractGroup:w9,AbstractShape:B9,Base:rD,Canvas:EQt,Event:tD,Group:lG,PathUtil:A9,Shape:dQ,assembleFont:cD,getArcParams:hY,getBBoxMethod:x9,getOffScreenContext:sD,getTextHeight:lD,invert:iD,isAllowCapture:QB,multiplyVec2:Pf,registerBBox:fA,registerEasing:QSe,version:yQt},Symbol.toStringTag,{value:"Module"})),wQt=Ya(CQt);var Hue;function BQt(){if(Hue)return LC;Hue=1,Object.defineProperty(LC,"__esModule",{value:!0}),LC.sectorPathUpdate=void 0;var e=Mr,t=wQt,r=Br,n=Bc();function a(l,c){var A,u=(0,t.getArcParams)(l,c),d=u.startAngle,f=u.endAngle;return!(0,r.isNumberEqual)(d,-Math.PI*.5)&&d<-Math.PI*.5&&(d+=Math.PI*2),!(0,r.isNumberEqual)(f,-Math.PI*.5)&&f<-Math.PI*.5&&(f+=Math.PI*2),c[5]===0&&(A=[f,d],d=A[0],f=A[1]),(0,r.isNumberEqual)(d,Math.PI*1.5)&&(d=Math.PI*-.5),(0,r.isNumberEqual)(f,Math.PI*-.5)&&(f=Math.PI*1.5),{startAngle:d,endAngle:f}}function i(l){var c;return l[0]==="M"||l[0]==="L"?c=[l[1],l[2]]:(l[0]==="a"||l[0]==="A"||l[0]==="C")&&(c=[l[l.length-2],l[l.length-1]]),c}function o(l){var c,A,u,d=l.filter(function(T){return T[0]==="A"||T[0]==="a"});if(d.length===0)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var f=d[0],h=d.length>1?d[1]:d[0],g=l.indexOf(f),p=l.indexOf(h),m=i(l[g-1]),y=i(l[p-1]),C=a(m,f),w=C.startAngle,B=C.endAngle,x=a(y,h),M=x.startAngle,S=x.endAngle;(0,r.isNumberEqual)(w,M)&&(0,r.isNumberEqual)(B,S)?(A=w,u=B):(A=Math.min(w,M),u=Math.max(B,S));var R=f[1],b=d[d.length-1][1];return R<b?(c=[b,R],R=c[0],b=c[1]):R===b&&(b=0),{startAngle:A,endAngle:u,radius:R,innerRadius:b}}function s(l,c,A){var u=A.toAttrs,d=A.coordinate,f=u.path||[],h=f.map(function(b){return b[0]});if(!(f.length<1)){var g=o(f),p=g.startAngle,m=g.endAngle,y=g.radius,C=g.innerRadius,w=o(l.attr("path")),B=w.startAngle,x=w.endAngle,M=d.getCenter(),S=p-B,R=m-x;if(S===0&&R===0){l.attr("path",f);return}l.animate(function(b){var T=B+b*S,D=x+b*R;return(0,e.__assign)((0,e.__assign)({},u),{path:(0,r.isEqual)(h,["M","A","A","Z"])?(0,n.getArcPath)(M.x,M.y,y,T,D):(0,n.getSectorPath)(M.x,M.y,y,T,D,C)})},(0,e.__assign)((0,e.__assign)({},c),{callback:function(){l.attr("path",f)}}))}}return LC.sectorPathUpdate=s,LC}var YC={},Gue;function xQt(){if(Gue)return YC;Gue=1,Object.defineProperty(YC,"__esModule",{value:!0}),YC.waveIn=void 0;var e=Mr,t=uu();function r(n,a,i){var o=(0,t.getCoordinateClipCfg)(i.coordinate,20),s=o.type,l=o.startState,c=o.endState,A=n.setClip({type:s,attrs:l});A.animate(c,(0,e.__assign)((0,e.__assign)({},a),{callback:function(){n&&!n.get("destroyed")&&n.set("clipShape",null),A.remove(!0)}}))}return YC.waveIn=r,YC}var Hp={},Kue;function MQt(){if(Kue)return Hp;Kue=1,Object.defineProperty(Hp,"__esModule",{value:!0}),Hp.zoomOut=Hp.zoomIn=void 0;var e=Mr,t=Xg,r=Br;function n(o,s,l){if(o.isGroup())(0,r.each)(o.getChildren(),function(f){n(f,s,l)});else{var c=o.getBBox(),A=(c.minX+c.maxX)/2,u=(c.minY+c.maxY)/2;if(o.applyToMatrix([A,u,1]),l==="zoomIn"){var d=t.ext.transform(o.getMatrix(),[["t",-A,-u],["s",.01,.01],["t",A,u]]);o.setMatrix(d),o.animate({matrix:t.ext.transform(o.getMatrix(),[["t",-A,-u],["s",100,100],["t",A,u]])},s)}else o.animate({matrix:t.ext.transform(o.getMatrix(),[["t",-A,-u],["s",.01,.01],["t",A,u]])},(0,e.__assign)((0,e.__assign)({},s),{callback:function(){o.remove(!0)}}))}}function a(o,s,l){n(o,s,"zoomIn")}Hp.zoomIn=a;function i(o,s,l){n(o,s,"zoomOut")}return Hp.zoomOut=i,Hp}var Vue;function IQt(){if(Vue)return gj;Vue=1,Object.defineProperty(gj,"__esModule",{value:!0});var e=FTt(),t=_Tt(),r=kTt(),n=PTt(),a=OTt(),i=BQt(),o=xQt(),s=MQt(),l=dY();return(0,l.registerAnimation)("fade-in",e.fadeIn),(0,l.registerAnimation)("fade-out",e.fadeOut),(0,l.registerAnimation)("grow-in-x",t.growInX),(0,l.registerAnimation)("grow-in-xy",t.growInXY),(0,l.registerAnimation)("grow-in-y",t.growInY),(0,l.registerAnimation)("scale-in-x",a.scaleInX),(0,l.registerAnimation)("scale-in-y",a.scaleInY),(0,l.registerAnimation)("wave-in",o.waveIn),(0,l.registerAnimation)("zoom-in",s.zoomIn),(0,l.registerAnimation)("zoom-out",s.zoomOut),(0,l.registerAnimation)("position-update",n.positionUpdate),(0,l.registerAnimation)("sector-path-update",i.sectorPathUpdate),(0,l.registerAnimation)("path-in",r.pathIn),gj}var vj={},mj={},Jue;function bQt(){return Jue||(Jue=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var t={100:"#000",25:"#BFBFBF",6:"#F0F0F0"},r={100:"#FFFFFF",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626"},n=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],a=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],i=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],o=function(s){s===void 0&&(s={});var l=s.backgroundColor,c=l===void 0?"#141414":l,A=s.subColor,u=A===void 0?"rgba(255,255,255,0.05)":A,d=s.paletteQualitative10,f=d===void 0?n:d,h=s.paletteQualitative20,g=h===void 0?a:h,p=s.paletteSemanticRed,m=p===void 0?"#F4664A":p,y=s.paletteSemanticGreen,C=y===void 0?"#30BF78":y,w=s.paletteSemanticYellow,B=w===void 0?"#FAAD14":w,x=s.paletteSequence,M=x===void 0?i:x,S=s.fontFamily,R=S===void 0?`"Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
    "Noto Color Emoji"`:S,b=s.brandColor,T=b===void 0?f[0]:b;return{backgroundColor:c,brandColor:T,subColor:u,paletteQualitative10:f,paletteQualitative20:g,paletteSemanticRed:m,paletteSemanticGreen:C,paletteSemanticYellow:B,paletteSequence:M,fontFamily:R,axisLineBorderColor:r[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:r[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:r[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:r[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:r[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:r[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:r[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:n[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:r[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:r[45],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:r[45],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:r[65],legendPageNavigatorTextFontSize:12,sliderRailFillColor:r[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:r[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:t[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:t[25],annotationArcBorderColor:r[15],annotationArcBorder:1,annotationLineBorderColor:r[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:r[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:r[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:r[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:r[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:r[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:t[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:r[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:t[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:r[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:n[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:t[100],pointBorderOpacity:1,pointActiveBorderColor:r[100],pointSelectedBorder:2,pointSelectedBorderColor:r[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:n[0],hollowPointBorderOpacity:.95,hollowPointFillColor:t[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:r[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:r[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:n[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:n[0],areaFillOpacity:.25,areaActiveFillColor:n[0],areaActiveFillOpacity:.5,areaSelectedFillColor:n[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:n[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:r[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:r[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:n[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:r[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:r[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:n[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:t[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:r[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:r[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};e.createDarkStyleSheet=o,e.antvDark=(0,e.createDarkStyleSheet)()})(mj)),mj}var Wue;function SQt(){return Wue||(Wue=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.antvLight=e.createThemeByStyleSheet=void 0;var t=bQt();Object.defineProperty(e,"antvDark",{enumerable:!0,get:function(){return t.antvDark}});var r=pTe();Object.defineProperty(e,"antvLight",{enumerable:!0,get:function(){return r.antvLight}});var n=gTe();Object.defineProperty(e,"createThemeByStyleSheet",{enumerable:!0,get:function(){return n.createThemeByStyleSheet}});var a=$9();(0,a.registerTheme)("dark",(0,n.createThemeByStyleSheet)(t.antvDark)),(0,a.registerTheme)("default",(0,n.createThemeByStyleSheet)(r.antvLight)),(0,a.registerTheme)("light",(0,n.createThemeByStyleSheet)(r.antvLight))})(vj)),vj}var ed={},Mw={exports:{}},RQt=Mw.exports,Xue;function TQt(){return Xue||(Xue=1,(function(e,t){(function(r,n){n(t,Ur())})(RQt,(function(r,n){function a(d){return d&&typeof d=="object"&&"default"in d?d:{default:d}}var i=a(n);function o(d,f){d.prototype=Object.create(f.prototype),d.prototype.constructor=d,d.__proto__=f}var s=function(d,f){return d===void 0&&(d=[]),f===void 0&&(f=[]),d.length!==f.length||d.some(function(h,g){return!Object.is(h,f[g])})},l={error:null},c=(function(d){o(f,d);function f(){for(var g,p=arguments.length,m=new Array(p),y=0;y<p;y++)m[y]=arguments[y];return g=d.call.apply(d,[this].concat(m))||this,g.state=l,g.updatedWithError=!1,g.resetErrorBoundary=function(){for(var C,w=arguments.length,B=new Array(w),x=0;x<w;x++)B[x]=arguments[x];g.props.onReset==null||(C=g.props).onReset.apply(C,B),g.reset()},g}f.getDerivedStateFromError=function(p){return{error:p}};var h=f.prototype;return h.reset=function(){this.updatedWithError=!1,this.setState(l)},h.componentDidCatch=function(p,m){var y,C;(y=(C=this.props).onError)==null||y.call(C,p,m)},h.componentDidUpdate=function(p){var m=this.state.error,y=this.props.resetKeys;if(m!==null&&!this.updatedWithError){this.updatedWithError=!0;return}if(m!==null&&s(p.resetKeys,y)){var C,w;(C=(w=this.props).onResetKeysChange)==null||C.call(w,p.resetKeys,y),this.reset()}},h.render=function(){var p=this.state.error,m=this.props,y=m.fallbackRender,C=m.FallbackComponent,w=m.fallback;if(p!==null){var B={error:p,resetErrorBoundary:this.resetErrorBoundary};if(i.default.isValidElement(w))return w;if(typeof y=="function")return y(B);if(C)return i.default.createElement(C,B);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},f})(i.default.Component);function A(d,f){function h(p){return i.default.createElement(c,f,i.default.createElement(d,p))}var g=d.displayName||d.name||"Unknown";return h.displayName="withErrorBoundary("+g+")",h}function u(d){var f=i.default.useState(null),h=f[0],g=f[1];if(d)throw d;if(h)throw h;return g}r.ErrorBoundary=c,r.useErrorHandler=u,r.withErrorBoundary=A,Object.defineProperty(r,"__esModule",{value:!0})}))})(Mw,Mw.exports)),Mw.exports}var que;function zTe(){if(que)return ed;que=1;var e=ed&&ed.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(ed,"__esModule",{value:!0}),ed.setDefaultErrorFallback=ed.ErrorFallback=void 0;var t=e(Ur()),r=TQt(),n=function(o){var s=o.error;return t.default.createElement("div",{className:"bizcharts-error",role:"alert"},t.default.createElement("p",null,"BizCharts something went wrong:"),t.default.createElement("pre",null,s.message))};function a(o){return n(o)}ed.ErrorFallback=a;var i=function(o){n=o};return ed.setDefaultErrorFallback=i,ed.default=r.ErrorBoundary,ed}var Zue;function Jl(){return Zue||(Zue=1,(function(e){var t=NA&&NA.__createBinding||(Object.create?(function(d,f,h,g){g===void 0&&(g=h);var p=Object.getOwnPropertyDescriptor(f,h);(!p||("get"in p?!f.__esModule:p.writable||p.configurable))&&(p={enumerable:!0,get:function(){return f[h]}}),Object.defineProperty(d,g,p)}):(function(d,f,h,g){g===void 0&&(g=h),d[g]=f[h]})),r=NA&&NA.__setModuleDefault||(Object.create?(function(d,f){Object.defineProperty(d,"default",{enumerable:!0,value:f})}):function(d,f){d.default=f}),n=NA&&NA.__importStar||function(d){if(d&&d.__esModule)return d;var f={};if(d!=null)for(var h in d)h!=="default"&&Object.prototype.hasOwnProperty.call(d,h)&&t(f,d,h);return r(f,d),f},a=NA&&NA.__exportStar||function(d,f){for(var h in d)h!=="default"&&!Object.prototype.hasOwnProperty.call(f,h)&&t(f,d,h)};Object.defineProperty(e,"__esModule",{value:!0}),e.setDefaultErrorFallback=e.VERSION=e.GLOBAL=e.setGlobal=e.registerTickMethod=e.getScale=e.registerScale=void 0;var i=n(YRt()),o=n(ATt()),s=dY(),l=F9;Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return l.registerTickMethod}});var c=TTt();Object.defineProperty(e,"setGlobal",{enumerable:!0,get:function(){return c.setGlobal}}),Object.defineProperty(e,"GLOBAL",{enumerable:!0,get:function(){return c.GLOBAL}}),DTt(),IQt(),a(SQt(),e),(0,s.registerEngine)("canvas",i),(0,s.registerEngine)("svg",o),a(dY(),e),e.VERSION="4.1.22";var A=i.Canvas.prototype.getPointByClient;i.Canvas.prototype.getPointByClient=function(d,f){var h=A.call(this,d,f),g=this.get("el"),p=g.getBoundingClientRect(),m=this.get("width"),y=this.get("height"),C=p.width,w=p.height;return{x:h.x/(C/m),y:h.y/(w/y)}};var u=zTe();Object.defineProperty(e,"setDefaultErrorFallback",{enumerable:!0,get:function(){return u.setDefaultErrorFallback}})})(NA)),NA}var $ue;function QQt(){if($ue)return _h;$ue=1;var e=_h&&_h.__rest||function(c,A){var u={};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&A.indexOf(d)<0&&(u[d]=c[d]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,d=Object.getOwnPropertySymbols(c);f<d.length;f++)A.indexOf(d[f])<0&&Object.prototype.propertyIsEnumerable.call(c,d[f])&&(u[d[f]]=c[d[f]]);return u},t=_h&&_h.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(_h,"__esModule",{value:!0});var r=t(BRt()),n=t(ED()),a=t(MRt()),i=Jl();(0,i.registerComponentController)("axis",r.default);var o=function(c){return c===void 0},s=function(c){return(0,a.default)(c,["title","line","tickLine","subTickLine","label","grid"])};function l(c){var A=c.name,u=c.visible,d=u===void 0?!0:u,f=e(c,["name","visible"]),h=(0,n.default)(),g=s(f);return d?o(A)?h.axis(!0):h.axis(A,g):o(A)?h.axis(!1):h.axis(A,!1),null}return _h.default=l,_h}var DQt=QQt();const sA=gn(DQt);var jo={},F2={},ede;function FQt(){if(ede)return F2;ede=1,Object.defineProperty(F2,"__esModule",{value:!0});function e(t,r,n){var a;return function(){var i=this,o=arguments,s=function(){a=null,n||t.apply(i,o)},l=n&&!a;clearTimeout(a),a=setTimeout(s,r),l&&t.apply(i,o)}}return F2.default=e,F2}var Nv=[],NQt=function(){return Nv.some(function(e){return e.activeTargets.length>0})},_Qt=function(){return Nv.some(function(e){return e.skippedTargets.length>0})},tde="ResizeObserver loop completed with undelivered notifications.",kQt=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:tde}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=tde),window.dispatchEvent(e)},LB;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(LB||(LB={}));var _v=function(e){return Object.freeze(e)},LTe=(function(){function e(t,r){this.inlineSize=t,this.blockSize=r,_v(this)}return e})(),YTe=(function(){function e(t,r,n,a){return this.x=t,this.y=r,this.width=n,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,_v(this)}return e.prototype.toJSON=function(){var t=this,r=t.x,n=t.y,a=t.top,i=t.right,o=t.bottom,s=t.left,l=t.width,c=t.height;return{x:r,y:n,top:a,right:i,bottom:o,left:s,width:l,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),AG=function(e){return e instanceof SVGElement&&"getBBox"in e},UTe=function(e){if(AG(e)){var t=e.getBBox(),r=t.width,n=t.height;return!r&&!n}var a=e,i=a.offsetWidth,o=a.offsetHeight;return!(i||o||e.getClientRects().length)},rde=function(e){var t;if(e instanceof Element)return!0;var r=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(r&&e instanceof r.Element)},PQt=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Zw=typeof window<"u"?window:{},N2=new WeakMap,nde=/auto|scroll/,OQt=/^tb|vertical/,jQt=/msie|trident/i.test(Zw.navigator&&Zw.navigator.userAgent),td=function(e){return parseFloat(e||"0")},zE=function(e,t,r){return e===void 0&&(e=0),t===void 0&&(t=0),r===void 0&&(r=!1),new LTe((r?t:e)||0,(r?e:t)||0)},ade=_v({devicePixelContentBoxSize:zE(),borderBoxSize:zE(),contentBoxSize:zE(),contentRect:new YTe(0,0,0,0)}),HTe=function(e,t){if(t===void 0&&(t=!1),N2.has(e)&&!t)return N2.get(e);if(UTe(e))return N2.set(e,ade),ade;var r=getComputedStyle(e),n=AG(e)&&e.ownerSVGElement&&e.getBBox(),a=!jQt&&r.boxSizing==="border-box",i=OQt.test(r.writingMode||""),o=!n&&nde.test(r.overflowY||""),s=!n&&nde.test(r.overflowX||""),l=n?0:td(r.paddingTop),c=n?0:td(r.paddingRight),A=n?0:td(r.paddingBottom),u=n?0:td(r.paddingLeft),d=n?0:td(r.borderTopWidth),f=n?0:td(r.borderRightWidth),h=n?0:td(r.borderBottomWidth),g=n?0:td(r.borderLeftWidth),p=u+c,m=l+A,y=g+f,C=d+h,w=s?e.offsetHeight-C-e.clientHeight:0,B=o?e.offsetWidth-y-e.clientWidth:0,x=a?p+y:0,M=a?m+C:0,S=n?n.width:td(r.width)-x-B,R=n?n.height:td(r.height)-M-w,b=S+p+B+y,T=R+m+w+C,D=_v({devicePixelContentBoxSize:zE(Math.round(S*devicePixelRatio),Math.round(R*devicePixelRatio),i),borderBoxSize:zE(b,T,i),contentBoxSize:zE(S,R,i),contentRect:new YTe(u,l,S,R)});return N2.set(e,D),D},GTe=function(e,t,r){var n=HTe(e,r),a=n.borderBoxSize,i=n.contentBoxSize,o=n.devicePixelContentBoxSize;switch(t){case LB.DEVICE_PIXEL_CONTENT_BOX:return o;case LB.BORDER_BOX:return a;default:return i}},KTe=(function(){function e(t){var r=HTe(t);this.target=t,this.contentRect=r.contentRect,this.borderBoxSize=_v([r.borderBoxSize]),this.contentBoxSize=_v([r.contentBoxSize]),this.devicePixelContentBoxSize=_v([r.devicePixelContentBoxSize])}return e})(),VTe=function(e){if(UTe(e))return 1/0;for(var t=0,r=e.parentNode;r;)t+=1,r=r.parentNode;return t},zQt=function(){var e=1/0,t=[];Nv.forEach(function(o){if(o.activeTargets.length!==0){var s=[];o.activeTargets.forEach(function(c){var A=new KTe(c.target),u=VTe(c.target);s.push(A),c.lastReportedSize=GTe(c.target,c.observedBox),u<e&&(e=u)}),t.push(function(){o.callback.call(o.observer,s,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var r=0,n=t;r<n.length;r++){var a=n[r];a()}return e},ide=function(e){Nv.forEach(function(r){r.activeTargets.splice(0,r.activeTargets.length),r.skippedTargets.splice(0,r.skippedTargets.length),r.observationTargets.forEach(function(a){a.isActive()&&(VTe(a.target)>e?r.activeTargets.push(a):r.skippedTargets.push(a))})})},LQt=function(){var e=0;for(ide(e);NQt();)e=zQt(),ide(e);return _Qt()&&kQt(),e>0},Ej,JTe=[],YQt=function(){return JTe.splice(0).forEach(function(e){return e()})},UQt=function(e){if(!Ej){var t=0,r=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return YQt()}).observe(r,n),Ej=function(){r.textContent="".concat(t?t--:t++)}}JTe.push(e),Ej()},HQt=function(e){UQt(function(){requestAnimationFrame(e)})},yR=0,GQt=function(){return!!yR},KQt=250,VQt={attributes:!0,characterData:!0,childList:!0,subtree:!0},ode=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],sde=function(e){return e===void 0&&(e=0),Date.now()+e},yj=!1,JQt=(function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var r=this;if(t===void 0&&(t=KQt),!yj){yj=!0;var n=sde(t);HQt(function(){var a=!1;try{a=LQt()}finally{if(yj=!1,t=n-sde(),!GQt())return;a?r.run(1e3):t>0?r.run(t):r.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,r=function(){return t.observer&&t.observer.observe(document.body,VQt)};document.body?r():Zw.addEventListener("DOMContentLoaded",r)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),ode.forEach(function(r){return Zw.addEventListener(r,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),ode.forEach(function(r){return Zw.removeEventListener(r,t.listener,!0)}),this.stopped=!0)},e})(),vY=new JQt,lde=function(e){!yR&&e>0&&vY.start(),yR+=e,!yR&&vY.stop()},WQt=function(e){return!AG(e)&&!PQt(e)&&getComputedStyle(e).display==="inline"},XQt=(function(){function e(t,r){this.target=t,this.observedBox=r||LB.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=GTe(this.target,this.observedBox,!0);return WQt(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),qQt=(function(){function e(t,r){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=r}return e})(),_2=new WeakMap,cde=function(e,t){for(var r=0;r<e.length;r+=1)if(e[r].target===t)return r;return-1},k2=(function(){function e(){}return e.connect=function(t,r){var n=new qQt(t,r);_2.set(t,n)},e.observe=function(t,r,n){var a=_2.get(t),i=a.observationTargets.length===0;cde(a.observationTargets,r)<0&&(i&&Nv.push(a),a.observationTargets.push(new XQt(r,n&&n.box)),lde(1),vY.schedule())},e.unobserve=function(t,r){var n=_2.get(t),a=cde(n.observationTargets,r),i=n.observationTargets.length===1;a>=0&&(i&&Nv.splice(Nv.indexOf(n),1),n.observationTargets.splice(a,1),lde(-1))},e.disconnect=function(t){var r=this,n=_2.get(t);n.observationTargets.slice().forEach(function(a){return r.unobserve(t,a.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e})(),ZQt=(function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");k2.connect(this,t)}return e.prototype.observe=function(t,r){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rde(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");k2.observe(this,t,r)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!rde(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");k2.unobserve(this,t)},e.prototype.disconnect=function(){k2.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();const $Qt=Object.freeze(Object.defineProperty({__proto__:null,ResizeObserver:ZQt,ResizeObserverEntry:KTe,ResizeObserverSize:LTe},Symbol.toStringTag,{value:"Module"})),e4t=Ya($Qt);var Bl={},Ade;function t4t(){if(Ade)return Bl;Ade=1;var e=Bl&&Bl.__assign||function(){return e=Object.assign||function(s){for(var l,c=1,A=arguments.length;c<A;c++){l=arguments[c];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s[u]=l[u])}return s},e.apply(this,arguments)},t=Bl&&Bl.__createBinding||(Object.create?(function(s,l,c,A){A===void 0&&(A=c);var u=Object.getOwnPropertyDescriptor(l,c);(!u||("get"in u?!l.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return l[c]}}),Object.defineProperty(s,A,u)}):(function(s,l,c,A){A===void 0&&(A=c),s[A]=l[c]})),r=Bl&&Bl.__setModuleDefault||(Object.create?(function(s,l){Object.defineProperty(s,"default",{enumerable:!0,value:l})}):function(s,l){s.default=l}),n=Bl&&Bl.__importStar||function(s){if(s&&s.__esModule)return s;var l={};if(s!=null)for(var c in s)c!=="default"&&Object.prototype.hasOwnProperty.call(s,c)&&t(l,s,c);return r(l,s),l},a=Bl&&Bl.__rest||function(s,l){var c={};for(var A in s)Object.prototype.hasOwnProperty.call(s,A)&&l.indexOf(A)<0&&(c[A]=s[A]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,A=Object.getOwnPropertySymbols(s);u<A.length;u++)l.indexOf(A[u])<0&&Object.prototype.propertyIsEnumerable.call(s,A[u])&&(c[A[u]]=s[A[u]]);return c};Object.defineProperty(Bl,"__esModule",{value:!0});var i=n(Ur());function o(s,l){l===void 0&&(l="ChartContainer");var c=i.default.forwardRef(function(A,u){var d=(0,i.useRef)(),f=(0,i.useState)(!1),h=f[0],g=f[1],p=A,m=p.className,y=m===void 0?"bizcharts":m,C=p.containerStyle,w=a(p,["className","containerStyle"]);return(0,i.useEffect)(function(){g(!0)},[]),i.default.createElement("div",{ref:d,className:y,style:e({position:"relative",height:A.height||"100%",width:A.width||"100%"},C)},h?i.default.createElement(s,e({ref:u,container:d.current},w)):i.default.createElement(i.default.Fragment,null))});return c.displayName=l||s.name,c}return Bl.default=o,Bl}var rd={},ude;function WTe(){if(ude)return rd;ude=1;var e=rd&&rd.__assign||function(){return e=Object.assign||function(i){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c])}return i},e.apply(this,arguments)},t=rd&&rd.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(rd,"__esModule",{value:!0}),rd.withChartInstance=void 0;var r=t(Ur()),n=r.default.createContext(null);n.displayName="RootChartContext";function a(i){var o=r.default.forwardRef(function(s,l){return r.default.createElement(n.Consumer,null,function(c){return r.default.createElement(i,e({ref:l},c,s))})});return o.displayName=i.name,o}return rd.withChartInstance=a,rd.default=n,rd}var nd={},dde;function r4t(){if(dde)return nd;dde=1;var e=nd&&nd.__assign||function(){return e=Object.assign||function(i){for(var o,s=1,l=arguments.length;s<l;s++){o=arguments[s];for(var c in o)Object.prototype.hasOwnProperty.call(o,c)&&(i[c]=o[c])}return i},e.apply(this,arguments)},t=nd&&nd.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(nd,"__esModule",{value:!0}),nd.withGroupContext=void 0;var r=t(Ur()),n=r.default.createContext(null);n.displayName="GroupContext";function a(i){var o=r.default.forwardRef(function(s,l){return r.default.createElement(n.Consumer,null,function(c){return r.default.createElement(i,e({ref:l,group:c},s))})});return o.displayName=i.name,o}return nd.withGroupContext=a,nd.default=n,nd}var xl={},P2={},fde;function XTe(){if(fde)return P2;fde=1,Object.defineProperty(P2,"__esModule",{value:!0});var e={};return P2.default=(function(t){return t=t||"g",e[t]?e[t]+=1:e[t]=1,t+e[t]}),P2}var O2={},j2={},hde;function qTe(){return hde||(hde=1,Object.defineProperty(j2,"__esModule",{value:!0}),j2.default=(function(e){var t=typeof e;return e!==null&&t==="object"||t==="function"})),j2}var gde;function Zy(){if(gde)return O2;gde=1,Object.defineProperty(O2,"__esModule",{value:!0});var e=oh(),t=qTe();function r(n,a){if(n){var i;if(e.default(n))for(var o=0,s=n.length;o<s&&(i=a(n[o],o),i!==!1);o++);else if(t.default(n)){for(var l in n)if(n.hasOwnProperty(l)&&(i=a(n[l],l),i===!1))break}}}return O2.default=r,O2}var z2={},pde;function iM(){if(pde)return z2;pde=1,Object.defineProperty(z2,"__esModule",{value:!0});var e=yD();return z2.default=(function(t){return e.default(t,"Function")}),z2}var L2={},Y2={},vde;function ZTe(){if(vde)return Y2;vde=1,Object.defineProperty(Y2,"__esModule",{value:!0});var e=function(t){return typeof t=="object"&&t!==null};return Y2.default=e,Y2}var U2={},mde;function n4t(){if(mde)return U2;mde=1,Object.defineProperty(U2,"__esModule",{value:!0});var e=function(t){return t!==null&&typeof t!="function"&&isFinite(t.length)};return U2.default=e,U2}var H2={},Ede;function oM(){if(Ede)return H2;Ede=1,Object.defineProperty(H2,"__esModule",{value:!0});var e=yD();return H2.default=(function(t){return e.default(t,"String")}),H2}var yde;function a4t(){if(yde)return L2;yde=1,Object.defineProperty(L2,"__esModule",{value:!0});var e=ZTe(),t=n4t(),r=oM(),n=function(a,i){if(a===i)return!0;if(!a||!i||r.default(a)||r.default(i))return!1;if(t.default(a)||t.default(i)){if(a.length!==i.length)return!1;for(var o=!0,s=0;s<a.length&&(o=n(a[s],i[s]),!!o);s++);return o}if(e.default(a)||e.default(i)){var l=Object.keys(a),c=Object.keys(i);if(l.length!==c.length)return!1;for(var o=!0,s=0;s<l.length&&(o=n(a[l[s]],i[l[s]]),!!o);s++);return o}return!1};return L2.default=n,L2}var Cj,Cde;function RD(){if(Cde)return Cj;Cde=1;var e=function(){};return Cj=e,Cj}var b0={},wde;function uG(){if(wde)return b0;wde=1;var e=b0&&b0.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(b0,"__esModule",{value:!0});var t=e(Zy()),r=e(oh()),n=e(qTe());function a(s,l){return s===l?s!==0||l!==0||1/s===1/l:s!==s&&l!==l}function i(s){return(0,r.default)(s)?s.length:(0,n.default)(s)?Object.keys(s).length:0}function o(s,l){if(a(s,l))return!0;if(typeof s!="object"||s===null||typeof l!="object"||l===null||(0,r.default)(s)!==(0,r.default)(l)||i(s)!==i(l))return!1;var c=!0;return(0,t.default)(s,function(A,u){return a(A,l[u])?!0:(c=!1,c)}),c}return b0.default=o,b0}var S0={},Bde;function i4t(){if(Bde)return S0;Bde=1;var e=S0&&S0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(S0,"__esModule",{value:!0});var t=e(Zy()),r=e(oM()),n=function(a,i){var o={};return(0,t.default)(a,function(s,l){var c=!1;i.forEach(function(A){((0,r.default)(A)&&A===l||A instanceof RegExp&&l.match(A))&&(c=!0)}),c||(o[l]=s)}),o};return S0.default=n,S0}var R0={},G2={},xde;function $Te(){if(xde)return G2;xde=1,Object.defineProperty(G2,"__esModule",{value:!0});var e=Zy();return G2.default=e.default,G2}var Mde;function eQe(){if(Mde)return R0;Mde=1;var e=R0&&R0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(R0,"__esModule",{value:!0});var t=e(oh()),r=e($Te()),n=function(a){var i=[],o=function(s){if(i.push(s),i.includes(s)||typeof s!="object"||s===null)return s;var l;if((0,t.default)(s)){l=[];for(var c=0,A=s.length;c<A;c++)typeof s[c]=="object"&&s[c]!=null?l[c]=o(s[c]):l[c]=s[c]}else l={},(0,r.default)(s,function(u,d){typeof u=="object"&&u!=null?l[d]=o(u):l[d]=u});return l};return o(a)};return R0.default=n,R0}var T0={},Ide;function o4t(){return Ide||(Ide=1,Object.defineProperty(T0,"__esModule",{value:!0}),T0.REACT_PIVATE_PROPS=void 0,T0.REACT_PIVATE_PROPS=["children","hooks","ref"],T0.default={}),T0}var Va={},bde;function s4t(){if(bde)return Va;bde=1;var e=Va&&Va.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Va,"__esModule",{value:!0}),Va.TOOLTIP_EVENT=Va.ANNOTATION_EVENT_TARGET=Va.AXIS_EVENT_TARGET=Va.LEGEND_EVENT=Va.GEOM_NAME=Va.LEGEND_EVENT_TARGETS=Va.LIFE_CIRCLE_NAMES=Va.MOBILE_EVENT_NAMES=Va.DRAG_EVENT_NAMES=Va.pickEventName=Va.BASE_EVENT_NAMES=void 0;var t=e($Te());Va.BASE_EVENT_NAMES=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click"];var r=["mousedown","mouseup","dblclick","mouseenter","mouseout","mouseover","mousemove","mouseleave","contextmenu","click","show","hide","change"],n=new RegExp("^on(.*)(?=(".concat(r.map(function(i){return i.replace(/^\S/,function(o){return o.toUpperCase()})}).join("|"),"))")),a=function(i){var o=[];return(0,t.default)(i,function(s,l){var c=l.match(/^on(.*)/);if(c){var A=l.match(n);if(A){var u=A[1].replace(/([A-Z])/g,"-$1").toLowerCase();u=u.replace("column","interval"),u?o.push([l,"".concat(u.replace("-",""),":").concat(A[2].toLowerCase())]):o.push([l,A[2].toLowerCase()])}else o.push([l,c[1].toLowerCase()])}}),o};return Va.pickEventName=a,Va.DRAG_EVENT_NAMES=["dragstart","drag","dragend","dragover","dragenter","dragleave","drop"],Va.MOBILE_EVENT_NAMES=["touchstart","touchmove","touchend"],Va.LIFE_CIRCLE_NAMES=["beforerender","afterrender","beforepaint","afterpaint","beforechangedata","afterchangedata","beforeclear","afterclear","beforedestroy"],Va.LEGEND_EVENT_TARGETS=["legend","legend-title","legend-item","legend-item-name","legend-item-Maker","legend-item-value"],Va.GEOM_NAME=["line","area","point","interval","polygon","edge","schema"],Va.LEGEND_EVENT=["legend:valuechanged"],Va.AXIS_EVENT_TARGET=["axis-label","axis-line","axis-tick","axis-title"],Va.ANNOTATION_EVENT_TARGET=["annotation","annotation-line","annotation-line-text","annotation-image","annotation-region","annotation-text"],Va.TOOLTIP_EVENT=["tooltip:show","tooltip:hide","tooltip:change"],Va}var Sde;function l4t(){if(Sde)return xl;Sde=1;var e=xl&&xl.__extends||(function(){var B=function(x,M){return B=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,R){S.__proto__=R}||function(S,R){for(var b in R)Object.prototype.hasOwnProperty.call(R,b)&&(S[b]=R[b])},B(x,M)};return function(x,M){if(typeof M!="function"&&M!==null)throw new TypeError("Class extends value "+String(M)+" is not a constructor or null");B(x,M);function S(){this.constructor=x}x.prototype=M===null?Object.create(M):(S.prototype=M.prototype,new S)}})(),t=xl&&xl.__assign||function(){return t=Object.assign||function(B){for(var x,M=1,S=arguments.length;M<S;M++){x=arguments[M];for(var R in x)Object.prototype.hasOwnProperty.call(x,R)&&(B[R]=x[R])}return B},t.apply(this,arguments)},r=xl&&xl.__rest||function(B,x){var M={};for(var S in B)Object.prototype.hasOwnProperty.call(B,S)&&x.indexOf(S)<0&&(M[S]=B[S]);if(B!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,S=Object.getOwnPropertySymbols(B);R<S.length;R++)x.indexOf(S[R])<0&&Object.prototype.propertyIsEnumerable.call(B,S[R])&&(M[S[R]]=B[S[R]]);return M},n=xl&&xl.__spreadArray||function(B,x,M){if(M||arguments.length===2)for(var S=0,R=x.length,b;S<R;S++)(b||!(S in x))&&(b||(b=Array.prototype.slice.call(x,0,S)),b[S]=x[S]);return B.concat(b||Array.prototype.slice.call(x))},a=xl&&xl.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(xl,"__esModule",{value:!0});var i=a(XTe()),o=a(Zy()),s=a(iM()),l=a(oh()),c=a(a4t()),A=Jl(),u=a(RD()),d=a(uG()),f=a(i4t()),h=a(eQe()),g=o4t(),p=Wi(),m=a(fTe),y=s4t(),C=function(B){return B&&B.rows?B.rows:B},w=(function(B){e(x,B);function x(){var M=B!==null&&B.apply(this,arguments)||this;return M.config={},M}return x.prototype.createInstance=function(M){this.chart=new A.Chart(t({},M)),this.key=(0,i.default)("bx-chart"),this.chart.emit("initialed"),this.isNewInstance=!0,this.extendGroup={isChartCanvas:!0,chart:this.chart}},x.prototype.render=function(){if(this.chart)try{this.isNewInstance?(this.chart.render(),this.onGetG2Instance(),this.chart.unbindAutoFit(),this.isNewInstance=!1):this.chart.forceReRender?this.chart.render():this.chart.render(!0),this.chart.emit("processElemens")}catch(M){this.emit("renderError",M),this.destory(),console&&console.error(M?.stack)}},x.prototype.onGetG2Instance=function(){(0,s.default)(this.config.onGetG2Instance)&&this.config.onGetG2Instance(this.chart)},x.prototype.shouldReCreateInstance=function(M){if(!this.chart||M.forceUpdate)return!0;var S=this.config,R=S.data,b=r(S,["data"]),T=M.data,D=r(M,["data"]);if((0,l.default)(this.config.data)&&R.length===0&&(0,l.default)(T)&&T.length!==0)return!0;var F=n(n([],g.REACT_PIVATE_PROPS,!0),["scale","width","height","container","_container","_interactions","placeholder",/^on/,/^\_on/],!1);return!(0,c.default)((0,f.default)(b,n([],F,!0)),(0,f.default)(D,n([],F,!0)))},x.prototype.update=function(M){var S=this,R=(0,h.default)(this.adapterOptions(M));this.shouldReCreateInstance(R)&&(this.destory(),this.createInstance(R)),R.pure&&(this.chart.axis(!1),this.chart.tooltip(!1),this.chart.legend(!1),this.chart.isPure=!0);var b=(0,y.pickEventName)(this.config),T=(0,y.pickEventName)(R),D=R.data,F=R.interactions,N=r(R,["data","interactions"]),_=this.config,P=_.data,k=_.interactions,j=k===void 0?[]:k;if(this.isNewInstance||b.forEach(function(L){S.chart.off(L[1],S.config["_".concat(L[0])])}),T.forEach(function(L){R["_".concat(L[0])]=function(V){R[L[0]](V,S.chart)},S.chart.on(L[1],R["_".concat(L[0])])}),(0,l.default)(P)&&P.length){var Y=!0;if(R.notCompareData&&(Y=!1),P.length!==D.length?Y=!1:P.forEach(function(L,V){(0,d.default)(L,D[V])||(Y=!1)}),!Y){this.chart.isDataChanged=!0,this.chart.emit(p.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA),this.chart.data(D);for(var X=this.chart.views,K=0,U=X.length;K<U;K++){var H=X[K];H.changeData(D)}this.chart.emit(p.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA)}}else this.chart.data(D);this.chart.scale(N.scale),N.animate===!1?this.chart.animate(!1):this.chart.animate(!0),j.forEach(function(L){S.chart.removeInteraction(L)}),F.forEach(function(L){S.chart.interaction(L)}),(0,o.default)(this.config.filter,function(L,V){(0,l.default)(L)?S.chart.filter(L[0],null):S.chart.filter(V,null)}),(0,o.default)(R.filter,function(L,V){(0,l.default)(L)?S.chart.filter(L[0],L[1]):S.chart.filter(V,L)}),this.chart.theme(R.theme),this.config=R},x.prototype.adapterOptions=function(M){var S=M.data,R=r(M,["data"]),b=(0,f.default)(R,n([],g.REACT_PIVATE_PROPS,!0));return b.forceFit&&(0,u.default)(!1,"forceFit 已废弃，请使用`autoFit`替代"),b.data=C(S)||[],b},x.prototype.destory=function(){if(this.chart){this.extendGroup=null;var M=this.chart;M.destroy(),M=null,this.chart=null,this.config={}}},x})(m.default);return xl.default=w,xl}var Rde;function c4t(){if(Rde)return jo;Rde=1;var e=jo&&jo.__extends||(function(){var y=function(C,w){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,x){B.__proto__=x}||function(B,x){for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(B[M]=x[M])},y(C,w)};return function(C,w){if(typeof w!="function"&&w!==null)throw new TypeError("Class extends value "+String(w)+" is not a constructor or null");y(C,w);function B(){this.constructor=C}C.prototype=w===null?Object.create(w):(B.prototype=w.prototype,new B)}})(),t=jo&&jo.__assign||function(){return t=Object.assign||function(y){for(var C,w=1,B=arguments.length;w<B;w++){C=arguments[w];for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(y[x]=C[x])}return y},t.apply(this,arguments)},r=jo&&jo.__createBinding||(Object.create?(function(y,C,w,B){B===void 0&&(B=w);var x=Object.getOwnPropertyDescriptor(C,w);(!x||("get"in x?!C.__esModule:x.writable||x.configurable))&&(x={enumerable:!0,get:function(){return C[w]}}),Object.defineProperty(y,B,x)}):(function(y,C,w,B){B===void 0&&(B=w),y[B]=C[w]})),n=jo&&jo.__setModuleDefault||(Object.create?(function(y,C){Object.defineProperty(y,"default",{enumerable:!0,value:C})}):function(y,C){y.default=C}),a=jo&&jo.__importStar||function(y){if(y&&y.__esModule)return y;var C={};if(y!=null)for(var w in y)w!=="default"&&Object.prototype.hasOwnProperty.call(y,w)&&r(C,y,w);return n(C,y),C},i=jo&&jo.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(jo,"__esModule",{value:!0}),jo.Chart=void 0;var o=i(Ur()),s=i(FQt()),l=dTe(),c=e4t,A=a(zTe()),u=i(t4t()),d=i(WTe()),f=i($x()),h=i(r4t()),g=i(l4t()),p=Br,m=jo.Chart=(function(y){e(C,y);function C(w){var B=y.call(this,w)||this;return B.isRootView=!0,B.resize=(0,s.default)(function(){var x,M=B.chartHelper.chart;if(B.props.autoFit&&B.chartHelper.chart){var S=(x=(0,l.getChartSize)(B.props.container,B.props.autoFit,M.width,M.height),x.width),R=x.height;(M.width!==S||M.height!==R)&&(M.changeSize(S,R),M.emit("resize"))}},300),B.resizeObserver=new c.ResizeObserver(B.resize),B.resizeObserver.observe(w.container),B.chartHelper=new g.default,B}return C.prototype.componentDidMount=function(){this.isError?this.chartHelper.destory():this.chartHelper.render()},C.prototype.componentDidUpdate=function(){var w;if(this.isError){this.chartHelper.destory();return}var B=(w=this.props,w.width),x=w.height,M=w.autoFit;if(!M&&this.chartHelper.chart)if(B>=0&&B!==this.chartHelper.chart.width||x>=0&&x!==this.chartHelper.chart.height){var S=B||this.chartHelper.chart.width,R=x||this.chartHelper.chart.height;this.chartHelper.chart.changeSize(S,R),this.chartHelper.chart.emit("resize")}else this.chartHelper.render();else this.chartHelper.render()},C.prototype.componentWillUnmount=function(){this.chartHelper.destory(),this.resizeObserver.unobserve(this.props.container)},C.prototype.getG2Instance=function(){return this.chartHelper.chart},C.prototype.render=function(){var w,B=this,x=(w=this.props,w.placeholder),M=w.data,S=w.errorContent,R=this.props.ErrorBoundaryProps;if((M===void 0||M.length===0)&&x){this.chartHelper.destory();var b=x===!0?o.default.createElement("div",{style:{position:"relative",top:"48%",color:"#aaa",textAlign:"center"}},"暂无数据"):x;return o.default.createElement(A.default,t({},R),b)}return this.chartHelper.update(this.props),S?R=t({fallback:S},R):R={FallbackComponent:A.ErrorFallback},o.default.createElement(A.default,t({},R,{key:this.chartHelper.key,onError:function(){for(var T=[],D=0;D<arguments.length;D++)T[D]=arguments[D];B.isError=!0,(0,p.isFunction)(R.onError)&&R.onError.apply(R,T)},onReset:function(){for(var T=[],D=0;D<arguments.length;D++)T[D]=arguments[D];B.isError=!1,(0,p.isFunction)(R.onReset)&&R.onReset.apply(R,T)},resetKeys:[this.chartHelper.key],fallback:S}),o.default.createElement(d.default.Provider,{value:this.chartHelper},o.default.createElement(f.default.Provider,{value:this.chartHelper.chart},o.default.createElement(h.default.Provider,{value:this.chartHelper.extendGroup},this.props.children))))},C.defaultProps={placeholder:!1,visible:!0,interactions:[],filter:[]},C})(o.default.Component);return jo.default=(0,u.default)(m),jo}var A4t=c4t();const Mm=gn(A4t);var Lh={},K2={},Gp={},Tde;function u4t(){if(Tde)return Gp;Tde=1,Object.defineProperty(Gp,"__esModule",{value:!0}),Gp.getTranslateDirection=Gp.directionToPosition=void 0;var e=Wi();function t(l,c,A){return A===e.DIRECTION.TOP?[l.minX+l.width/2-c.width/2,l.minY]:A===e.DIRECTION.BOTTOM?[l.minX+l.width/2-c.width/2,l.maxY-c.height]:A===e.DIRECTION.LEFT?[l.minX,l.minY+l.height/2-c.height/2]:A===e.DIRECTION.RIGHT?[l.maxX-c.width,l.minY+l.height/2-c.height/2]:A===e.DIRECTION.TOP_LEFT||A===e.DIRECTION.LEFT_TOP?[l.tl.x,l.tl.y]:A===e.DIRECTION.TOP_RIGHT||A===e.DIRECTION.RIGHT_TOP?[l.tr.x-c.width,l.tr.y]:A===e.DIRECTION.BOTTOM_LEFT||A===e.DIRECTION.LEFT_BOTTOM?[l.bl.x,l.bl.y-c.height]:A===e.DIRECTION.BOTTOM_RIGHT||A===e.DIRECTION.RIGHT_BOTTOM?[l.br.x-c.width,l.br.y-c.height]:[0,0]}Gp.directionToPosition=t;function r(l,c){if(c.isTransposed)switch(l){case e.DIRECTION.BOTTOM:return e.DIRECTION.LEFT;case e.DIRECTION.LEFT:return e.DIRECTION.BOTTOM;case e.DIRECTION.RIGHT:return e.DIRECTION.TOP;case e.DIRECTION.TOP:return e.DIRECTION.RIGHT}return l}function n(l){return l===e.DIRECTION.LEFT?e.DIRECTION.RIGHT:l===e.DIRECTION.RIGHT?e.DIRECTION.LEFT:l}function a(l){return l===e.DIRECTION.TOP?e.DIRECTION.BOTTOM:l===e.DIRECTION.BOTTOM?e.DIRECTION.TOP:l}function i(l,c){var A=c.matrix[0],u=c.matrix[4],d=l;return A<0&&(d=n(d)),u<0&&(d=a(d)),d}function o(l,c){var A=l;return c.isReflect("x")&&(A=n(A)),c.isReflect("y")&&(A=a(A)),A}function s(l,c){var A=l;return A=r(A,c),A=i(A,c),A=o(A,c),A}return Gp.getTranslateDirection=s,Gp}var Qde;function d4t(){if(Qde)return K2;Qde=1,Object.defineProperty(K2,"__esModule",{value:!0});var e=Mr,t=Br,r=Wi(),n=Wg(),a=Bm(),i=Xy(),o=u4t(),s=xm(),l=ITe(),c=qy(),A=mD();function u(h,g){return(0,t.isBoolean)(h)?h===!1?!1:{}:(0,t.get)(h,[g],h)}function d(h){return(0,t.get)(h,"position",r.DIRECTION.BOTTOM)}var f=(function(h){(0,e.__extends)(g,h);function g(p){var m=h.call(this,p)||this;return m.container=m.view.getLayer(r.LAYER.FORE).addGroup(),m}return Object.defineProperty(g.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),g.prototype.init=function(){},g.prototype.render=function(){this.update()},g.prototype.layout=function(){var p=this;this.layoutBBox=this.view.viewBBox,(0,t.each)(this.components,function(m){var y=m.component,C=m.direction,w=(0,l.getLegendLayout)(C),B=y.get("maxWidthRatio"),x=y.get("maxHeightRatio"),M=p.getCategoryLegendSizeCfg(w,B,x),S=y.get("maxWidth"),R=y.get("maxHeight");y.update({maxWidth:Math.min(M.maxWidth,S||0),maxHeight:Math.min(M.maxHeight,R||0)});var b=y.get("padding"),T=y.getLayoutBBox(),D=new i.BBox(T.x,T.y,T.width,T.height).expand(b),F=(0,o.directionToPosition)(p.view.viewBBox,D,C),N=F[0],_=F[1],P=(0,o.directionToPosition)(p.layoutBBox,D,C),k=P[0],j=P[1],Y=0,X=0;C.startsWith("top")||C.startsWith("bottom")?(Y=N,X=j):(Y=k,X=_),y.setLocation({x:Y+b[3],y:X+b[0]}),p.layoutBBox=p.layoutBBox.cut(D,C)})},g.prototype.update=function(){var p=this;this.option=this.view.getOptions().legends;var m={},y=function(b,T,D){var F=p.getId(D.field),N=p.getComponentById(F);if(N){var _=void 0,P=u(p.option,D.field);P!==!1&&((0,t.get)(P,"custom")?_=p.getCategoryCfg(b,T,D,P,!0):D.isLinear?_=p.getContinuousCfg(b,T,D,P):D.isCategory&&(_=p.getCategoryCfg(b,T,D,P))),_&&((0,s.omit)(_,["container"]),N.direction=d(P),N.component.update(_),m[F]=!0)}else{var k=p.createFieldLegend(b,T,D);k&&(k.component.init(),p.components.push(k),m[F]=!0)}};if((0,t.get)(this.option,"custom")){var C="global-custom",w=this.getComponentById(C);if(w){var B=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,s.omit)(B,["container"]),w.component.update(B),m[C]=!0}else{var x=this.createCustomLegend(void 0,void 0,void 0,this.option);if(x){x.init();var M=r.LAYER.FORE,S=d(this.option);this.components.push({id:C,component:x,layer:M,direction:S,type:r.COMPONENT_TYPE.LEGEND,extra:void 0}),m[C]=!0}}}else this.loopLegends(y);var R=[];(0,t.each)(this.getComponents(),function(b){m[b.id]?R.push(b):b.component.destroy()}),this.components=R},g.prototype.clear=function(){h.prototype.clear.call(this),this.container.clear()},g.prototype.destroy=function(){h.prototype.destroy.call(this),this.container.remove(!0)},g.prototype.getGeometries=function(p){var m=this,y=p.geometries;return(0,t.each)(p.views,function(C){y=y.concat(m.getGeometries(C))}),y},g.prototype.loopLegends=function(p){var m=this.view.getRootView()===this.view;if(m){var y=this.getGeometries(this.view),C={};(0,t.each)(y,function(w){var B=w.getGroupAttributes();(0,t.each)(B,function(x){var M=x.getScale(x.type);!M||M.type==="identity"||C[M.field]||(p(w,x,M),C[M.field]=!0)})})}},g.prototype.createFieldLegend=function(p,m,y){var C,w=u(this.option,y.field),B=r.LAYER.FORE,x=d(w);if(w!==!1&&((0,t.get)(w,"custom")?C=this.createCustomLegend(p,m,y,w):y.isLinear?C=this.createContinuousLegend(p,m,y,w):y.isCategory&&(C=this.createCategoryLegend(p,m,y,w))),C)return C.set("field",y.field),{id:this.getId(y.field),component:C,layer:B,direction:x,type:r.COMPONENT_TYPE.LEGEND,extra:{scale:y}}},g.prototype.createCustomLegend=function(p,m,y,C){var w=this.getCategoryCfg(p,m,y,C,!0);return new n.CategoryLegend(w)},g.prototype.createContinuousLegend=function(p,m,y,C){var w=this.getContinuousCfg(p,m,y,(0,s.omit)(C,["value"]));return new n.ContinuousLegend(w)},g.prototype.createCategoryLegend=function(p,m,y,C){var w=this.getCategoryCfg(p,m,y,C);return new n.CategoryLegend(w)},g.prototype.getContinuousCfg=function(p,m,y,C){var w=y.getTicks(),B=(0,t.find)(w,function(F){return F.value===0}),x=(0,t.find)(w,function(F){return F.value===1}),M=w.map(function(F){var N=F.value,_=F.tickValue,P=m.mapping(y.invert(N)).join("");return{value:_,attrValue:P,color:P,scaleValue:N}});B||M.push({value:y.min,attrValue:m.mapping(y.invert(0)).join(""),color:m.mapping(y.invert(0)).join(""),scaleValue:0}),x||M.push({value:y.max,attrValue:m.mapping(y.invert(1)).join(""),color:m.mapping(y.invert(1)).join(""),scaleValue:1}),M.sort(function(F,N){return F.value-N.value});var S={min:(0,t.head)(M).value,max:(0,t.last)(M).value,colors:[],rail:{type:m.type},track:{}};m.type==="size"&&(S.track={style:{fill:m.type==="size"?this.view.getTheme().defaultColor:void 0}}),m.type==="color"&&(S.colors=M.map(function(F){return F.attrValue}));var R=this.container,b=d(C),T=(0,l.getLegendLayout)(b),D=(0,t.get)(C,"title");return D&&(D=(0,t.deepMix)({text:(0,c.getName)(y)},D)),S.container=R,S.layout=T,S.title=D,S.animateOption=a.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(S,C,"continuous")},g.prototype.getCategoryCfg=function(p,m,y,C,w){var B=this.container,x=(0,t.get)(C,"position",r.DIRECTION.BOTTOM),M=(0,l.getLegendThemeCfg)(this.view.getTheme(),x),S=(0,t.get)(M,["marker"]),R=(0,t.get)(C,"marker"),b=(0,l.getLegendLayout)(x),T=(0,t.get)(M,["pageNavigator"]),D=(0,t.get)(C,"pageNavigator"),F=w?(0,l.getCustomLegendItems)(S,R,C.items):(0,l.getLegendItems)(this.view,p,m,S,R),N=(0,t.get)(C,"title");N&&(N=(0,t.deepMix)({text:y?(0,c.getName)(y):""},N));var _=(0,t.get)(C,"maxWidthRatio"),P=(0,t.get)(C,"maxHeightRatio"),k=this.getCategoryLegendSizeCfg(b,_,P);k.container=B,k.layout=b,k.items=F,k.title=N,k.animateOption=a.DEFAULT_ANIMATE_CFG,k.pageNavigator=(0,t.deepMix)({},T,D);var j=this.mergeLegendCfg(k,C,x);j.reversed&&j.items.reverse();var Y=(0,t.get)(j,"maxItemWidth");return Y&&Y<=1&&(j.maxItemWidth=this.view.viewBBox.width*Y),j},g.prototype.mergeLegendCfg=function(p,m,y){var C=y.split("-")[0],w=(0,l.getLegendThemeCfg)(this.view.getTheme(),C);return(0,t.deepMix)({},w,p,m)},g.prototype.getId=function(p){return this.name+"-"+p},g.prototype.getComponentById=function(p){return(0,t.find)(this.components,function(m){return m.id===p})},g.prototype.getCategoryLegendSizeCfg=function(p,m,y){m===void 0&&(m=r.COMPONENT_MAX_VIEW_PERCENTAGE),y===void 0&&(y=r.COMPONENT_MAX_VIEW_PERCENTAGE);var C=this.view.viewBBox,w=C.width,B=C.height;return p==="vertical"?{maxWidth:w*m,maxHeight:B}:{maxWidth:w,maxHeight:B*y}},g})(A.Controller);return K2.default=f,K2}var UC={},V2={},HC={},Dde;function f4t(){if(Dde)return HC;Dde=1,Object.defineProperty(HC,"__esModule",{value:!0}),HC.clearList=void 0;var e=Br,t="inactive",r="active";function n(a){var i=a.getItems();(0,e.each)(i,function(o){a.hasState(o,r)&&a.setItemState(o,r,!1),a.hasState(o,t)&&a.setItemState(o,t,!1)})}return HC.clearList=n,HC}var J2={},Fde;function TD(){if(Fde)return J2;Fde=1,Object.defineProperty(J2,"__esModule",{value:!0});var e=Mr,t=Br,r=(0,e.__importDefault)(Mu()),n=ks(),a=ks(),i=(function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.stateName="",l.ignoreItemStates=[],l}return s.prototype.getTriggerListInfo=function(){var l=(0,a.getDelegationObject)(this.context),c=null;return(0,a.isList)(l)&&(c={item:l.item,list:l.component}),c},s.prototype.getAllowComponents=function(){var l=this,c=this.context.view,A=(0,n.getComponents)(c),u=[];return(0,t.each)(A,function(d){d.isList()&&l.allowSetStateByElement(d)&&u.push(d)}),u},s.prototype.hasState=function(l,c){return l.hasState(c,this.stateName)},s.prototype.clearAllComponentsState=function(){var l=this,c=this.getAllowComponents();(0,t.each)(c,function(A){A.clearItemsState(l.stateName)})},s.prototype.allowSetStateByElement=function(l){var c=l.get("field");if(!c)return!1;if(this.cfg&&this.cfg.componentNames){var A=l.get("name");if(this.cfg.componentNames.indexOf(A)===-1)return!1}var u=this.context.view,d=(0,a.getScaleByField)(u,c);return d&&d.isCategory},s.prototype.allowSetStateByItem=function(l,c){var A=this.ignoreItemStates;if(A.length){var u=A.filter(function(d){return c.hasState(l,d)});return u.length===0}return!0},s.prototype.setStateByElement=function(l,c,A){var u=l.get("field"),d=this.context.view,f=(0,a.getScaleByField)(d,u),h=(0,a.getElementValue)(c,u),g=f.getText(h);this.setItemsState(l,g,A)},s.prototype.setStateEnable=function(l){var c=this,A=(0,a.getCurrentElement)(this.context);if(A){var u=this.getAllowComponents();(0,t.each)(u,function(g){c.setStateByElement(g,A,l)})}else{var d=(0,a.getDelegationObject)(this.context);if((0,a.isList)(d)){var f=d.item,h=d.component;this.allowSetStateByElement(h)&&this.allowSetStateByItem(f,h)&&this.setItemState(h,f,l)}}},s.prototype.setItemsState=function(l,c,A){var u=this,d=l.getItems();(0,t.each)(d,function(f){f.name===c&&u.setItemState(l,f,A)})},s.prototype.setItemState=function(l,c,A){l.setItemState(c,this.stateName,A)},s.prototype.setState=function(){this.setStateEnable(!0)},s.prototype.reset=function(){this.setStateEnable(!1)},s.prototype.toggle=function(){var l=this.getTriggerListInfo();if(l&&l.item){var c=l.list,A=l.item,u=this.hasState(c,A);this.setItemState(c,A,!u)}},s.prototype.clear=function(){var l=this.getTriggerListInfo();l?l.list.clearItemsState(this.stateName):this.clearAllComponentsState()},s})(r.default);return J2.default=i,J2}var Nde;function h4t(){if(Nde)return V2;Nde=1,Object.defineProperty(V2,"__esModule",{value:!0});var e=Mr,t=Br,r=f4t(),n=(0,e.__importDefault)(TD()),a="inactive",i="active",o=(function(s){(0,e.__extends)(l,s);function l(){var c=s!==null&&s.apply(this,arguments)||this;return c.stateName=i,c.ignoreItemStates=["unchecked"],c}return l.prototype.setItemsState=function(c,A,u){this.setHighlightBy(c,function(d){return d.name===A},u)},l.prototype.setItemState=function(c,A,u){c.getItems(),this.setHighlightBy(c,function(d){return d===A},u)},l.prototype.setHighlightBy=function(c,A,u){var d=c.getItems();if(u)(0,t.each)(d,function(g){A(g)?(c.hasState(g,a)&&c.setItemState(g,a,!1),c.setItemState(g,i,!0)):c.hasState(g,i)||c.setItemState(g,a,!0)});else{var f=c.getItemsByState(i),h=!0;(0,t.each)(f,function(g){if(!A(g))return h=!1,!1}),h?this.clear():(0,t.each)(d,function(g){A(g)&&(c.hasState(g,i)&&c.setItemState(g,i,!1),c.setItemState(g,a,!0))})}},l.prototype.highlight=function(){this.setState()},l.prototype.clear=function(){var c=this.getTriggerListInfo();if(c)(0,r.clearList)(c.list);else{var A=this.getAllowComponents();(0,t.each)(A,function(u){u.clearItemsState(i),u.clearItemsState(a)})}},l})(n.default);return V2.default=o,V2}var W2={},_de;function g4t(){if(_de)return W2;_de=1,Object.defineProperty(W2,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(TD()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a})(t.default);return W2.default=r,W2}var X2={},kde;function p4t(){if(kde)return X2;kde=1,Object.defineProperty(X2,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(TD()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="unchecked",i}return a.prototype.unchecked=function(){this.setState()},a})(t.default);return X2.default=r,X2}var q2={},Pde;function v4t(){if(Pde)return q2;Pde=1,Object.defineProperty(q2,"__esModule",{value:!0});var e=Mr,t=Br,r=(0,e.__importDefault)(Mu()),n=ks(),a=(function(i){(0,e.__extends)(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.filterView=function(s,l,c){var A=this;s.getScaleByField(l)&&s.filter(l,c),s.views&&s.views.length&&(0,t.each)(s.views,function(u){A.filterView(u,l,c)})},o.prototype.filter=function(){var s=(0,n.getDelegationObject)(this.context);if(s){var l=this.context.view,c=s.component,A=c.get("field");if((0,n.isList)(s)){if(A){var u=c.getItemsByState("unchecked"),d=(0,n.getScaleByField)(l,A),f=u.map(function(m){return m.name});f.length?this.filterView(l,A,function(m){var y=d.getText(m);return!f.includes(y)}):this.filterView(l,A,null),l.render(!0)}}else if((0,n.isSlider)(s)){var h=c.getValue(),g=h[0],p=h[1];this.filterView(l,A,function(m){return m>=g&&m<=p}),l.render(!0)}}},o})(r.default);return q2.default=a,q2}var Z2={},Ode;function m4t(){if(Ode)return Z2;Ode=1,Object.defineProperty(Z2,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(TD()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a})(t.default);return Z2.default=r,Z2}var jde;function E4t(){if(jde)return UC;jde=1;var e=UC&&UC.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(UC,"__esModule",{value:!0});var t=e(h4t()),r=e(g4t()),n=e(p4t()),a=e(v4t()),i=e(m4t()),o=Jl();return(0,o.registerAction)("list-active",r.default),(0,o.registerAction)("list-selected",i.default),(0,o.registerAction)("list-highlight",t.default),(0,o.registerAction)("list-unchecked",n.default),(0,o.registerAction)("data-filter",a.default),(0,o.registerAction)("legend-item-highlight",t.default,{componentNames:["legend"]}),(0,o.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,o.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,o.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:"list-unchecked:toggle"},{trigger:"legend-item:click",action:"data-filter:filter"}]}),UC}var zde;function y4t(){if(zde)return Lh;zde=1;var e=Lh&&Lh.__rest||function(c,A){var u={};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&A.indexOf(d)<0&&(u[d]=c[d]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,d=Object.getOwnPropertySymbols(c);f<d.length;f++)A.indexOf(d[f])<0&&Object.prototype.propertyIsEnumerable.call(c,d[f])&&(u[d[f]]=c[d[f]]);return u},t=Lh&&Lh.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(Lh,"__esModule",{value:!0});var r=Ur(),n=t(d4t()),a=t(iM()),i=Jl(),o=t(ED());E4t(),(0,i.registerComponentController)("legend",n.default);var s=function(c){return c===void 0};function l(c){var A=c.name,u=c.visible,d=u===void 0?!0:u;c.onChange;var f=c.filter,h=e(c,["name","visible","onChange","filter"]),g=(0,o.default)();return s(A)?d?g.legend(h):g.legend(!1):d?g.legend(A,h):g.legend(A,!1),(0,a.default)(f)&&A&&g.filter(A,f),(0,r.useEffect)(function(){g.on("legend:valuechanged",function(p){(0,a.default)(c.onChange)&&c.onChange(p,g)}),g.on("legend-item:click",function(p){if((0,a.default)(c.onChange)){var m=p.target,y=m.get("delegateObject"),C=y.item;p.item=C,c.onChange(p,g)}})},[]),null}return Lh.default=l,Lh}var C4t=y4t();const Im=gn(C4t);var Yh={},$2={},eS={},Kp={},Lde;function Yd(){if(Lde)return Kp;Lde=1,Object.defineProperty(Kp,"__esModule",{value:!0}),Kp.getBackgroundRectStyle=Kp.getStyle=void 0;var e=Mr,t=Br;function r(a,i,o,s){s===void 0&&(s="");var l=a.style,c=l===void 0?{}:l,A=a.defaultStyle,u=a.color,d=a.size,f=(0,e.__assign)((0,e.__assign)({},A),c);return u&&(i&&(c.stroke||(f.stroke=u)),o&&(c.fill||(f.fill=u))),s&&(0,t.isNil)(c[s])&&!(0,t.isNil)(d)&&(f[s]=d),f}Kp.getStyle=r;function n(a){return(0,t.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,t.get)(a,["background","style"]))}return Kp.getBackgroundRectStyle=n,Kp}var is={},Yde;function sM(){if(Yde)return is;Yde=1,Object.defineProperty(is,"__esModule",{value:!0}),is.getRectWithCornerRadius=is.getFunnelPath=is.getIntervalRectPath=is.getBackgroundRectPath=is.parseRadius=is.getRectPath=is.getRectPoints=void 0;var e=Br,t=Bc();function r(c){var A=c.x,u=c.y,d=c.y0,f=c.size,h,g;(0,e.isArray)(u)?(h=u[0],g=u[1]):(h=d,g=u);var p,m;(0,e.isArray)(A)?(p=A[0],m=A[1]):(p=A-f/2,m=A+f/2);var y=[{x:p,y:h},{x:p,y:g}];return y.push({x:m,y:g},{x:m,y:h}),y}is.getRectPoints=r;function n(c,A){A===void 0&&(A=!0);var u=[],d=c[0];u.push(["M",d.x,d.y]);for(var f=1,h=c.length;f<h;f++)u.push(["L",c[f].x,c[f].y]);return A&&(u.push(["L",d.x,d.y]),u.push(["z"])),u}is.getRectPath=n;function a(c,A){var u=0,d=0,f=0,h=0;return(0,e.isArray)(c)?c.length===1?u=d=f=h=c[0]:c.length===2?(u=f=c[0],d=h=c[1]):c.length===3?(u=c[0],d=h=c[1],f=c[2]):(u=c[0],d=c[1],f=c[2],h=c[3]):u=d=f=h=c,u+d>A&&(u=u?A/(1+d/u):0,d=A-u),f+h>A&&(f=f?A/(1+h/f):0,h=A-f),[u||0,d||0,f||0,h||0]}is.parseRadius=a;function i(c,A,u){var d=[];if(u.isRect){var f=u.isTransposed?{x:u.start.x,y:A[0].y}:{x:A[0].x,y:u.start.y},h=u.isTransposed?{x:u.end.x,y:A[2].y}:{x:A[3].x,y:u.end.y},g=(0,e.get)(c,["background","style","radius"]);if(g){var p=u.isTransposed?Math.abs(A[0].y-A[2].y):A[2].x-A[1].x,m=u.isTransposed?u.getWidth():u.getHeight(),y=a(g,Math.min(p,m)),C=y[0],w=y[1],B=y[2],x=y[3];d.push(["M",f.x,h.y+C]),C!==0&&d.push(["A",C,C,0,0,1,f.x+C,h.y]),d.push(["L",h.x-w,h.y]),w!==0&&d.push(["A",w,w,0,0,1,h.x,h.y+w]),d.push(["L",h.x,f.y-B]),B!==0&&d.push(["A",B,B,0,0,1,h.x-B,f.y]),d.push(["L",f.x+x,f.y]),x!==0&&d.push(["A",x,x,0,0,1,f.x,f.y-x])}else d.push(["M",f.x,f.y]),d.push(["L",h.x,f.y]),d.push(["L",h.x,h.y]),d.push(["L",f.x,h.y]),d.push(["L",f.x,f.y]);d.push(["z"])}if(u.isPolar){var M=u.getCenter(),S=(0,t.getAngle)(c,u),R=S.startAngle,b=S.endAngle;if(u.type!=="theta"&&!u.isTransposed)d=(0,t.getSectorPath)(M.x,M.y,u.getRadius(),R,b);else{var T=function(N){return Math.pow(N,2)},C=Math.sqrt(T(M.x-A[0].x)+T(M.y-A[0].y)),w=Math.sqrt(T(M.x-A[2].x)+T(M.y-A[2].y));d=(0,t.getSectorPath)(M.x,M.y,C,u.startAngle,u.endAngle,w)}}return d}is.getBackgroundRectPath=i;function o(c,A,u){var d=u.getWidth(),f=u.getHeight(),h=u.type==="rect",g=[],p=(c[2].x-c[1].x)/2,m=u.isTransposed?p*f/d:p*d/f;return A==="round"?(h?(g.push(["M",c[0].x,c[0].y+m]),g.push(["L",c[1].x,c[1].y-m]),g.push(["A",p,p,0,0,1,c[2].x,c[2].y-m]),g.push(["L",c[3].x,c[3].y+m]),g.push(["A",p,p,0,0,1,c[0].x,c[0].y+m])):(g.push(["M",c[0].x,c[0].y]),g.push(["L",c[1].x,c[1].y]),g.push(["A",p,p,0,0,1,c[2].x,c[2].y]),g.push(["L",c[3].x,c[3].y]),g.push(["A",p,p,0,0,1,c[0].x,c[0].y])),g.push(["z"])):g=n(c),g}is.getIntervalRectPath=o;function s(c,A,u){var d=[];return(0,e.isNil)(A)?u?d.push(["M",c[0].x,c[0].y],["L",c[1].x,c[1].y],["L",(c[2].x+c[3].x)/2,(c[2].y+c[3].y)/2],["Z"]):d.push(["M",c[0].x,c[0].y],["L",c[1].x,c[1].y],["L",c[2].x,c[2].y],["L",c[3].x,c[3].y],["Z"]):d.push(["M",c[0].x,c[0].y],["L",c[1].x,c[1].y],["L",A[1].x,A[1].y],["L",A[0].x,A[0].y],["Z"]),d}is.getFunnelPath=s;function l(c,A,u){var d,f,h,g,p=c[0],m=c[1],y=c[2],C=c[3],w=[0,0,0,0],B=w[0],x=w[1],M=w[2],S=w[3];p.y<m.y?(m=c[0],p=c[1],C=c[2],y=c[3],d=a(u,Math.min(C.x-p.x,p.y-m.y)),S=d[0],M=d[1],x=d[2],B=d[3]):(f=a(u,Math.min(C.x-p.x,p.y-m.y)),B=f[0],x=f[1],M=f[2],S=f[3]),A.isTransposed&&(p=c[0],C=c[1],y=c[2],m=c[3],c[0].x>c[1].x?(C=c[0],p=c[1],m=c[2],y=c[3],h=a(u,Math.min(C.x-p.x,p.y-m.y)),B=h[0],S=h[1],M=h[2],x=h[3]):(g=a(u,Math.min(C.x-p.x,p.y-m.y)),x=g[0],M=g[1],S=g[2],B=g[3]));var R=[];return R.push(["M",m.x,m.y+B]),B!==0&&R.push(["A",B,B,0,0,1,m.x+B,m.y]),R.push(["L",y.x-x,y.y]),x!==0&&R.push(["A",x,x,0,0,1,y.x,y.y+x]),R.push(["L",C.x,C.y-M]),M!==0&&R.push(["A",M,M,0,0,1,C.x-M,C.y]),R.push(["L",p.x+S,p.y]),S!==0&&R.push(["A",S,S,0,0,1,p.x,p.y-S]),R.push(["L",m.x,m.y+B]),R.push(["z"]),R}return is.getRectWithCornerRadius=l,is}var Ude;function w4t(){if(Ude)return eS;Ude=1,Object.defineProperty(eS,"__esModule",{value:!0});var e=Mr,t=Vl(),r=tG(),n=Yd(),a=sM(),i=(0,t.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(o){return(0,a.getRectPoints)(o)}});return(0,t.registerShape)("interval","rect",{draw:function(o,s){var l=(0,n.getStyle)(o,!1,!0),c=s,A=o?.background;if(A){c=s.addGroup();var u=(0,n.getBackgroundRectStyle)(o),d=(0,a.getBackgroundRectPath)(o,this.parsePoints(o.points),this.coordinate);c.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},u),{path:d}),zIndex:-1,name:r.BACKGROUND_SHAPE})}var f;l.radius&&this.coordinate.isRect?f=(0,a.getRectWithCornerRadius)(this.parsePoints(o.points),this.coordinate,l.radius):f=this.parsePath((0,a.getIntervalRectPath)(o.points,l.lineCap,this.coordinate));var h=c.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},l),{path:f}),name:"interval"});return A?c:h},getMarker:function(o){var s=o.color,l=o.isInPolar;return l?{symbol:"circle",style:{r:4.5,fill:s}}:{symbol:"square",style:{r:4,fill:s}}}}),eS.default=i,eS}var GC={},Hde;function B4t(){if(Hde)return GC;Hde=1,Object.defineProperty(GC,"__esModule",{value:!0}),GC.getDefaultSize=void 0;var e=Br,t=uu();function r(i,o){var s=i.length,l=i;(0,e.isString)(l[0])&&(l=i.map(function(d){return o.translate(d)}));for(var c=l[1]-l[0],A=2;A<s;A++){var u=l[A]-l[A-1];c>u&&(c=u)}return c}function n(i,o){if(o){var s=(0,e.flatten)(i),l=(0,e.valuesOfKey)(s,o);return l.length}return i.length}function a(i){var o=i.theme,s=i.coordinate,l=i.getXScale(),c=l.values,A=i.beforeMappingData,u=c.length,d=(0,t.getXDimensionLength)(i.coordinate),f=i.intervalPadding,h=i.dodgePadding,g=i.maxColumnWidth||o.maxColumnWidth,p=i.minColumnWidth||o.minColumnWidth,m=i.columnWidthRatio||o.columnWidthRatio,y=i.multiplePieWidthRatio||o.multiplePieWidthRatio,C=i.roseWidthRatio||o.roseWidthRatio;if(l.isLinear&&c.length>1){c.sort();var w=r(c,l);u=(l.max-l.min)/w,c.length>u&&(u=c.length)}var B=l.range,x=1/u,M=1;if(s.isPolar?s.isTransposed&&u>1?M=y:M=C:(l.isLinear&&(x*=B[1]-B[0]),M=m),!(0,e.isNil)(f)&&f>=0){var S=f/d;x=(1-(u-1)*S)/u}else x*=M;if(i.getAdjust("dodge")){var R=i.getAdjust("dodge"),b=R.dodgeBy,T=n(A,b);if(!(0,e.isNil)(h)&&h>=0){var D=h/d;x=(x-D*(T-1))/T}else!(0,e.isNil)(f)&&f>=0&&(x*=M),x=x/T;x=x>=0?x:0}if(!(0,e.isNil)(g)&&g>=0){var F=g/d;x>F&&(x=F)}if(!(0,e.isNil)(p)&&p>=0){var N=p/d;x<N&&(x=N)}return x}return GC.getDefaultSize=a,GC}var Gde;function x4t(){if(Gde)return $2;Gde=1,Object.defineProperty($2,"__esModule",{value:!0});var e=Mr,t=Br,r=uu(),n=(0,e.__importDefault)(bD());w4t();var a=B4t(),i=qy(),o=(function(s){(0,e.__extends)(l,s);function l(c){var A=s.call(this,c)||this;A.type="interval",A.shapeType="interval",A.generatePoints=!0;var u=c.background;return A.background=u,A}return l.prototype.createShapePointsCfg=function(c){var A=s.prototype.createShapePointsCfg.call(this,c),u,d=this.getAttribute("size");if(d){u=this.getAttributeValues(d,c)[0];var f=this.coordinate,h=(0,r.getXDimensionLength)(f);u=u/h}else this.defaultSize||(this.defaultSize=(0,a.getDefaultSize)(this)),u=this.defaultSize;return A.size=u,A},l.prototype.adjustScale=function(){s.prototype.adjustScale.call(this);var c=this.getYScale();if(this.coordinate.type==="theta")c.change({nice:!1,min:0,max:(0,i.getMaxScale)(c)});else{var A=this.scaleDefs,u=c.field,d=c.min,f=c.max,h=c.type;h!=="time"&&(d>0&&!(0,t.get)(A,[u,"min"])&&c.change({min:0}),f<=0&&!(0,t.get)(A,[u,"max"])&&c.change({max:0}))}},l.prototype.getDrawCfg=function(c){var A=s.prototype.getDrawCfg.call(this,c);return A.background=this.background,A},l})(n.default);return $2.default=o,$2}var tS={},Kde;function tQe(){if(Kde)return tS;Kde=1,Object.defineProperty(tS,"__esModule",{value:!0});var e=Mr,t=Br,r=(0,e.__importDefault)(nM()),n=(function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.getLabelValueDir=function(o){var s="y",l=o.points;return l[0][s]<=l[2][s]?1:-1},i.prototype.getLabelOffsetPoint=function(o,s,l,c){var A,u=a.prototype.getLabelOffsetPoint.call(this,o,s,l),d=this.getCoordinate(),f=d.isTransposed,h=f?"x":"y",g=this.getLabelValueDir(o.mappingData);return u=(0,e.__assign)((0,e.__assign)({},u),(A={},A[h]=u[h]*g,A)),d.isReflect("x")&&(u=(0,e.__assign)((0,e.__assign)({},u),{x:u.x*-1})),d.isReflect("y")&&(u=(0,e.__assign)((0,e.__assign)({},u),{y:u.y*-1})),u},i.prototype.getThemedLabelCfg=function(o){var s=this.geometry,l=this.getDefaultLabelCfg(),c=s.theme;return(0,t.deepMix)({},l,c.labels,o.position==="middle"?{offset:0}:{},o)},i.prototype.setLabelPosition=function(o,s,l,c){var A=this.getCoordinate(),u=A.isTransposed,d=s.points,f=A.convert(d[0]),h=A.convert(d[2]),g=this.getLabelValueDir(s),p,m,y,C,w=(0,t.isArray)(s.shape)?s.shape[0]:s.shape;if(w==="funnel"||w==="pyramid"){var B=(0,t.get)(s,"nextPoints"),x=(0,t.get)(s,"points");if(B){var M=A.convert(x[0]),S=A.convert(x[1]),R=A.convert(B[0]),b=A.convert(B[1]);u?(p=Math.min(R.y,M.y),y=Math.max(R.y,M.y),m=(S.x+b.x)/2,C=(M.x+R.x)/2):(p=Math.min((S.y+b.y)/2,(M.y+R.y)/2),y=Math.max((S.y+b.y)/2,(M.y+R.y)/2),m=b.x,C=M.x)}else p=Math.min(h.y,f.y),y=Math.max(h.y,f.y),m=h.x,C=f.x}else p=Math.min(h.y,f.y),y=Math.max(h.y,f.y),m=h.x,C=f.x;switch(c){case"right":o.x=m,o.y=(p+y)/2,o.textAlign=(0,t.get)(o,"textAlign",g>0?"left":"right");break;case"left":o.x=C,o.y=(p+y)/2,o.textAlign=(0,t.get)(o,"textAlign",g>0?"left":"right");break;case"bottom":u&&(o.x=(m+C)/2),o.y=y,o.textAlign=(0,t.get)(o,"textAlign","center"),o.textBaseline=(0,t.get)(o,"textBaseline",g>0?"bottom":"top");break;case"middle":u&&(o.x=(m+C)/2),o.y=(p+y)/2,o.textAlign=(0,t.get)(o,"textAlign","center"),o.textBaseline=(0,t.get)(o,"textBaseline","middle");break;case"top":u&&(o.x=(m+C)/2),o.y=p,o.textAlign=(0,t.get)(o,"textAlign","center"),o.textBaseline=(0,t.get)(o,"textBaseline",g>0?"bottom":"top");break}},i})(r.default);return tS.default=n,tS}var rS={},nS={},Vde;function rQe(){if(Vde)return nS;Vde=1,Object.defineProperty(nS,"__esModule",{value:!0});var e=Mr,t=Br,r=uu(),n=uu(),a=(0,e.__importDefault)(nM()),i=Math.PI/2,o=(function(s){(0,e.__extends)(l,s);function l(){return s!==null&&s.apply(this,arguments)||this}return l.prototype.getLabelOffset=function(c){var A=this.getCoordinate(),u=0;if((0,t.isNumber)(c))u=c;else if((0,t.isString)(c)&&c.indexOf("%")!==-1){var d=A.getRadius();A.innerRadius>0&&(d=d*(1-A.innerRadius)),u=parseFloat(c)*.01*d}return u},l.prototype.getLabelItems=function(c){var A=s.prototype.getLabelItems.call(this,c),u=this.geometry.getYScale();return(0,t.map)(A,function(d){if(d&&u){var f=u.scale((0,t.get)(d.data,u.field));return(0,e.__assign)((0,e.__assign)({},d),{percent:f})}return d})},l.prototype.getLabelAlign=function(c){var A=this.getCoordinate(),u;if(c.labelEmit)u=c.angle<=Math.PI/2&&c.angle>=-Math.PI/2?"left":"right";else if(!A.isTransposed)u="center";else{var d=A.getCenter(),f=c.offset;Math.abs(c.x-d.x)<1?u="center":c.angle>Math.PI||c.angle<=0?u=f>0?"left":"right":u=f>0?"right":"left"}return u},l.prototype.getLabelPoint=function(c,A,u){var d=1,f,h=c.content[u];this.isToMiddle(A)?f=this.getMiddlePoint(A.points):(c.content.length===1&&u===0?u=1:u===0&&(d=-1),f=this.getArcPoint(A,u));var g=c.offset*d,p=this.getPointAngle(f),m=c.labelEmit,y=this.getCirclePoint(p,g,f,m);return y.r===0?y.content="":(y.content=h,y.angle=p,y.color=A.color),y.rotate=c.autoRotate?this.getLabelRotate(p,g,m):c.rotate,y.start={x:f.x,y:f.y},y},l.prototype.getArcPoint=function(c,A){return A===void 0&&(A=0),!(0,t.isArray)(c.x)&&!(0,t.isArray)(c.y)?{x:c.x,y:c.y}:{x:(0,t.isArray)(c.x)?c.x[A]:c.x,y:(0,t.isArray)(c.y)?c.y[A]:c.y}},l.prototype.getPointAngle=function(c){return(0,n.getAngleByPoint)(this.getCoordinate(),c)},l.prototype.getCirclePoint=function(c,A,u,d){var f=this.getCoordinate(),h=f.getCenter(),g=(0,r.getDistanceToCenter)(f,u);if(g===0)return(0,e.__assign)((0,e.__assign)({},h),{r:g});var p=c;if(f.isTransposed&&g>A&&!d){var m=Math.asin(A/(2*g));p=c+m*2}else g=g+A;return{x:h.x+g*Math.cos(p),y:h.y+g*Math.sin(p),r:g}},l.prototype.getLabelRotate=function(c,A,u){var d=c+i;return u&&(d-=i),d&&(d>i?d=d-Math.PI:d<-i&&(d=d+Math.PI)),d},l.prototype.getMiddlePoint=function(c){var A=this.getCoordinate(),u=c.length,d={x:0,y:0};return(0,t.each)(c,function(f){d.x+=f.x,d.y+=f.y}),d.x/=u,d.y/=u,d=A.convert(d),d},l.prototype.isToMiddle=function(c){return c.x.length>2},l})(a.default);return nS.default=o,nS}var Jde;function nQe(){if(Jde)return rS;Jde=1,Object.defineProperty(rS,"__esModule",{value:!0});var e=Mr,t=Br,r=uu(),n=Bc(),a=(0,e.__importDefault)(rQe()),i=(function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.defaultLayout="distribute",l}return s.prototype.getDefaultLabelCfg=function(l,c){var A=o.prototype.getDefaultLabelCfg.call(this,l,c);return(0,t.deepMix)({},A,(0,t.get)(this.geometry.theme,"pieLabels",{}))},s.prototype.getLabelOffset=function(l){return o.prototype.getLabelOffset.call(this,l)||0},s.prototype.getLabelRotate=function(l,c,A){var u;return c<0&&(u=l,u>Math.PI/2&&(u=u-Math.PI),u<-Math.PI/2&&(u=u+Math.PI)),u},s.prototype.getLabelAlign=function(l){var c=this.getCoordinate(),A=c.getCenter(),u;return l.angle<=Math.PI/2&&l.x>=A.x?u="left":u="right",l.offset<=0&&(u==="right"?u="left":u="right"),u},s.prototype.getArcPoint=function(l){return l},s.prototype.getPointAngle=function(l){var c=this.getCoordinate(),A={x:(0,t.isArray)(l.x)?l.x[0]:l.x,y:l.y[0]},u={x:(0,t.isArray)(l.x)?l.x[1]:l.x,y:l.y[1]},d,f=(0,r.getAngleByPoint)(c,A);if(l.points&&l.points[0].y===l.points[1].y)d=f;else{var h=(0,r.getAngleByPoint)(c,u);f>=h&&(h=h+Math.PI*2),d=f+(h-f)/2}return d},s.prototype.getCirclePoint=function(l,c){var A=this.getCoordinate(),u=A.getCenter(),d=A.getRadius()+c;return(0,e.__assign)((0,e.__assign)({},(0,n.polarToCartesian)(u.x,u.y,d,l)),{angle:l,r:d})},s})(a.default);return rS.default=i,rS}var Uh={},Q0={},Wde;function M4t(){if(Wde)return Q0;Wde=1;var e=Q0&&Q0.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Q0,"__esModule",{value:!0});var t=e(Zy()),r=e(oh()),n=e(uG());return Q0.default=(function(a,i,o,s){if(a===null){(0,t.default)(o,function(A){var u=i[A];u!==void 0&&((0,r.default)(u)||(u=[u]),s(u,A))});return}var l,c;(0,t.default)(o,function(A){l=a[A],c=i[A],(0,n.default)(c,l)||((0,r.default)(c)||(c=[c]),s(c,A))})}),Q0}var Hh={},KC={},Xde;function I4t(){if(Xde)return KC;Xde=1,Object.defineProperty(KC,"__esModule",{value:!0}),KC.distribute=void 0;var e=Br,t=Bc(),r=4;function n(i,o,s,l,c,A){var u=!0,d=l.start,f=l.end,h=Math.min(d.y,f.y),g=Math.abs(d.y-f.y),p,m=0,y=Number.MIN_VALUE,C=o.map(function(b){return b.y>m&&(m=b.y),b.y<y&&(y=b.y),{size:s,targets:[b.y-h]}});for(y-=h,m-h>g&&(g=m-h);u;)for(C.forEach(function(b){var T=(Math.min.apply(y,b.targets)+Math.max.apply(y,b.targets))/2;b.pos=Math.min(Math.max(y,T-b.size/2),g-b.size)}),u=!1,p=C.length;p--;)if(p>0){var w=C[p-1],B=C[p];w.pos+w.size>B.pos&&(w.size+=B.size,w.targets=w.targets.concat(B.targets),w.pos+w.size>g&&(w.pos=g-w.size),C.splice(p,1),u=!0)}p=0,C.forEach(function(b){var T=h+s/2;b.targets.forEach(function(){o[p].y=b.pos+T,T+=s,p++})});for(var x={},M=0,S=i;M<S.length;M++){var R=S[M];x[R.get("id")]=R}o.forEach(function(b){var T=b.r*b.r,D=Math.pow(Math.abs(b.y-c.y),2);if(T<D)b.x=c.x;else{var F=Math.sqrt(T-D);A?b.x=c.x+F:b.x=c.x-F}var N=x[b.id];N.attr("x",b.x),N.attr("y",b.y);var _=(0,e.find)(N.getChildren(),function(P){return P.get("type")==="text"});_&&(_.attr("y",b.y),_.attr("x",b.x))})}function a(i,o,s,l){if(!(!i.length||!o.length)){var c=i[0]?i[0].offset:0,A=o[0].get("coordinate"),u=A.getRadius(),d=A.getCenter();if(c>0){var f=14,h=u+c,g=h*2+f*2,p={start:A.start,end:A.end},m=[[],[]];i.forEach(function(y){y&&(y.textAlign==="right"?m[0].push(y):m[1].push(y))}),m.forEach(function(y,C){var w=g/f;y.length>w&&(y.sort(function(B,x){return x["..percent"]-B["..percent"]}),y.splice(w,y.length-w)),y.sort(function(B,x){return B.y-x.y}),n(o,y,f,p,d,C)})}(0,e.each)(i,function(y){if(y&&y.labelLine){var C=y.offset,w=y.angle,B=(0,t.polarToCartesian)(d.x,d.y,u,w),x=(0,t.polarToCartesian)(d.x,d.y,u+C/2,w),M=y.x+(0,e.get)(y,"offsetX",0),S=y.y+(0,e.get)(y,"offsetY",0),R={x:M-Math.cos(w)*r,y:S-Math.sin(w)*r};(0,e.isObject)(y.labelLine)||(y.labelLine={}),y.labelLine.path=["M "+B.x,B.y+" Q"+x.x,x.y+" "+R.x,R.y].join(",")}})}}return KC.distribute=a,KC}var VC={},qde;function b4t(){if(qde)return VC;qde=1,Object.defineProperty(VC,"__esModule",{value:!0}),VC.limitInCanvas=void 0;var e=Br,t=SD();function r(n,a,i,o){(0,e.each)(a,function(s){var l=o.minX,c=o.minY,A=o.maxX,u=o.maxY,d=s.getCanvasBBox(),f=d.minX,h=d.minY,g=d.maxX,p=d.maxY,m=d.x,y=d.y,C=d.width,w=d.height,B=m,x=y;(f<l||g<l)&&(B=l),(h<c||p<c)&&(x=c),f>A?B=A-C:g>A&&(B=B-(g-A)),h>u?x=u-w:p>u&&(x=x-(p-u)),(B!==m||x!==y)&&(0,t.translate)(s,B-m,x-y)})}return VC.limitInCanvas=r,VC}var JC={},Zde;function S4t(){if(Zde)return JC;Zde=1,Object.defineProperty(JC,"__esModule",{value:!0}),JC.limitInShape=void 0;var e=Br;function t(r,n,a,i){(0,e.each)(n,function(o,s){var l=o.getCanvasBBox(),c=a[s].getBBox();(l.minX<c.minX||l.minY<c.minY||l.maxX>c.maxX||l.maxY>c.maxY)&&o.remove(!0)})}return JC.limitInShape=t,JC}var Vp={},$de;function R4t(){if($de)return Vp;$de=1,Object.defineProperty(Vp,"__esModule",{value:!0}),Vp.overlap=Vp.fixedOverlap=void 0;var e=Br,t=100,r=(function(){function s(l){l===void 0&&(l={}),this.bitmap={};var c=l.xGap,A=c===void 0?1:c,u=l.yGap,d=u===void 0?8:u;this.xGap=A,this.yGap=d}return s.prototype.hasGap=function(l){for(var c=!0,A=this.bitmap,u=Math.round(l.minX),d=Math.round(l.maxX),f=Math.round(l.minY),h=Math.round(l.maxY),g=u;g<=d;g+=1){if(!A[g]){A[g]={};continue}if(g===u||g===d){for(var p=f;p<=h;p++)if(A[g][p]){c=!1;break}}else if(A[g][f]||A[g][h]){c=!1;break}}return c},s.prototype.fillGap=function(l){for(var c=this.bitmap,A=Math.round(l.minX),u=Math.round(l.maxX),d=Math.round(l.minY),f=Math.round(l.maxY),h=A;h<=u;h+=1)c[h]||(c[h]={});for(var h=A;h<=u;h+=this.xGap){for(var g=d;g<=f;g+=this.yGap)c[h][g]=!0;c[h][f]=!0}if(this.yGap!==1)for(var h=d;h<=f;h+=1)c[A][h]=!0,c[u][h]=!0;if(this.xGap!==1)for(var h=A;h<=u;h+=1)c[h][d]=!0,c[h][f]=!0},s.prototype.destroy=function(){this.bitmap={}},s})();function n(s,l,c){c===void 0&&(c=t);var A=-1,u=s.attr(),d=u.x,f=u.y,h=s.getCanvasBBox(),g=Math.sqrt(h.width*h.width+h.height*h.height),p,m=-A,y=0,C=0,w=function(S){var R=S*.1;return[R*Math.cos(R),R*Math.sin(R)]};if(l.hasGap(h))return l.fillGap(h),!0;for(var B=!1,x=0,M={};Math.min(Math.abs(y),Math.abs(C))<g&&x<c;)if(p=w(m+=A),y=~~p[0],C=~~p[1],!(!y&&!C||M[y+"-"+C])&&(s.attr({x:d+y,y:f+C}),y+C<0&&s.attr("textAlign","right"),x++,l.hasGap(s.getCanvasBBox()))){l.fillGap(s.getCanvasBBox()),B=!0,M[y+"-"+C]=!0;break}return B}function a(s,l,c,A){var u=s.getCanvasBBox(),d=u.width,f=u.height,h={x:l,y:c,textAlign:"center"};switch(A){case 0:h.y-=f+1,h.x+=1,h.textAlign="left";break;case 1:h.y-=f+1,h.x-=1,h.textAlign="right";break;case 2:h.y+=f+1,h.x-=1,h.textAlign="right";break;case 3:h.y+=f+1,h.x+=1,h.textAlign="left";break;case 5:h.y-=f*2+2;break;case 6:h.y+=f*2+2;break;case 7:h.x+=d+1,h.textAlign="left";break;case 8:h.x-=d+1,h.textAlign="right";break}return s.attr(h),s.getCanvasBBox()}function i(s,l,c,A){var u=new r;(0,e.each)(l,function(d){var f=d.find(function(h){return h.get("type")==="text"});n(f,u)||d.remove(!0)}),u.destroy()}Vp.fixedOverlap=i;function o(s,l,c,A){var u=new r;(0,e.each)(l,function(d){for(var f=d.find(function(w){return w.get("type")==="text"}),h=f.attr(),g=h.x,p=h.y,m=!1,y=0;y<=8;y++){var C=a(f,g,p,y);if(u.hasGap(C)){u.fillGap(C),m=!0;break}}m||d.remove(!0)}),u.destroy()}return Vp.overlap=o,Vp}var efe;function T4t(){if(efe)return Hh;efe=1;var e=Hh&&Hh.__rest||function(h,g){var p={};for(var m in h)Object.prototype.hasOwnProperty.call(h,m)&&g.indexOf(m)<0&&(p[m]=h[m]);if(h!=null&&typeof Object.getOwnPropertySymbols=="function")for(var y=0,m=Object.getOwnPropertySymbols(h);y<m.length;y++)g.indexOf(m[y])<0&&Object.prototype.propertyIsEnumerable.call(h,m[y])&&(p[m[y]]=h[m[y]]);return p},t=Hh&&Hh.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Hh,"__esModule",{value:!0});var r=t(Ur()),n=t(nM()),a=t(tQe()),i=t(nQe()),o=t(rQe()),s=I4t(),l=b4t(),c=S4t(),A=R4t(),u=Jl(),d=t(RD());(0,u.registerGeometryLabel)("base",n.default),(0,u.registerGeometryLabel)("interval",a.default),(0,u.registerGeometryLabel)("pie",i.default),(0,u.registerGeometryLabel)("polar",o.default),(0,u.registerGeometryLabelLayout)("overlap",A.overlap),(0,u.registerGeometryLabelLayout)("distribute",s.distribute),(0,u.registerGeometryLabelLayout)("fixed-overlap",A.fixedOverlap),(0,u.registerGeometryLabelLayout)("limit-in-shape",c.limitInShape),(0,u.registerGeometryLabelLayout)("limit-in-canvas",l.limitInCanvas);function f(h){var g=h.parentInstance,p=h.content,m=e(h,["parentInstance","content"]);return(0,d.default)(!1,"Label组件即将被取消，请使用图形组件的label属性进行配置"),g.label(!1),g.label(p,m),r.default.createElement(r.default.Fragment,null)}return Hh.default=f,Hh}var WC={},aS={},iS={},oS={},tfe;function dG(){if(tfe)return oS;tfe=1,Object.defineProperty(oS,"__esModule",{value:!0});var e=Mr,t=Br,r=(0,e.__importDefault)(Mu()),n=ks(),a=(function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.stateName="",s}return o.prototype.hasState=function(s){return s.hasState(this.stateName)},o.prototype.setElementState=function(s,l){s.setState(this.stateName,l)},o.prototype.setState=function(){this.setStateEnable(!0)},o.prototype.clear=function(){var s=this.context.view;this.clearViewState(s)},o.prototype.clearViewState=function(s){var l=this,c=(0,n.getElementsByState)(s,this.stateName);(0,t.each)(c,function(A){l.setElementState(A,!1)})},o})(r.default);return oS.default=a,oS}var rfe;function fG(){if(rfe)return iS;rfe=1,Object.defineProperty(iS,"__esModule",{value:!0});var e=Mr,t=Br,r=ks(),n=(0,e.__importDefault)(dG());function a(o){return(0,t.get)(o.get("delegateObject"),"item")}var i=(function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.ignoreListItemStates=["unchecked"],l}return s.prototype.isItemIgnore=function(l,c){var A=this.ignoreListItemStates,u=A.filter(function(d){return c.hasState(l,d)});return!!u.length},s.prototype.setStateByComponent=function(l,c,A){var u=this.context.view,d=l.get("field"),f=(0,r.getElements)(u);this.setElementsStateByItem(f,d,c,A)},s.prototype.setStateByElement=function(l,c){this.setElementState(l,c)},s.prototype.isMathItem=function(l,c,A){var u=this.context.view,d=(0,r.getScaleByField)(u,c),f=(0,r.getElementValue)(l,c);return!(0,t.isNil)(f)&&A.name===d.getText(f)},s.prototype.setElementsStateByItem=function(l,c,A,u){var d=this;(0,t.each)(l,function(f){d.isMathItem(f,c,A)&&f.setState(d.stateName,u)})},s.prototype.setStateEnable=function(l){var c=(0,r.getCurrentElement)(this.context);if(c)(0,r.isElementChange)(this.context)&&this.setStateByElement(c,l);else{var A=(0,r.getDelegationObject)(this.context);if((0,r.isList)(A)){var u=A.item,d=A.component;if(u&&d&&!this.isItemIgnore(u,d)){var f=this.context.event.gEvent;if(f&&f.fromShape&&f.toShape&&a(f.fromShape)===a(f.toShape))return;this.setStateByComponent(d,u,l)}}}},s.prototype.toggle=function(){var l=(0,r.getCurrentElement)(this.context);if(l){var c=l.hasState(this.stateName);this.setElementState(l,!c)}},s.prototype.reset=function(){this.setStateEnable(!1)},s})(n.default);return iS.default=i,iS}var nfe;function Q4t(){if(nfe)return aS;nfe=1,Object.defineProperty(aS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(fG()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a})(t.default);return aS.default=r,aS}var sS={},afe;function D4t(){if(afe)return sS;afe=1,Object.defineProperty(sS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(Mu()),r=ks(),n=Br,a=(function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.cache={},s}return o.prototype.getColorScale=function(s,l){var c=l.geometry.getAttribute("color");if(!c)return null;var A=s.getScaleByField(c.getFields()[0]);return A},o.prototype.getLinkPath=function(s,l){var c=this.context.view,A=c.getCoordinate().isTransposed,u=s.shape.getCanvasBBox(),d=l.shape.getCanvasBBox(),f=A?[["M",u.minX,u.minY],["L",d.minX,d.maxY],["L",d.maxX,d.maxY],["L",u.maxX,u.minY],["Z"]]:[["M",u.maxX,u.minY],["L",d.minX,d.minY],["L",d.minX,d.maxY],["L",u.maxX,u.maxY],["Z"]];return f},o.prototype.addLinkShape=function(s,l,c,A){var u={opacity:.4,fill:l.shape.attr("fill")};s.addShape({type:"path",attrs:(0,e.__assign)((0,e.__assign)({},(0,n.deepMix)({},u,(0,n.isFunction)(A)?A(u,l):A)),{path:this.getLinkPath(l,c)})})},o.prototype.linkByElement=function(s,l){var c=this,A=this.context.view,u=this.getColorScale(A,s);if(u){var d=(0,r.getElementValue)(s,u.field);if(!this.cache[d]){var f=(0,r.getElementsByField)(A,u.field,d),h=this.linkGroup,g=h.addGroup();this.cache[d]=g;var p=f.length;(0,n.each)(f,function(m,y){if(y<p-1){var C=f[y+1];c.addLinkShape(g,m,C,l)}})}}},o.prototype.removeLink=function(s){var l=this.getColorScale(this.context.view,s);if(l){var c=(0,r.getElementValue)(s,l.field);this.cache[c]&&(this.cache[c].remove(),this.cache[c]=null)}},o.prototype.link=function(s){var l=this.context;this.linkGroup||(this.linkGroup=l.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var c=(0,r.getCurrentElement)(l);c&&this.linkByElement(c,s?.style)},o.prototype.unlink=function(){var s=(0,r.getCurrentElement)(this.context);s&&this.removeLink(s)},o.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},o.prototype.destroy=function(){i.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},o})(t.default);return sS.default=a,sS}var lS={},cS={},ife;function hG(){if(ife)return cS;ife=1,Object.defineProperty(cS,"__esModule",{value:!0});var e=Mr,t=Br,r=ks(),n=(0,e.__importDefault)(dG()),a=(function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.startPoint=null,s.endPoint=null,s.isStarted=!1,s.effectSiblings=!1,s.effectByRecord=!1,s}return o.prototype.getCurrentPoint=function(){var s=this.context.event;return{x:s.x,y:s.y}},o.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},o.prototype.getIntersectElements=function(){var s=null;if((0,r.isMask)(this.context))s=(0,r.getMaskedElements)(this.context,10);else{var l=this.startPoint,c=this.isStarted?this.getCurrentPoint():this.endPoint;if(!l||!c)return;var A={minX:Math.min(l.x,c.x),minY:Math.min(l.y,c.y),maxX:Math.max(l.x,c.x),maxY:Math.max(l.y,c.y)},u=this.context.view;s=(0,r.getIntersectElements)(u,A)}return s},o.prototype.setStateEnable=function(s){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(s);else{var l=(0,r.getElements)(this.context.view),c=this.getIntersectElements();c&&c.length?this.effectByRecord?this.setSiblingsStateByRecord(c,s):this.setElementsState(c,s,l):this.clear()}},o.prototype.setSiblingsStateByRecord=function(s,l){var c=this,A=this.context.view,u=(0,r.getSilbings)(A),d=s.map(function(g){return g.getModel().data}),f=A.getXScale().field,h=A.getYScales()[0].field;(0,t.each)(u,function(g){var p=(0,r.getElements)(g),m=p.filter(function(y){var C=y.getModel().data;return(0,r.isInRecords)(d,C,f,h)});c.setElementsState(m,l,p)})},o.prototype.setSiblingsState=function(s){var l=this,c=this.context.view,A=(0,r.getSilbings)(c);(0,r.isMask)(this.context)&&(0,t.each)(A,function(u){var d=(0,r.getElements)(u),f=(0,r.getSiblingMaskElements)(l.context,u,10);f&&f.length?l.setElementsState(f,s,d):l.clearViewState(u)})},o.prototype.setElementsState=function(s,l,c){var A=this;(0,t.each)(c,function(u){s.includes(u)?A.setElementState(u,l):A.setElementState(u,!1)})},o.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},o.prototype.clear=function(){var s=this,l=this.context.view;if(this.effectSiblings){var c=(0,r.getSilbings)(l);(0,t.each)(c,function(A){s.clearViewState(A)})}else this.clearViewState(l)},o})(n.default);return cS.default=a,cS}var ofe;function F4t(){if(ofe)return lS;ofe=1,Object.defineProperty(lS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(hG()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a})(t.default);return lS.default=r,lS}var AS={},uS={},sfe;function gG(){if(sfe)return uS;sfe=1,Object.defineProperty(uS,"__esModule",{value:!0});var e=Mr,t=ks(),r=(0,e.__importDefault)(dG()),n=(function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.setStateEnable=function(o){var s=(0,t.getCurrentElement)(this.context);if(s){if(!(0,t.isElementChange)(this.context))return;o?(this.clear(),this.setElementState(s,!0)):this.hasState(s)&&this.setElementState(s,!1)}},i.prototype.toggle=function(){var o=(0,t.getCurrentElement)(this.context);if(o){var s=this.hasState(o);s||this.clear(),this.setElementState(o,!s)}},i.prototype.reset=function(){this.setStateEnable(!1)},i})(r.default);return uS.default=n,uS}var lfe;function N4t(){if(lfe)return AS;lfe=1,Object.defineProperty(AS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(gG()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="active",i}return a.prototype.active=function(){this.setState()},a})(t.default);return AS.default=r,AS}var wj={},Jp={},cfe;function pG(){if(cfe)return Jp;cfe=1,Object.defineProperty(Jp,"__esModule",{value:!0}),Jp.setHighlightBy=Jp.clearHighlight=void 0;var e=Br,t=ks(),r="inactive",n="active";function a(o){var s=(0,t.getElements)(o);(0,e.each)(s,function(l){l.hasState(n)&&l.setState(n,!1),l.hasState(r)&&l.setState(r,!1)})}Jp.clearHighlight=a;function i(o,s,l){(0,e.each)(o,function(c){s(c)?(c.hasState(r)&&c.setState(r,!1),c.setState(n,l)):(c.hasState(n)&&c.setState(n,!1),c.setState(r,l))})}return Jp.setHighlightBy=i,Jp}var Afe;function vG(){return Afe||(Afe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var t=Mr,r=Br,n=ks(),a=pG(),i=(0,t.__importDefault)(fG()),o=Wi();e.STATUS_UNACTIVE=o.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=o.ELEMENT_STATE.ACTIVE;var s=(function(l){(0,t.__extends)(c,l);function c(){var A=l!==null&&l.apply(this,arguments)||this;return A.stateName=e.STATUS_ACTIVE,A}return c.prototype.setElementsStateByItem=function(A,u,d,f){var h=this,g=function(p){return h.isMathItem(p,u,d)};this.setHighlightBy(A,g,f)},c.prototype.setElementHighlight=function(A,u){u(A)?(A.hasState(e.STATUS_UNACTIVE)&&A.setState(e.STATUS_UNACTIVE,!1),A.setState(e.STATUS_ACTIVE,!0)):A.hasState(e.STATUS_ACTIVE)||A.setState(e.STATUS_UNACTIVE,!0)},c.prototype.setHighlightBy=function(A,u,d){var f=this;if(d)(0,r.each)(A,function(p){f.setElementHighlight(p,u)});else{var h=(0,n.getElementsByState)(this.context.view,e.STATUS_ACTIVE),g=!0;(0,r.each)(h,function(p){if(!u(p))return g=!1,!1}),g?this.clear():(0,r.each)(A,function(p){u(p)&&(p.hasState(e.STATUS_ACTIVE)&&p.setState(e.STATUS_ACTIVE,!1),p.setState(e.STATUS_UNACTIVE,!0))})}},c.prototype.setElementState=function(A,u){var d=this.context.view,f=(0,n.getElements)(d);this.setHighlightBy(f,function(h){return A===h},u)},c.prototype.highlight=function(){this.setState()},c.prototype.clear=function(){var A=this.context.view;(0,a.clearHighlight)(A)},c})(i.default);e.default=s})(wj)),wj}var dS={},ufe;function _4t(){if(ufe)return dS;ufe=1,Object.defineProperty(dS,"__esModule",{value:!0});var e=Mr,t=ks(),r=(0,e.__importStar)(vG()),n=(function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.setElementHighlight=function(o,s){s(o)?(o.hasState(r.STATUS_UNACTIVE)&&o.setState(r.STATUS_UNACTIVE,!1),o.setState(r.STATUS_ACTIVE,!0)):(o.setState(r.STATUS_UNACTIVE,!0),o.hasState(r.STATUS_ACTIVE)&&o.setState(r.STATUS_ACTIVE,!1))},i.prototype.setStateByElement=function(o,s){var l=this.context.view,c=l.getXScale(),A=(0,t.getElementValue)(o,c.field),u=(0,t.getElements)(l),d=u.filter(function(f){return(0,t.getElementValue)(f,c.field)===A});this.setHighlightBy(u,function(f){return d.includes(f)},s)},i.prototype.toggle=function(){var o=(0,t.getCurrentElement)(this.context);if(o){var s=o.hasState(this.stateName);this.setStateByElement(o,!s)}},i})(r.default);return dS.default=n,dS}var fS={},dfe;function k4t(){if(dfe)return fS;dfe=1,Object.defineProperty(fS,"__esModule",{value:!0});var e=Mr,t=ks(),r=(0,e.__importDefault)(vG()),n=(function(a){(0,e.__extends)(i,a);function i(){return a!==null&&a.apply(this,arguments)||this}return i.prototype.setStateByElement=function(o,s){var l=this.context.view,c=o.geometry.getAttribute("color");if(c){var A=l.getScaleByField(c.getFields()[0]),u=(0,t.getElementValue)(o,A.field),d=(0,t.getElements)(l),f=d.filter(function(h){return(0,t.getElementValue)(h,A.field)===u});this.setHighlightBy(d,function(h){return f.includes(h)},s)}},i})(r.default);return fS.default=n,fS}var hS={},ffe;function P4t(){if(ffe)return hS;ffe=1,Object.defineProperty(hS,"__esModule",{value:!0});var e=Mr,t=ks(),r=pG(),n=(0,e.__importDefault)(gG()),a=(function(i){(0,e.__extends)(o,i);function o(){var s=i!==null&&i.apply(this,arguments)||this;return s.stateName="active",s}return o.prototype.highlight=function(){this.setState()},o.prototype.setElementState=function(s,l){var c=this.context.view,A=(0,t.getElements)(c);(0,r.setHighlightBy)(A,function(u){return s===u},l)},o.prototype.clear=function(){var s=this.context.view;(0,r.clearHighlight)(s)},o})(n.default);return hS.default=a,hS}var D0={},hfe;function O4t(){if(hfe)return D0;hfe=1,Object.defineProperty(D0,"__esModule",{value:!0}),D0.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var e=Mr,t=ER(),r=pG(),n=(0,e.__importDefault)(hG()),a;(function(o){o.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",o.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",o.BEFORE_CLEAR="element-range-highlight:beforeclear",o.AFTER_CLEAR="element-range-highlight:afterclear"})(a||(a={})),D0.ELEMENT_RANGE_HIGHLIGHT_EVENTS=a;var i=(function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.stateName="active",l}return s.prototype.clearViewState=function(l){(0,r.clearHighlight)(l)},s.prototype.highlight=function(){var l=this.context,c=l.view,A=l.event,u=this.getIntersectElements(),d={view:c,event:A,highlightElements:u};c.emit(a.BEFORE_HIGHLIGHT,t.Event.fromData(c,a.BEFORE_HIGHLIGHT,d)),this.setState(),c.emit(a.AFTER_HIGHLIGHT,t.Event.fromData(c,a.AFTER_HIGHLIGHT,d))},s.prototype.clear=function(){var l=this.context.view;l.emit(a.BEFORE_CLEAR,t.Event.fromData(l,a.BEFORE_CLEAR,{})),o.prototype.clear.call(this),l.emit(a.AFTER_CLEAR,t.Event.fromData(l,a.AFTER_CLEAR,{}))},s.prototype.setElementsState=function(l,c,A){(0,r.setHighlightBy)(A,function(u){return l.indexOf(u)>=0},c)},s})(n.default);return D0.default=i,D0}var gS={},gfe;function j4t(){if(gfe)return gS;gfe=1,Object.defineProperty(gS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(fG()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a})(t.default);return gS.default=r,gS}var pS={},pfe;function z4t(){if(pfe)return pS;pfe=1,Object.defineProperty(pS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(gG()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a})(t.default);return pS.default=r,pS}var vS={},vfe;function L4t(){if(vfe)return vS;vfe=1,Object.defineProperty(vS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(hG()),r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.stateName="selected",i}return a.prototype.selected=function(){this.setState()},a})(t.default);return vS.default=r,vS}var mS={},mfe;function Y4t(){if(mfe)return mS;mfe=1,Object.defineProperty(mS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(Mu()),r=(function(n){(0,e.__extends)(a,n);function a(){return n!==null&&n.apply(this,arguments)||this}return a.prototype.setCursor=function(i){var o=this.context.view;o.getCanvas().setCursor(i)},a.prototype.default=function(){this.setCursor("default")},a.prototype.pointer=function(){this.setCursor("pointer")},a.prototype.move=function(){this.setCursor("move")},a.prototype.crosshair=function(){this.setCursor("crosshair")},a.prototype.wait=function(){this.setCursor("wait")},a.prototype.help=function(){this.setCursor("help")},a.prototype.text=function(){this.setCursor("text")},a.prototype.eResize=function(){this.setCursor("e-resize")},a.prototype.wResize=function(){this.setCursor("w-resize")},a.prototype.nResize=function(){this.setCursor("n-resize")},a.prototype.sResize=function(){this.setCursor("s-resize")},a.prototype.neResize=function(){this.setCursor("ne-resize")},a.prototype.nwResize=function(){this.setCursor("nw-resize")},a.prototype.seResize=function(){this.setCursor("se-resize")},a.prototype.swResize=function(){this.setCursor("sw-resize")},a.prototype.nsResize=function(){this.setCursor("ns-resize")},a.prototype.ewResize=function(){this.setCursor("ew-resize")},a})(t.default);return mS.default=r,mS}var Efe;function U4t(){if(Efe)return WC;Efe=1;var e=WC&&WC.__importDefault||function(g){return g&&g.__esModule?g:{default:g}};Object.defineProperty(WC,"__esModule",{value:!0});var t=e(Q4t()),r=e(D4t()),n=e(F4t()),a=e(N4t()),i=e(vG()),o=e(_4t()),s=e(k4t()),l=e(P4t()),c=e(O4t()),A=e(j4t()),u=e(z4t()),d=e(L4t()),f=e(Y4t()),h=Jl();return(0,h.registerAction)("cursor",f.default),(0,h.registerAction)("element-active",t.default),(0,h.registerAction)("element-single-active",a.default),(0,h.registerAction)("element-range-active",n.default),(0,h.registerAction)("element-highlight",i.default),(0,h.registerAction)("element-highlight-by-x",o.default),(0,h.registerAction)("element-highlight-by-color",s.default),(0,h.registerAction)("element-single-highlight",l.default),(0,h.registerAction)("element-range-highlight",c.default),(0,h.registerAction)("element-sibling-highlight",c.default,{effectSiblings:!0,effectByRecord:!0}),(0,h.registerAction)("element-selected",A.default),(0,h.registerAction)("element-single-selected",u.default),(0,h.registerAction)("element-range-selected",d.default),(0,h.registerAction)("element-link-by-color",r.default),(0,h.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,h.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,h.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,h.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,h.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),WC}var yfe;function mG(){if(yfe)return Uh;yfe=1;var e=Uh&&Uh.__extends||(function(){var h=function(g,p){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(m,y){m.__proto__=y}||function(m,y){for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(m[C]=y[C])},h(g,p)};return function(g,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");h(g,p);function m(){this.constructor=g}g.prototype=p===null?Object.create(p):(m.prototype=p.prototype,new m)}})(),t=Uh&&Uh.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(Uh,"__esModule",{value:!0});var r=t(Ur()),n=t(oM()),a=t(iM()),i=t(nM()),o=t($x()),s=Jl(),l=t(M4t()),c=t(RD());T4t(),U4t();var A=t(eQe());(0,s.registerGeometryLabel)("base",i.default);var u=["line","area"],d=(function(){function h(){this.config={}}return h.prototype.setView=function(g){this.view=g,this.rootChart=g.rootChart||g},h.prototype.createGeomInstance=function(g,p){this.geom=this.view[g](p);var m=p.sortable;this.geom.__beforeMapping=this.geom.beforeMapping,this.geom.beforeMapping=function(y){var C=this.getXScale();return m!==!1&&y&&y[0]&&u.includes(g)&&["time","timeCat"].includes(C.type)&&this.sort(y),this.__beforeMapping(y)},this.GemoBaseClassName=g},h.prototype.update=function(g,p){var m=this;this.geom||(this.setView(p.context),this.createGeomInstance(p.GemoBaseClassName,g),this.interactionTypes=p.interactionTypes),(0,l.default)(this.config,g,["position","shape","color","label","style","tooltip","size","animate","state","customInfo"],function(y,C){var w;(0,c.default)(!(C==="label"&&y[0]===!0),"label 值类型错误，应为false | LabelOption | FieldString"),(w=m.geom)[C].apply(w,y)}),(0,l.default)(this.config,g,["adjust"],function(y,C){(0,n.default)(y[0])?m.geom[C](y[0]):m.geom[C](y)}),this.geom.state(g.state||{}),this.rootChart.on("processElemens",function(){(0,a.default)(g.setElements)&&g.setElements(m.geom.elements)}),(0,l.default)(this.config,g,this.interactionTypes,function(y,C){y[0]?m.rootChart.interaction(C):m.rootChart.removeInteraction(C)}),this.config=(0,A.default)(g)},h.prototype.destroy=function(){this.geom&&(this.geom.destroy(),this.geom=null),this.config={}},h})(),f=(function(h){e(g,h);function g(p){var m=h.call(this,p)||this;return m.interactionTypes=[],m.geomHelper=new d,m}return g.prototype.componentWillUnmount=function(){this.geomHelper.destroy()},g.prototype.render=function(){var p=this;return this.geomHelper.update(this.props,this),r.default.createElement(r.default.Fragment,null,r.default.Children.map(this.props.children,function(m){return r.default.isValidElement(m)?r.default.cloneElement(m,{parentInstance:p.geomHelper.geom}):r.default.createElement(r.default.Fragment,null)}))},g})(r.default.Component);return f.contextType=o.default,Uh.default=f,Uh}var Bj={},Cfe;function H4t(){if(Cfe)return Bj;Cfe=1,Object.defineProperty(Bj,"__esModule",{value:!0});var e=Mr,t=Vl(),r=Yd(),n=sM();return(0,t.registerShape)("interval","funnel",{getPoints:function(a){return a.size=a.size*2,(0,n.getRectPoints)(a)},draw:function(a,i){var o=(0,r.getStyle)(a,!1,!0),s=this.parsePath((0,n.getFunnelPath)(a.points,a.nextPoints,!1)),l=i.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},o),{path:s}),name:"interval"});return l},getMarker:function(a){var i=a.color;return{symbol:"square",style:{r:4,fill:i}}}}),Bj}var xj={},wfe;function G4t(){if(wfe)return xj;wfe=1,Object.defineProperty(xj,"__esModule",{value:!0});var e=Mr,t=Vl(),r=tG(),n=Yd(),a=sM();return(0,t.registerShape)("interval","hollow-rect",{draw:function(i,o){var s=(0,n.getStyle)(i,!0,!1),l=o,c=i?.background;if(c){l=o.addGroup();var A=(0,n.getBackgroundRectStyle)(i),u=(0,a.getBackgroundRectPath)(i,this.parsePoints(i.points),this.coordinate);l.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},A),{path:u}),zIndex:-1,name:r.BACKGROUND_SHAPE})}var d=this.parsePath((0,a.getRectPath)(i.points)),f=l.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},s),{path:d}),name:"interval"});return c?l:f},getMarker:function(i){var o=i.color,s=i.isInPolar;return s?{symbol:"circle",style:{r:4.5,stroke:o,fill:null}}:{symbol:"square",style:{r:4,stroke:o,fill:null}}}}),xj}var Mj={},Bfe;function K4t(){if(Bfe)return Mj;Bfe=1,Object.defineProperty(Mj,"__esModule",{value:!0});var e=Mr,t=Br,r=Vl(),n=Yd(),a=sM(),i=xm();function o(s){var l=s.x,c=s.y,A=s.y0;return(0,t.isArray)(c)?c.map(function(u,d){return{x:(0,t.isArray)(l)?l[d]:l,y:u}}):[{x:l,y:A},{x:l,y:c}]}return(0,r.registerShape)("interval","line",{getPoints:function(s){return o(s)},draw:function(s,l){var c=(0,n.getStyle)(s,!0,!1,"lineWidth"),A=(0,i.omit)((0,e.__assign)({},c),["fill"]),u=this.parsePath((0,a.getRectPath)(s.points,!1)),d=l.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},A),{path:u}),name:"interval"});return d},getMarker:function(s){var l=s.color;return{symbol:function(c,A,u){return[["M",c,A-u],["L",c,A+u]]},style:{r:5,stroke:l}}}}),Mj}var Ij={},xfe;function V4t(){if(xfe)return Ij;xfe=1,Object.defineProperty(Ij,"__esModule",{value:!0});var e=Mr,t=Vl(),r=Yd(),n=sM();return(0,t.registerShape)("interval","pyramid",{getPoints:function(a){return a.size=a.size*2,(0,n.getRectPoints)(a)},draw:function(a,i){var o=(0,r.getStyle)(a,!1,!0),s=this.parsePath((0,n.getFunnelPath)(a.points,a.nextPoints,!0)),l=i.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},o),{path:s}),name:"interval"});return l},getMarker:function(a){var i=a.color;return{symbol:"square",style:{r:4,fill:i}}}}),Ij}var bj={},Mfe;function J4t(){if(Mfe)return bj;Mfe=1,Object.defineProperty(bj,"__esModule",{value:!0});var e=Mr,t=Br,r=Vl(),n=Yd();function a(o){var s=o.x,l=o.y,c=o.y0,A=o.size,u,d;(0,t.isArray)(l)?(u=l[0],d=l[1]):(u=c,d=l);var f=s+A/2,h=s-A/2;return[{x:s,y:u},{x:s,y:d},{x:h,y:u},{x:f,y:u},{x:h,y:d},{x:f,y:d}]}function i(o){return[["M",o[0].x,o[0].y],["L",o[1].x,o[1].y],["M",o[2].x,o[2].y],["L",o[3].x,o[3].y],["M",o[4].x,o[4].y],["L",o[5].x,o[5].y]]}return(0,r.registerShape)("interval","tick",{getPoints:function(o){return a(o)},draw:function(o,s){var l=(0,n.getStyle)(o,!0,!1),c=this.parsePath(i(o.points)),A=s.addShape("path",{attrs:(0,e.__assign)((0,e.__assign)({},l),{path:c}),name:"interval"});return A},getMarker:function(o){var s=o.color;return{symbol:function(l,c,A){return[["M",l-A/2,c-A],["L",l+A/2,c-A],["M",l,c-A],["L",l,c+A],["M",l-A/2,c+A],["L",l+A/2,c+A]]},style:{r:5,stroke:s}}}}),bj}var Ife;function W4t(){if(Ife)return Yh;Ife=1;var e=Yh&&Yh.__extends||(function(){var l=function(c,A){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,d){u.__proto__=d}||function(u,d){for(var f in d)Object.prototype.hasOwnProperty.call(d,f)&&(u[f]=d[f])},l(c,A)};return function(c,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");l(c,A);function u(){this.constructor=c}c.prototype=A===null?Object.create(A):(u.prototype=A.prototype,new u)}})(),t=Yh&&Yh.__importDefault||function(l){return l&&l.__esModule?l:{default:l}};Object.defineProperty(Yh,"__esModule",{value:!0});var r=t(x4t()),n=t(tQe()),a=t(nQe()),i=t(mG()),o=Jl();(0,o.registerGeometry)("Interval",r.default),(0,o.registerGeometryLabel)("interval",n.default),(0,o.registerGeometryLabel)("pie",a.default),H4t(),G4t(),K4t(),V4t(),J4t(),(0,o.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]});var s=(function(l){e(c,l);function c(){var A=l!==null&&l.apply(this,arguments)||this;return A.interactionTypes=["active-region","element-highlight"],A.GemoBaseClassName="interval",A}return c})(i.default);return Yh.default=s,Yh}var X4t=W4t();const $y=gn(X4t),EG=({data:e,xFieldName:t="name",yFieldName:r="value",options:n,title:a,dodgeBy:i="type"})=>{const o=ut(y=>y.cti.ui.graphColors.columnChart),s=ut(y=>y.cti.ui.generatePDF),l=ut(y=>y.cti.ui.pdfSize),c=wn(),A=y=>{y.data.data.indicateur_condition_id&&c(ove(y.data.data.indicateur_condition_id[0]))};let u=o;const d=Object.keys(cl(e,y=>y.type)),f=le.useCallback((y,C)=>{const w=Array.isArray(y)?C:y,B=d.indexOf(w);return u[B]},[u,n,d]);let h=d;h.includes("undefined")&&a&&(h=[a]),h=h.map((y,C)=>{const w=f(y);return{id:C,name:y,marker:{style:{fill:w},symbol:"square"}}});const g=(y,C,w)=>{if(!n||!n.labelView)return y;const B=e.find(x=>x.category===y);return n.labelView===0||y==="Autres"?y:B?B.label_code:"Pas de code"},p={[r]:{formatter:y=>{let C=e.find(w=>w[r]===y);return C&&C.formattedValue?C.formattedValue:y}}};if(!e.length)return null;const m=({width:y,height:C})=>v.jsxs(Mm,{height:C,width:y,data:e,onIntervalClick:A,padding:"auto",scale:p,children:[v.jsx(Im,{custom:!0,items:h,visible:!0,itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(sA,{name:t,label:{style:{fill:"rgba(0,0,0,0.85)"},formatter:g}}),v.jsx(sA,{name:r,label:{style:{fill:"rgba(0,0,0,0.85)"}},formatter:w=>Math.round(w)===w?w:w.toFixed(2)}),v.jsx($y,{adjust:[{type:"dodge",dodgeBy:i,marginRatio:0}],color:["type*name",(w,B)=>f(w,B)],position:`${t}*${r}`})]});return v.jsx("div",{className:"graph-wrapper",children:s===!1?v.jsx(cu,{children:({width:y,height:C})=>v.jsx(m,{width:y,height:C})}):v.jsx(m,{width:l.width,height:l.height})})};EG.propTypes={data:W.arrayOf(W.object).isRequired,xFieldName:W.string,yFieldName:W.string,options:W.object,title:W.string};EG.defaultProps={xFieldName:"name",yFieldName:"value",percent:!1};const q4t=le.memo(EG,Qg);var ad={},ES={},bfe;function Z4t(){if(bfe)return ES;bfe=1,Object.defineProperty(ES,"__esModule",{value:!0});var e=function(t){return t==null};return ES.default=e,ES}var Sfe;function $4t(){if(Sfe)return ad;Sfe=1;var e=ad&&ad.__assign||function(){return e=Object.assign||function(s){for(var l,c=1,A=arguments.length;c<A;c++){l=arguments[c];for(var u in l)Object.prototype.hasOwnProperty.call(l,u)&&(s[u]=l[u])}return s},e.apply(this,arguments)},t=ad&&ad.__rest||function(s,l){var c={};for(var A in s)Object.prototype.hasOwnProperty.call(s,A)&&l.indexOf(A)<0&&(c[A]=s[A]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,A=Object.getOwnPropertySymbols(s);u<A.length;u++)l.indexOf(A[u])<0&&Object.prototype.propertyIsEnumerable.call(s,A[u])&&(c[A[u]]=s[A[u]]);return c},r=ad&&ad.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ad,"__esModule",{value:!0});var n=r(Z4t()),a=r(iM()),i=r(ED());function o(s){var l=s.type,c=s.transpose,A=s.rotate,u=s.scale,d=s.reflect,f=s.actions,h=t(s,["type","transpose","rotate","scale","reflect","actions"]),g=(0,i.default)(),p=g.coordinate();return p.update({}),l?g.coordinate(l,e({},h)):g.coordinate("rect",e({},h)),A&&p.rotate(A),u&&p.scale.apply(p,u),(0,n.default)(d)||p.reflect(d),c&&p.transpose(),(0,a.default)(f)&&f(p),null}return ad.default=o,ad}var eDt=$4t();const yG=gn(eDt);var Ss={},Gc={},yS={},Rfe;function tDt(){if(Rfe)return yS;Rfe=1,Object.defineProperty(yS,"__esModule",{value:!0});var e=oM();return yS.default=(function(t,r,n){for(var a=0,i=e.default(r)?r.split("."):r;t&&a<i.length;)t=t[i[a++]];return t===void 0||a<i.length?n:t}),yS}var CS={},Tfe;function rDt(){if(Tfe)return CS;Tfe=1,Object.defineProperty(CS,"__esModule",{value:!0});function e(t,r){if(t)for(var n in r)r.hasOwnProperty(n)&&(t.style[n]=r[n]);return t}return CS.default=e,CS}var Qfe;function nDt(){if(Qfe)return Gc;Qfe=1;var e=Gc&&Gc.__extends||(function(){var d=function(f,h){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,p){g.__proto__=p}||function(g,p){for(var m in p)Object.prototype.hasOwnProperty.call(p,m)&&(g[m]=p[m])},d(f,h)};return function(f,h){if(typeof h!="function"&&h!==null)throw new TypeError("Class extends value "+String(h)+" is not a constructor or null");d(f,h);function g(){this.constructor=f}f.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}})(),t=Gc&&Gc.__assign||function(){return t=Object.assign||function(d){for(var f,h=1,g=arguments.length;h<g;h++){f=arguments[h];for(var p in f)Object.prototype.hasOwnProperty.call(f,p)&&(d[p]=f[p])}return d},t.apply(this,arguments)},r=Gc&&Gc.__rest||function(d,f){var h={};for(var g in d)Object.prototype.hasOwnProperty.call(d,g)&&f.indexOf(g)<0&&(h[g]=d[g]);if(d!=null&&typeof Object.getOwnPropertySymbols=="function")for(var p=0,g=Object.getOwnPropertySymbols(d);p<g.length;p++)f.indexOf(g[p])<0&&Object.prototype.propertyIsEnumerable.call(d,g[p])&&(h[g[p]]=d[g[p]]);return h},n=Gc&&Gc.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(Gc,"__esModule",{value:!0});var a=n(Ur()),i=n(mY()),o=n(tDt()),s=n(rDt()),l=$x(),c=Jl(),A="g2-tooltip",u=(function(d){e(f,d);function f(){var h=d!==null&&d.apply(this,arguments)||this;return h.renderInnder=function(g){var p=g.data,m=p.title,y=p.items,C=p.x,w=p.y;i.default.render(h.props.children(m,y,C,w,g),h.getElement())},h}return f.prototype.componentWillUnmount=function(){var h=this.props.chartView;this.element&&this.element.remove(),h.getController("tooltip").clear(),h.off("tooltip:change",this.renderInnder)},f.prototype.getElement=function(){return this.element||(this.element=document.createElement("div"),this.element.classList.add("bizcharts-tooltip"),this.element.classList.add("g2-tooltip"),this.element.style.width="auto",this.element.style.height="auto"),this.element},f.prototype.overwriteCfg=function(){var h=this,g=this.props,p=g.chartView;g.children;var m=g.domStyles,y=m===void 0?{}:m,C=r(g,["chartView","children","domStyles"]);p.tooltip(t(t({inPlot:!1,domStyles:y},C),{customContent:function(){return h.getElement()}})),p.on("tooltip:change",this.renderInnder);var w=(0,o.default)((0,c.getTheme)(),["components","tooltip","domStyles",A],{});(0,s.default)(this.element,t(t({},w),y[A]))},f.prototype.render=function(){return this.overwriteCfg(),null},f})(a.default.Component);return Gc.default=(0,l.withView)(u),Gc}var Kc={},wS={},Dfe;function CG(){if(Dfe)return wS;Dfe=1,Object.defineProperty(wS,"__esModule",{value:!0});var e=Mr,t=Br,r=(0,e.__importDefault)(Mu()),n=(function(a){(0,e.__extends)(i,a);function i(){var o=a!==null&&a.apply(this,arguments)||this;return o.timeStamp=0,o}return i.prototype.show=function(){var o=this.context,s=o.event,l=o.view,c=l.isTooltipLocked();if(!c){var A=this.timeStamp,u=+new Date,d=(0,t.get)(o.view.getOptions(),"tooltip.showDelay",16);if(u-A>d){var f=this.location,h={x:s.x,y:s.y};(!f||!(0,t.isEqual)(f,h))&&this.showTooltip(l,h),this.timeStamp=u,this.location=h}}},i.prototype.hide=function(){var o=this.context.view,s=o.getController("tooltip"),l=this.context.event,c=l.clientX,A=l.clientY;s.isCursorEntered({x:c,y:A})||o.isTooltipLocked()||(this.hideTooltip(o),this.location=null)},i.prototype.showTooltip=function(o,s){o.showTooltip(s)},i.prototype.hideTooltip=function(o){o.hideTooltip()},i})(r.default);return wS.default=n,wS}var Ffe;function aDt(){if(Ffe)return Kc;Ffe=1;var e=Kc&&Kc.__extends||(function(){var A=function(u,d){return A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,h){f.__proto__=h}||function(f,h){for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(f[g]=h[g])},A(u,d)};return function(u,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");A(u,d);function f(){this.constructor=u}u.prototype=d===null?Object.create(d):(f.prototype=d.prototype,new f)}})(),t=Kc&&Kc.__importDefault||function(A){return A&&A.__esModule?A:{default:A}};Object.defineProperty(Kc,"__esModule",{value:!0}),Kc.registerConnector=Kc.Connector=void 0;var r=Z9(),n=t(CG()),a=Br,i=Jl(),o={},s=(function(){function A(u){this.cfg={shared:!0},this.chartMap={},this.state={},this.id=(0,a.uniqueId)("bx-action"),this.type=u||"tooltip"}return A.prototype.connect=function(u,d,f){return this.chartMap[u]={chart:d,pointFinder:f},d.interaction("connect-".concat(this.type,"-").concat(this.id)),this.type==="tooltip"&&this.cfg.shared&&(0,a.get)(d,["options","tooltip","shared"])===void 0&&(0,a.set)(d,["options","tooltip","shared"],!0),this},A.prototype.unConnect=function(u){this.chartMap[u].chart.removeInteraction("connect-".concat(this.type,"-").concat(this.id)),delete this.chartMap[u]},A.prototype.destroy=function(){(0,r.unregisterAction)("connect-".concat(this.type,"-").concat(this.id))},A})();Kc.Connector=s;var l=function(){var A=new s("tooltip");return(0,i.registerAction)("connect-tooltip-".concat(A.id),(function(u){e(d,u);function d(){var f=u!==null&&u.apply(this,arguments)||this;return f.CM=A,f}return d.prototype.showTooltip=function(f,h){var g=f.getTooltipItems(h)||h;(0,a.forIn)(this.CM.chartMap,function(p){var m=p.chart,y=p.pointFinder;if(!(m.destroyed||!m.visible))if(y){var C=y(g,m);C&&m.showTooltip(C)}else m.showTooltip(h)})},d.prototype.hideTooltip=function(){(0,a.forIn)(this.CM.chartMap,function(f){var h=f.chart;return h.hideTooltip()})},d})(n.default)),(0,i.registerInteraction)("connect-tooltip-".concat(A.id),{start:[{trigger:"plot:mousemove",action:"connect-tooltip-".concat(A.id,":show")}],end:[{trigger:"plot:mouseleave",action:"connect-tooltip-".concat(A.id,":hide")}]}),A},c=function(A,u,d,f,h){var g=o[A];if(d===null&&g){g.unConnect(u);return}g?g.connect(u,d,h):(o[A]=l(),o[A].cfg.shared=!!f,o[A].connect(u,d,h))};return Kc.registerConnector=c,Kc.default=l,Kc}var XC={},F0={},Nfe;function iDt(){if(Nfe)return F0;Nfe=1,Object.defineProperty(F0,"__esModule",{value:!0}),F0.getItemsOfView=void 0;var e=Mr,t=Br,r=ID(),n=Bc(),a=(0,e.__importDefault)(Mu()),i={fill:"#CCD6EC",opacity:.3};function o(l,c,A){var u=(0,r.findItemsFromViewRecurisive)(l,c,A);if(u.length){u=(0,t.flatten)(u);for(var d=0,f=u;d<f.length;d++)for(var h=f[d],g=0,p=h;g<p.length;g++){var m=p[g],y=m.mappingData,C=y.x,w=y.y;m.x=(0,t.isArray)(C)?C[C.length-1]:C,m.y=(0,t.isArray)(w)?w[w.length-1]:w}var B=A.shared;if(B===!1&&u.length>1){for(var x=u[0],M=Math.abs(c.y-x[0].y),S=0,R=u;S<R.length;S++){var b=R[S],T=Math.abs(c.y-b[0].y);T<=M&&(x=b,M=T)}u=[x]}return(0,t.uniq)((0,t.flatten)(u))}return[]}F0.getItemsOfView=o;var s=(function(l){(0,e.__extends)(c,l);function c(){return l!==null&&l.apply(this,arguments)||this}return c.prototype.show=function(A){var u=this.context.view,d=this.context.event,f=u.getController("tooltip").getTooltipCfg(),h=o(u,{x:d.x,y:d.y},f);if(!(0,t.isEqual)(h,this.items)&&(this.items=h,h.length)){var g=u.getXScale().field,p=h[0].data[g],m=[],y=u.geometries;if((0,t.each)(y,function(J){if(J.type==="interval"||J.type==="schema"){var ee=J.getElementsBy(function(ae){var ne=ae.getData();return ne[g]===p});m=m.concat(ee)}}),m.length){var C=u.getCoordinate(),w=m[0].shape.getCanvasBBox(),B=m[0].shape.getCanvasBBox(),x=w;(0,t.each)(m,function(J){var ee=J.shape.getCanvasBBox();C.isTransposed?(ee.minY<w.minY&&(w=ee),ee.maxY>B.maxY&&(B=ee)):(ee.minX<w.minX&&(w=ee),ee.maxX>B.maxX&&(B=ee)),x.x=Math.min(ee.minX,x.minX),x.y=Math.min(ee.minY,x.minY),x.width=Math.max(ee.maxX,x.maxX)-x.x,x.height=Math.max(ee.maxY,x.maxY)-x.y});var M=u.backgroundGroup,S=u.coordinateBBox,R=void 0;if(C.isRect){var b=u.getXScale(),T=A||{},D=T.appendRatio,F=T.appendWidth;(0,t.isNil)(F)&&(D=(0,t.isNil)(D)?b.isLinear?0:.25:D,F=C.isTransposed?D*B.height:D*w.width);var N=void 0,_=void 0,P=void 0,k=void 0;C.isTransposed?(N=S.minX,_=Math.min(B.minY,w.minY)-F,P=S.width,k=x.height+F*2):(N=Math.min(w.minX,B.minX)-F,_=S.minY,P=x.width+F*2,k=S.height),R=[["M",N,_],["L",N+P,_],["L",N+P,_+k],["L",N,_+k],["Z"]]}else{var j=(0,t.head)(m),Y=(0,t.last)(m),X=(0,n.getAngle)(j.getModel(),C).startAngle,K=(0,n.getAngle)(Y.getModel(),C).endAngle,U=C.getCenter(),H=C.getRadius(),L=C.innerRadius*H;R=(0,n.getSectorPath)(U.x,U.y,H,X,K,L)}if(this.regionPath)this.regionPath.attr("path",R),this.regionPath.show();else{var V=(0,t.get)(A,"style",i);this.regionPath=M.addShape({type:"path",name:"active-region",capture:!1,attrs:(0,e.__assign)((0,e.__assign)({},V),{path:R})})}}}},c.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},c.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),l.prototype.destroy.call(this)},c})(a.default);return F0.default=s,F0}var BS={},_fe;function oDt(){if(_fe)return BS;_fe=1,Object.defineProperty(BS,"__esModule",{value:!0});var e=Mr,t=Br,r=ks(),n=(0,e.__importDefault)(CG()),a=(function(i){(0,e.__extends)(o,i);function o(){return i!==null&&i.apply(this,arguments)||this}return o.prototype.showTooltip=function(s,l){var c=(0,r.getSilbings)(s);(0,t.each)(c,function(A){var u=(0,r.getSiblingPoint)(s,A,l);A.showTooltip(u)})},o.prototype.hideTooltip=function(s){var l=(0,r.getSilbings)(s);(0,t.each)(l,function(c){c.hideTooltip()})},o})(n.default);return BS.default=a,BS}var xS={},kfe;function sDt(){if(kfe)return xS;kfe=1,Object.defineProperty(xS,"__esModule",{value:!0});var e=Mr,t=Br,r=vD,n=(0,e.__importDefault)(Mu()),a=Wg(),i=(function(o){(0,e.__extends)(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.timeStamp=0,l}return s.prototype.destroy=function(){o.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},s.prototype.show=function(){var l=this.context,c=l.event,A=this.timeStamp,u=+new Date;if(u-A>16){var d=this.location,f={x:c.x,y:c.y};(!d||!(0,t.isEqual)(d,f))&&this.showTooltip(f),this.timeStamp=u,this.location=f}},s.prototype.hide=function(){this.hideTooltip(),this.location=null},s.prototype.showTooltip=function(l){var c=this.context,A=c.event,u=A.target;if(u&&u.get("tip")){this.tooltip||this.renderTooltip();var d=u.get("tip");this.tooltip.update((0,e.__assign)({title:d},l)),this.tooltip.show()}},s.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},s.prototype.renderTooltip=function(){var l,c=this.context.view,A=c.canvas,u={start:{x:0,y:0},end:{x:A.get("width"),y:A.get("height")}},d=c.getTheme(),f=(0,t.get)(d,["components","tooltip","domStyles"],{}),h=new a.HtmlTooltip({parent:A.get("el").parentNode,region:u,visible:!1,crosshairs:null,domStyles:(0,e.__assign)({},(0,t.deepMix)({},f,(l={},l[r.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},l[r.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},l)))});h.init(),h.setCapture(!1),this.tooltip=h},s})(n.default);return xS.default=i,xS}var Pfe;function lDt(){if(Pfe)return XC;Pfe=1;var e=XC&&XC.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(XC,"__esModule",{value:!0});var t=e(iDt()),r=e(oDt()),n=e(CG()),a=e(sDt()),i=Jl();(0,i.registerAction)("tooltip",n.default),(0,i.registerAction)("sibling-tooltip",r.default),(0,i.registerAction)("active-region",t.default),(0,i.registerAction)("ellipsis-text",a.default),(0,i.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,i.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,i.registerInteraction)("tooltip-click",{start:[{trigger:"plot:click",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchstart",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:leave",action:"tooltip:hide"}]});var o=function(s){var l=s.view.isTooltipLocked();l?s.view.unlockTooltip():s.view.lockTooltip()};return(0,i.registerInteraction)("tooltip-lock",{start:[{trigger:"plot:click",action:o},{trigger:"plot:touchstart",action:o},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:mousemove",action:"tooltip:show"}],end:[{trigger:"plot:click",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,i.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),XC}var Ofe;function cDt(){if(Ofe)return Ss;Ofe=1;var e=Ss&&Ss.__assign||function(){return e=Object.assign||function(C){for(var w,B=1,x=arguments.length;B<x;B++){w=arguments[B];for(var M in w)Object.prototype.hasOwnProperty.call(w,M)&&(C[M]=w[M])}return C},e.apply(this,arguments)},t=Ss&&Ss.__createBinding||(Object.create?(function(C,w,B,x){x===void 0&&(x=B);var M=Object.getOwnPropertyDescriptor(w,B);(!M||("get"in M?!w.__esModule:M.writable||M.configurable))&&(M={enumerable:!0,get:function(){return w[B]}}),Object.defineProperty(C,x,M)}):(function(C,w,B,x){x===void 0&&(x=B),C[x]=w[B]})),r=Ss&&Ss.__setModuleDefault||(Object.create?(function(C,w){Object.defineProperty(C,"default",{enumerable:!0,value:w})}):function(C,w){C.default=w}),n=Ss&&Ss.__importStar||function(C){if(C&&C.__esModule)return C;var w={};if(C!=null)for(var B in C)B!=="default"&&Object.prototype.hasOwnProperty.call(C,B)&&t(w,C,B);return r(w,C),w},a=Ss&&Ss.__rest||function(C,w){var B={};for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&w.indexOf(x)<0&&(B[x]=C[x]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,x=Object.getOwnPropertySymbols(C);M<x.length;M++)w.indexOf(x[M])<0&&Object.prototype.propertyIsEnumerable.call(C,x[M])&&(B[x[M]]=C[x[M]]);return B},i=Ss&&Ss.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(Ss,"__esModule",{value:!0});var o=n(Ur()),s=i(iM()),l=i(wTe()),c=i(XTe()),A=i(oh()),u=i(oM()),d=Jl(),f=i(ED()),h=i(nDt()),g=aDt();lDt(),(0,d.registerComponentController)("tooltip",l.default);var p=function(C){var w=C.visible,B=w===void 0?!0:w,x=C.children;return B&&(0,s.default)(x)},m=function(C){var w=C.visible,B=w===void 0?!0:w;C.children;var x=a(C,["visible","children"]),M=(0,f.default)();return M.getController("tooltip").clear(),B===!0?M.tooltip(e({customContent:null,showMarkers:!1},x)):M.tooltip(!1),null};function y(C){var w=C.children,B=C.triggerOn,x=C.onShow,M=C.onChange,S=C.onHide,R=C.lock,b=C.linkage,T=a(C,["children","triggerOn","onShow","onChange","onHide","lock","linkage"]),D=(0,f.default)();D.removeInteraction("tooltip"),D.removeInteraction("tooltip-click"),D.removeInteraction("tooltip-lock"),B==="click"?D.interaction("tooltip-click"):R?D.interaction("tooltip-lock"):D.interaction("tooltip");var F=(0,o.useRef)((0,c.default)("tooltip"));(0,o.useEffect)(function(){(0,A.default)(b)?(0,g.registerConnector)(b[0],F.current,D,T.shared,b[1]):(0,u.default)(b)&&(0,g.registerConnector)(b,F.current,D,T.shared)},[b,D]);var N=(0,o.useCallback)(function(k){(0,s.default)(x)&&x(k,D)},[]),_=(0,o.useCallback)(function(k){(0,s.default)(M)&&M(k,D)},[]),P=(0,o.useCallback)(function(k){(0,s.default)(S)&&S(k,D)},[]);return D.off("tooltip:show",N),D.on("tooltip:show",N),D.off("tooltip:change",_),D.on("tooltip:change",_),D.off("tooltip:hide",P),D.on("tooltip:hide",P),p(C)?o.default.createElement(h.default,e({},T),w):o.default.createElement(m,e({},C))}return Ss.default=y,y.defaultProps={showMarkers:!1,triggerOn:"hover"},Ss}var ADt=cDt();const YB=gn(ADt);var id={},od={},MS={},IS={},jfe;function uDt(){if(jfe)return IS;jfe=1,Object.defineProperty(IS,"__esModule",{value:!0});var e=ZTe(),t=yD(),r=function(n){if(!e.default(n)||!t.default(n,"Object"))return!1;if(Object.getPrototypeOf(n)===null)return!0;for(var a=n;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(n)===a};return IS.default=r,IS}var zfe;function dDt(){if(zfe)return MS;zfe=1,Object.defineProperty(MS,"__esModule",{value:!0});var e=oh(),t=uDt(),r=5;function n(i,o,s,l){s=s||0,l=l||r;for(var c in o)if(o.hasOwnProperty(c)){var A=o[c];A!==null&&t.default(A)?(t.default(i[c])||(i[c]={}),s<l?n(i[c],A,s+1,l):i[c]=o[c]):e.default(A)?(i[c]=[],i[c]=i[c].concat(A)):A!==void 0&&(i[c]=A)}}var a=function(i){for(var o=[],s=1;s<arguments.length;s++)o[s-1]=arguments[s];for(var l=0;l<o.length;l+=1)n(i,o[l]);return i};return MS.default=a,MS}var Lfe;function fDt(){if(Lfe)return od;Lfe=1;var e=od&&od.__assign||function(){return e=Object.assign||function(c){for(var A,u=1,d=arguments.length;u<d;u++){A=arguments[u];for(var f in A)Object.prototype.hasOwnProperty.call(A,f)&&(c[f]=A[f])}return c},e.apply(this,arguments)},t=od&&od.__rest||function(c,A){var u={};for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&A.indexOf(d)<0&&(u[d]=c[d]);if(c!=null&&typeof Object.getOwnPropertySymbols=="function")for(var f=0,d=Object.getOwnPropertySymbols(c);f<d.length;f++)A.indexOf(d[f])<0&&Object.prototype.propertyIsEnumerable.call(c,d[f])&&(u[d[f]]=c[d[f]]);return u},r=od&&od.__importDefault||function(c){return c&&c.__esModule?c:{default:c}};Object.defineProperty(od,"__esModule",{value:!0});var n=r(oh()),a=r(dDt()),i=r(Zy()),o=r(RD()),s=r(uG()),l=(function(){function c(A){this.config={},this.isRootView=!1,this.chart=A}return c.prototype.creatViewInstance=function(A){this.view=this.chart.createView(this.processOptions(A)),this.view.rootChart=this.chart},c.prototype.getView=function(){return this.view},c.prototype.update=function(A){var u=this,d=this.config.data,f=A.scale,h=A.animate,g=A.filter,p=A.visible,m=A.data,y=m===void 0?[]:m;if(y.rows&&((0,o.default)(!y.rows,"bizcharts@4不支持 dataset数据格式，请使用data={dv.rows}"),y=y.rows),(!this.view||(0,n.default)(d)&&d.length===0)&&(this.destroy(),this.creatViewInstance(A)),(0,n.default)(d)){this.view.changeData(y);var C=!0;d.length!==y.length?C=!1:d.forEach(function(w,B){(0,s.default)(w,y[B])||(C=!1)}),C||this.view.changeData(y)}else this.view.data(y);this.view.scale(f),this.view.animate(h),(0,i.default)(this.config.filter,function(w,B){(0,n.default)(w)?u.view.filter(w[0],null):u.view.filter(B,null)}),(0,i.default)(g,function(w,B){(0,n.default)(w)?u.view.filter(w[0],w[1]):u.view.filter(B,w)}),p?this.view.show():this.view.hide(),this.config=e(e({},A),{data:y})},c.prototype.destroy=function(){this.view&&(this.view.destroy(),this.view=null),this.config={}},c.prototype.processOptions=function(A){var u=A.region,d=A.start,f=A.end,h=t(A,["region","start","end"]);(0,o.default)(!d,"start 属性将在5.0后废弃，请使用 region={{ start: {x:0,y:0}}} 替代"),(0,o.default)(!f,"end 属性将在5.0后废弃，请使用 region={{ end: {x:0,y:0}}} 替代");var g=(0,a.default)({start:{x:0,y:0},end:{x:1,y:1}},{start:d,end:f},u);return e(e({},h),{region:g})},c})();return od.default=l,od}var Yfe;function hDt(){if(Yfe)return id;Yfe=1;var e=id&&id.__extends||(function(){var s=function(l,c){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,u){A.__proto__=u}||function(A,u){for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(A[d]=u[d])},s(l,c)};return function(l,c){if(typeof c!="function"&&c!==null)throw new TypeError("Class extends value "+String(c)+" is not a constructor or null");s(l,c);function A(){this.constructor=l}l.prototype=c===null?Object.create(c):(A.prototype=c.prototype,new A)}})(),t=id&&id.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(id,"__esModule",{value:!0}),id.View=void 0;var r=t(Ur()),n=t(WTe()),a=t($x()),i=t(fDt()),o=id.View=(function(s){e(l,s);function l(){var c=s!==null&&s.apply(this,arguments)||this;return c.name="view",c}return l.prototype.componentWillUnmount=function(){this.viewHelper.destroy(),this.viewHelper=null},l.prototype.render=function(){return this.viewHelper||(this.viewHelper=new i.default(this.context.chart)),this.viewHelper.update(this.props),r.default.createElement(a.default.Provider,{value:this.viewHelper.view},r.default.createElement(r.default.Fragment,null,this.props.children))},l.defaultProps={visible:!0,preInteractions:[],filter:[]},l})(r.default.Component);return o.contextType=n.default,id.default=o,id}var gDt=hDt();const wG=gn(gDt),BG=({data:e,xFieldName:t="name",yFieldName:r="value"})=>{const n=ut(c=>c.cti.ui.graphColors.pieChart),a=ut(c=>c.cti.ui.generatePDF),i=ut(c=>c.cti.ui.pdfSize),o={[r]:{formatter:c=>{let A=e.find(u=>u[r]===c);return A&&A.formattedValue?A.formattedValue:c}}},s=cl(e,c=>c.type),l=({width:c,height:A,noLegend:u,dataSet:d,title:f})=>v.jsxs(Mm,{data:d,width:c,height:A-50,padding:"auto",scale:o,children:[v.jsx("h3",{className:"graph-title graph__doublePieChart-title",children:f}),v.jsx(Im,{name:t,position:"right",visible:!u}),v.jsx(YB,{showTitle:!1}),v.jsxs(wG,{data:d,animate:!0,children:[v.jsx(yG,{type:"theta",radius:.85}),v.jsx(sA,{visible:!1}),v.jsx($y,{adjust:"stack",style:{lineWidth:1,stroke:"#f0f2f5"},position:r,color:[t,[...n]]}),v.jsx(YB,{shared:!0})]})]});return v.jsxs("div",{className:"graph-wrapper",children:[a===!1?v.jsx(cu,{children:({width:c,height:A})=>v.jsx(l,{width:c/2,height:A,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]})}):v.jsx(l,{width:i.width/2,height:i.height-200,noLegend:!0,dataSet:Object.values(s)[0],title:Object.keys(s)[0]}),a===!1?v.jsx(cu,{children:({width:c,height:A})=>v.jsx(l,{width:c/2,height:A,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})}):v.jsx(l,{width:i.width/2,height:i.height-200,noLegend:!0,dataSet:Object.values(s)[1],title:Object.keys(s)[1]})]})};BG.propTypes={data:W.arrayOf(W.object).isRequired,xFieldName:W.string,yFieldName:W.string};BG.defaultProps={xFieldName:"name",yFieldName:"value"};var Gh={},bS={},SS={},RS={},wf={},Ufe;function aQe(){if(Ufe)return wf;Ufe=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.getSmoothViolinPath=wf.getViolinPath=wf.getPathPoints=void 0;var e=Br,t=MD();function r(s){return s?!1:s==null||isNaN(s)}function n(s){if((0,e.isArray)(s))return r(s[1].y);var l=s.y;return(0,e.isArray)(l)?r(l[0]):r(l)}function a(s,l,c){if(l===void 0&&(l=!1),c===void 0&&(c=!0),!s.length||s.length===1&&!c)return[];if(l){for(var A=[],u=0,d=s.length;u<d;u++){var f=s[u];n(f)||A.push(f)}return[A]}for(var h=[],g=[],u=0,d=s.length;u<d;u++){var f=s[u];n(f)?g.length&&(g.length===1&&!c||h.push(g),g=[]):g.push(f)}return g.length&&h.push(g),h}wf.getPathPoints=a;function i(s){for(var l=[],c=0;c<s.length;c++){var A=s[c];if(A){var u=c===0?"M":"L";l.push([u,A.x,A.y])}}var d=s[0];return d&&(l.push(["L",d.x,d.y]),l.push(["z"])),l}wf.getViolinPath=i;function o(s){for(var l=s.length/2,c=[],A=[],u=0;u<s.length;u++)u<l?c.push(s[u]):A.push(s[u]);var d=(0,t.getSplinePath)(c,!1),f=(0,t.getSplinePath)(A,!1);A.length&&d.push(["L",A[0].x,A[0].y]),f.shift();var h=d.concat(f);return c.length&&h.push(["L",c[0].x,c[0].y]),h.push(["z"]),h}return wf.getSmoothViolinPath=o,wf}var qC={},Hfe;function iQe(){if(Hfe)return qC;Hfe=1,Object.defineProperty(qC,"__esModule",{value:!0}),qC.splitPoints=void 0;var e=Br;function t(r){var n=r.x,a=(0,e.isArray)(r.y)?r.y:[r.y];return a.map(function(i,o){return{x:(0,e.isArray)(n)?n[o]:n,y:i}})}return qC.splitPoints=t,qC}var ZC={},Gfe;function oQe(){if(Gfe)return ZC;Gfe=1,Object.defineProperty(ZC,"__esModule",{value:!0}),ZC.getLineMarker=void 0;var e={line:function(r,n,a){return[["M",r-a,n],["L",r+a,n]]},dot:function(r,n,a){return[["M",r-a,n],["L",r+a,n]]},dash:function(r,n,a){return[["M",r-a,n],["L",r+a,n]]},smooth:function(r,n,a){return[["M",r-a,n],["A",a/2,a/2,0,1,1,r,n],["A",a/2,a/2,0,1,0,r+a,n]]},hv:function(r,n,a){return[["M",r-a-1,n-2.5],["L",r,n-2.5],["L",r,n+2.5],["L",r+a+1,n+2.5]]},vh:function(r,n,a){return[["M",r-a-1,n+2.5],["L",r,n+2.5],["L",r,n-2.5],["L",r+a+1,n-2.5]]},hvh:function(r,n,a){return[["M",r-(a+1),n+2.5],["L",r-a/2,n+2.5],["L",r-a/2,n-2.5],["L",r+a/2,n-2.5],["L",r+a/2,n+2.5],["L",r+a+1,n+2.5]]},vhv:function(r,n){return[["M",r-5,n+2.5],["L",r-5,n],["L",r,n],["L",r,n-3],["L",r,n+3],["L",r+6.5,n+3]]}};function t(r,n){var a=r.color;return{symbol:e[n],style:{lineWidth:2,r:6,stroke:a}}}return ZC.getLineMarker=t,ZC}var Kfe;function sQe(){if(Kfe)return RS;Kfe=1,Object.defineProperty(RS,"__esModule",{value:!0});var e=Br,t=Vl(),r=aQe(),n=Yd(),a=MD(),i=iQe(),o=oQe();function s(d,f,h){for(var g=d.isStack,p=d.connectNulls,m=d.isInCircle,y=d.showSinglePoint,C=(0,n.getStyle)(d,!0,!1,"lineWidth"),w=(0,r.getPathPoints)(d.points,p,y),B=[],x=0,M=w.length;x<M;x++){var S=w[x];B=B.concat(A(S,m,g,f,h,C))}return C.path=B,C}function l(d,f,h,g,p){if(d.length===1)return[["M",d[0].x,d[0].y-p.lineWidth/2],["L",d[0].x,d[0].y],["L",d[0].x,d[0].y+p.lineWidth/2]];var m;return h?(f&&d.length&&d.push({x:d[0].x,y:d[0].y}),m=(0,a.getSplinePath)(d,!1,g)):(m=(0,a.getLinePath)(d,!1),f&&m.push(["Z"])),m}function c(d,f,h,g,p,m){var y=[],C=[];(0,e.each)(d,function(x){var M=(0,i.splitPoints)(x);y.push(M[1]),C.push(M[0])});var w=l(y,f,g,p,m),B=l(C,f,g,p,m);return h?w:w.concat(B)}function A(d,f,h,g,p,m){if(d.length){var y=d[0];return(0,e.isArray)(y.y)?c(d,f,h,g,p,m):l(d,f,g,p,m)}return[]}var u=(0,t.registerShapeFactory)("line",{defaultShapeType:"line"});return(0,e.each)(["line","dot","dash","smooth"],function(d){(0,t.registerShape)("line",d,{draw:function(f,h){var g=d==="smooth",p;if(g){var m=this.coordinate,y=m.start,C=m.end;p=[[y.x,C.y],[C.x,y.y]]}var w=s(f,g,p),B=h.addShape({type:"path",attrs:w,name:"line",capture:!g});return B},getMarker:function(f){return(0,o.getLineMarker)(f,d)}})}),RS.default=u,RS}var Vfe;function pDt(){if(Vfe)return SS;Vfe=1,Object.defineProperty(SS,"__esModule",{value:!0});var e=Mr,t=Wi(),r=(0,e.__importDefault)(bD()),n=(0,e.__importDefault)(rG());sQe();var a=BTe(),i=xTe(),o=(function(s){(0,e.__extends)(l,s);function l(c){var A=s.call(this,c)||this;A.type="path",A.shapeType="line";var u=c.connectNulls,d=u===void 0?!1:u,f=c.showSinglePoint,h=f===void 0?!0:f;return A.connectNulls=d,A.showSinglePoint=h,A}return l.prototype.updateElements=function(c,A){A===void 0&&(A=!1);for(var u=new Map,d=new Map,f=[],h=0,g=0;g<c.length;g++){var p=c[g],m=this.getElementId(p);f.push(m),u.set(m,p),d.set(m,h),h++}this.elements=new Array(h);for(var y=(0,i.diff)(this.lastElementsMap,f),C=y.added,w=y.updated,B=y.removed,x=0,M=C;x<M.length;x++){var m=M[x],p=u.get(m),S=this.getShapeFactory(),R=this.getShapeInfo(p),g=d.get(m),b=new n.default({shapeFactory:S,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:g});b.geometry=this,b.animate=this.animateOption,b.draw(R,A),this.elementsMap[m]=b,this.elements[g]=b}for(var T=0,D=w;T<D.length;T++){var m=D[T],p=u.get(m),b=this.lastElementsMap[m],g=d.get(m),R=this.getShapeInfo(p),F=b.getModel();(this.isCoordinateChanged||(0,a.isModelChange)(F,R))&&(b.animate=this.animateOption,b.update(R)),this.elementsMap[m]=b,this.elements[g]=b}for(var N=0,_=B;N<_.length;N++){var m=_[N],b=this.lastElementsMap[m];b.animate=this.animateOption,b.destroy()}},l.prototype.getPointsAndData=function(c){for(var A=[],u=[],d=0,f=c.length;d<f;d++){var h=c[d];A.push({x:h.x,y:h.y}),u.push(h[t.FIELD_ORIGIN])}return{points:A,data:u}},l.prototype.getShapeInfo=function(c){var A=this.getDrawCfg(c[0]),u=this.getPointsAndData(c),d=u.points,f=u.data;return A.mappingData=c,A.data=f,A.isStack=!!this.getAdjust("stack"),A.points=d,A.connectNulls=this.connectNulls,A.showSinglePoint=this.showSinglePoint,A},l})(r.default);return SS.default=o,SS}var Jfe;function vDt(){if(Jfe)return bS;Jfe=1,Object.defineProperty(bS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(pDt());sQe();var r=(function(n){(0,e.__extends)(a,n);function a(i){var o=n.call(this,i)||this;o.type="line";var s=i.sortable,l=s===void 0?!1:s;return o.sortable=l,o}return a})(t.default);return bS.default=r,bS}var Sj={},Wfe;function Xfe(){if(Wfe)return Sj;Wfe=1,Object.defineProperty(Sj,"__esModule",{value:!0});var e=Mr,t=Br,r=Vl(),n=aQe(),a=Yd(),i=oQe(),o=function(A,u,d){var f=A.x,h=A.y,g=u.x,p=u.y,m;switch(d){case"hv":m=[{x:g,y:h}];break;case"vh":m=[{x:f,y:p}];break;case"hvh":var y=(g+f)/2;m=[{x:y,y:h},{x:y,y:p}];break;case"vhv":var C=(h+p)/2;m=[{x:f,y:C},{x:g,y:C}];break}return m};function s(A,u){var d=[];return(0,t.each)(A,function(f,h){var g=A[h+1];if(d.push(f),g){var p=o(f,g,u);d=d.concat(p)}}),d}function l(A){return A.map(function(u,d){return d===0?["M",u.x,u.y]:["L",u.x,u.y]})}function c(A,u){var d=(0,n.getPathPoints)(A.points,A.connectNulls,A.showSinglePoint),f=[];return(0,t.each)(d,function(h){var g=s(h,u);f=f.concat(l(g))}),(0,e.__assign)((0,e.__assign)({},(0,a.getStyle)(A,!0,!1,"lineWidth")),{path:f})}return(0,t.each)(["hv","vh","hvh","vhv"],function(A){(0,r.registerShape)("line",A,{draw:function(u,d){var f=c(u,A),h=d.addShape({type:"path",attrs:f,name:"line"});return h},getMarker:function(u){return(0,i.getLineMarker)(u,A)}})}),Sj}var qfe;function mDt(){if(qfe)return Gh;qfe=1;var e=Gh&&Gh.__extends||(function(){var o=function(s,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,A){c.__proto__=A}||function(c,A){for(var u in A)Object.prototype.hasOwnProperty.call(A,u)&&(c[u]=A[u])},o(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})(),t=Gh&&Gh.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Gh,"__esModule",{value:!0});var r=t(vDt());Xfe();var n=t(mG()),a=Jl();Xfe(),(0,a.registerGeometry)("Line",r.default);var i=(function(o){e(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.GemoBaseClassName="line",l}return s})(n.default);return Gh.default=i,Gh}var EDt=mDt();const lQe=gn(EDt);var Kh={},TS={},QS={},Bf={},Zfe;function xG(){if(Zfe)return Bf;Zfe=1,Object.defineProperty(Bf,"__esModule",{value:!0}),Bf.drawPoints=Bf.HOLLOW_SHAPES=Bf.SHAPES=void 0;var e=Mr,t=aM(),r=Yd();Bf.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Bf.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"];function n(a,i,o,s,l){var c=(0,r.getStyle)(i,l,!l,"r"),A=a.parsePoints(i.points),u=A[0];if(i.isStack)u=A[1];else if(A.length>1){for(var d=o.addGroup(),f=0,h=A;f<h.length;f++){var g=h[f];d.addShape({type:"marker",attrs:(0,e.__assign)((0,e.__assign)((0,e.__assign)({},c),{symbol:t.MarkerSymbols[s]||s}),g)})}return d}return o.addShape({type:"marker",attrs:(0,e.__assign)((0,e.__assign)((0,e.__assign)({},c),{symbol:t.MarkerSymbols[s]||s}),u)})}return Bf.drawPoints=n,Bf}var $fe;function yDt(){if($fe)return QS;$fe=1,Object.defineProperty(QS,"__esModule",{value:!0});var e=Br,t=aM(),r=Vl(),n=iQe(),a=xG(),i=(0,r.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(o){return(0,n.splitPoints)(o)}});return(0,e.each)(a.SHAPES,function(o){(0,r.registerShape)("point","hollow-"+o,{draw:function(s,l){return(0,a.drawPoints)(this,s,l,o,!0)},getMarker:function(s){var l=s.color;return{symbol:t.MarkerSymbols[o]||o,style:{r:4.5,stroke:l,fill:null}}}})}),QS.default=i,QS}var ehe;function CDt(){if(ehe)return TS;ehe=1,Object.defineProperty(TS,"__esModule",{value:!0});var e=Mr,t=(0,e.__importDefault)(bD());yDt();var r=(function(n){(0,e.__extends)(a,n);function a(){var i=n!==null&&n.apply(this,arguments)||this;return i.type="point",i.shapeType="point",i.generatePoints=!0,i}return a.prototype.getDrawCfg=function(i){var o=n.prototype.getDrawCfg.call(this,i);return(0,e.__assign)((0,e.__assign)({},o),{isStack:!!this.getAdjust("stack")})},a})(t.default);return TS.default=r,TS}var Rj={},the;function wDt(){if(the)return Rj;the=1,Object.defineProperty(Rj,"__esModule",{value:!0});var e=Br,t=aM(),r=Vl(),n=xG();return(0,e.each)(n.HOLLOW_SHAPES,function(a){(0,r.registerShape)("point",a,{draw:function(i,o){return(0,n.drawPoints)(this,i,o,a,!0)},getMarker:function(i){var o=i.color;return{symbol:t.MarkerSymbols[a],style:{r:4.5,stroke:o,fill:null}}}})}),Rj}var Tj={},rhe;function BDt(){if(rhe)return Tj;rhe=1,Object.defineProperty(Tj,"__esModule",{value:!0});var e=Vl(),t=Yd();return(0,e.registerShape)("point","image",{draw:function(r,n){var a=(0,t.getStyle)(r,!1,!1,"r").r,i=this.parsePoints(r.points),o=i[0];if(r.isStack)o=i[1];else if(i.length>1){for(var s=n.addGroup(),l=0,c=i;l<c.length;l++){var A=c[l];s.addShape("image",{attrs:{x:A.x-a/2,y:A.y-a,width:a,height:a,img:r.shape[1]}})}return s}return n.addShape("image",{attrs:{x:o.x-a/2,y:o.y-a,width:a,height:a,img:r.shape[1]}})},getMarker:function(r){var n=r.color;return{symbol:"circle",style:{r:4.5,fill:n}}}}),Tj}var Qj={},nhe;function xDt(){if(nhe)return Qj;nhe=1,Object.defineProperty(Qj,"__esModule",{value:!0});var e=Br,t=aM(),r=Vl(),n=xG();return(0,e.each)(n.SHAPES,function(a){(0,r.registerShape)("point",a,{draw:function(i,o){return(0,n.drawPoints)(this,i,o,a,!1)},getMarker:function(i){var o=i.color;return{symbol:t.MarkerSymbols[a]||a,style:{r:4.5,fill:o}}}})}),Qj}var ahe;function MDt(){if(ahe)return Kh;ahe=1;var e=Kh&&Kh.__extends||(function(){var o=function(s,l){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,A){c.__proto__=A}||function(c,A){for(var u in A)Object.prototype.hasOwnProperty.call(A,u)&&(c[u]=A[u])},o(s,l)};return function(s,l){if(typeof l!="function"&&l!==null)throw new TypeError("Class extends value "+String(l)+" is not a constructor or null");o(s,l);function c(){this.constructor=s}s.prototype=l===null?Object.create(l):(c.prototype=l.prototype,new c)}})(),t=Kh&&Kh.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(Kh,"__esModule",{value:!0});var r=t(CDt()),n=t(mG()),a=Jl();wDt(),BDt(),xDt(),(0,a.registerGeometry)("Point",r.default);var i=(function(o){e(s,o);function s(){var l=o!==null&&o.apply(this,arguments)||this;return l.GemoBaseClassName="point",l}return s})(n.default);return Kh.default=i,Kh}var IDt=MDt();const cQe=gn(IDt),MG=({data:e,xFieldName:t="name",yFieldName:r="value",options:n,title:a,series:i})=>{const o=ut(S=>S.cti.ui.graphColors.pieChart),s=ut(S=>S.cti.ui.generatePDF),l=ut(S=>S.cti.ui.pdfSize);let c=o;const A=Object.keys(cl(e,S=>S.type)),u=le.useCallback(S=>{const R=Array.isArray(S)?S[0].replace(/"/gm,""):S,b=A.indexOf(R);return c[b]},[c,n,A]);let d=A;d.includes("undefined")&&a&&(d=[a]),d=d.map((S,R)=>{const b=u(S);return{id:R,name:S,marker:{style:{fill:b},symbol:"square"}}});const f=(S,R,b)=>{if(!n||!n.labelView)return S;const T=e.find(D=>D.category===S);return n.labelView===0||S==="Autres"?S:T?T.label_code:"Pas de code"};let h=[],g=[],p=[],m=[];Object.values(i).forEach(S=>{g.push(S.displayName),S.type==="line"?p.push(S.displayName):m.push(S.displayName)});const y=cl(e,S=>S.name);for(let S in y){let R={name:S};const b=y[S];g.forEach(T=>{const D=b.find(F=>F.type===T);D&&(R[T]=D.value,R[`${T}_formatted`]=D.formattedValue)}),h.push(R)}const C=e.map(S=>S.value),w=Math.max(...C)*1.1,B=Math.min(...C)*.9;let x={};if(g.forEach(S=>{x[S]={min:B,max:w,formatter:R=>{let b=h.find(T=>T[S]===R);return b?b[`${S}_formatted`]??R:R}}}),!e.length)return null;const M=({width:S,height:R})=>v.jsxs(Mm,{height:R,width:S,data:h,padding:"auto",scale:x,children:[v.jsx(Mi,{shared:!0}),v.jsx(Im,{custom:!0,items:d,visible:!0,itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(sA,{name:t,label:{style:{fill:"rgba(0,0,0,0.85)"},formatter:f}}),v.jsx(sA,{name:r,label:{style:{fill:"rgba(0,0,0,0.85)"}},formatter:b=>Math.round(b)===b?b:b.toFixed(2)}),m.map(b=>v.jsx($y,{color:[`"${b}"`,T=>u(T)],position:`${t}*${b}`},b)),p.map(b=>v.jsxs("div",{children:[v.jsx(lQe,{position:`${t}*${b}`,color:[`"${b}"`,T=>u(T)],size:3,shape:"smooth"}),v.jsx(cQe,{color:[`"${b}"`,T=>u(T)],position:`${t}*${b}`,size:3,shape:"smooth"})]},b))]});return v.jsx("div",{className:"graph-wrapper",children:s===!1?v.jsx(cu,{children:({width:S,height:R})=>v.jsx(M,{width:S,height:R})}):v.jsx(M,{width:l.width,height:l.height})})};MG.propTypes={data:W.arrayOf(W.object).isRequired,xFieldName:W.string,yFieldName:W.string,options:W.object,title:W.string,serie:W.object};MG.defaultProps={xFieldName:"name",yFieldName:"value",percent:!1};const bDt=le.memo(MG,Qg);let AQe;const uQe=["F - Féminin","Féminin","féminin","Feminin","feminin","F"],dQe=["M","Masculin","masculin","M - Masculin"],SDt=dQe.concat(uQe);AQe={men:dQe,women:uQe,all:SDt};const $w=AQe,RDt=(e,t)=>t.filter(function(n){const a=new Date(n.date_reference);return a.getFullYear()===e.getFullYear()&&a.getMonth()<=e.getMonth()}),IG=({data:e,xFieldName:t="name",yFieldName:r="value"})=>{let n=ut(A=>A.cti.ui.graphColors.pieChart),a=ut(A=>A.cti.ui.graphColors.sexChart);e.length===2&&$w.all.includes(e[0].name)&&(n=[],e.forEach(A=>{$w.men.includes(A.name)&&n.push(a[0]),$w.women.includes(A.name)&&n.push(a[1])}));const i=ut(A=>A.cti.ui.generatePDF),o=ut(A=>A.cti.ui.pdfSize);let s=n;const l={[r]:{formatter:A=>{let u=e.find(d=>d[r]===A);return u&&u.formattedValue?u.formattedValue:A}}},c=({width:A,height:u})=>v.jsxs(Mm,{data:e,width:A,height:u,padding:"auto",scale:l,children:[v.jsx(Im,{name:t,position:"right"}),v.jsx(YB,{showTitle:!1}),v.jsxs(wG,{data:e,animate:!0,children:[v.jsx(yG,{type:"theta",radius:.85}),v.jsx(sA,{visible:!1}),v.jsx($y,{adjust:"stack",style:{lineWidth:1,stroke:"#f0f2f5"},position:r,color:[t,[...s]]}),v.jsx(YB,{shared:!0,title:(d,f)=>f.tooltipLabel??d})]})]});return v.jsx("div",{className:"graph-wrapper",children:i===!1?v.jsx(cu,{children:({width:A,height:u})=>v.jsx(c,{width:A,height:u})}):v.jsx(c,{width:o.width,height:o.height})})};IG.propTypes={data:W.arrayOf(W.object).isRequired,xFieldName:W.string,yFieldName:W.string};IG.defaultProps={xFieldName:"name",yFieldName:"value"};const bG=({data:e,xFieldName:t="name",yFieldName:r="value",includeSeries:n=[]})=>{let a=ut(y=>y.cti.ui.graphColors.lineChart),i=ut(y=>y.cti.ui.graphColors.sexChart);const o=ut(y=>y.cti.ui.generatePDF),s=ut(y=>y.cti.ui.pdfSize),l=ut(y=>y.cti.eis.date);let c=e.map(y=>y.value),A=a,u,d;const f=Object.keys(cl(e,y=>y.type));let h=e.map(y=>({...y}));if(n.length){h=h.filter(C=>n.includes(Number(C.serie)));const y=new Date(l);h=RDt(y,h),c=h.map(C=>C.value),d=Math.max(...c)*1.1,u=Math.min(...c)*.9}else d=Math.max(...c)*1.1,u=Math.min(...c)*.9;const g=y=>{if($w.men.includes(y))return i[0];if($w.women.includes(y))return i[1];let C=f.indexOf(y);return C===-1&&(C=0),A[C]},p={[r]:{formatter:y=>{let C=h.find(w=>w[r]===y);return C&&C.formattedValue?C.formattedValue:y},min:u,max:d}},m=({width:y,height:C})=>v.jsxs(Mm,{data:h,width:y,height:C,padding:"auto",scale:p,children:[v.jsx(Im,{}),v.jsx(sA,{name:t}),v.jsx(sA,{name:r}),v.jsx(lQe,{type:"line",shape:"smooth",position:`${t}*${r}`,size:2,color:["type",w=>g(w)]}),v.jsx(cQe,{position:`${t}*${r}`,size:4,shape:"circle",color:["type",w=>g(w)],style:{stroke:"#fff",lineWidth:1}})]});return v.jsx("div",{className:"graph-wrapper",children:o===!1?v.jsx(cu,{children:({width:y,height:C})=>v.jsx(m,{width:y,height:C})}):v.jsx(m,{width:s.width,height:s.height})})};bG.propTypes={data:W.arrayOf(W.object).isRequired,xFieldName:W.string,yFieldName:W.string,includeSeries:W.arrayOf(W.number)};bG.defaultProps={xFieldName:"name",yFieldName:"value"};const TDt=le.memo(bG,Qg),SG=({data:e,xFieldName:t="name",yFieldName:r="value",options:n})=>{const a=ut(h=>h.cti.ui.graphColors.columnChart),i=ut(h=>h.cti.ui.generatePDF),o=ut(h=>h.cti.ui.pdfSize),[s,l]=E.useState(0),c=Object.keys(cl(e,h=>h.type));E.useEffect(()=>{const h=e.map(y=>y.value);let g=Math.max(...h),p=Math.min(...h),m=Math.max(g,Math.abs(p));l(m)},[e]);const A=h=>{const g=c.indexOf(h);return a[g]},u=(h,g,p)=>{if(!n||!n.labelView)return h;const m=e.find(y=>y.category===h);return n.labelView===0||h==="Autres"?h:m?m.label_code:"Pas de code"},d={[t]:{formatter:h=>h<0?-h:h,nice:!0,min:-s,max:s}};if(!e.length)return null;const f=({width:h,height:g})=>v.jsxs(Mm,{height:g,width:h,data:e,autoFit:!0,children:[v.jsx(Im,{itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsxs(wG,{data:e,scale:d,animate:!0,children:[v.jsx(sA,{name:r,label:{offset:12,formatter:u,style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(sA,{name:"value",label:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(yG,{transpose:!0}),v.jsx($y,{adjust:[{type:"stack"}],color:["type",p=>A(p)],position:`${r}*${t}`})]})]});return v.jsx("div",{className:"graph-wrapper",children:i===!1?v.jsx(cu,{children:({width:h,height:g})=>v.jsx(f,{width:h,height:g})}):v.jsx(f,{width:o.width,height:o.height})})};SG.propTypes={data:W.arrayOf(W.object).isRequired,xFieldName:W.string,yFieldName:W.string,options:W.object};SG.defaultProps={xFieldName:"name",yFieldName:"value"};const QDt=le.memo(SG,Qg),RG=({data:e,xFieldName:t="name",yFieldName:r="value",options:n,title:a})=>{const i=ut(m=>m.cti.ui.graphColors.columnChart),o=ut(m=>m.cti.ui.generatePDF),s=ut(m=>m.cti.ui.pdfSize),l=wn(),c=m=>{m.data.data.indicateur_condition_id&&l(ove(m.data.data.indicateur_condition_id[0]))};let A=i;const u=Object.keys(cl(e,m=>m.type)),d=le.useCallback((m,y)=>{const C=Array.isArray(m)?y:m,w=u.indexOf(C);return A[w]},[A,n,u]);let f=u;f.includes("undefined")&&a&&(f=[a]),f=f.map((m,y)=>{const C=d(m);return{id:y,name:m,marker:{style:{fill:C},symbol:"square"}}});const h=(m,y,C)=>{if(!n||!n.labelView)return m;const w=e.find(B=>B.category===m);return n.labelView===0||m==="Autres"?m:w?w.label_code:"Pas de code"},g={[r]:{formatter:m=>{let y=e.find(C=>C[r]===m);return y&&y.formattedValue?y.formattedValue:m}}};if(!e.length)return null;const p=({width:m,height:y})=>v.jsxs(Mm,{height:y,width:m,data:e,onIntervalClick:c,padding:"auto",scale:g,children:[v.jsx(Im,{custom:!0,items:f,visible:!0,itemName:{style:{fill:"rgba(0,0,0,0.85)"}}}),v.jsx(sA,{name:t,label:{style:{fill:"rgba(0,0,0,0.85)"},formatter:h}}),v.jsx(sA,{name:r,label:{style:{fill:"rgba(0,0,0,0.85)"}},formatter:C=>Math.round(C)===C?C:C.toFixed(2)}),v.jsx($y,{adjust:[{type:"stack"}],color:["type*name",(C,w)=>d(C,w)],position:`${t}*${r}`}),v.jsx(YB,{shared:!0,title:(C,w)=>w.tooltipLabel??C})]});return v.jsx("div",{className:"graph-wrapper",children:o===!1?v.jsx(cu,{children:({width:m,height:y})=>v.jsx(p,{width:m,height:y})}):v.jsx(p,{width:s.width,height:s.height})})};RG.propTypes={data:W.arrayOf(W.object).isRequired,xFieldName:W.string,yFieldName:W.string,options:W.object,title:W.string};RG.defaultProps={xFieldName:"name",yFieldName:"value",percent:!1};const ihe=le.memo(RG,Qg),DDt=({charts:e,data:t,view:r,tabName:n,similiTabName:a,height:i})=>{function o(g,p=!1){return t?g.map((m,y)=>{if(m.subCharts){const C=Object.values(m.subCharts).filter(w=>w.visibleCondition?ca(w.visibleCondition,r):!0);return v.jsx("div",{style:{height:"100%"},children:v.jsx("div",{className:"graphs",tabname:Lo(n),similitabname:Lo(a),rendertypechart:"filteredSubcharts",carousel:p?"true":null,children:s(C,t)})},y)}else{let C;if(m.serieIsCategory&&m.serieIsCategory==="true"){const w=Object.values(m.series);C=l(t,w,m)}else C=c(t,m);return!C||C.length<1?null:v.jsx("div",{style:{height:"100%"},children:v.jsx("div",{className:"graphs",tabname:Lo(n),similitabname:Lo(a),rendertypechart:"chart",carousel:p?"true":null,children:d(m,C)})},y)}}):null}function s(g,p){return g.map((m,y)=>{const C=Object.values(m.series);let w;return m.serieIsCategory!==void 0&&m.serieIsCategory==="true"?w=l(p,C,m):w=c(p,m),!w||w.length<1?null:d(m,w,y)})}function l(g,p,m){let[y,C]=g,w=[],B;m.condition&&(B=m.condition);let x=y;B&&(x=y.filter(S=>{try{return ca(B,r,S)}catch(R){return console.log(B),console.log(R),!0}}));let M=x;if(m.sortField&&m.sortField&&M.every(S=>S[m.sortField])){let S=m.sortSeq==="D"?"desc":"asc";M=zf(M,m.sortField,S)}return m.fromTotal==="true"&&(M=C),m.maxItems&&(M=M.slice(0,Number(m.maxItems))),M.forEach((S,R)=>{p.forEach(b=>{let T={};T.name=b.displayName,b.displayNameCalc&&b.displayNameCalc==="true"&&(T.name=ca(b.displayName,r));let D=b.field;T.value=A(D,[S],m,C),T.formattedValue=T.value;const F=r.run.data[n];if(F){const _=F.datagrid.columns[b.field];if(_){let P=_.outputFormat;if(P&&P!==""){let k=_.outputFormat.trim();/^=/gm.test(k)&&(k=ca(k,r)),T.formattedValue=TR({type:_.type,format:k,data:T.value})}}}let N=m.categories[0].field;N==="CODTXT"&&S.COD?.sanitizedText&&S.TXT?.sanitizedText?T.type=`${S.COD.sanitizedText}-${S.TXT.sanitizedText}`:T.type=S[N]?.sanitizedText,T.type||(T.type=m.title),w.push(T)})}),w=w.filter(S=>!(S.name===""&&S.value===0)),w}function c(g,p){const[m]=g,y=Object.values(p.series).filter(b=>b.visible!=="false");let C=[],w;p.condition&&(w=p.condition);let B=m;w&&(B=m.filter(b=>{let T={};if(b&&Object.values(b).some(D=>D.text))for(let D in b)T[D]=b[D].text?b[D].text:b[D];return ca(w,r,T)})),B=f(B,p);let x=[],M=[],S=[],R={};if(p.categories[0].items)x=p.categories[0].items.map(b=>b.field),M=p.categories[0].items.map(b=>b.displayNameCalc==="true"?ca(b.displayName,r):b.displayName),x.forEach(b=>R[b]=B);else{let b=p.categories[0].field;const T=b==="CODTXT"?"COD":b;R=cl(B,D=>D[T].sanitizedText?D[T].sanitizedText:D[T]),b==="CODTXT"?(b="COD",M=Object.values(R).map(D=>{if(D[0].COD&&D[0].TXT){let F=D[0].COD.sanitizedText??D[0].COD,N=D[0].TXT.sanitizedText??D[0].TXT;return`${F} - ${N}`}else return D[0].TXT.sanitizedText??D[0].TXT})):(M=Object.values(R).map(D=>D[0][b].sanitizedText?D[0][b].sanitizedText:D[0][b]),S=Object.values(R).map(D=>{if(D[0].COD&&D[0].TXT){let F=D[0].COD.sanitizedText??D[0].COD,N=D[0].TXT.sanitizedText??D[0].TXT;return`${F} - ${N}`}else return D[0]?.TXT?.sanitizedText??D[0].TXT})),x=Object.keys(R)}if(x.forEach((b,T)=>{y.forEach(D=>{let F=R[b];D.condition&&(F=F.filter(Y=>{try{return ca(D.condition,r,Y)}catch(X){return console.log(D.condition),console.log(X),!0}}));let N=D.displayName;D.displayNameCalc&&D.displayNameCalc==="true"&&(N=ca(N,r));let _=A(D.field??b,F,p),P=_;const k=r.run.data[n];if(k){const Y=k.datagrid.columns[D.field];if(Y){let X=Y.outputFormat;if(X&&X!==""){let K=Y.outputFormat.trim();/^=/gm.test(K)&&(K=ca(K,r)),P=TR({type:Y.type,format:K,data:_})}}}let j={name:M[T],tooltipLabel:S[T]??null,type:N,value:A(D.field??b,F,p),formattedValue:P};p?.sortField!==""&&R[b].length===1?j[p.sortField]=R[b][0][p.sortField]:R[b].length===1&&(j.COD=R[b][0].COD),C.push(j)})}),p.sortField&&p.softField!==""){let b,T=p.sortField;if(T&&C.every(D=>D[T])){let D=p.sortSeq==="D"?"desc":"asc";b=zf(C,T,D)}else b=u(C);C=b}return C}function A(g,p,m,y=[]){const C=r.run.data[n].datagrid.columns,w=Object.values(C).find(M=>M.dataField===g);let B=!1;m.fromTotal&&m.fromTotal==="true"&&(B=!0);let x=0;if(B){const M=y.find(S=>S.OID==="-9999999");M&&M[g]&&!isNaN(parseFloat(M[g].text))?(x=parseFloat(M[g].text),w&&w.outputFormat&&(x=x.toFixed(OV(w.outputFormat)),x=Number(x))):M[g]&&!isNaN(parseFloat(M[g]))&&(x=parseFloat(M[g]),w&&w.outputFormat&&(x=x.toFixed(OV(w.outputFormat)),x=Number(x)))}else x=0,p.forEach(M=>{M[g]&&!isNaN(Number(M[g].text))?x+=Number(M[g].text):M[g]&&!isNaN(Number(M[g]))&&(x+=Number(M[g]))});return Math.round(x)===x?x:Number(x.toFixed(2))}function u(g){let p=cl(g,C=>C.name);p=Object.values(p).map(C=>({name:C[0].name,total:C.reduce((w,B)=>B.value+w,0)}));let m=Object.values(zxe(p,C=>C.total).reverse());return m=m.map(C=>C.name),g.sort((C,w)=>m.indexOf(C.name)-m.indexOf(w.name))}function d(g,p,m=0){let y=p;switch(g.type){case"mixedChart":return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(bDt,{data:y,title:g.title,series:g.series},m)]},m);case"columnChart":return g.subType&&g.subType==="stacked"?v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(ihe,{data:y,title:g.title},m)]},m):v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(q4t,{data:y,title:g.title},m)]},m);case"pieChart":return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(IG,{data:y,title:g.title},m)]},m);case"pieChart2":return v.jsx("div",{className:"sub-graph",children:v.jsx(BG,{data:y,title:g.title},m)},m);case"lineChart":return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(TDt,{data:y,title:g.title},m)]},m);case"barChart":return g.subType==="overlaid"?v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(QDt,{data:y,title:g.title,yFieldName:"name",xFieldName:"value"},m)]},m):v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx(ihe,{data:y,title:g.title},m)]},m);default:return v.jsxs("div",{className:"sub-graph",children:[v.jsx("div",{className:"graph-title",children:g.title}),v.jsx("h2",{children:"Type de graphique non disponible"})]},m)}}function f(g,p){let m=[...g],y="COD";if(p.sortField!==""?y=p.sortField:p.maxItemsSortOn!==""&&(y=p.maxItemsSortOn),y&&m.every(C=>C[y])){let C=p.sortSeq==="D"?"desc":"asc",w=zf(m,y,C);if(p.maxItems)w=w.slice(0,Number(p.maxItems));else switch(p.type){case"piechart":return w=w.slice(0,12);case"linechart":return w=w.slice(0,5);default:return w=w.slice(0,20)}return w}else return u(m)}if(!t)return null;let h=e.filter(g=>g.visibleCondition?ca(g.visibleCondition,r):!0);if(i===0)return null;if(t&&h.length>1)return v.jsx($qe,{tabPosition:"right",forceRender:!0,autoplay:!1,autoplaySpeed:7e3,isCarousel:!0,children:o(h,!0)});if(t&&h.length===1){let g=h[0];if(g.subCharts){const p=Object.values(g.subCharts).filter(m=>m.visibleCondition?ca(m.visibleCondition,r):!0);return v.jsx("div",{className:"graphs",tabname:Lo(n),similitabname:Lo(a),rendertypechart:"filteredChart",children:s(p,t)})}else{let p;if(g.serieIsCategory==="true"){const m=Object.values(g.series);p=l(t,m,g)}else p=c(t,g);return!p||p.length<1?null:v.jsx("div",{className:"graphs",tabname:Lo(n),similitabname:Lo(a),rendertypechart:"formattedChart",children:d(g,p)})}}else return null},FDt=le.memo(DDt),NDt=({view:e})=>{const t=e.run.viewFilters.map((r,n)=>r&&r.trim()!==""?v.jsx("div",{dangerouslySetInnerHTML:{__html:"<p>"+r+"</p>"}},n):null);return v.jsx("div",{className:"view-filters",children:t})},_Dt=le.memo(NDt),Dj=le.memo(({tableData:e,totalData:t,graphData:r,columns:n,charts:a,similiTabName:i,tabName:o,view:s})=>{const[l,c]=E.useState(300),[A,u]=E.useState("block"),d=ut(h=>h.cti.settings.user.showGraphs);E.useEffect(()=>{d==="hidden"&&c(0),(!a||a.length===0||d==="never"||e.length===0)&&u("none")},[d,a]);const f=(h,g,p,m)=>{m.height<20?l>20&&c(0):c(l+m.height)};return v.jsx(v.Fragment,{children:v.jsxs("div",{className:"cti-view-data-content",children:[v.jsx(_Dt,{view:s}),v.jsx(fm,{className:"view-data-graphs",axis:"x",style:{display:A,filter:"none"},handleComponent:{bottom:v.jsx("div",{className:"resize-handle",children:v.jsx("span",{children:"…"})})},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},size:{width:"100%",height:l},grid:[20,20],onResizeStop:f,children:v.jsx(FDt,{charts:a,data:r,tabName:o,view:s,similiTabName:i,height:l})}),v.jsx("div",{className:"view-data-table",ref:E.useRef(),children:v.jsx(Ngt,{tableData:e,totalData:t,columns:n,similitabName:i,tabName:o,view:s})})]})})}),{Option:kDt}=sn,PDt=({similiTabs:e,parentTabIndex:t,columns:r,charts:n,tabName:a,view:i,handleSetSelectedSimiliTab:o})=>{const s=ut(C=>C.cti.menu),l=ut(C=>C.cti.dynamicSelects),c=wn();function A(C,w){let x=Object.values(C).filter(M=>M.visible).map(M=>(w.excelLabel==="Essentiel"&&(M.headerText=M.headerText.toUpperCase(),M.titleText=M.titleText.toUpperCase()),{...M,dataGetter:f,hidden:M.hidden?M.hidden:!ca(M.visibleCondition,i)})).sort((M,S)=>M.order===-1?!1:M.order-S.order);return[{dataKey:"EXPAND",width:20,key:"EXPAND",description:"",hidden:!1,frozen:"left",titleText:"",printable:"false"},...x]}const u=(C,w)=>{const B=l.map(M=>({...M}));let x=B.find(M=>M.name===w.fieldname);x.value=C,c(GE(B))},d=C=>{const w=C.selections;if(!w?.length)return null;const B=w.map((x,M)=>{const S=x.options.map((R,b)=>v.jsx(kDt,{value:R.data,fieldname:x.name,children:R.label},b));return v.jsx(sn,{style:{width:120},size:"small",defaultValue:x.value,onChange:u,children:S},M)});return v.jsx("div",{className:"view-dynamic-select",children:B})};function f({columns:C,column:w,columnIndex:B,rowData:x,rowIndex:M}){if(x[w.dataKey]){if(w.type==="Viewlink"){const T=Object.keys(RR).find(F=>x.VIEWLINK.toLowerCase().includes(F.toLowerCase())),D=RR[T];return x.VIEWLINK!==""?v.jsx("div",{className:x[w.dataKey]?.class,style:{padding:0,display:"flex",alignItems:"center"},children:x[w.dataKey].sanitizedText&&x[w.dataKey].sanitizedText.startsWith("+++")?v.jsx(Mi,{title:x[w.dataKey].sanitizedText.substring(3),children:v.jsx(yt,{type:"primary",style:{fontSize:"12px",lineHeight:"0px",textAlign:"center",backgroundColor:"gray",height:"18px",borderColor:"gray"},disabled:x.VIEWLINK==="1"||x.VIEWLINK==="2"||x.VIEWLINK==="",onClick:()=>UT(x.VIEWLINK,x.VIEWLINK_PARAM,c,i,s,null,null,null,D),children:v.jsx("span",{style:{textAlign:"left"},children:"Détail"})})}):v.jsx(yt,{type:"link",style:{lineHeight:"0px",textAlign:"center"},disabled:x.VIEWLINK==="1"||x.VIEWLINK==="2"||x.VIEWLINK==="",onClick:()=>UT(x.VIEWLINK,x.VIEWLINK_PARAM,c,i,s,null,null,null,D),children:v.jsx("span",{className:"link-essentiel-cell",children:x[w.dataKey].sanitizedText})})}):null}let S;x[w.dataKey]&&x[w.dataKey].symbol&&(S=v.jsx("span",{style:x[w.dataKey].symbol.style,dangerouslySetInnerHTML:{__html:x[w.dataKey].symbol.html}}));let R=w.description&&w.description!==""?w.description:w.titleText,b="";return w?.tooltipId!==""&&x[w.tooltipId]&&(b=`<br>${x[w.tooltipId]}`),v.jsx(Pbe,{className:x[w.dataKey]?.class,text:x[w.dataKey]?.sanitizedText??"",description:R,complement:b,symbol:S})}else return""}const h=(C,w)=>{let B=[];const x=zse.StyleSheet.create(C.styles);return B=C.data.map(M=>M.map((S,R)=>{const b=Object.values(w.datagrid.columns),T=b.length;for(let D=0;D<T;D++){const F=b[D];if(F.visible===!0){const N=zse.css(x[S[F.dataKey].class]);N!==""&&(S[F.dataKey].class=N),w.excelLabel==="Essentiel"&&(F.headerText=F.headerText.toUpperCase(),F.titleText=F.titleText.toUpperCase())}}return S})),[B[0],B[1]]},g=(C,w)=>{let B=C;const x=i.run.data[a];return x.inputSelections&&x.inputSelections.forEach(M=>{const S=M.condition;S&&(B=C.filter(R=>ca(S,i,R)))}),B};function p(C,w){return C.sort((x,M)=>Number(x.id)<Number(M.id)?-1:1).map((x,M)=>{let[S,R]=h(x,i.run.data[a]);return S=g(S),R=g(R),{label:x.name,key:`${t}_${M}`,children:v.jsx(Dj,{tableData:S,totalData:R,graphData:x.data,columns:w,charts:n,similiTabName:x.name,tabName:a,view:i})}})}let m=Object.values(e);const y=A(r,i.run.data[a]);if(m.length===0)return v.jsx(v.Fragment,{children:v.jsx(Dj,{tableData:[],columns:y,charts:n,tabName:a,view:i})});if(m.length>1)return v.jsxs(v.Fragment,{children:[d(i.run.data[a]),v.jsx(Oi,{onTabClick:C=>o(C),items:p(m,y)})]});if(m.length===1){let[C,w]=h(m[0],i.run.data[a]);return C=g(C,m[0]),w=g(w,m[0]),v.jsxs(v.Fragment,{children:[d(i.run.data[a]),v.jsx(Dj,{tableData:C,totalData:w,graphData:m[0].data,columns:y,charts:n,similiTabName:m[0].name,tabName:a,view:i})]})}},ohe=le.memo(PDt),ODt=({view:e,handleSetSelectedSimiliTab:t})=>{const r=e.run.data,n=wn();E.useEffect(()=>{n(hV("0"))},[n]);const a=c=>{n(hV(c))};function i(c){let A=c.map((u,d)=>{const f=u.datagrid.columns;return{label:u.label,key:String(d),disabled:u.similitabs.length===0,forceRender:!0,children:v.jsx(ohe,{parentTabIndex:String(d),similiTabs:u.similitabs,columns:f,charts:Object.values(u.charts),tabName:u.label,view:e,handleSetSelectedSimiliTab:t})}});return v.jsx(Oi,{defaultActiveKey:"0",onChange:a,items:A})}function o(c){const A=c.datagrid.columns;return v.jsx(ohe,{similiTabs:c.similitabs,columns:A,charts:Object.values(c.charts),tabName:c.label,view:e,handleSetSelectedSimiliTab:t})}const l=Object.values(r).filter(c=>c.visible);return l?.length>1?i(l):o(l[0])},jDt=le.memo(ODt),zDt=({view:e,contentName:t})=>{let r=e.run.title?e.run.title:t;return v.jsxs(v.Fragment,{children:[v.jsx(io,{children:v.jsxs("title",{children:["iCTI | ",r]})}),v.jsx("div",{className:"view-header-title",children:r})]})},Fj={desc:{selections:void 0,attributes:void 0,viewlinks:void 0,onglets:{charts:void 0,columns:void 0}},run:{executed:!1,forceServer:!1,args:void 0,properties:void 0,data:void 0}},fQe=["shift","alt","meta","mod","ctrl","control"],LDt={esc:"escape",return:"enter",left:"arrowleft",right:"arrowright",up:"arrowup",down:"arrowdown",ShiftLeft:"shift",ShiftRight:"shift",AltLeft:"alt",AltRight:"alt",MetaLeft:"meta",MetaRight:"meta",OSLeft:"meta",OSRight:"meta",ControlLeft:"ctrl",ControlRight:"ctrl"};function yg(e){return(LDt[e.trim()]||e.trim()).toLowerCase().replace(/key|digit|numpad/,"")}function hQe(e){return fQe.includes(e)}function Nj(e,t=","){return e.toLowerCase().split(t)}function _j(e,t="+",r=">",n=!1,a){let i=[],o=!1;e.includes(r)?(o=!0,i=e.toLocaleLowerCase().split(r).map(c=>yg(c))):i=e.toLocaleLowerCase().split(t).map(c=>yg(c));const s={alt:i.includes("alt"),ctrl:i.includes("ctrl")||i.includes("control"),shift:i.includes("shift"),meta:i.includes("meta"),mod:i.includes("mod"),useKey:n},l=i.filter(c=>!fQe.includes(c));return{...s,keys:l,description:a,isSequence:o}}typeof document<"u"&&(document.addEventListener("keydown",e=>{e.code!==void 0&&gQe([yg(e.code)])}),document.addEventListener("keyup",e=>{e.code!==void 0&&pQe([yg(e.code)])})),typeof window<"u"&&(window.addEventListener("blur",()=>{jf.clear()}),window.addEventListener("contextmenu",()=>{setTimeout(()=>{jf.clear()},0)}));const jf=new Set;function TG(e){return Array.isArray(e)}function YDt(e,t=","){return(TG(e)?e:e.split(t)).every(r=>jf.has(r.trim().toLowerCase()))}function gQe(e){const t=Array.isArray(e)?e:[e];jf.has("meta")&&jf.forEach(r=>!hQe(r)&&jf.delete(r.toLowerCase())),t.forEach(r=>jf.add(r.toLowerCase()))}function pQe(e){const t=Array.isArray(e)?e:[e];e==="meta"?jf.clear():t.forEach(r=>jf.delete(r.toLowerCase()))}function UDt(e,t,r){(typeof r=="function"&&r(e,t)||r===!0)&&e.preventDefault()}function HDt(e,t,r){return typeof r=="function"?r(e,t):r===!0||r===void 0}function GDt(e){return vQe(e,["input","textarea","select"])}function vQe(e,t=!1){const{target:r,composed:n}=e;let a;return KDt(r)&&n?a=e.composedPath()[0]&&e.composedPath()[0].tagName:a=r&&r.tagName,TG(t)?!!(a&&t&&t.some(i=>i.toLowerCase()===a.toLowerCase())):!!(a&&t&&t)}function KDt(e){return!!e.tagName&&!e.tagName.startsWith("-")&&e.tagName.includes("-")}function VDt(e,t){return e.length===0&&t?(console.warn('A hotkey has the "scopes" option set, however no active scopes were found. If you want to use the global scopes feature, you need to wrap your app in a <HotkeysProvider>'),!0):t?e.some(r=>t.includes(r))||e.includes("*"):!0}const JDt=(e,t,r=!1)=>{const{alt:n,meta:a,mod:i,shift:o,ctrl:s,keys:l,useKey:c}=t,{code:A,key:u,ctrlKey:d,metaKey:f,shiftKey:h,altKey:g}=e,p=yg(A);if(c&&l?.length===1&&l.includes(u))return!0;if(!(l!=null&&l.includes(p))&&!["ctrl","control","unknown","meta","alt","shift","os"].includes(p))return!1;if(!r){if(n!==g&&p!=="alt"||o!==h&&p!=="shift")return!1;if(i){if(!f&&!d)return!1}else if(a!==f&&p!=="meta"&&p!=="os"||s!==d&&p!=="ctrl"&&p!=="control")return!1}return l&&l.length===1&&l.includes(p)?!0:l?YDt(l):!l},WDt=E.createContext(void 0),XDt=()=>E.useContext(WDt);function mQe(e,t){return e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(e).length===Object.keys(t).length&&Object.keys(e).reduce((r,n)=>r&&mQe(e[n],t[n]),!0):e===t}const qDt=E.createContext({hotkeys:[],activeScopes:[],toggleScope:()=>{},enableScope:()=>{},disableScope:()=>{}}),ZDt=()=>E.useContext(qDt);function $Dt(e){const t=E.useRef(void 0);return mQe(t.current,e)||(t.current=e),t.current}const she=e=>{e.stopPropagation(),e.preventDefault(),e.stopImmediatePropagation()},e5t=typeof window<"u"?E.useLayoutEffect:E.useEffect;function EQe(e,t,r,n){const a=E.useRef(null),i=E.useRef(!1),o=r instanceof Array?n instanceof Array?void 0:n:r,s=TG(e)?e.join(o?.delimiter):e,l=r instanceof Array?r:n instanceof Array?n:void 0,c=E.useCallback(t,l??[]),A=E.useRef(c);l?A.current=c:A.current=t;const u=$Dt(o),{activeScopes:d}=ZDt(),f=XDt();return e5t(()=>{if(u?.enabled===!1||!VDt(d,u?.scopes))return;let h=[],g;const p=(w,B=!1)=>{var x;if(!(GDt(w)&&!vQe(w,u?.enableOnFormTags))){if(a.current!==null){const M=a.current.getRootNode();if((M instanceof Document||M instanceof ShadowRoot)&&M.activeElement!==a.current&&!a.current.contains(M.activeElement)){she(w);return}}(x=w.target)!=null&&x.isContentEditable&&!(u!=null&&u.enableOnContentEditable)||Nj(s,u?.delimiter).forEach(M=>{var S,R,b,T;if(M.includes(u?.splitKey??"+")&&M.includes(u?.sequenceSplitKey??">")){console.warn(`Hotkey ${M} contains both ${u?.splitKey??"+"} and ${u?.sequenceSplitKey??">"} which is not supported.`);return}const D=_j(M,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description);if(D.isSequence){g=setTimeout(()=>{h=[]},u?.sequenceTimeoutMs??1e3);const F=D.useKey?w.key:yg(w.code);if(hQe(F.toLowerCase()))return;h.push(F);const N=(S=D.keys)==null?void 0:S[h.length-1];if(F!==N){h=[],g&&clearTimeout(g);return}h.length===((R=D.keys)==null?void 0:R.length)&&(A.current(w,D),g&&clearTimeout(g),h=[])}else if(JDt(w,D,u?.ignoreModifiers)||(b=D.keys)!=null&&b.includes("*")){if((T=u?.ignoreEventWhen)!=null&&T.call(u,w)||B&&i.current)return;if(UDt(w,D,u?.preventDefault),!HDt(w,D,u?.enabled)){she(w);return}A.current(w,D),B||(i.current=!0)}})}},m=w=>{w.code!==void 0&&(gQe(yg(w.code)),(u?.keydown===void 0&&u?.keyup!==!0||u!=null&&u.keydown)&&p(w))},y=w=>{w.code!==void 0&&(pQe(yg(w.code)),i.current=!1,u!=null&&u.keyup&&p(w,!0))},C=a.current||o?.document||document;return C.addEventListener("keyup",y,o?.eventListenerOptions),C.addEventListener("keydown",m,o?.eventListenerOptions),f&&Nj(s,u?.delimiter).forEach(w=>f.addHotkey(_j(w,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description))),()=>{C.removeEventListener("keyup",y,o?.eventListenerOptions),C.removeEventListener("keydown",m,o?.eventListenerOptions),f&&Nj(s,u?.delimiter).forEach(w=>f.removeHotkey(_j(w,u?.splitKey,u?.sequenceSplitKey,u?.useKey,u?.description))),h=[],g&&clearTimeout(g)}},[s,u,d]),a}const t5t=()=>{const e=wn(),t=qf(),[r,n]=E.useState(Fj),[a,i]=E.useState({desc:null,run:null}),[o,s]=E.useState(0),[l,c]=E.useState(!0),[A]=E.useState("0"),u=ut(b=>b.cti.content),d=ut(b=>b.cti.view),f=ut(b=>b.cti.ui.filters.visible),h=ut(b=>b.cti.history.views),g=ut(b=>b.cti.view.errors),p=ut(b=>b.cti.view.gettingRun),m=ut(b=>b.cti.view.rendering),y=ut(b=>b.cti.ui.devMode),C=ut(b=>b.cti.menu.selectedModuleKey),w=t.location.search.substring(3);async function B(b){if(mre[C]&&!b.desc.includes(mre[C])&&!b.desc.includes("FAVORI")){Ki(8403,"");return}c(!0);let T,D;if(b.desc&&(T=await Ji.getItem(b.desc)),b.run&&(D=await Ji.getItem(b.run)),D&&(D=JSON.parse(Pl.inflate(D,{to:"string"}))),T){if(T=JSON.parse(Pl.inflate(T,{to:"string"})),T.selections&&!Object.keys(T.selections).length){const F=await cy(T.attributes.name+".XML",D.args,0),{viewData:N}=await ly(F,0);D=N.run,T.viewRefs||(T.viewRefs=[])}T&&D&&(n({desc:T,run:D}),d.gettingRun===!1&&c(!1))}}E.useEffect(()=>{C&&a.desc&&(a.desc.includes("JUSTIF")||(i({desc:null,run:null}),n(Fj)))},[C,a.desc]),E.useEffect(()=>{if(d.isLoading===!1){const b={desc:d.descRef,run:d.runRef};d.descRef&&d.runRef&&i(b)}},[d.descRef,d.runRef,d.isLoading]),E.useEffect(()=>{d.isLoading===!0&&l===!1&&c(!0)},[d.isLoading]),E.useEffect(()=>{a.desc!==null&&a.run!==null?B(a):n(Fj)},[a]),E.useEffect(()=>{if(!u.viewlink){const b=t.location.pathname;e(_E(b,w,h))}},[u.pathname,u.viewlink]),E.useEffect(()=>{if(t.action==="POP"&&t.location.search&&a.run){const b=t.location.pathname;a.run.split("_")[2].startsWith(w)||e(_E(b,w,h))}},[t.action,t.location,e,a.run,h]),E.useEffect(()=>{g.length&&(e(CQ(!0)),Ko.unstable_batchedUpdates(()=>{e(rm(!1)),e(nz(!1))}),c(!1))},[g,e]),EQe("e",()=>{r.desc?.attributes?.name&&e(_E(r.desc.attributes.name,w,h,!0))},{},[w,h]);const x=()=>{e(Npt())},M=le.useCallback(b=>{s(b)},[]),S=()=>{e(kv(!1))};y&&console.log("     VIEW RENDER",r,l);const R=()=>!r.run.data&&!l?v.jsxs("div",{style:{paddingLeft:"20px",paddingTop:"20px"},children:["Lors du premier appel d'une vue, les seules options disponibles sont:",v.jsxs("ul",{children:[v.jsx("li",{children:"l'exécution de la requête"}),v.jsx("li",{children:"la création de favoris"})]}),"Sélectionner les filtres depuis le panneau pour affiner votre requête."]}):r.run.data?v.jsxs(le.Fragment,{children:[v.jsx(NCt,{view:r,TAB:A,selectedSimiliTab:o}),m&&v.jsx(Rbe,{}),v.jsx(Rx,{className:"view-data-tabs",children:v.jsx(dm,{in:!0,classNames:"page-fade",appear:!0,timeout:300,children:v.jsx(jDt,{view:r,handleSetSelectedSimiliTab:M})},r.desc.attributes.name)})]}):v.jsxs("div",{className:"loading-wrapper",children:[v.jsx(go,{style:{height:"auto"}}),p?v.jsx(yt,{type:"link",style:{height:"20px"},onClick:x,children:"Arrêter la requête"}):v.jsx("div",{style:{height:"20px"}})]});return v.jsxs(le.Fragment,{children:[v.jsx(Nbe,{errors:g}),v.jsxs("div",{className:"cti-view",children:[v.jsxs("div",{className:"cti-view-header",children:[v.jsx(zDt,{view:r,contentName:u.name}),v.jsx(Fbe,{loading:l})]}),v.jsxs("div",{className:"cti-view-data",children:[R(),r.desc.selections&&v.jsx(b1e,{title:null,footer:v.jsx(RCt,{}),placement:"right",closeIcon:null,open:f,getContainer:!1,className:"drawer-filters",style:{pointerEvents:f?"auto":"none"},bodyStyle:{padding:"0px"},width:800,onClose:S,children:v.jsx(SCt,{view:r,loading:l})})]})]})]})},r5t=le.memo(t5t),n5t=e=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",xmlSpace:"preserve",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2},viewBox:"0 0 5209 871",...e,children:[v.jsx("use",{xlinkHref:"#cti-logo_long_grey_with_pyramide_svg__a",width:1188,height:195,opacity:.2,transform:"matrix(4.16382 0 0 4.16578 157.013 27.865)"}),v.jsx("defs",{children:v.jsx("image",{xlinkHref:"data:image/png;base64,[encoded data, 25840 characters]",id:"cti-logo_long_grey_with_pyramide_svg__a",width:1188,height:195})})]}),a5t=le.memo(({handleCollapseSider:e,siderIsCollapsed:t})=>{const r={top:!1,right:!0,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},[n,a]=E.useState(300),[i,o]=E.useState(300),s=E.useRef(),l=ut(m=>m.cti.content.type),c=ut(m=>m.cti.content.moduleId),A=ut(m=>m.cti.content.name),u=ut(m=>m.cti.menu.item),d=ut(m=>m.cti.ui.showMenus),f=ut(m=>m.cti.ui.menuMode);E.useEffect(()=>{a(t?0:i)},[t,i]);const h=m=>{switch(m){case"view":return v.jsx(r5t,{});case"component":return v.jsx(wbe,{componentName:A,module:c,item:u});case"page":return v.jsx(eft,{pageName:A,module:c})}},g=le.useCallback((m,y,C,w)=>{n>200&&n+w.width<=200?e():n<200&&n+w.width>200?(e(),a(n+w.width)):(o(n+w.width),a(n+w.width))},[n,e]),p=le.useMemo(()=>({width:n}),[n]);return v.jsxs(v.Fragment,{children:[v.jsx(pCt,{handleCollapseSider:e,siderIsCollapsed:t}),v.jsxs("div",{className:"cti-sider-and-content",ref:s,children:[f===iE?v.jsx(fm,{handleWrapperClass:"handle-wrappers-menu",minWidth:0,maxWidth:500,enable:r,size:d===!0?p:{width:0},onResizeStop:g,className:"collapsable-sider",children:v.jsx(bse,{siderIsCollapsed:t})}):v.jsx(b1e,{forceRender:!0,open:!t,placement:"left",getContainer:!1,width:300,closable:!1,className:"menu-drawer",onClose:()=>e(),children:v.jsx(bse,{siderIsCollapsed:t,handleCollapseSider:e})}),v.jsx(bit,{children:v.jsx(dm,{in:!0,classNames:"content-fade",appear:!0,timeout:2e3,unmountOnExit:!0,children:v.jsxs("div",{className:"Content",style:{display:"flex",justifyContent:"center"},children:[!l||l==="page"&&v.jsx(n5t,{style:{width:"1000px"}}),h(l)]})})})]})]})}),i5t=()=>{const e=wn(),t=qf(),r=ut(h=>h.cti.licences),n=ut(h=>h.cti.settings.data.environment),[a,i]=E.useState(0),o=ut(h=>h.cti.settings.loading),s=ut(h=>h.cti.settings.data.session),l=ut(h=>h.router.location.pathname),c=ut(h=>h.cti.settings.data.environment),A=ut(h=>h.cti.ui.siderIsCollapsed);t?.location?.search?.includes("m=false")&&e(c8e(!1)),E.useEffect(()=>{window.addEventListener("click",d),c?.OPTSYSTEM_INACTIVESESSIONDLY&&i(Number(c.OPTSYSTEM_INACTIVESESSIONDLY)*6e4)},[c]),E.useEffect(()=>{!s&&o!==!0&&e(ewe())},[s]),E.useEffect(()=>{e(uEt())},[e]);let u=null;function d(){a!==0&&(clearTimeout(u),u=setTimeout(()=>{twe()},a))}const f=le.useCallback(()=>{Ji.setItem("sider",!A),e(pE(!A))},[A,e]);if(s){if(s.CONNECTEDUSER.trim()==="")return v.jsx(vE,{to:{pathname:"/login",state:{referrer:l}}});if(r.data)return v.jsxs("div",{className:"Main",children:[v.jsxs(io,{children:[v.jsx("title",{children:n?.ENVIRONMENT||"iCTI"}),v.jsx("meta",{name:"description",content:"Helmet application"})]}),v.jsx(a5t,{handleCollapseSider:f,siderIsCollapsed:A})]})}return v.jsx("div",{className:"main__loader",children:v.jsx(go,{})})},o5t=le.memo(i5t);var kj={},Pj={},$C={},lhe;function s5t(){if(lhe)return $C;lhe=1,Object.defineProperty($C,"__esModule",{value:!0}),$C.default=void 0;var e={items_per_page:"/ page",jump_to:"Aller à",jump_to_confirm:"confirmer",page:"Page",prev_page:"Page précédente",next_page:"Page suivante",prev_5:"5 Pages précédentes",next_5:"5 Pages suivantes",prev_3:"3 Pages précédentes",next_3:"3 Pages suivantes",page_size:"taille de la page"};return $C.default=e,$C}var Oj={},jj={},ew={},che;function l5t(){if(che)return ew;che=1,Object.defineProperty(ew,"__esModule",{value:!0}),ew.default=void 0;var e={locale:"fr_FR",today:"Aujourd'hui",now:"Maintenant",backToToday:"Aujourd'hui",ok:"OK",clear:"Rétablir",month:"Mois",year:"Année",timeSelect:"Sélectionner l'heure",dateSelect:"Sélectionner la date",monthSelect:"Choisissez un mois",yearSelect:"Choisissez une année",decadeSelect:"Choisissez une décennie",yearFormat:"YYYY",dateFormat:"DD/MM/YYYY",dayFormat:"DD",dateTimeFormat:"DD/MM/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Mois précédent (PageUp)",nextMonth:"Mois suivant (PageDown)",previousYear:"Année précédente (Ctrl + gauche)",nextYear:"Année prochaine (Ctrl + droite)",previousDecade:"Décennie précédente",nextDecade:"Décennie suivante",previousCentury:"Siècle précédent",nextCentury:"Siècle suivant"},t=e;return ew.default=t,ew}var zj={},Ahe;function yQe(){return Ahe||(Ahe=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={placeholder:"Sélectionner l'heure",rangePlaceholder:["Heure de début","Heure de fin"]};e.default=t})(zj)),zj}var uhe;function CQe(){return uhe||(uhe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(Ga()),n=t(l5t()),a=t(yQe()),i={lang:(0,r.default)({placeholder:"Sélectionner une date",yearPlaceholder:"Sélectionner une année",quarterPlaceholder:"Sélectionner un trimestre",monthPlaceholder:"Sélectionner un mois",weekPlaceholder:"Sélectionner une semaine",rangePlaceholder:["Date de début","Date de fin"],rangeYearPlaceholder:["Année de début","Année de fin"],rangeMonthPlaceholder:["Mois de début","Mois de fin"],rangeWeekPlaceholder:["Semaine de début","Semaine de fin"]},n.default),timePickerLocale:(0,r.default)({},a.default)};e.default=i})(jj)),jj}var dhe;function c5t(){return dhe||(dhe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(CQe());e.default=r.default})(Oj)),Oj}var fhe;function A5t(){return fhe||(fhe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(s5t()),n=t(c5t()),a=t(CQe()),i=t(yQe()),o="La valeur du champ ${label} n'est pas valide pour le type ${type}",s={locale:"fr",Pagination:r.default,DatePicker:a.default,TimePicker:i.default,Calendar:n.default,Table:{filterTitle:"Filtrer",filterConfirm:"OK",filterReset:"Réinitialiser",filterEmptyText:"Aucun filtre",filterCheckall:"Tout sélectionner",filterSearchPlaceholder:"Chercher dans les filtres",emptyText:"Aucune donnée",selectAll:"Sélectionner la page actuelle",selectInvert:"Inverser la sélection de la page actuelle",selectNone:"Désélectionner toutes les données",selectionAll:"Sélectionner toutes les données",sortTitle:"Trier",expand:"Développer la ligne",collapse:"Réduire la ligne",triggerDesc:"Trier par ordre décroissant",triggerAsc:"Trier par ordre croissant",cancelSort:"Annuler le tri"},Modal:{okText:"OK",cancelText:"Annuler",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Annuler"},Transfer:{titles:["",""],searchPlaceholder:"Rechercher",itemUnit:"élément",itemsUnit:"éléments",remove:"Désélectionner",selectCurrent:"Sélectionner la page actuelle",removeCurrent:"Désélectionner la page actuelle",selectAll:"Sélectionner toutes les données",removeAll:"Désélectionner toutes les données",selectInvert:"Inverser la sélection de la page actuelle"},Upload:{uploading:"Téléchargement...",removeFile:"Effacer le fichier",uploadError:"Erreur de téléchargement",previewFile:"Fichier de prévisualisation",downloadFile:"Télécharger un fichier"},Empty:{description:"Aucune donnée"},Icon:{icon:"icône"},Text:{edit:"Éditer",copy:"Copier",copied:"Copie effectuée",expand:"Développer"},PageHeader:{back:"Retour"},Form:{optional:"(optionnel)",defaultValidateMessages:{default:"Erreur de validation pour le champ ${label}",required:"Le champ ${label} est obligatoire",enum:"La valeur du champ ${label} doit être parmi [${enum}]",whitespace:"La valeur du champ ${label} ne peut pas être vide",date:{format:"La valeur du champ ${label} n'est pas au format date",parse:"La valeur du champ ${label} ne peut pas être convertie vers une date",invalid:"La valeur du champ ${label} n'est pas une date valide"},types:{string:o,method:o,array:o,object:o,number:o,date:o,boolean:o,integer:o,float:o,regexp:o,email:o,url:o,hex:o},string:{len:"La taille du champ ${label} doit être de ${len} caractères",min:"La taille du champ ${label} doit être au minimum de ${min} caractères",max:"La taille du champ ${label} doit être au maximum de ${max} caractères",range:"La taille du champ ${label} doit être entre ${min} et ${max} caractères"},number:{len:"La valeur du champ ${label} doit être égale à ${len}",min:"La valeur du champ ${label} doit être plus grande que ${min}",max:"La valeur du champ ${label} doit être plus petit que ${max}",range:"La valeur du champ ${label} doit être entre ${min} et ${max}"},array:{len:"La taille du tableau ${label} doit être de ${len}",min:"La taille du tableau ${label} doit être au minimum de ${min}",max:"La taille du tableau ${label} doit être au maximum de ${max}",range:"La taille du tableau ${label} doit être entre ${min}-${max}"},pattern:{mismatch:"La valeur du champ ${label} ne correspond pas au modèle ${pattern}"}}},Image:{preview:"Aperçu"}};e.default=s})(Pj)),Pj}var hhe;function u5t(){return hhe||(hhe=1,(function(e){var t=qr().default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=t(A5t());e.default=r.default})(kj)),kj}var d5t=u5t();const f5t=gn(d5t),h5t=function(){return null},g5t={defaultOptions:{queries:{retry:2,staleTime:1e3*60*60*12,cacheTime:1e3*60*60*12,refetchOnWindowFocus:!1,refetchOnMount:!0,refetchOnReconnect:!0},mutations:{retry:0}}},wQe=({children:e})=>{const t=ut(a=>a.cti.ui.filters.visible),r=wn(),n=ut(a=>a.cti.ui.primaryColor);return E.useEffect(()=>{document.documentElement.style.setProperty("--primary-color",n),document.documentElement.style.setProperty("--ant-primary-color",n)},[n]),EQe("f",()=>{document.querySelector(".cti-view")&&r(kv(!t))},{},[t]),E.useEffect(()=>{(async()=>{let i=await Ji.getItem("menuMode"),o=await Ji.getItem("sider");i&&r(yge(i)),o&&r(pE(o))})()},[r]),e};wQe.propTypes={children:W.object};const p5t=new Jmt(g5t),v5t=()=>v.jsx(E.StrictMode,{children:v.jsx(om,{locale:f5t,children:v.jsx(q8e,{store:sl,children:v.jsxs(r0t,{client:p5t,children:[v.jsx(wQe,{children:v.jsx(KPe,{history:iz,children:v.jsxs(Wge,{children:[v.jsx(aE,{path:"/login",component:mit}),v.jsx(aE,{render:()=>v.jsx(o5t,{})})]})})}),v.jsx(h5t,{initialIsOpen:!1})]})})})}),m5t=()=>{Ql.render(v.jsx(v5t,{}),document.getElementById("root"))};m5t();export{zg as _,Ho as a,te as b,kM as c,gn as g};
